public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Lower HD transfer rate with NCQ enabled?
@ 2007-04-03  7:11 Paa Paa
  2007-04-03  9:18 ` Nick Piggin
  2007-04-03 16:31 ` Chris Snook
  0 siblings, 2 replies; 15+ messages in thread
From: Paa Paa @ 2007-04-03  7:11 UTC (permalink / raw)
  To: linux-kernel

I'm using Linux 2.6.20.4. I noticed that I get lower SATA hard drive 
throughput with 2.6.20.4 than with 2.6.19. The reason was that 2.6.20 
enables NCQ by defauly (queue_depth = 31/32 instead of 0/32). Transfer rate 
was measured using "hdparm -t":

With NCQ (queue_depth == 31): 50MB/s.
Without NCQ (queue_depth == 0): 60MB/s.

20% difference is quite a lot. This is with Intel ICH8R controller and 
Western Digital WD1600YS hard disk in AHCI mode. I also used the next 
command to cat-copy a biggish (540MB) file and time it:

rm temp && sync && time sh -c 'cat quite_big_file > temp && sync'

Here I noticed no differences at all with and without NCQ. The times (real 
time) were basically the same in many successive runs. Around 19s.

Q: What conclusion can I make on "hdparm -t" results or can I make any 
conclusions? Do I really have lower performance with NCQ or not? If I do, is 
this because of my HD or because of kernel?

Best regards,
Paapaa

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: Lower HD transfer rate with NCQ enabled?
@ 2007-04-05 16:26 Paa Paa
  0 siblings, 0 replies; 15+ messages in thread
From: Paa Paa @ 2007-04-05 16:26 UTC (permalink / raw)
  To: linux-kernel

Mark Lord wrote:
>>>This is mostly a problem with the WD Raptor drive, and some other WD 
>>>drives.
>>>I have not yet encountered/noticed the problem with other brands.
>>
>>Sounds like this is a serious bug in the WD firmware.
>
>For personal systems, yes.  For servers, probably not a bug.

In my case the choice of IO scheduler affected the result of "hdparm -t" 
significantly. With Deadline I got identical result with NCQ and wihout NCQ. 
It was only with CFQ when I got worse results with NCQ than without it.

What might be the reason CFQ+NCQ gived so much worse throughput with "hdparm 
-t"?

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-04-10  3:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03  7:11 Lower HD transfer rate with NCQ enabled? Paa Paa
2007-04-03  9:18 ` Nick Piggin
2007-04-03 21:31   ` Paa Paa
2007-04-04  2:06     ` Nick Piggin
2007-04-06 21:33     ` Bill Davidsen
2007-04-03 16:31 ` Chris Snook
2007-04-03 16:47   ` Mark Lord
2007-04-03 19:17     ` Phillip Susi
2007-04-04 15:36       ` Mark Lord
2007-04-05 15:30         ` Phillip Susi
2007-04-05 16:11           ` Mark Lord
2007-04-05 16:45             ` Lennart Sorensen
2007-04-09 14:46             ` Phillip Susi
2007-04-10  3:58               ` Mark Lord
  -- strict thread matches above, loose matches on Subject: below --
2007-04-05 16:26 Paa Paa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox