[Top] [All Lists]

Re: [PATCH] xfs_repair: multithread phase 2

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH] xfs_repair: multithread phase 2
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 10 Jan 2011 14:17:57 -0500
Cc: Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20110110084122.GF28803@dastard>
References: <1294620248-17098-1-git-send-email-david@xxxxxxxxxxxxx> <201101100857.53421@xxxxxx> <20110110084122.GF28803@dastard>
User-agent: Mutt/1.5.21 (2010-09-15)
On Mon, Jan 10, 2011 at 07:41:22PM +1100, Dave Chinner wrote:
> On Mon, Jan 10, 2011 at 08:57:52AM +0100, Michael Monnerie wrote:
> > On Montag, 10. Januar 2011 Dave Chinner wrote:
> > > This patch uses 32-way threading which results in no noticable
> > > slowdown on single SATA drives with NCQ, but results in ~10x
> > > reduction in runtime on a 12 disk RAID-0 array.
> > 
> > Is the fixed 32-way number reasonable, or shouldn't that be "number of 
> > available cpu cores"-way? Why threading when you have a single core cpu?
> Sure, 32-way is reasonable on a single disk and CPU. Pretty much
> every sata disk supports NCQ these days, and default to a depth of
> 32, which means we can have 32 concurrent reads in progress at once.
> Phase 2 is all synchronous IO, so the only way to hide the IO
> latency is to queue work to multiple threads and switch between the
> threadsto work on another queue when the current one blocks waiting
> for IO.

The default queue depth for ATA NCQ actually is 31, not 32 for some odd

<Prev in Thread] Current Thread [Next in Thread>