<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: ZFS - some initial testing</title>
	<atom:link href="http://dan.langille.org/2010/03/05/zfs-some-initial-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.langille.org/2010/03/05/zfs-some-initial-testing/</link>
	<description>He has another more popular diary.  This one is more general.</description>
	<pubDate>Fri, 18 May 2012 20:00:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Arthur</title>
		<link>http://dan.langille.org/2010/03/05/zfs-some-initial-testing/#comment-541</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Sat, 08 Oct 2011 12:40:36 +0000</pubDate>
		<guid isPermaLink="false">http://dan.langille.org/?p=291#comment-541</guid>
		<description>I know this is an old post, but it should be noted that this is not a correct way to measure filesystem write-performance as /dev/urandom is oftentimes the bottleneck, not your filesystem.

For some peace of mind, I just rechecked this on two basic machines (one a current fbsd, the other a mac) and raw disk write speed is anywhere between 4x and 10x faster than /dev/urandom can deliver on those machines.

It's better to use /dev/zero or a script that writes semi-random data at high speed, like these 5 lines of c code;

#include 
int main(int argc, char**argv) {
unsigned char a[65003]; int i;
for(i=0;i&#60;65003;i++) a[i]=(i*31+i/256)%256;
while(1) write(1,a,65003);}</description>
		<content:encoded><![CDATA[<p>I know this is an old post, but it should be noted that this is not a correct way to measure filesystem write-performance as /dev/urandom is oftentimes the bottleneck, not your filesystem.</p>
<p>For some peace of mind, I just rechecked this on two basic machines (one a current fbsd, the other a mac) and raw disk write speed is anywhere between 4x and 10x faster than /dev/urandom can deliver on those machines.</p>
<p>It&#8217;s better to use /dev/zero or a script that writes semi-random data at high speed, like these 5 lines of c code;</p>
<p>#include<br />
int main(int argc, char**argv) {<br />
unsigned char a[65003]; int i;<br />
for(i=0;i&lt;65003;i++) a[i]=(i*31+i/256)%256;<br />
while(1) write(1,a,65003);}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

