<?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: Quickly creating large files</title>
	<atom:link href="http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/</link>
	<description>UNIX and Linux System Administration</description>
	<pubDate>Wed, 23 Jul 2008 09:50:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: ddouthitt</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-465</link>
		<dc:creator>ddouthitt</dc:creator>
		<pubDate>Mon, 14 Apr 2008 15:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-465</guid>
		<description>@Upayavira: I do believe you are right.  Thanks for pointing out the error!</description>
		<content:encoded><![CDATA[<p>@Upayavira: I do believe you are right.  Thanks for pointing out the error!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Upayavira</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-457</link>
		<dc:creator>Upayavira</dc:creator>
		<pubDate>Sun, 06 Apr 2008 18:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-457</guid>
		<description>I think you mean /dev/zero not /dev/null. At least, the former worked for me and the latter didn't.</description>
		<content:encoded><![CDATA[<p>I think you mean /dev/zero not /dev/null. At least, the former worked for me and the latter didn&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ddouthitt</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-332</link>
		<dc:creator>ddouthitt</dc:creator>
		<pubDate>Wed, 12 Mar 2008 22:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-332</guid>
		<description>@natophonic:

As you mentioned, /dev/urandom is nonblocking.  The article you pointed to was the article on /dev/random.  The article makes for very interesting reading.

Under Linux, /dev/random is designed to be free of cryptographic export controls (by not using ciphers to generate randomness), and may block at times to receive enough entropy from the system.

In contrast, /dev/urandom has a feedback loop where it feeds generated entropy back into itself, and it will not block.

Under FreeBSD, two things are notable: 1) the Linux-style randomness generator was replaced by something called the Yarrow algorithm; and 2) /dev/urandom is linked to /dev/random - put another way, neither /dev/random nor /dev/urandom will block.

Both /dev/random and /dev/urandom are available all over: including Solaris, MacOS X, FreeBSD, HP-UX, Tru64, and AIX to name a few.

In summary, if you require the best random number generator possible - use /dev/random.  If you require nonblocking I/O or faster number generation, use /dev/urandom.  Thirdly, if you're using FreeBSD it doesn't matter which you use.

The article is very interesting: if you are interested in mathematics, you simply must read it.</description>
		<content:encoded><![CDATA[<p>@natophonic:</p>
<p>As you mentioned, /dev/urandom is nonblocking.  The article you pointed to was the article on /dev/random.  The article makes for very interesting reading.</p>
<p>Under Linux, /dev/random is designed to be free of cryptographic export controls (by not using ciphers to generate randomness), and may block at times to receive enough entropy from the system.</p>
<p>In contrast, /dev/urandom has a feedback loop where it feeds generated entropy back into itself, and it will not block.</p>
<p>Under FreeBSD, two things are notable: 1) the Linux-style randomness generator was replaced by something called the Yarrow algorithm; and 2) /dev/urandom is linked to /dev/random - put another way, neither /dev/random nor /dev/urandom will block.</p>
<p>Both /dev/random and /dev/urandom are available all over: including Solaris, MacOS X, FreeBSD, HP-UX, Tru64, and AIX to name a few.</p>
<p>In summary, if you require the best random number generator possible - use /dev/random.  If you require nonblocking I/O or faster number generation, use /dev/urandom.  Thirdly, if you&#8217;re using FreeBSD it doesn&#8217;t matter which you use.</p>
<p>The article is very interesting: if you are interested in mathematics, you simply must read it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: natophonic</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-329</link>
		<dc:creator>natophonic</dc:creator>
		<pubDate>Wed, 12 Mar 2008 15:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-329</guid>
		<description>Generating the file was creeping along verrry slowly, but I found that switching to the non-blocking /dev/urandom 

dd if=/dev/urandom of=myfile.dat bs=$(( 1024 * 1024 )) count=100

got me a perhaps slightly less random file in seconds.

http://en.wikipedia.org/wiki/Urandom</description>
		<content:encoded><![CDATA[<p>Generating the file was creeping along verrry slowly, but I found that switching to the non-blocking /dev/urandom </p>
<p>dd if=/dev/urandom of=myfile.dat bs=$(( 1024 * 1024 )) count=100</p>
<p>got me a perhaps slightly less random file in seconds.</p>
<p><a href="http://en.wikipedia.org/wiki/Urandom" rel="nofollow">http://en.wikipedia.org/wiki/Urandom</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ddouthitt</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-262</link>
		<dc:creator>ddouthitt</dc:creator>
		<pubDate>Fri, 29 Feb 2008 00:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-262</guid>
		<description>Thanks for the comment - and the fix.  Done.</description>
		<content:encoded><![CDATA[<p>Thanks for the comment - and the fix.  Done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thetechnologyteacher</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-260</link>
		<dc:creator>thetechnologyteacher</dc:creator>
		<pubDate>Thu, 28 Feb 2008 20:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-260</guid>
		<description>Thanks for this write up.

One small change:  &lt;i&gt;"(since bs=&lt;b&gt;104856&lt;/b&gt; and count=100)."&lt;/i&gt; should read &lt;b&gt;1048576&lt;/b&gt;

Cheers</description>
		<content:encoded><![CDATA[<p>Thanks for this write up.</p>
<p>One small change:  <i>&#8220;(since bs=<b>104856</b> and count=100).&#8221;</i> should read <b>1048576</b></p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lou</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-190</link>
		<dc:creator>Lou</dc:creator>
		<pubDate>Tue, 22 Jan 2008 16:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-190</guid>
		<description>Annoyingly
cat file.txt &#62;&#62; file.txt
Doesn't work on my cygwin setup - it's clever enough to realise that input and ouput are the same.

The:

 dd if=/dev/random of=myfile.dat bs=$(( 1024 * 1024 )) count=100

Method worked great though, I created a 600Gb file in (relatively speaking) no time!

Thanks!</description>
		<content:encoded><![CDATA[<p>Annoyingly<br />
cat file.txt &gt;&gt; file.txt<br />
Doesn&#8217;t work on my cygwin setup - it&#8217;s clever enough to realise that input and ouput are the same.</p>
<p>The:</p>
<p> dd if=/dev/random of=myfile.dat bs=$(( 1024 * 1024 )) count=100</p>
<p>Method worked great though, I created a 600Gb file in (relatively speaking) no time!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esofhub</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-145</link>
		<dc:creator>esofhub</dc:creator>
		<pubDate>Tue, 25 Dec 2007 11:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-145</guid>
		<description>It's part of the Solaris OS but you do make a good point regarding its portability.  

Keep posting.</description>
		<content:encoded><![CDATA[<p>It&#8217;s part of the Solaris OS but you do make a good point regarding its portability.  </p>
<p>Keep posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ddouthitt</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-144</link>
		<dc:creator>ddouthitt</dc:creator>
		<pubDate>Mon, 24 Dec 2007 18:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-144</guid>
		<description>The mkfile command is a Linux-specific command; it is not on HP-UX 11i (I checked) and it certain isn't on OpenVMS 8.3.... it's also not on my FreeBSD 6.2 system either.

These methods will work anywhere.

Even so, it is a good point - just not portable.</description>
		<content:encoded><![CDATA[<p>The mkfile command is a Linux-specific command; it is not on HP-UX 11i (I checked) and it certain isn&#8217;t on OpenVMS 8.3&#8230;. it&#8217;s also not on my FreeBSD 6.2 system either.</p>
<p>These methods will work anywhere.</p>
<p>Even so, it is a good point - just not portable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esofthub</title>
		<link>http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-141</link>
		<dc:creator>esofthub</dc:creator>
		<pubDate>Sun, 23 Dec 2007 15:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://administratosphere.wordpress.com/2007/11/23/quickly-creating-large-files/#comment-141</guid>
		<description>Nice tips. 

I'm fairly certain you already know this but I would also suggest using the mkfile command

# mkfile 1m 1MEGABYTE</description>
		<content:encoded><![CDATA[<p>Nice tips. </p>
<p>I&#8217;m fairly certain you already know this but I would also suggest using the mkfile command</p>
<p># mkfile 1m 1MEGABYTE</p>
]]></content:encoded>
	</item>
</channel>
</rss>
