From: Jens Axboe <axboe@suse.de>
To: Andrew Morton <akpm@digeo.com>
Cc: adam@yggdrasil.com, linux-kernel@vger.kernel.org
Subject: Re: Counter-kludge for 2.5.x hanging when writing to block device
Date: Tue, 3 Jun 2003 16:42:54 +0200 [thread overview]
Message-ID: <20030603144254.GE4853@suse.de> (raw)
In-Reply-To: <20030603032034.20202091.akpm@digeo.com>
On Tue, Jun 03 2003, Andrew Morton wrote:
> Jens Axboe <axboe@suse.de> wrote:
> >
> > > b) it should check that there are still requests in flight after parking
> > > itself on the waitqueue rather than relying on the timeout.
> >
> > This is important, would be much nicer to pass in the backing dev. This
> > is a big problem, imho. It's broken right now.
>
> The throttling is not really a per-device concept. It is a "global"
> concept.
>
> If a process has written to a really slow device and has encountered
> throttling due to exceeded dirty memory limits, we _do_ want to wake that
> process up (to reevaluate the system state) if a bunch of writes terminate
> against a fast device.
>
> There is a fixed amount of system memory which the administrator has
> dedicated to buffering of dirty-and-writeback data and I believe that not
> discriminating between different bandwidth devices will give the overall
> lowest latency. This may be wrong, and maybe we do want to throttle tasks
> which write to slow devices more heavily.
>
> Or place the device's nominal bandwidth in the backing_dev_info, account
> for dirty memory on a per-queue basis and limit the permissible amount of
> dirty memory against slower devices. That's probably not too hard to do
> but I'm not sure that the combination of slow and fast devices both under
> heavy writeout at the same time is common enough to justify it.
Per process slow vs fast device is probably not common enough to justify
any changes, as long as we deal correctly with fast vs slow globally.
But your mail explains it nicely, thanks.
--
Jens Axboe
next prev parent reply other threads:[~2003-06-03 14:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-03 8:48 Counter-kludge for 2.5.x hanging when writing to block device Adam J. Richter
2003-06-03 9:10 ` Jens Axboe
2003-06-03 10:00 ` Andrew Morton
2003-06-03 10:02 ` Jens Axboe
2003-06-03 10:20 ` Andrew Morton
2003-06-03 14:42 ` Jens Axboe [this message]
2003-06-03 10:21 ` Michael Frank
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=20030603144254.GE4853@suse.de \
--to=axboe@suse.de \
--cc=adam@yggdrasil.com \
--cc=akpm@digeo.com \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.