linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: xerces8 <xerces8@butn.net>
Cc: linux-ide@vger.kernel.org
Subject: Re: NCQ usage/support in linux
Date: Tue, 02 Sep 2008 07:20:58 -0400	[thread overview]
Message-ID: <48BD219A.2040401@garzik.org> (raw)
In-Reply-To: <WorldClient-F200809021029.AA29540056@butn.net>

xerces8 wrote:
> Hello!
> 
> I have a few questions about SATA NCQ.
> 
> Background story:
> Many users noticed that concurrent (by two programs) read access to a disk
> under Windows goes very slow with modern systems, using SATA AHCI mode.
> 
> References:
>  - "Slower concurrent disk access with NCQ ?"
> <http://forums.hexus.net/hexus-hardware/138640-slower-concurrent-disk-access-ncq.html>
>  - "Slower with NCQ ?, Concurent access" <http://forums.storagereview.net/index.php?showtopic=26864>
>  - "NCQ: Best Upgrade For a Power User!" <http://forums.storagereview.net/index.php?showtopic=26965>
> 
> (for short summary you can read the 3rd page of the last forum topic linked above)
> 
> Here is the gist of the issue:
> --quote from a forum post--
> 320GB WD Caviar:
> 
> Windows:
> 63 MB/s: 1 instance
> 28 MB/s: 2 instances (both at 0% position)
> 9 MB/s: 2 instances (0% position and 90% position)
> 15 MB/s: 10 instances (10% gap between each)
> 
> Linux:
> 63 MB/s: 1 instance
> 63 MB/s: 2 instances (both at 0% position)
> 45 MB/s: 2 instances (0% position and 90% position)
> 48 MB/s: 10 instances (10% gap between each)
> 
> Linux, stock install of Fedora 9 x64 (2.4.25 kernel).
> 
> Linux commands issued:
> dd if=/dev/sdb of=/dev/null bs=256K skip=200K (skip was incremented by 200K each instance which
> corresponds to about 50GB forward in this 320GB drive)
> 
> all dd invocations started at the same time (batch).
> 
> throughput measured with:
> iostat -m 1 /dev/sdb (m shows in megabytes, 1 is the update interval of graph every second)
> 
> Windows commands:
> dd if=\\.\PHYSICALDRIVE1 of=NUL bs=256K skip=200K (as above)
> --end quote--
> 
> My question is: How does linux deal with NCQ ?
> Is it used by default ?

We turn on NCQ if its available on both disk and controller.  In 
general, we program your hardware to go as fast as possible while still 
reliably accessing data.

	Jeff




      reply	other threads:[~2008-09-02 11:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02  8:29 NCQ usage/support in linux xerces8
2008-09-02 11:20 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48BD219A.2040401@garzik.org \
    --to=jeff@garzik.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=xerces8@butn.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).