<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nklein software &#187; ubuntu</title>
	<atom:link href="http://nklein.com/tags/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://nklein.com</link>
	<description>software development and consulting</description>
	<lastBuildDate>Thu, 22 Dec 2011 04:42:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Installing mpich2 for use with CL-MPI</title>
		<link>http://nklein.com/2009/06/installing-mpich2-for-use-with-cl-mpi/</link>
		<comments>http://nklein.com/2009/06/installing-mpich2-for-use-with-cl-mpi/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 18:48:01 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[mpi]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=503</guid>
		<description><![CDATA[Some time back, I began writing some OpenMPI wrappers for Lisp. I got everything that I needed working, but I hardly scratched the surface of what MPI-2 makes available. Recently, Alex Fukunaga started up a blog about Lisp. One of the things he has done is make CFFI bindings for mpich2. Here is an introductory [...]]]></description>
			<content:encoded><![CDATA[<p>Some time back, I began writing some OpenMPI wrappers for Lisp.  I got everything that I needed working, but I hardly scratched the surface of what MPI-2 makes available.</p>
<p>Recently, Alex Fukunaga started up <a href="http://risupu.blogspot.com/">a blog about Lisp</a>.  One of the things he has done is make CFFI bindings for <a href="http://www.mcs.anl.gov/research/projects/mpich2/">mpich2</a>.  Here is an <a href="http://risupu.blogspot.com/2009/06/parallel-mandelbrot-computation-in-lisp.html">introductory post about those bindings</a> with a link to his <a href="http://code.google.com/p/cl-mpi/">CL-MPI site</a>.</p>
<p>Today, I have been working on getting his bindings up and running under Ubuntu Linux and Mac OS X.</p>
<p><span id="more-503"></span><br />
So far, it has been a nightmare trying to get mpich2 compiled on either platform.  It compiles famously if you just run</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">% ./configure --prefix=/usr/local</pre></div>
<p>However, that doesn&#8217;t build shared libraries.  Without shared libraries, the CFFI stub library happily links against the static library and happily imports zero of the symbols.  After sifting through <strong>configure &#8211;help</strong>, I decided that I should add <strong>&#8211;enable-dynamiclibs</strong>.  Doing so yells at me that I must also specify <strong>&#8211;enable-sharedlibs=type</strong>.  So, I sifted through the help again and decided to try:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ubuntu% ./configure --prefix=/usr/local --enable-dynamiclibs --enable-sharedlibs=gcc
macosx% ./configure --prefix=/usr/local --enable-dynamiclibs --enable-sharedlibs=gcc-osx</pre></div>
<p>Both compiles then bomb out saying <strong>MPIU_CALL_MPIDI_CH3</strong> is undeclared.  Yay.</p>
<p>Searching the web on the relevant errors, I discover that I do not need to enable dynamiclibs to get shared libraries.  Wheee.  Now, mpich2 is built on both architectures.</p>
<p>I added this target into <strong>cl-mpi/mpich2-stub/Makefile</strong>:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">libmpiskeleton.dylib: mpiskeleton.o
        mpicc -dynamiclib -o libmpiskeleton.dylib -dylib mpiskeleton.o</pre></div>
<p>and changed the bottom of <strong>cl-mpi/cl-mpi-configure.lisp</strong> to this:</p>
<div class="codecolorer-container lisp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="lisp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #66cc66;">&#40;</span>eval-<span style="color: #b1b100;">when</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">compile-toplevel</span> <span style="color: #66cc66;">:</span><span style="color: #555;">load-toplevel</span> <span style="color: #66cc66;">:</span><span style="color: #555;">execute</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span>pushnew <span style="color: #66cc66;">:</span><span style="color: #555;">mpich2</span> *features*<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">; Use MPICH2                                     </span>
  <span style="color: #66cc66;">&#40;</span>defvar *mpi-header-file* <span style="color: #ff0000;">&quot;/usr/local/include/mpi.h&quot;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
  <span style="color: #808080; font-style: italic;">;; For MPICH2, Need to load a special stub shared object, and not the MPICH s\</span>
hared library directly                                                          
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> load-mpi-foreign-libraries <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    #-darwin
    <span style="color: #66cc66;">&#40;</span>cffi<span style="color: #66cc66;">:</span><span style="color: #555;">use-foreign-library</span> <span style="color: #ff0000;">&quot;/usr/local/asdf-install/site/cl-mpi/mpich2-stub/<span style="color: #000099; font-weight: bold;">\</span>
libmpiskeleton.so.1.0.1&quot;</span><span style="color: #66cc66;">&#41;</span>
    #+darwin
    <span style="color: #66cc66;">&#40;</span>cffi<span style="color: #66cc66;">:</span><span style="color: #555;">use-foreign-library</span> <span style="color: #ff0000;">&quot;/usr/local/asdf-install/site/cl-mpi/mpich2-stub/<span style="color: #000099; font-weight: bold;">\</span>
libmpiskeleton.dylib&quot;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div>
<p>After sorting out some svn merge problems in mpi-test.lisp, it appears as though it all works wonderfully on MacOSX.  Most of it seems to work under Ubuntu for me, but I have to look into some error messages more closely.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/06/installing-mpich2-for-use-with-cl-mpi/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Who&#8217;s Knocking On My Disk Drive?</title>
		<link>http://nklein.com/2009/05/whos-knocking-on-my-disk-drive/</link>
		<comments>http://nklein.com/2009/05/whos-knocking-on-my-disk-drive/#comments</comments>
		<pubDate>Thu, 28 May 2009 22:32:35 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=457</guid>
		<description><![CDATA[I rebooted my Linux box into Windows Vista several times in the last two days while moving things over to VMWare Fusion. All day today, my disk drive has given a little spin every two or three seconds. When I first noticed it, I tried searching around with iostat and top to see if I [...]]]></description>
			<content:encoded><![CDATA[<p>I rebooted my Linux box into Windows Vista several times in the last two days while moving things over to VMWare Fusion.  All day today, my disk drive has given a little spin every two or three seconds.</p>
<p>When I first noticed it, I tried searching around with <strong>iostat</strong> and <strong>top</strong> to see if I had some process run amok.  Finding nothing, I tried rebooting.</p>
<p>The magical reboot was not so magical.  My machine was still merrily hitting the disk every couple seconds.</p>
<p>I searched around the web for <strong>&#8220;disk activity&#8221; linux</strong> and <strong>&#8220;disk activity&#8221; ubuntu</strong>.  I found recommendations that I:
<ul>
<li><a href="http://www.linuxforums.org/forum/linux-newbie/14496-continuous-hard-disk-activity-files-touched-every-2-seconds.html">Kill processes that poll for new media</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=839998">Eliminate access time tracking</a> on my filesystem, and</li>
<li><a href="http://www.ulverston.myzen.co.uk/mini-itx/pages/tuning.htm#Reduce_hard_drive_activity_when_server_is_idle">Set syslog not to flush</a> some of its logs</li>
</ul>
<p>All of those seemed bogus to me.  None of them seemed like anything that would have changed yesterday or today.  But, the last one got me thinking.  What logs do I have that do get flushed on every message?  Are any of them going batty today?</p>
<p>Sure enough, <strong>/var/log/auth.log</strong> was getting hit every two or three seconds.  Someone was trying to guess logins on my machine.</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">May 28 04:57:57 evariste sshd[6966]: pam_unix(sshd:auth): authentication failure
; logname= uid=0 euid=0 tty=ssh ruser= rhost=nitro.xyzdns.net  user=backup
May 28 04:57:59 evariste sshd[6966]: Failed password for backup from 209.51.159.
194 port 54874 ssh2
May 28 04:57:59 evariste sshd[6968]: Invalid user guest from 209.51.159.194
May 28 04:57:59 evariste sshd[6968]: pam_unix(sshd:auth): check pass; user unkno
wn
May 28 04:57:59 evariste sshd[6968]: pam_unix(sshd:auth): authentication failure
; logname= uid=0 euid=0 tty=ssh ruser= rhost=nitro.xyzdns.net 
May 28 04:58:01 evariste sshd[6968]: Failed password for invalid user guest from
 209.51.159.194 port 54992 ssh2</pre></div>
<p>Looking back through the last week, I&#8217;ve had a few spats of bogus login attempts.  Most of them were just four or five attempts in a row.  This one today had gone for twelve hours.</p>
<p>I threw that IP address into <strong>/etc/hosts.deny</strong>.  Now, all is quiet.  Well, except my need to make sure I don&#8217;t let things go for twelve hours again&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/05/whos-knocking-on-my-disk-drive/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Developing Lisp in Ubuntu Linux with VMWare Fusion</title>
		<link>http://nklein.com/2009/05/developing-lisp-in-ubuntu-linux-with-vmware-fusion/</link>
		<comments>http://nklein.com/2009/05/developing-lisp-in-ubuntu-linux-with-vmware-fusion/#comments</comments>
		<pubDate>Wed, 27 May 2009 17:14:32 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[lisp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=444</guid>
		<description><![CDATA[I am working on some lisp software that I would like to run under Linux, MacOSX, and Windows. I have a PC that I can boot into either Ubuntu Linux or Windows Vista. Of course, I have a variety of services running under Ubuntu Linux on that box that the rest of my network would [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on some lisp software that I would like to run under Linux, MacOSX, and Windows.</p>
<p>I have a PC that I can boot into either Ubuntu Linux or Windows Vista.  Of course, I have a variety of services running under Ubuntu Linux on that box that the rest of my network would rather have around.  As such, I would rather never boot that machine into Windows.  So, I thought I&#8217;d give <a href="http://www.vmware.com/download/fusion/">VMWare Fusion</a> a try.</p>
<p>Actually, I thought I would try both VMWare Fusion and <a href="http://www.parallels.com/">Parallels</a>.  Alas, Parallels lets me get my virtual machine set up, but will not let me run it without a license.  VMWare Fusion lets me play for 30 days before buying a license.  From what I&#8217;m seeing from VMWare Fusion&#8217;s performance, I can&#8217;t imagine dropping $80 on Parallels just to see if its virtual machine can outperform what I&#8217;m seeing from Fusion.</p>
<p>Right now, I am in the process of moving over the PC&#8217;s Windows stuff to my laptop so I can try running Vista through Fusion.  While I was waiting for that, however, I installed <a href="http://www.ubuntu.com/products/WhatIsUbuntu/desktopedition">Ubuntu</a> under Fusion, updated a ton of packages, installed emacs, sbcl, slime, etc.</p>
<p>For comparison, I took some lisp code that runs in just under 11 seconds on my laptop.  I ran the same code under Ubuntu in Fusion on the same laptop.  It ran in just under 12 seconds.  Some of that may also be that I am using an older version of SBCL under Ubuntu than I am native.</p>
<p>I have some more testing to do to make sure that <strong>cl-opengl</strong> will perform as well.  But, I am quite pleased.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/05/developing-lisp-in-ubuntu-linux-with-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

