<?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>williamhathaway.com &#187; Linux</title>
	<atom:link href="http://www.williamhathaway.com/wordpress/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.williamhathaway.com/wordpress</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 03:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Cool sysadmin tools</title>
		<link>http://www.williamhathaway.com/wordpress/2010/04/11/cool-sysadmin-tools/</link>
		<comments>http://www.williamhathaway.com/wordpress/2010/04/11/cool-sysadmin-tools/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 05:41:31 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=562</guid>
		<description><![CDATA[Here are a couple of systems tools I&#8217;ve been using lately and have been very happy with: Puppet (configuration management) &#8211; I&#8217;ve used CFengine a lot on the past for configuration management, but I now prefer Puppet due to its wide scope of manageable resources, ranging the gamut from standard file distribution to  packages, services, [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a couple of systems tools I&#8217;ve been using lately and have been very happy with:</p>
<p><a href="http://www.puppetlabs.com/">Puppet</a> (configuration management) &#8211; I&#8217;ve used <a href="http://www.cfengine.org/">CFengine</a> a lot on the past for configuration management, but I now prefer Puppet due to its wide scope of manageable resources, ranging the gamut from standard file distribution to  packages, services, users, network configurations, etc.   We are currently using Puppet to bootstrap systems from a base CentOS image to having all the components needed for their role and it is working out really well. I read the book <a href="http://www.amazon.com/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780">Pulling String with Puppet</a> to get ramped up, and while it is helpful, it lacks an index, so I&#8217;d recommend getting an electronic copy.</p>
<p><a href="http://www.splunk.com/">Splunk</a> (log/event parsing) &#8211; I haven&#8217;t seen any other locally deployed tool that can come anywhere close to Splunk for taking various log files and making the information immediately usable on a wide scale.  The search interface is super shiny and has a lot of very interesting capabilities for creating dashboard, performing data mining, and alerting.  Splunk came out with a new release (4.1) last week.  If you last looked at Splunk more than a year ago, check out <a href="http://www.splunk.com/view/whats-new/SP-CAAAFD2">whats new</a>.  If you are looking for a cloud-based solution, <a href="http://paglo.com/">Paglo</a> (recently bought by Citrix)seems to be an interesting option.</p>
<p><a href="https://fedorahosted.org/func/">Func</a> (command &amp; control) &#8211; while almost all of the management in the environment is done via Puppet, there are times when we want to run commands across a set of hosts. Func fills the niche nicely by providing the ability to use wildcards and grouping for host selection and running against multiple targets in parallel.  For folks wanting to get a quick overview of Func, I recommend <a href="http://www.slideshare.net/danhanks/managing-your-minions-with-func">Dan Hank&#8217;s Managing Your Minions With Func presentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2010/04/11/cool-sysadmin-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS presentation</title>
		<link>http://www.williamhathaway.com/wordpress/2010/01/14/zfs-presentation/</link>
		<comments>http://www.williamhathaway.com/wordpress/2010/01/14/zfs-presentation/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:40:22 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centralpa]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=527</guid>
		<description><![CDATA[On Tuesday night I gave a presentation on ZFS to the Central PA Linux User Group. Since the audience was a Linux user group, I wasn&#8217;t expecting too many in the crowd to be familiar with ZFS, but I was pleasantly surprised that about 40% of the ~ 20 people in attendance had used ZFS [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 410px"><img alt="" src="http://billhathaway.smugmug.com/photos/764957146_tdHkq-S.jpg" width="400" height="300" /><p class="wp-caption-text">Photo by John @ ThinkHole.com</p></div>
<p>On Tuesday night I gave a presentation on <a href="http://hub.opensolaris.org/bin/view/Community+Group+zfs/">ZFS</a> to the <a href="http://www.cplug.net/">Central PA Linux User Group</a>.  Since the audience was a Linux user group, I wasn&#8217;t expecting too many in the crowd to be familiar with ZFS, but I was pleasantly surprised that about 40% of the ~ 20 people in attendance had used ZFS in some capacity.   If you are already a seasoned ZFS user, I would highly recommend <a href="http://www.richardelling.com/">Richard Elling&#8217;s</a><a href="http://www.slideshare.net/relling/zfs-tutorial-usenix-june-2009"> ZFS presentation</a> which he uses in his day-long tutorials.</p>
<div style="width:477px;text-align:left" id="__ss_2911779"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/billhathaway/zfs-in-30-minutes" title="ZFS in 30 minutes">ZFS in 30 minutes</a><object style="margin:0px" width="477" height="510"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayerd.swf?doc=zfspresocplug-100114065414-phpapp01&#038;stripped_title=zfs-in-30-minutes" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayerd.swf?doc=zfspresocplug-100114065414-phpapp01&#038;stripped_title=zfs-in-30-minutes" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="477" height="510"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">documents</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/billhathaway">billhathaway</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2010/01/14/zfs-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009 LISA Conference</title>
		<link>http://www.williamhathaway.com/wordpress/2009/11/08/2009-lisa-conference/</link>
		<comments>http://www.williamhathaway.com/wordpress/2009/11/08/2009-lisa-conference/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 17:07:10 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=485</guid>
		<description><![CDATA[I spent last week at the LISA Conference in Baltimore MD.  if you aren&#8217;t familiar with LISA, it is a conference focused on system administration.  This is the 4th  LISA I&#8217;ve attended in the last 12 years. On Monday I attended a tutorial by Richard Elling on ZFS: A Filesystem for Modern Hardware. On Tuesday [...]]]></description>
			<content:encoded><![CDATA[<p>I spent last week at the LISA Conference in Baltimore MD.  if you aren&#8217;t familiar with LISA, it is a conference focused on system administration.  This is the 4th  LISA I&#8217;ve attended in the last 12 years.</p>
<p>On Monday I attended a tutorial by <a href="http://richardelling.com">Richard Elling</a> on ZFS: A Filesystem for Modern Hardware.</p>
<p>On Tuesday I attended two tutorials.  The first was<a href="http://www.cambridgecomputer.com/management.cfm"> Jacob Farmer&#8217;s</a> Disk-to-Disk Backup and Eliminating Backup System Bottlenecks.  The second was <a href="http://everythingsysadmin.com">Tom Limoncelli&#8217;s</a> Design Patterns for System Administrators.</p>
<p>Unfortunately on both Monday and Tuesday I had to spend a significant amount of time on conference calls helping to troubleshoot some work related issues, but the time I spent in all 3 sessions and viewing their materials was helpful.  I would definitely recommend attending tutorials by any of the 3 people above if they are teaching a topic of interest to you.</p>
<p>On Tuesday night I attended some (Open)Solaris birds-of-a-feather sessions.  There were a few times that people in the crowd were being belligerent towards a speaker (mostly complaining about the difficulty of finding information of various types), even though the speaker certainly had no sway over what the person in the crowd was upset about.  I don&#8217;t care how much money your company spends with a vendor, there is never a reason to be rude.   <a href="http://blogs.sun.com/dminer/">David Miner</a> gave a talk about whats coming in Solaris.next and <a href="http://cuddletech.com">Ben Rockwood</a> gave an entertaining and informative presentation on <a href="http://wikis.sun.com/download/attachments/63226450/ZFSintheTrenches.pdf">ZFS in the Trenches</a>.</p>
<p>I was lucky enough to get a chance to talk with David Miner over a quick lunch later in the week and talk about the new opportunities and challenges with the OpenSolaris installation technologies.</p>
<p>On Wednesday through Friday I attended a mix of presentations, met with a bunch of vendors, and also sat in some of the &#8216;Guru is in&#8217; sessions and talked with a number of conference attendees.  The highlights for me were:</p>
<ul>
<li>Werner Vogel (CTO of Amazon) gave a fascinating talk on the history of Amazon&#8217;s IT philosophy and infrastructure and how they evolved from a humble internal IT shop to adding a business which is the dominant  cloud computing provider.</li>
<li>Elizabeth Zwicky&#8217;s talk on <strong> &#8220;Searching for Truth, or at Least Data: How </strong><strong><strong>to Be an Empiricist Skeptic&#8221;</strong></strong></li>
<li><a href="http://blogs.sun.com/bmc/">Bryan Cantrill&#8217;s</a> talk on <strong><a href="http://blogs.sun.com/video/entry/visualizing_dtrace_sun_storage_7000">&#8220;Visualizing DTrace: Sun Storage 7000 Analytics&#8221;</a><br />
</strong></li>
<li>Talking with the folks from <a href="http://www,splunk.com">Splunk </a>(awesome log searching analysis tool)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2009/11/08/2009-lisa-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Central PA Open Source Conference</title>
		<link>http://www.williamhathaway.com/wordpress/2009/10/17/central-pa-open-source-conference/</link>
		<comments>http://www.williamhathaway.com/wordpress/2009/10/17/central-pa-open-source-conference/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 02:58:18 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centralpa]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=477</guid>
		<description><![CDATA[I had a good time attending the CPOSC event  today, which was held at Harrisburg University.  Got to see lots of old friends and acquaintances and enjoyed the speakers.  At only $35 (which included a t-shirt and food), it was an awesome bargain.  Thanks to John and Eric for doing such a great job organizing [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" src="http://billhathaway.smugmug.com/photos/683955965_E6MUL-S.jpg" alt="" width="400" height="300" /></p>
<p>I had a good time attending the <a href="http://www.cposc.org/">CPOSC</a> event  today, which was held at Harrisburg University.  Got to see lots of old friends and acquaintances and enjoyed the speakers.  At only $35 (which included a t-shirt and food), it was an awesome bargain.  Thanks to <a href="http://thinkhole.org/">John</a> and <a href="http://www.openthought.net/">Eric</a> for doing such a great job organizing the event and all the presenters for sharing their knowledge.</p>
<p><img class="aligncenter" src="http://billhathaway.smugmug.com/photos/683947971_GbvgA-S.jpg" alt="" width="400" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2009/10/17/central-pa-open-source-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Effect of multi-byte locales on GNU grep speed in OpenSolaris</title>
		<link>http://www.williamhathaway.com/wordpress/2009/09/25/effect-of-multi-byte-locales-on-gnu-grep-speed/</link>
		<comments>http://www.williamhathaway.com/wordpress/2009/09/25/effect-of-multi-byte-locales-on-gnu-grep-speed/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 13:02:18 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=469</guid>
		<description><![CDATA[I have a lab machine running OpenSolaris 2009.06 (updated to snv_117) and had created an LDIF file with about 100k small entries in it (file size was ~ 63 megs).  I wanted to get a count of the exact number of entries so I ran: grep -c ^dn: I expected it to take a second [...]]]></description>
			<content:encoded><![CDATA[<p><em> </em></p>
<p>I have a lab machine running OpenSolaris 2009.06 (updated to snv_117) and had created an LDIF file with about 100k small entries in it (file size was ~ 63 megs).  I wanted to get a count of the exact number of entries so I ran:</p>
<p><strong>grep -c ^dn:</strong></p>
<p>I expected it to take a second or two.  I was wrong.  It was painfully slow.</p>
<p>I used the <strong>time</strong> command to re-run the grep and saw it clocked in at just over a minute.</p>
<p>This was weird, so I though it was time to investigate further.  I used the<a href="http://opensolaris.org/os/community/dtrace/dtracetoolkit/"> DTrace Toolkit&#8217;s</a> hotuser command to see what the hot functions were:</p>
<pre><strong>pfexec /opt/DTT/hotuser -c "grep -c ^dn: /var/tmp/search.out"</strong>
Sampling... Hit Ctrl-C to end.

FUNCTION                                                     COUNT   PCNT
...&lt;snipped out smaller functions&gt;...
ggrep`check_multibyte_string                                    5480   8.9%
methods_unicode.so.3`__mbrtowc_dense_utf8                      12328  20.1%
libc.so.1`mbrlen                                               13566  22.1%
libc.so.1`memset                                               23014  37.5%</pre>
<p>Hmm, interesting to see the calls to mbrlen and methods_unicode among the hot functions.  Lets check my $LANG setting:</p>
<pre><strong>echo $LANG</strong></pre>
<pre>en_US.UTF-8</pre>
<p>Bingo!  Lets try it again with a non multi-byte LANG setting.</p>
<pre><strong>LANG=C</strong> <strong>time grep -c ^dn: /var/tmp/search.out
</strong></pre>
<pre>99987

real        0.1
user        0.0
sys         0.0</pre>
<p>That looks normal.  Now lets try one more time with a multi-byte LANG to be sure:</p>
<pre><strong>LANG=en_US.UTF-8 time grep -c ^dn: /var/tmp/search.out</strong>
99987

real     1:01.4
user     1:01.3
sys         0.0</pre>
<p>Yep, the problem is confirmed.</p>
<h2>Notes</h2>
<p>For those unfamiliar with OpenSolaris,  the default path has /usr/gnu/bin first.  The grep I was using was:</p>
<pre><strong>grep -V</strong>
grep (GNU grep) 2.5

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</pre>
<p>If you use the non-GNU grep available at <strong>/usr/xpg4/bin/grep </strong>it doesn&#8217;t have the big slowdown regardless of the LANG.</p>
<p>I also tried the same test on the GNU <strong>wc</strong> command and saw about a 25x difference when using a multi-byte LANG.</p>
<p>For both grep and wc, I re-ran the tests multiple times to make sure that file system caching played no role in the results.</p>
<p>I think these performance differences are way higher than they should be, I&#8217;m going to dig further when I have a chance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2009/09/25/effect-of-multi-byte-locales-on-gnu-grep-speed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>UNIX graffiti?</title>
		<link>http://www.williamhathaway.com/wordpress/2009/05/12/unix-graffiti/</link>
		<comments>http://www.williamhathaway.com/wordpress/2009/05/12/unix-graffiti/#comments</comments>
		<pubDate>Wed, 13 May 2009 01:55:27 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://www.williamhathaway.com/wordpress/?p=388</guid>
		<description><![CDATA[I came across this on a couple of buildings, fence posts, and the sidewalk while walking around Morgantown. Has anyone seen UNIX-like graffiti tagging elsewhere?]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 445px"><img title="Venn diagram of UNIX and graffiti enthusthiasts" src="http://billhathaway.smugmug.com/photos/535177058_8xsei-L.jpg" alt="Venn diagram of UNIX and graffiti enthusthiasts" width="435" height="291" /><p class="wp-caption-text">Venn diagram of UNIX and graffiti enthusthiasts</p></div>
<p>I came across this on a couple of buildings, fence posts, and the sidewalk while walking around Morgantown.</p>
<p>Has anyone seen UNIX-like graffiti tagging elsewhere?</p>
<div class="wp-caption aligncenter" style="width: 410px"><img title="unix graffiti in Morgantown, WZV" src="http://billhathaway.smugmug.com/photos/535171174_aDftk-S.jpg" alt="unix graffiti in Morgantown, WZV" width="400" height="300" /><p class="wp-caption-text">UNIX graffiti in Morgantown, WV</p></div>
<p><img class="aligncenter" src="http://billhathaway.smugmug.com/photos/535871313_26SgC-S.jpg" alt="" width="400" height="300" /></p>
<p><img class="aligncenter" src="http://billhathaway.smugmug.com/photos/535871238_aETfa-S.jpg" alt="" width="400" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2009/05/12/unix-graffiti/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tuning Linux for Load Runner</title>
		<link>http://www.williamhathaway.com/wordpress/2008/01/28/tuning-linux-for-load-runner/</link>
		<comments>http://www.williamhathaway.com/wordpress/2008/01/28/tuning-linux-for-load-runner/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 20:33:35 +0000</pubDate>
		<dc:creator>William Hathaway</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://williamhathaway.com/?p=118</guid>
		<description><![CDATA[Here are the steps I have used in the past to configure some Centos boxes being used as LoadRunner load generators to get better performance when trying to generate a lot of traffic. Note: these were machines that were only accessible from within a very limited environment, I don&#8217;t think these suggestions are good from [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the steps I have used in the past to configure some Centos boxes being used as LoadRunner load generators to get better performance when trying to generate a lot of traffic.</p>
<p>Note: these were machines that were only accessible from within a very limited environment, I don&#8217;t think these suggestions are good from a security perspective.</p>
<p><strong>1) Increase the available TCP ports used for outbound connections</strong><br />
edit etc/sysctl.conf and add<br />
net.ipv4.ip_local_port_range = 1024 65000</p>
<p>To apply the change immediately:<br />
root@host#  sysctl net.ipv4.ip_local_port_range=&#8221;1024 65000&#8243;</p>
<p><strong>2) Disable IP Tables</strong></p>
<p>use the service and chkconf commands to stop the service and disable it from starting at boot</p>
<p>root@host# service iptables save<br />
root@host# service iptables stop<br />
root@host# chkconfig iptables off</p>
<p><strong>3) Disable Selinux</strong><br />
edit  /etc/selinux/config and change the selinux line to be:</p>
<p>SELINUX=disabled</p>
<p>and reboot.</p>
<p>To apply the change immediately, use:</p>
<p>root@host# <font size="-1">echo 0 &gt;/selinux/enforce</font></p>
<p><strong>1) Increase the available TCP ports used for outbound connections</strong><br />
edit etc/sysctl.conf and add<br />
net.ipv4.ip_local_port_range = 1024 65000</p>
<p>To apply the change immediately:<br />
root@host#  sysctl net.ipv4.ip_local_port_range=&#8221;1024 65000&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.williamhathaway.com/wordpress/2008/01/28/tuning-linux-for-load-runner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
