<?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>Parolski.com &#187; zpool</title>
	<atom:link href="http://www.parolski.com/tag/zpool/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parolski.com</link>
	<description>Faith, Solaris, and Chicken Korma, by Anton Parol</description>
	<lastBuildDate>Fri, 14 Oct 2011 11:16:29 +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>Abusing Solaris attempt #2: stressing out ZFS, PART2</title>
		<link>http://www.parolski.com/2008/03/15/abusing-solaris-attempt-2-stressing-out-zfs-part2/</link>
		<comments>http://www.parolski.com/2008/03/15/abusing-solaris-attempt-2-stressing-out-zfs-part2/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 18:09:49 +0000</pubDate>
		<dc:creator>Anton Parol</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[big file]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[zpool]]></category>

		<guid isPermaLink="false">http://www.parolski.com/2008/03/15/abusing-solaris-attempt-2-stressing-out-zfs-part2/</guid>
		<description><![CDATA[In my last post, the files were being written to an IDE hard disks. Now lets see what happens if we write to /tmp instead. Will Solaris cope with ten million files in /tmp? First, if we want to make use of the compression, we need to make a file system: We make the files [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post, the files were being written to an IDE hard disks. Now lets see what happens if we write to /tmp instead. Will Solaris cope with ten million files in /tmp? First, if we want to make use of the compression, we need to make a file system:</p>
<p>We make the files (we can use files instead of real disks&#8230;):<br />
<code><br />
anton@solaris-devx ~ $ mkfile 100M /tmp/file1<br />
anton@solaris-devx ~ $ mkfile 100M /tmp/file2</code><br />
and then su to root to make the ZFS file system (mirrored):</p>
<p><code># zpool create crazedPool mirror /tmp/file1 /tmp/file2</code></p>
<p>I should note that for some reason ZFS didn&#8217;t make use of the entire file size:</p>
<p><code># zfs list crazedPool<br />
NAME         USED  AVAIL  REFER  MOUNTPOINT<br />
crazedPool   110K  63.4M    20K  /crazedPool</code></p>
<p>And now the real test. How about a big file? Lets say, 100G?:</p>
<p><code>anton@solaris-devx dir1 $ time mkfile 100G woot<br />
real    1m21.995s<br />
user    0m0.191s<br />
sys     0m30.308s</code><br />
And what about 10000 files, each 10M in size?:<br />
<code>anton@solaris-devx dir1 $ i="0"<br />
anton@solaris-devx dir1 $ time while [ $i -lt 10000 ]<br />
&gt; do<br />
&gt; mkfile 10M la0$i<br />
&gt; i=$[$i+1]<br />
&gt; done<br />
real    1m46.789s<br />
user    0m4.665s<br />
sys     0m43.492s</code></p>
<p>So far, so good. So now lets <a href="http://www.phrases.org.uk/meanings/push-the-envelope.html">push the envelope</a> off the desk. Or maybe off a cliff. Lets see what happens when we make a 100TB file with ZFS!</p>
<p><code>anton@solaris-devx dir1 $ ls -l megaFile<br />
-rw-------   1 anton    staff    107374182400000 Mar 15 18:05 megaFile</code></p>
<p>and the compression ratio?:</p>
<p><code>anton@solaris-devx tmp $ zfs get compressratio crazedPool<br />
NAME        PROPERTY       VALUE       SOURCE<br />
crazedPool  compressratio  1.00x       -</code></p>
<p>hmm, not quite what I was expecting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.parolski.com/2008/03/15/abusing-solaris-attempt-2-stressing-out-zfs-part2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

