<?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>Daz's bits and bobs &#187; compression</title>
	<atom:link href="http://sigtar.com/tag/compression/feed/" rel="self" type="application/rss+xml" />
	<link>http://sigtar.com</link>
	<description>…bytes bits</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>zfs compression and latency</title>
		<link>http://sigtar.com/2009/08/19/zfs-compression-and-latency/</link>
		<comments>http://sigtar.com/2009/08/19/zfs-compression-and-latency/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 04:13:28 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[Virtual]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[iometer]]></category>
		<category><![CDATA[latency]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=913</guid>
		<description><![CDATA[Since im using ZFS as storage via NFS for my some of my vmware environments i need to ensure that latency on my disk is reduced where ever possible.
There is alot of talk about ZFS compression being &#8220;faster&#8221; than a non-compressed pool due to less physical data being pulled off the drives. This of course [...]


Related posts:<ol><li><a href='http://sigtar.com/2010/03/26/iometer-testing/' rel='bookmark' title='Permanent Link: iometer testing'>iometer testing</a> <small>The following is some notes i have around the parameters...</small></li>
<li><a href='http://sigtar.com/2009/12/18/vma-using-hp-power-protector-agent-to-shutdown-virtual-hosts/' rel='bookmark' title='Permanent Link: vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts'>vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts</a> <small>Goal was to create a vMA which would send a...</small></li>
<li><a href='http://sigtar.com/2010/05/07/vmware-measuring-iscsi-write-performance/' rel='bookmark' title='Permanent Link: vmware &#8211; measuring iscsi write performance'>vmware &#8211; measuring iscsi write performance</a> <small>I picked this trick up off vmware support. If you&#8217;ve...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Since im using ZFS as storage via NFS for my some of my vmware environments i need to ensure that latency on my disk is reduced where ever possible.</p>
<p>There is alot of talk about ZFS compression being &#8220;faster&#8221; than a non-compressed pool due to less physical data being pulled off the drives. This of course depends on the system powering ZFS, but i wanted to run some tests specifically on latency. Throughput is fine in some situations, but latency is a killer when it comes to lots of small reads and writes (in the case of hosting virtual machines)</p>
<p>I recently completed some basic tests focusing on the differences in latency when ZFS compression (lzjb) is enabled or disabled. IOMeter was my tool of choice and i hit my ZFS box via a mapped drive.</p>
<p>I&#8217;m not concerned with the actual figures, but the <em>difference </em>between the figures</p>
<p>I have run the test multiple times (to eliminate caching as a factor) and can validate that compression (on my system anyhow) increases latency</p>
<p>Basic Results from a &#8220;All in one&#8221; test suite&#8230;  (similar results across all my tests)</p>
<p><strong>ZFS uncompressed:</strong></p>
<p>IOps : 2376.68<br />
Read MBps : 15.14<br />
Write MBps : 15.36<br />
Average Response Time : 0.42<br />
Average Read Response Time : 0.42<br />
Average Write Response Time : 0.43<br />
Average Transaction Time : 0.42</p>
<p><strong>ZFS compressed:  (lzjb) </strong></p>
<p>IOps : 1901.82<br />
Read MBps : 12.09<br />
Write MBps : 12.28<br />
Average Response Time : 0.53<br />
Average Read Response Time : 0.44<br />
Average Write Response Time : 0.61<br />
Average Transaction Time : 0.53</p>
<p>As you can see from the results, the AWRT especially is much higher due to compression. I wouldn&#8217;t recommend using zfs compression where latency is a large factor (virtual machines)</p>
<p>Note: Under all the tests performed the CPU (dual core) on the zfs box was never 100% &#8211; eliminating that as a bottleneck.</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2010/03/26/iometer-testing/' rel='bookmark' title='Permanent Link: iometer testing'>iometer testing</a> <small>The following is some notes i have around the parameters...</small></li>
<li><a href='http://sigtar.com/2009/12/18/vma-using-hp-power-protector-agent-to-shutdown-virtual-hosts/' rel='bookmark' title='Permanent Link: vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts'>vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts</a> <small>Goal was to create a vMA which would send a...</small></li>
<li><a href='http://sigtar.com/2010/05/07/vmware-measuring-iscsi-write-performance/' rel='bookmark' title='Permanent Link: vmware &#8211; measuring iscsi write performance'>vmware &#8211; measuring iscsi write performance</a> <small>I picked this trick up off vmware support. If you&#8217;ve...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/08/19/zfs-compression-and-latency/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZFS compression types</title>
		<link>http://sigtar.com/2009/01/30/zfs-compression-types/</link>
		<comments>http://sigtar.com/2009/01/30/zfs-compression-types/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 05:41:40 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://dwtaylornz.wordpress.com/?p=70</guid>
		<description><![CDATA[ZFS compression as of OpenSolaris 2008.11 has a few types to choose from.
lzjb (default) &#124; gzip &#124; gzip-[1-9]
They are used via the zfs set compression=gzip poolname command. 
The following test was quickly done out of personal interest &#8211; and is in no way scientific!
I have a AMD cpu with 3 cores (2.4Ghz). The data i [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/08/19/zfs-compression-and-latency/' rel='bookmark' title='Permanent Link: zfs compression and latency'>zfs compression and latency</a> <small>Since im using ZFS as storage via NFS for my...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>ZFS compression as of OpenSolaris 2008.11 has a few types to choose from.</p>
<p>lzjb (default) | gzip | gzip-[1-9]</p>
<p>They are used via the <strong>zfs set compression=gzip </strong><em><strong>poolname </strong><span style="font-style:normal;">command. </span></em></p>
<p>The following test was quickly done out of personal interest &#8211; and is in no way scientific!</p>
<p>I have a AMD cpu with 3 cores (2.4Ghz). The data i copied to each of the shares consisted of video / documents / pictures and music. The first test i have done is based on compression only (i have not measured throughput)</p>
<p>Original Data Size : 412MB</p>
<p>lzjb : 312MB Compression ratio : 1.32</p>
<p>gzip : 293MB Compression ratio : 1.41</p>
<p>gzip9 : 292MB Compression ratio : 1.41</p>
<p>gzip is the winner on compression. With this small sample of data it is unclear if the extra CPU overhead on a gzip-9 zfs files system is worth it &#8211; from these results i would say it isn&#8217;t.</p>
<p>Again &#8211; gzip may be the winner on compression, but this does not reflect an improvement on throughput (untested).</p>
<p>Update: i&#8217;ve done a quick test on cpu load and throughput and i wouldnt recommend using gzip unless you are really limited on disk space &#8211; or have plenty of CPU to spare. lzjb is much faster (less load on cpu) and does a pretty good job for compression on the fly.</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/08/19/zfs-compression-and-latency/' rel='bookmark' title='Permanent Link: zfs compression and latency'>zfs compression and latency</a> <small>Since im using ZFS as storage via NFS for my...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/01/30/zfs-compression-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
