<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Stephen Foskett, Pack Rat &#187; native command queueing Archives  &#8211; Stephen Foskett, Pack Rat</title>
	<atom:link href="http://blog.fosketts.net/tag/native-command-queueing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fosketts.net</link>
	<description>Understanding the accumulation of data</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>Yes, FireWire is Faster Than USB</title>
		<link>http://blog.fosketts.net/2008/07/30/firewire-faster-usb/</link>
		<comments>http://blog.fosketts.net/2008/07/30/firewire-faster-usb/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 14:17:07 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Terabyte home]]></category>
		<category><![CDATA[disk drives]]></category>
		<category><![CDATA[FireWire]]></category>
		<category><![CDATA[Fujitsu]]></category>
		<category><![CDATA[IEEE 1394]]></category>
		<category><![CDATA[Maxtor]]></category>
		<category><![CDATA[native command queueing]]></category>
		<category><![CDATA[NCQ]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[Seagate]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Verbatim]]></category>
		<category><![CDATA[Western Digital]]></category>

		<guid isPermaLink="false">http://blog.fosketts.net/?p=366</guid>
		<description><![CDATA[This should not come as a shock to anyone, as it has been proven before, but let me take this moment to say that, yes, despite their rated speeds, 400-megabit FireWire S400 (aka IEEE 1394) is faster than 480-megabit USB 2.0. While swapping out disk drives (first to upgrade the internal drive in my MacBook [...]]]></description>
			<content:encoded><![CDATA[<p><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright" title="FireWire Icon" src="http://upload.wikimedia.org/wikipedia/en/8/8c/Firewire_Icon.svg" alt="" width="200" height="230" />This should not come as a shock to anyone, as it has been <a href="http://www.usb-ware.com/firewire-vs-usb.htm"  target="_blank">proven</a> <a href="http://www.tomshardware.com/reviews/external,782.html"  target="_blank">before</a>, but let me take this moment to say that, yes, despite their rated speeds, 400-megabit FireWire S400 (aka IEEE 1394) is faster than 480-megabit USB 2.0.</p>
<p>While swapping out disk drives (first to <a href="http://blog.fosketts.net/2008/06/25/upgraded-320-gb-in-a-macbook-pro/"  target="_self">upgrade the internal drive</a> in my MacBook Pro and later <a href="http://blog.fosketts.net/2008/07/26/how-to-move-os-x-time-machine-backups-to-a-new-disk/"  target="_self">to give Time Machine more room</a>), I took some quick performance snapshots with <a href="http://www.xbench.com/"  target="_blank">xbench</a> and showed that, depending on I/O type, FireWire can be almost twice as fast as USB, but neither really holds a candle to SATA.</p>
<p>I also took the opportunity to compare the highly-integrated USB 2.0 controller in my Maxtor OneTouch 4 Mini with the much more complicated FireWire/USB combo found in the Verbatim SmartDisk, as well as the performance of three popular notebook hard disk models.</p>
<p><span id="more-366"></span><br />
<blockquote><p>This post is part of my series focused on PC/Mac Integration.</p>

<ul>
		<li><a href="http://blog.fosketts.net/2008/08/14/vista-os-x-boot-time-compared/">Vista, OS X Boot Time Compared</a></li>
		<li><a href="http://blog.fosketts.net/2008/07/25/quick-and-easy-bluetooth-sharing-between-pc-and-mac/">Quick and Easy Bluetooth Sharing Between PC and Mac</a></li>
		<li><a href="http://blog.fosketts.net/2008/07/30/firewire-faster-usb/">Yes, FireWire is Faster Than USB</a></li>
		<li><a href="http://blog.fosketts.net/2008/06/19/how-to-keep-an-iogear-kvm-from-dimming-your-macs-screen/">How to Keep an IOGear KVM from Dimming Your Mac's Screen</a></li>
		<li><a href="http://blog.fosketts.net/2008/06/17/command-and-control-the-clash-of-keyboards/">Command and Control: The Clash of Keyboards</a></li>
</ul>
</blockquote></p>
<p><strong>Test Setup</strong></p>
<p>I&#8217;ll be the first to admit that this wasn&#8217;t the most scientific test ever.  I just happened to have three hard drives, two external drive chassis, and one notebook computer, and whipped off a quick xbench test with each of the (many) permutations of these I happened upon.</p>
<p><div id="amazon-widget"><SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/bananafishhome/8001/8a642a12-1fa9-4b4e-b8a0-37493412621d"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Fbananafishhome%2F8001%2F8a642a12-1fa9-4b4e-b8a0-37493412621d&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></div></p>
<p>First, the drives:</p>
<ol>
<li>My <a rel="nofollow" href="http://support.apple.com/specs/macbookpro/MacBook_Pro_Late_2007.html"  target="_blank">MacBook Pro (late 2007)</a> came with a 120 GB <a href="http://www.fujitsu.com/downloads/COMP/fcpa/hdd/mhw2160bh_datasheet.pdf"  target="_blank">Fujitsu MH2120BH</a> drive built in.  This MHY2 series drive is from Fujitsu&#8217;s previous generation and was their first with perpendicular recording.</li>
<li>I replaced this with a 320 GB <a href="http://www.wdc.com/en/products/Products.asp?DriveID=377"  target="_blank">Western Digital WD3200BEVT</a> drive sourced from a Verbatim SmartDisk FireWire/USB portable enclosure.  This is the latest Scorpio Blue model from Western Digital and incorporates all their bells and whistles, including <a rel="nofollow" href="http://en.wikipedia.org/wiki/Native_Command_Queuing"  target="_blank">native command queueing (NCQ)</a>, though it&#8217;s not <a href="http://www.wdc.com/en/products/products.asp?driveid=482"  target="_blank">the fastest portable disk they make</a>.</li>
<li>After running out of space for Time Machine, I swapped the Fujitsu out for a 160 GB <a href="http://www.seagate.com/ww/v/index.jsp?vgnextoid=01b98fabfdd83110VgnVCM100000f5ee0a0aRCRD"  target="_blank">Seagate ST9160821AS</a> drive sourced from a Maxtor OneTouch 4 Mini USB enclosure.  This is also a previous-generation (5400.3) drive and lacks NCQ.</li>
</ol>
<p>Now, the enclosures:</p>
<ol>
<li>In this corner, we have <a href="http://verbatim.com/products/detail.cfm?product_id=81469D0B-1143-3415-5FFAFA6C123AC56E&amp;cat_id=811491E3-1143-3415-5F489CFD91C8F317"  target="_blank">Verbatim&#8217;s SmartDisk portable FireWire/USB enclosure</a>, which originally housed the impressive WD drive.  It&#8217;s powered by a mighty collection of electronics, including an <a href="http://www.oxsemi.com/products/storage/das.html"  target="_blank">Oxford Semiconductor OXUF934SSA</a> controller and some impressive capacitors.</li>
<li>In the other corner, we have Maxtor&#8217;s OneTouch 4 Mini USB enclosure, which has the most compact integrated interface I&#8217;ve ever seen &#8211; a single <a href="http://www.initio.com/products/index.htm"  target="_blank">Initio INIC-1605L</a>.</li>
</ol>
<p>As you can see, the test was seriously flawed.  The drives aren&#8217;t comparable, and neither are the controllers. I only ran the test once, I changed the content of the drives between tests, and I didn&#8217;t even try every possible combination.  Will this stop me from reporting the results?  No!</p>
<p><strong>USB vs. FireWire</strong></p>
<p>First up, let&#8217;s compare the performance of USB 2.0 and FireWire S400.  Rated at 480 megabits per second, USB is supposed to win, but experts agree that it won&#8217;t. For example, in <a href="http://www.tomshardware.com/charts/external-hard-drive-charts/maximum-read-transfer-rate,696.html?p=1946%2C1934%2C1955%2C1968%2C1948%2C1933%2C1942%2C1940%2C1967%2C1954%2C1936%2C1980%2C1918%2C1937%2C1979%2C1944"  target="_blank">Tom&#8217;s Hardware tests</a>, every FireWire drive outperforms every USB drive, and that&#8217;s a fact.  Despite the limitations of my test, my results bear this out.</p>
<p>Let&#8217;s set the stage by comparing the performance of the two interfaces on the Verbatim enclosure to the internal SATA connection in the MacBook Pro.  We&#8217;ll use sequential performance numbers only, since random I/O is limited by the seek time of the disk drives.</p>
<p><a href="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-4.png" ><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-367" title="USB and FireWire Versus SATA" src="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-4.png" alt="" width="472" height="268" /></a></p>
<p>As we can see, FireWire outperformed USB in every test, and was able to match SATA when it came to sequential reads of 4K.  FireWire S400 was anywhere from 8% to 45% faster than USB 2.0 in my tests, and a difference of this magnitude should be somewhat noticeable to the user.  Note that Apple&#8217;s (or Oxford&#8217;s) implementation of the USB and FireWire hardware might account for some of this difference.</p>
<p><strong>USB vs. USB</strong></p>
<p>Let&#8217;s turn now to a comparison of the USB 2.0 performance of the Verbatim/Oxford enclosure and the Maxtor/Initio alternative. I&#8217;ve always suspected that some chipsets were better than others, and I was right! Maxtor is 3% to 8% slower than Verbatim using the same drives.  This should only magnify the differences between FireWire and USB illustrated above!</p>
<p><a href="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-6.png" ><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-368" title="USB vs. USB" src="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-6.png" alt="" width="500" height="216" /></a><strong> </strong></p>
<p><strong>Drive Against Drive</strong></p>
<p>Finally, let&#8217;s see how the disk drives themselves perform.  There are two core considerations: Maximum throughput and seek time.  Larger drives tend to excel at throughput, but seek time (the core component of I/O latency) is more of a black art, with both spindle speed and disk density playing a part.</p>
<p>To compare seek time, we use the random I/O performance of the three drives.  We will normalize against the maximum result in each test to magnify the differences and hide the fact that random 4K I/O is <em>really really slow</em> compared to 256K or sequential access.</p>
<p><span style="color: #0000ee; text-decoration: underline;"><a href="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-9.png" ><img style=' display: block; margin-right: auto; margin-left: auto;'  class="aligncenter size-full wp-image-370" title="Relative Random I/O Performance" src="http://blog.fosketts.net/wp-content/uploads/2008/07/picture-9.png" alt="" width="457" height="272" /></a></span></p>
<p>We can see here that the drives are fairly well-matched at random reads, meaning that their head movement and tracking performance is about equal, as is their rated spindle speed.  But writes show more pronounced differences, with the Seagate unit quite a bit slower than the others.</p>
<p>One item really stands out:  The WD&#8217;s ace performance with tiny random writes.  I&#8217;d suggest this is due to the benefits of native command queueing (NCQ), which is present in this drive and not in the others.  It looks like NCQ really does provide noticeable benefits in random I/O!</p>
<p>Finally, let&#8217;s think in absolute terms &#8211; just how fast are these drives? I only tested the Fujitsu and Western Digital with a SATA connection, but these drives peaked at just under 50 megabytes per second and nearly 57 megabytes per second, respectively.  This performance was maintained on large sequential accesses for both read and write operations.  These are respectable numbers, to say the least:  Half-duplex FireWire S400 should top out at 49 MB/s!  So this chipset and controller must implement the asynchronous streaming feature of 1394a to bump up performance to near-SATA levels.  Awesome!</p>
<p>Although I did not test the Seagate over SATA, all three drives turned in similar large sequential I/O scores on the FireWire interface, which suggests that it would be right up there in streaming performance, at least the equal of the Fujitsu.</p>
<p><strong>In Conclusion</strong></p>
<p>Let me sum up my findings:</p>
<ul>
<li>FireWire S400 is faster than USB 2.0 in nearly every respect, and sometimes <em>much</em> faster</li>
<li>FireWire S400 can even approach SATA when streaming data, but the latter is much faster when it comes to lots of I/O requests</li>
<li>Different USB controllers can affect all areas of performance</li>
<li>Native command queueing (NCQ) seems to speed up small random writes by a respectable 2x at least</li>
<li>Modern-ish notebook drives are wicked fast &#8211; every test beats anything I ever saw on my old desktops and laptops</li>
</ul>
<div id="crp_related"><h3>You might also want to read these other posts...</h3><ul><li><a href="http://blog.fosketts.net/2008/07/26/move-os-x-time-machine-backups-new-disk/"  rel="bookmark" class="crp_title">How To Move OS X Time Machine Backups To A New Disk</a></li><li><a href="http://blog.fosketts.net/2008/06/25/upgraded-320-gb-in-a-macbook-pro/"  rel="bookmark" class="crp_title">Upgraded! 320 GB in a MacBook Pro!</a></li><li><a href="http://blog.fosketts.net/2010/05/15/attach-external-hard-disk-drive/"  rel="bookmark" class="crp_title">How Should An External Hard Drive Be Attached?</a></li><li><a href="http://blog.fosketts.net/2010/09/03/review-1-tb-seagate-expansion-portable-usb-drive-st910004exa101rk/"  rel="bookmark" class="crp_title">Review: 1 TB Seagate Expansion Portable USB Drive (ST910004EXA101-RK)</a></li><li><a href="http://blog.fosketts.net/2010/10/18/seagate-areal-density-1-tb-2-platter-25-drive/"  rel="bookmark" class="crp_title">Seagate Breaks the Areal Density Limit With 1 TB 2 Platter 2.5&#8243; Drive</a></li></ul></div><script src="http://feeds.feedburner.com/~s/sfoskett?i=http://blog.fosketts.net/2008/07/30/firewire-faster-usb/" type="text/javascript" charset="utf-8"></script><hr />
<p><small>© sfoskett for <a href="http://blog.fosketts.net">Stephen Foskett, Pack Rat</a>, 2008. |
<a href="http://blog.fosketts.net/2008/07/30/firewire-faster-usb/">Yes, FireWire is Faster Than USB</a>
<br/>
This post was categorized as <a href="http://blog.fosketts.net/category/everything/apple/" title="View all posts in Apple" rel="category tag">Apple</a>, <a href="http://blog.fosketts.net/category/everything/terabytehome/" title="View all posts in Terabyte home" rel="category tag">Terabyte home</a>. Each of my categories has its own feed if you'd like to filter out or focus on posts like this.<br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.fosketts.net/2008/07/30/firewire-faster-usb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

