From: Werner Almesberger <wa@almesberger.net>
To: Jens Axboe <axboe@suse.de>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: elevator priorities vs. full request queues
Date: Wed, 23 Jun 2004 20:02:02 -0300 [thread overview]
Message-ID: <20040623200201.N1325@almesberger.net> (raw)
In-Reply-To: <20040623170024.GP1120@suse.de>; from axboe@suse.de on Wed, Jun 23, 2004 at 07:00:25PM +0200
Jens Axboe wrote:
> Don't like that approach. I don't see why you'd need more than the
> priority passed in anyways?
I don't need more, but my priorities originally sit on open
files, and may then propagate to pages, from where the
elevator picks them up. Your bio-centric approach breaks
this.
Well, maybe that's just an opportinity to do something
better :-) How do you think the priorities should get into
the bio, i.e. who calls bio_set_prio ?
The properties I'm looking for are:
- priorities are per open file (whether a process is allowed
to raise the priority of a file may depend on a number of
factors, so this would be compatible with your "io
priorities", except that the process has to ask explicitly
before an open file gets a non-default priority)
- the kernel can grant priorities either a) for the entire
file, or b) depending on whether the data rate is below a
certain limit. (The latter if for really high priorities.
I'm combining this with a special readahead mechanism, so
I'm simply boosting the priority of pages that will be
read ahead. The read ahead is done by yet another kernel
thread.)
b) is actually the easy part, because there all action is
initiated by my code. a) is harder, because there, the open
file just has a priority that somehow needs to propagate to
the bio.
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
next prev parent reply other threads:[~2004-06-23 23:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-22 4:25 elevator priorities vs. full request queues Werner Almesberger
2004-06-22 7:48 ` Jens Axboe
2004-06-22 8:26 ` Werner Almesberger
2004-06-22 10:14 ` Jens Axboe
2004-06-22 19:08 ` Werner Almesberger
2004-06-23 10:14 ` Jens Axboe
2004-06-23 12:46 ` Werner Almesberger
2004-06-23 16:46 ` Jens Axboe
2004-06-23 16:57 ` Werner Almesberger
2004-06-23 17:00 ` Jens Axboe
2004-06-23 23:02 ` Werner Almesberger [this message]
2004-07-12 23:52 ` Werner Almesberger
2004-07-13 5:37 ` Jens Axboe
2004-07-13 12:29 ` Werner Almesberger
2004-07-13 12:35 ` Jens Axboe
2004-07-13 16:36 ` Werner Almesberger
2004-07-13 16:59 ` Jens Axboe
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=20040623200201.N1325@almesberger.net \
--to=wa@almesberger.net \
--cc=axboe@suse.de \
--cc=linux-fsdevel@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;
as well as URLs for NNTP newsgroup(s).