The Impact of NCQ on Multitasking Performance

Just under a year ago, we reviewed Maxtor's MaXLine III, a SATA hard drive that boasted two very important features: a 16MB buffer and support for Native Command Queuing (NCQ).  The 16MB buffer was interesting as it was the first time that we had seen a desktop SATA drive with such a large buffer, but what truly intrigued us was the drive's support for NCQ.  The explanation of NCQ below was from our MaXLine III review from June of 2004:

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 things 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.

In the Maxtor MaXLine III review, we looked at NCQ as a feature that truly came to life when working in multitasking scenarios. Unfortunately, finding a benchmark to support this theory was difficult. In fact, only one benchmark (the first Multitasking Business Winstone 2004 test) actually showed a significant performance improvement due to NCQ.

After recovering from Part I and realizing that my nForce4 Intel Edition platform had died, I was hard at work on Part II of the dual core story. For the most part, when someone like AMD, Intel, ATI or NVIDIA launches a new part, they just send that particular product. In the event that the new product requires another one (such as a new motherboard/chipset) to work properly, they will sometimes send both and maybe even throw in some memory if that's also a more rare item. Every now and then, one of these companies will decide to actually build a complete system and ship that for review. For us, that usually means that we get a much larger box and we have to spend a little more time pulling the motherboard out of the case so we can test it out on one of our test benches instead - obviously, we never test a pre-configured system supplied by any manufacturer. This time around, both Intel and NVIDIA sent out fully configured systems for their separate reviews - two great huge boxes blocking our front door now.

When dissecting the Intel system, I noticed something - it used a SATA Seagate Barracuda 7200.7 with NCQ support. Our normal testbed hard drive is a 7200.7 Plus, basically the same drive without NCQ support. I decided to make Part I's system configuration as real world as possible and I used the 7200.7 with NCQ support. So, I used that one 7200.7 NCQ drive for all of the tests for Monday's review. Normally, only being able to run one system at a time would be a limitation. But given how much work I had to put into creating the tests, I wasn't going to be able to run multiple things at the same time while actually using each machine, so this wasn't a major issue. The results turned out as you saw in the first article and I went on with working on Part II.

For Part II, I was planning to create a couple more benchmarks, so I wasn't expecting to be able to compare things directly to Part I. I switched back to our normal testbed HDD, the 7200.7 Plus. Using our normal testbed HDD, I was able to set up more systems in parallel (since I had more HDDs) and thus, testing went a lot quicker. I finished all of the normal single threaded application benchmarks around 3AM (yes, including gaming tests) and I started installing all of the programs for my multitasking scenarios.

When I went to run the first multitasking scenario, I noticed something was very off - the DVD Shrink times were almost twice what they were in Monday's review. I spent more time working with the systems and uncovered that Firefox and iTunes weren't configured identically to the systems in Monday's review, so I fixed those problems and re-ran. Even after re-running, something still wasn't right - the performance was still a lot slower. It was fine in all other applications and tests, just not this one. I even ran the second multitasking scenario from Monday's review and the performance was dead on - something was definitely up. Then it hit me...NCQ.

I ghosted my non-NCQ drive to the NCQ drive and re-ran the test. Yep, same results as Monday. The difference was NCQ! Johan had been pushing me to use a Raptor in the tests to see how much of an impact disk performance had on them, and the Raptor sped things up a bit, but not nearly as much as using the 7200.7 did. How much of a performance difference? The following numbers use the same configuration from Monday's article, with the only variable being the HDD. I tested on the Athlon 64 FX-55 system:

Seagate Barracuda 7200.7 NCQ - 25.2 minutes
Seagate Barracuda 7200.7 no NCQ - 33.6 minutes
Western Digital Raptor WD740 - 30.9 minutes

The performance impact of NCQ is huge. But once again, just like the first NCQ article, this is the only test that I can get to be impacted by NCQ - the other Multitasking Scenarios remain unchanged.  Even though these numbers were run on the AMD system, I managed to get similar results out of the Intel platform. Although, for whatever reason, the Intel benchmarks weren't nearly as consistent as the AMD benchmarks.  Given that we're dealing with different drive controllers and vastly different platforms, there may be many explanations for that.

At first, I thought that this multitasking scenario was the only one where NCQ made an impact, but as you'll find out later on in this article, that's not exactly true.

Multitasking Performance Multitasking Scenario 2: File Compression
Comments Locked

106 Comments

View All Comments

  • Umbra55 - Thursday, April 7, 2005 - link

    Why do you still use the nForce 4 reference board for AMD tests? The real nForce 4 boards exist since over a quarter now and perform 10% better than the reference board. You also pretend to compare CPUs with similar price. Wouldn't it make more sense to compare combinations of mobo/CPU/memory of similar price?
    This is not a fair comparison (Or is it the intention?)
  • Umbra55 - Thursday, April 7, 2005 - link

  • yde - Thursday, April 7, 2005 - link

    In this atricle, I was unable to find cache information about the AMD chip (usually equipped with a 512 KB L2 cache).
    To my point of view, in multiple threads scenario, the cache size may have dramatic influence and may explain several handicaps in the benchmarks. It would be nice to know what happens with a 1MB L2 cache Athlon 64 to keep things equal.
    AMD chip has shorter branch prediction lines and seem quite well equipped for multitasking in theory, so why is it appearing so weak?
  • snorre - Thursday, April 7, 2005 - link

    We're still waiting for proper benchmarks comparing dual core Smithfield with dual Opteron/Xeon. When will we see this?

    Comparing dual core CPUs with single core CPUs is like comparing apples and oranges, totally meaningless.
  • Calin - Thursday, April 7, 2005 - link

    Thanks for the minimum frame rate comparison! And maybe you should not use so many flash-heavy pages, especially considering that you already told us that Athlon64 is much slower in Flash than Pentium4...
    Looks like Pentium D is a better choice in more ways than the Prescott is
  • xsilver - Thursday, April 7, 2005 - link

    The multitasking gaming analysis combined with HT and NCQ was very insightful, almost pioneering...

    and with dual core AMD's people have to remember that the whole architecture is designed differently, and hence the possible suprises in tasks that the pentium D may not perform well on
    but the power consumption advantage on amd is mighty tempting as amd will be the cpu that just keeps on saving -- with power bills that is
  • Azsen - Thursday, April 7, 2005 - link

    Hi Anand,

    I was thinking, seeing most games are single-threaded you might like to try and benchmark this scenario on the dual core machine:

    Set all the processes including operating system processes and other background processes to run on CPU 0 (first core). Then set the particular game to run on CPU 1 (second core). Have nothing else but the game running on CPU 1. This should dedicate a whole CPU core to the game for maximum performance in theory. I believe you can set the affinity in the task manager or use a batch file to do it.

    Then run a Doom3 benchmark or HL2 benchmarks to see if the gaming performance is increased by letting the single-threaded game have a whole CPU core with no interuptions.

    Would this be feasible to test?

    Cheers. :)
  • AnnoyedGrunt - Wednesday, April 6, 2005 - link

    The AMD not competing with the PD 2.8 will be due to price.

    Remember that AMD will need to sell a 2 core 2.2 GHz processor for about double the price of the single core version (maybe even more if yields are a problem). Therefore, you should expect a dual core 2.2 proc to be closer to $500-600 instead of the ~$300 processors tested here.

    This also explains why AMD is focusing on the workstation market first. It's an area where price is typically not as much a factor, and where they are competing with Xeon prices, so it will be much easier for them to sell procs @ the higher prices.

    I'm guessing that AMD's desktop dual core procs will start @ 1.6 or 1.8 GHz, and be priced on par with the Intel offerings. I think the overall performance will be similar to the current single core behavior, but now you can have more stuff running.

    I currently have an AMD 939 3200+, so I am looking forward to their dual core offerings in a couple years, and hoping my mobo will be compatible. That would be very cool.

    Also, I would like to add vote for a WoW test with Teamspeak running in the background as well as an istance if IE or Firefox with tthotbot.

    Thanks,
    D'oh!
  • SLIM - Wednesday, April 6, 2005 - link

    Hi Anand,

    Any chance you could give us a little peak at what dual opterons on the nforce pro chipset can do in the same benches that you did in this article.
    A configuration something like this:
    Opteron 252s clocked at 1.8GHz, 2.2GHz, 2.6GHz
    1 GB ECC DDR400
    NVIDIA nForce pro motherboard
    ATI Radeon X850 XT PCI Express
    NCQ enabled HDD (maxline III, 7200.8, etc)

    I looked through all the old articles I could find, but most seemed to contain only server oriented benches. I think that kind of article would be very enlightening as to the future performance of dual core athlons (probably within a couple percent)... maybe help put to rest some of the questions a lot of us have about waiting for amd dualcore, intel dualcore or just overclocking the heck out of a venice a64.

    SLIM
  • Jep4444 - Wednesday, April 6, 2005 - link

    SSE3 does almost nothing for the Venice which is barely faster than the Winchester(Xbit Labs benchmarked it already)

    While Anandtech said the dual cored A64s wouldn't compete with the Pentium D in encoding, unless they actually have dual cored A64s which they can't show us, i'd be willing to argue with that. Encoding is one of those things thats largely affected by Hyper-Threading and the Pentium D loses hyper threading. When the A64 goes dual, its performance increase will be larger than Intels.

Log in

Don't have an account? Sign up now