lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100301082511.GR5768@kernel.dk>
Date:	Mon, 1 Mar 2010 09:25:11 +0100
From:	Jens Axboe <jens.axboe@...cle.com>
To:	Shaohua Li <shaohua.li@...el.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"czoccolo@...il.com" <czoccolo@...il.com>,
	"vgoyal@...hat.com" <vgoyal@...hat.com>,
	"jmoyer@...hat.com" <jmoyer@...hat.com>,
	"guijianfeng@...fujitsu.com" <guijianfeng@...fujitsu.com>
Subject: Re: [PATCH] cfq-iosched: quantum check tweak --resend

On Mon, Mar 01 2010, Shaohua Li wrote:
> On Mon, Mar 01, 2010 at 04:19:20PM +0800, Jens Axboe wrote:
> > On Mon, Mar 01 2010, Shaohua Li wrote:
> > > On Mon, Mar 01, 2010 at 04:02:34PM +0800, Jens Axboe wrote:
> > > > On Mon, Mar 01 2010, Shaohua Li wrote:
> > > > > Currently a queue can only dispatch up to 4 requests if there are other queues.
> > > > > This isn't optimal, device can handle more requests, for example, AHCI can
> > > > > handle 31 requests. I can understand the limit is for fairness, but we could
> > > > > do a tweak: if the queue still has a lot of slice left, sounds we could
> > > > > ignore the limit. Test shows this boost my workload (two thread randread of
> > > > > a SSD) from 78m/s to 100m/s.
> > > > > Thanks for suggestions from Corrado and Vivek for the patch.
> > > > 
> > > > As mentioned before, I think we definitely want to ensure that we drive
> > > > the full queue depth whenever possible. I think your patch is a bit
> > > > dangerous, though. The problematic workload here is a buffered write,
> > > > interleaved with the occasional sync reader. If the sync reader has to
> > > > endure 32 requests every time, latency rises dramatically for him.
> > > the patch still matains a hardlimit for dispatched request. For a async,
> > > the limit is cfq_slice_async/cfq_slice_idle = 5. For sync, the limit is 8.
> > > And we only pipe out such number of requests at the begining of a slice.
> > > For the workload you mentioned here, we only dispatch 1 extra request.
> > 
> > OK, that sound appropriate. Final question - why change the quantum and
> > use quantum/2?
> This is suggested by Vivek. In this way quantum is still the hard limit and
> doesn't surprise users. we do throttling at 1/2 quantum (softlimit) and
> then stop at quantum (hard limit)

OK, that makes sense. I will apply the patch, thanks!

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ