From: Chris Friesen <chris.friesen@genband.com>
To: Jan Engelhardt <jengelh@inai.de>
Cc: Martin Svec <martin.svec@zoner.cz>,
"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
target-devel <target-devel@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: Read I/O starvation with writeback RAID controller
Date: Fri, 22 Feb 2013 14:58:20 -0600 [thread overview]
Message-ID: <5127DBEC.1000504@genband.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1302222133130.25382@nerf07.vanv.qr>
On 02/22/2013 02:35 PM, Jan Engelhardt wrote:
>
> On Friday 2013-02-22 20:28, Martin Svec wrote:
>>
>> Yes, I've already tried the ROW scheduler. It helped for some low iodepths
>> depending on quantum settings but generally didn't solve the problem. I think
>> the key issue is that none of the schedulers can throttle I/O according to e.g.
>> average request roundtrip time. Shaohua Li is right here:
>> https://lkml.org/lkml/2012/12/11/598 -- as long as there's free room in
>> device's queue they blindly dispatch requests to it.
>>
>> Which is exactly what I see in deadline scheduler fifo queues: There're no read
>> requests to be scheduled between writes because all readers are starving. So
>> the scheduler keeps dispatching writes using all the remaining capacity of
>> device queue. Which in turn worses the read starvation. Bigger queue depth and
>> bigger writeback cache means higher chance for read starvation even from a
>> single writer.
>
> Sounds just like the bufferbloat problem in networking.
> Waiting for codel for the block layer :)
Is there any way to somehow have the reads jump to the head of the queue
in the disk controller?
Otherwise it seems like we might need to minimize the disk cache usage
and do the scheduling in software.
This effectively mirrors what the codel people are doing with using tiny
tx ring buffers to fight bufferbloat. The difference is that with a NIC
all you have to do is make sure the buffer doesn't empty and you get
full speed whereas with a disk the more you stuff in the cache the
better it can schedule things.
Chris
prev parent reply other threads:[~2013-02-22 20:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-20 15:38 Read I/O starvation with writeback RAID controller Martin Svec
2013-02-20 20:48 ` Nicholas A. Bellinger
2013-02-21 11:43 ` Martin Svec
2013-02-21 22:01 ` Nicholas A. Bellinger
2013-02-22 19:28 ` Martin Svec
2013-02-22 20:35 ` Jan Engelhardt
2013-02-22 20:58 ` Chris Friesen [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=5127DBEC.1000504@genband.com \
--to=chris.friesen@genband.com \
--cc=jengelh@inai.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.svec@zoner.cz \
--cc=nab@linux-iscsi.org \
--cc=target-devel@vger.kernel.org \
/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