linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: Jody McIntyre <scjody@sun.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: sata_mv performance; impact of NCQ
Date: Sat, 26 Apr 2008 00:49:01 -0400	[thread overview]
Message-ID: <4812B43D.2040401@rtr.ca> (raw)
In-Reply-To: <20080426001657.GD17369@modernduck.com>

Jody McIntyre wrote:
..
> My ultimate goal is to replace mv_sata (the out-of-tree vendor driver)
> on RHEL 4 with sata_mv on a modern kernel, and to do this I need
> equivalent or better performance, especially on large (1MB) IOs.
..

Good goal, but hang on for a few weeks of updates yet-to-come first.
sata_mv is still not safe enough for production use, but getting there soon.

We're still behind on the errata workarounds (quite important), but should
be catching up soon.  And I've just today noticed a bug in the recently
reworked IRQ handling (patch to fix it coming soon-ish).
 
> I note the recent changes to enable NCQ result in a net performance gain
> for 64K and 128K IOs, but due to a chipset limitation in the 6xxx series
> (according to commit f273827e2aadcf2f74a7bdc9ad715a1b20ea7dda),
> max_sectors is now limited which means we can no longer perform IOs
> greater than 128K (ENOMEM is returned from an sg write.)  Therefore
> large IO performance suffers - for example, the performance of 2.6.25
> with NCQ support removed on 1MB IOs is better than anything possible
> with stock 2.6.25 for many workloads.
> 
> Would it be worth re-enabling large IOs on this hardware when NCQ is
> disabled (using the queue_depth /proc variable)?  If so I'll come up
> with a patch.
..

Mmm.. I'd like to see numbers for that, though all bets are off if it's
a WD drive that's performing more slowly with NCQ (quite common, that).

But yes, a sata_mv specific queue_depth op would be a good thing,
and it could revert to non-NCQ with a depth of "1", I suppose.

I'd still prefer if libata continued with NCQ on a depth of "1",
and only switched to non-NCQ at a depth of "0", though.  That's more of
a thing for Tejun than for you, though.  :)

If you could do a rough code-up of the non-NCQ for depth 1 patch
then that could save me some time here, thanks!

Cheers

  parent reply	other threads:[~2008-04-26  4:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-26  0:16 sata_mv performance; impact of NCQ Jody McIntyre
2008-04-26  3:13 ` Grant Grundler
2008-04-28 17:14   ` Jody McIntyre
2008-04-28 17:41     ` Mark Lord
2008-04-28 17:53       ` Alan Cox
2008-04-28 20:07       ` Jeff Garzik
2008-04-26  4:49 ` Mark Lord [this message]
2008-04-28 17:33   ` Jody McIntyre

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=4812B43D.2040401@rtr.ca \
    --to=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=scjody@sun.com \
    /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).