<?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>Geek Style &#187; Performance</title>
	<atom:link href="http://farrokhi.net/blog/index.php/archives/tag/performance/feed" rel="self" type="application/rss+xml" />
	<link>http://farrokhi.net/blog</link>
	<description>UNIX, InfoSec, Networking</description>
	<lastBuildDate>Mon, 18 Jul 2011 09:47:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Multi-threaded gzip</title>
		<link>http://farrokhi.net/blog/index.php/archives/535</link>
		<comments>http://farrokhi.net/blog/index.php/archives/535#comments</comments>
		<pubDate>Tue, 14 Apr 2009 08:22:45 +0000</pubDate>
		<dc:creator>Babak Farrokhi</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://farrokhi.net/blog/?p=535</guid>
		<description><![CDATA[<p>The traditional (yet very popular) <a href="http://www.gzip.org/">gzip</a> is a single-threaded application from the single-processor/single-core hardware era. Its just fine if you are compressing a few files occasionally, but it become a great pain when you are compressing 32,000 files on an 8-processor server and you suddenly figure out that you are using only 1/8 of [...]]]></description>
			<content:encoded><![CDATA[<p>The traditional (yet very popular) <a href="http://www.gzip.org/">gzip</a> is a single-threaded application from the single-processor/single-core hardware era. Its just fine if you are compressing a few files occasionally, but it become a great pain when you are compressing 32,000 files on an 8-processor server and you suddenly figure out that you are using only 1/8 of your total processor power. Which means you should wait 8 times longer than if you could use all processing power on your machine. I encountered such case in which I should wait about 40 minutes to compress hundreds of gigabytes of a few thousand files, using traditional gzip, while I had one processor doing the whole job and 7 other processors were sitting idle.</p>
<p>So I thought there should be a way to speed-up the process. The most simple method I could use was to open up multiple terminal windows and run parallel copies of gzip, each of them to compress a specific set of files. While this method worked for me, but I was wondering why the gzip itself doesn&#8217;t support multi-threading.</p>
<h4>The solution: pigz</h4>
<p>I came across <a href="http://www.zlib.net/pigz/">pigz</a> after searching the internet for a multi-threaded gzip replacement. pigz is a drop-in replacement for gzip that supports parallel compression/decompression when multiple files are involved.</p>
<p style="text-align: center; "><img class="aligncenter size-full wp-image-536" title="pigz-running" src="http://farrokhi.net/blog/wp-content/uploads/2009/04/pigz-running.png" alt="pigz-running" width="623" height="334" /><em>Figure 1: Running &#8220;<code>systat -iostat 1</code>&#8221; on a FreeBSD 7.2 machine running pigz</em></p>
<p style="text-align: center; ">
<p style="text-align: left;">Using pigz, I could exploit more than 70% of my processing power. pigz also maintains compatibility with standard gzip command line parameter and supports all switches while adding &#8220;<code>-p</code>&#8221; command to specify maximum number of compression threads.</p>
]]></content:encoded>
			<wfw:commentRss>http://farrokhi.net/blog/index.php/archives/535/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>OpenOffice.org Template problem</title>
		<link>http://farrokhi.net/blog/index.php/archives/349</link>
		<comments>http://farrokhi.net/blog/index.php/archives/349#comments</comments>
		<pubDate>Wed, 13 Dec 2006 04:56:08 +0000</pubDate>
		<dc:creator>Babak Farrokhi</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://farrokhi.net/wordpress/?p=349</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img alt="openoffice_logo.jpg" src="http://farrokhi.net/blog/openoffice_logo.jpg" width="125" height="67" align="right" class=".photo" />Now that I am using OpenOffice.org 2 more seriously for a while (on FreeBSD you could guess), I am badly missing Microsoft Office. And to me, its not about the functionality. Its about pre-installed templates.</p>
<p>This shows up when you want to create pretty presentations or professional looking text documents. Now it seems like that OpenOffice people has figured out this problem and included some new templates in their <a href="http://slashdot.org/article.pl?sid=06/12/12/2224243">recent release</a>.</p>
<p>I wish they would also make it less memory hungry. Opening a very simple spreadsheet on my workstation takes up to 130MB of memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://farrokhi.net/blog/index.php/archives/349/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compression utilities comparison</title>
		<link>http://farrokhi.net/blog/index.php/archives/244</link>
		<comments>http://farrokhi.net/blog/index.php/archives/244#comments</comments>
		<pubDate>Mon, 26 Apr 2004 13:17:25 +0000</pubDate>
		<dc:creator>Babak Farrokhi</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://farrokhi.net/wordpress/?p=244</guid>
		<description><![CDATA[<p>There is many compression software and algorithms available today. Many people are still using <a href="http://www.info-zip.org/">zip</a> (the oldie but goodie) while many others are cult of <a href="http://www.rarlabs.com/">RAR</a>. In UNIX, the <a href="http://www.gzip.org/">gzip</a> is the classic and widely used compression program, but <a href="http://sources.redhat.com/bzip2/">bzip2</a> seems to have many fans either. <a href="http://www.apple.com/">Mac</a> users are still [...]]]></description>
			<content:encoded><![CDATA[<p>There is many compression software and algorithms available today. Many people are still using <a href="http://www.info-zip.org/">zip</a> (the oldie but goodie) while many others are cult of <a href="http://www.rarlabs.com/">RAR</a>. In UNIX, the <a href="http://www.gzip.org/">gzip</a> is the classic and widely used compression program, but <a href="http://sources.redhat.com/bzip2/">bzip2</a> seems to have many fans either. <a href="http://www.apple.com/">Mac</a> users are still using <a href="http://www.stuffit.com/">StuffIt</a> since I guess they have no more choice! (Correct me if I am wrong please)</p>
<p>You are also using your favorite compression program with your very own custom settings perhaps, which fit the best for your needs.<br />
Everything that we know about our favorite compression program is that it &#8220;feels&#8221; faster or &#8220;probably&#8221; makes smaller archives. But have you ever tested different programs yourself to compare them? I did.</p>
<p><span id="more-244"></span><br />
<strong>How?</strong></p>
<p>The test bench is my personal computer at home, running <a href="http://www.freebsd.org/">FreeBSD</a> 5.2-CURRENT on Intel 1.7 GHz CPU with 512K L2 Cache and 512MB DDR memory. My OS is completely rebuilt using gcc with</p>
]]></content:encoded>
			<wfw:commentRss>http://farrokhi.net/blog/index.php/archives/244/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mozilla 1.7b</title>
		<link>http://farrokhi.net/blog/index.php/archives/210</link>
		<comments>http://farrokhi.net/blog/index.php/archives/210#comments</comments>
		<pubDate>Mon, 22 Mar 2004 14:42:42 +0000</pubDate>
		<dc:creator>Babak Farrokhi</dc:creator>
				<category><![CDATA[Web Browsers]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://farrokhi.net/wordpress/?p=210</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mozilla.org/releases/#1.7b" title="Get Mozilla 1.7 Beta while it's hot!">Mozilla 1.7 beta</a> has really impressed me by its <a href="http://www.mozilla.org/releases/mozilla1.7b/README.html" title="What's New in Mozilla 1.7 Beta">features</a> and <a href="http://www.mozillazine.org/talkback.html?article=4491">performance</a>.</p>
<p>Though its a beta, but its very stable and I haven&#8217;t discovered any bug yet. I like the new icon set and finally the &#8220;Smooth Scrolling&#8221; feature. It also feels much faster in terms of launching and also rendering web pages.</p>
<p>If you are interested, there is a <a href="http://www.mozilla.org/releases/mozilla1.7b/changelog.html" title="Rough Changelog for Mozilla 1.7 Beta (about 400 issues)">long changelog</a> available.</p>
<p>If you are still using IE, I strongly recommend you using <a href="http://www.mozilla.org/products/mozilla1.x/" title="Mozilla Web Browser">Mozilla</a> or <a href="http://www.mozilla.org/products/firefox/" title="FireFox Web Browser">FireFox</a>. The reason is that IE is getting too old and Microsoft is <a href="http://news.com.com/2100-1032_3-1011859.html?tag=fd_top" title="Microsoft to abandon standalone IE">not interested</a> in updating its browser to support cutting edge technologies. My weblog, for example, looks much cleaner in non-IE browsers, despite I am using standard XHTML and CSS2 features. Its time to <a href="http://www.infoworld.com/article/04/03/19/12OPstrategic_1.html" title="Firefox fills the IE void">switch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://farrokhi.net/blog/index.php/archives/210/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

