<?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>Looking for the paradigm &#187; filesystems</title>
	<atom:link href="http://www.evanhoffman.com/evan/tag/filesystems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.evanhoffman.com/evan</link>
	<description>So I can pass it off</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:17:15 +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>NILFS &#8211; A File system to make SSDs scream&#8230; in pain?</title>
		<link>http://www.evanhoffman.com/evan/2009/10/27/nilfs-a-file-system-to-make-ssds-scream-in-pain/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nilfs-a-file-system-to-make-ssds-scream-in-pain</link>
		<comments>http://www.evanhoffman.com/evan/2009/10/27/nilfs-a-file-system-to-make-ssds-scream-in-pain/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 21:05:12 +0000</pubDate>
		<dc:creator>Evan Hoffman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[filesystems]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nilfs]]></category>
		<category><![CDATA[ssd]]></category>

		<guid isPermaLink="false">http://www.evanhoffman.com/evan/?p=188</guid>
		<description><![CDATA[TweetSo I got this 128 gig Corsair SSD and put it in my laptop at work. After some fiddling I copied my old disk over to my new disk by booting to Knoppix and doing dd if=/dev/sda of=/dev/sdb bs=4k conv=notrunc,noerror. It&#8217;s a lot faster, but what&#8217;s really fast now is my Windows XP VM. Anyway, [...]]]></description>
			<content:encoded><![CDATA[<div style="vertical-align: top; float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://www.evanhoffman.com/evan/2009/10/27/nilfs-a-file-system-to-make-ssds-scream-in-pain/&via=EvanHoffman&text=NILFS - A File system to make SSDs scream... in pain?&related=EvanHoffman:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="plus-one-wrap"><g:plusone size="small" href="http://www.evanhoffman.com/evan/2009/10/27/nilfs-a-file-system-to-make-ssds-scream-in-pain/"></g:plusone></div><p>So I got this 128 gig Corsair SSD and put it in my laptop at work.  After some fiddling I copied my old disk over to my new disk by booting to Knoppix and doing <code>dd if=/dev/sda of=/dev/sdb bs=4k conv=notrunc,noerror</code>.  It&#8217;s a lot faster, but what&#8217;s really fast now is my Windows XP VM.  Anyway, I was looking into other filesystems to try out on SSD to improve speed and I found <a href="http://www.linux-mag.com/cache/7345/1.html">this article</a> claiming that NILFS is the best choice.  So I decided to test it using the same ghetto test I always use for filesystem performance: dd!</p>
<p><span id="more-188"></span></p>
<p>Drive info:</p>
<pre>
Model: ATA CORSAIR CMFSSD-1 (scsi)
Disk /dev/sda: 128GB
</pre>
<p>The nilfs version in use is whatever&#8217;s in yum:</p>
<pre>
[root@ehoffman ~]# rpm -qai nilfs-utils
Name        : nilfs-utils                  Relocations: (not relocatable)
Version     : 2.0.14                            Vendor: Fedora Project
Release     : 2.fc11                        Build Date: Thu 30 Jul 2009 07:16:08 PM EDT
Install Date: Tue 27 Oct 2009 04:18:28 PM EDT      Build Host: xenbuilder4.fedora.phx.redhat.com
Group       : System Environment/Base       Source RPM: nilfs-utils-2.0.14-2.fc11.src.rpm
Size        : 211949                           License: GPLv2+
Signature   : RSA/8, Thu 30 Jul 2009 09:25:18 PM EDT, Key ID 1dc5c758d22e77f2
Packager    : Fedora Project
URL         : http://www.nilfs.org
Summary     : Utilities for managing NILFS v2 filesystems
Description :
Userspace utilities for creating and mounting NILFS v2 filesystems.
</pre>
<p>NILFS volume on /dev/sda9, ext3 on /dev/sda8</p>
<pre>
/dev/sda8 on /docs type ext3 (rw)
/dev/sda9 on /nilfs type nilfs2 (rw,gcpid=3711)
</pre>
<p>I found this pretty unsettling when I mounted the nilfs volume:</p>
<pre>
[root@ehoffman ~]# mount -t nilfs2 /dev/sda9 /nilfs/
mount.nilfs2: WARNING! - The NILFS on-disk format may change at any time.
mount.nilfs2: WARNING! - Do not place critical data on a NILFS filesystem.
</pre>
<p>Write a 100 MB file and a 1.0 GB file to the nilfs volume and the ext3 volume:</p>
<pre>
[root@ehoffman ~]# dd if=/dev/zero of=/docs/zeros.dat bs=4k count=25600
25600+0 records in
25600+0 records out
104857600 bytes (105 MB) copied, 0.434741 s, 241 MB/s
[root@ehoffman ~]# rm -f /docs/zeros.dat
[root@ehoffman ~]# dd if=/dev/zero of=/docs/zeros.dat bs=4k count=256000
256000+0 records in
256000+0 records out
1048576000 bytes (1.0 GB) copied, 19.6931 s, 53.2 MB/s
[root@ehoffman ~]# rm -f /docs/zeros.dat
[root@ehoffman ~]# dd if=/dev/zero of=/docs/zeros.dat bs=4k count=256000
256000+0 records in
256000+0 records out
1048576000 bytes (1.0 GB) copied, 12.7625 s, 82.2 MB/s
[root@ehoffman ~]# rm -f /docs/zeros.dat
[root@ehoffman ~]# dd if=/dev/zero of=/nilfs/zeros.dat bs=4k count=25600
25600+0 records in
25600+0 records out
104857600 bytes (105 MB) copied, 5.42617 s, 19.3 MB/s
[root@ehoffman ~]# dd if=/dev/zero of=/nilfs/zeros.dat bs=4k count=256000
256000+0 records in
256000+0 records out
1048576000 bytes (1.0 GB) copied, 47.4966 s, 22.1 MB/s
[root@ehoffman ~]# rm -f /nilfs/zeros.dat
</pre>
<p>With 100 MB, ext3 writes at 200+MB/s and with 1 gig it writes around 50+ MB/s.  I think the SATA controller on my laptop is SATA I (not SATA II).  On nilfs it seems to hover around 20-25 MB regardless of file size.  Anyway, based on this I guess I&#8217;ll be staying with ext3/4 for the foreseeable future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.evanhoffman.com/evan/2009/10/27/nilfs-a-file-system-to-make-ssds-scream-in-pain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

