Native Command Queuing

Hard drives are the slowest things in your PC and they are such mostly because they are the only component in your PC that still relies heavily on mechanics for its normal operation. That being said, there are definite ways of improving disk performance by optimizing the electronics that augment the mechanical functions of a hard drive.

Hard drives work like this: they receive read/write requests from the chipset's I/O controller (e.g. Intel's ICH6) that are then buffered by the disk's on-board memory and carried out by the disk's on-board controller, making the heads move to the correct platter and the right place on the platter to read or write the necessary data. The hard drive is, in fact, a very obedient device; it does exactly what it's told to do, which is a bit unfortunate. Here's why:

It is the hard drive, not the chipset's controller, not the CPU and not the OS that knows where all of the data is laid out across its various platters. So, when it receives requests for data, the requests are not always organized in the best manner for the hard disk to read them. They are organized in the order in which they are dispatched by the chipset's I/O controller.

Native Command Queuing is a technology that allows the hard drive to reorder dynamically its requests according to the location of the requests on a platter. It's like this - say you had to go to the grocery store and the drug store next to it, the mall and then back to the grocery store for something else. Doing it in that order would not make sense; you'd be wasting time and money. You would naturally re-order your errands to grocery store, grocery store, drug store and then the mall in order to improve efficiency. Native Command Queuing does just that for disk accesses.

For most desktop applications, NCQ isn't necessary. Desktop applications are mostly sequential in nature and exhibit a high degree of spatial locality. What this means is that most disk accesses for desktop systems occur around the same basic areas on a platter. Applications store all of their data around the same location on your disk as do games, so loading either one doesn't require many random accesses across the platter - reducing the need for NCQ. Instead, we see that most desktop applications benefit much more from higher platter densities (more data stored in the same physical area on a platter) and larger buffers to improve sequential read/write performance. This is the reason why Western Digital's 10,000 RPM Raptor can barely outperform the best 7200 RPM drives today.

Times are changing however, and while a single desktop application may be sequential in nature, running two different desktop applications simultaneously changes the dynamics considerably. With Hyper Threading and multi core processors being the thing of the future, we can expect desktop hard disk access patterns to begin to slightly resemble those of servers - with more random accesses. It is with these true multitasking and multithreading environments that technologies such as NCQ can improve performance.

Index Maxtor's MaXLine III: NCQ Enabled
Comments Locked

38 Comments

View All Comments

  • broberts - Friday, June 25, 2004 - link

    While the the article stresses that the tests attempt to duplicate real world conditions I noticed that, at least for the one benchmark, the o/s is on a separate drive. IMO most "real world" systems contain one drive, or at least one logical drive (RAID). Having the o/s and swap file on the same drive would, I suspect (and even with 1GB of RAM which is a little over the top), tend to highlight the difference between NCQ and TCQ performance.

    NCQ should only make a real difference when disk head movement is the bottleneck. A test such as loading a big program isn't going to really test anything unless the program is fragmented or some o/s activity (like swapping) concurrently takes place on the drive.

    I also wonder how much of the advantages of NCQ are negated by the bigger cache? 16MB in a desktop environment is significant. It may well account for the closeness of the numbers reported.
  • Anand Lal Shimpi - Friday, June 25, 2004 - link

    Thanks for the responses guys, we're committed to making our storage coverage top notch on par with the articles in our other sections so it's going to take lots of constructive criticism to make sure we're providing that; keep it coming.

    You've already noticed that there were no sound/heat tests in the article. We got great response from the MP3s I posted of the drives in our first HDD roundup under the new suite, but we're still lacking a good quantitative way of comparing the sound levels of these hard drives. In the worst case scenario I could always just use a trusty SPL meter, but I want to do something a little more useful. Give me another week or so and I'll see if I can't at least have a prototype of what I'm trying to do.

    In terms of our excitement about NCQ, the conclusion never stated that NCQ increased performance tremendously across the board. But also remember that we only had three heavy-multitasking benchmarks, and the performance boost we saw in one of them (a very common scenario, who doesn't copy a file and browse the net or check email?) was nothing short of outstanding. NCQ is sort of like Hyper Threading in the sense that it doesn't improve performance by 20% across the board, but in a few very real world scenarios, the performance boost is nothing short of impressive. And as workloads become more parallelized in nature, we'll continue to see bigger benefits from NCQ. For current sequential desktop applications, NCQ doesn't do anything at all; but remember that AMD and Intel are both going down the multicore CPU route for a reason - desktop usage patterns are changing. We're very excited about NCQ as a technology because it anticipates that changing environment and definitely improves performance in it.

    Will you see a performance boost from NCQ today? If you're a heavy multitasker at all, then yes. Otherwise, no. Just ask yourself, how many times have you copied a file while doing other things in the background. A 10% performance gain in that one test is much more than any other real world hard drive performance improvement we've seen in recent history.

    Take care,
    Anand
  • Operandi - Friday, June 25, 2004 - link

    I thought it was a pretty good article. I don't know where your people are coming from saying sounds like Maxtor PR paper. It may not be as fast as the raptor but then again it's a 250-300 gig drive not 74, fair trade if you ask me.

    As far as noise goes it should be identical to Diamond Max series. There is no reason for it to be any louder, aside from the 16 meg buffer and NCQ the drive is most likely identical mechanically.
  • GhandiInstinct - Friday, June 25, 2004 - link

    So, I am also curious, how loud is it? How much will it cost?

    MaxLine or Raptor?

    Seems to me, as a gamer, Raptor won in all the gaming related benchmarks.
  • Pariah - Friday, June 25, 2004 - link

    I agree with #11. I got the same impression aftering reading the conclusion which didn't seem to take any of the rest of the article into account. The conclusion seemed to be based in wishful thinking of what he had wanted to see, rather than being based on the numbers his article actually produced, which were not nearly as positive.

    The Raptor does not support NCQ. It supports the old ATA TCQ which is inferior in its implementation. However, looking at the lackluster performance of NCQ, it's not hard to believe the even worse #'s that StorageReview just posted on the Raptor's TCQ performance in workstation benchmarks.

    Also, the 7200.7's do not support NCQ either. Seagate announced a new version of the 7200.7 that will, but has not reached the market yet.
  • Jeff7181 - Friday, June 25, 2004 - link

    What would make it any louder than Maxtor's other 7200 RPM drives? I doubt they'd go back to using ball bearings and noisy servo's just to give us NCQ.
  • T8000 - Friday, June 25, 2004 - link

    It would indeed be interesting to see how other drives that support NCQ, like the Seagate and the Raptor 74 GB would benefit from it.

    Altough, I am not sure if the Raptor has NCQ or TCQ, but that could make it even more interesting, as NCQ and TCQ could be compared.
  • QuaiBoy - Friday, June 25, 2004 - link

    This article reads like Maxtor promotional copy, giving the Maxtor high praise in tests where it fails to even outpace it's 7200RPM competition. Also, like #9 said, how loud is it? Vibration? Heat? Interesting omissions to the article... bet it sounds like a jet turbine given my past experiences with Maxtor.
  • bwall04 - Friday, June 25, 2004 - link

    I'm not sure why this was overlooked but the 74GB Raptor supports NCQ. I think it would paint a clearer picture of the performance of NCQ and situations where it is beneficial if the review could be edited to add in these results.
    Kudos to Maxtor for stepping up with something to compete with my Raptors, and with 3x the storage!!
  • jcromano - Friday, June 25, 2004 - link

    How loud is it?

Log in

Don't have an account? Sign up now