]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: no dispatch limit for single queue
authorShaohua Li <shaohua.li@intel.com>
Thu, 3 Dec 2009 11:58:05 +0000 (12:58 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Dec 2009 11:58:05 +0000 (12:58 +0100)
commit850f343bc3779f9fa0f2fec686525587c59d00fa
tree77c9f33d65b78266560b3aa0bea1c7d16fb45b2e
parentc9903223f27a73feec63bf955874b9d3a6b321f8
cfq-iosched: no dispatch limit for single queue

Since commit 1cfca81cb97f25e9e443a3ebbbaf563fd2291a61, each queue can send
up to 4 * 4 requests if only one queue exists. I wonder why we have such limit.
Device supports tag can send more requests. For example, AHCI can send 31
requests. Test (direct aio randread) shows the limits reduce about 4% disk
thoughput.
On the other hand, since we send one request one time, if other queue
pop when current is sending more than cfq_quantum requests, current queue will
stop send requests soon after one request, so sounds there is no big latency.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c