From: Shailabh Nagar <nagar@watson.ibm.com>
To: Jens Axboe <axboe@suse.de>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
ckrm-tech@lists.sourceforge.net
Subject: Re: [PATCH] cfq + io priorities
Date: Sun, 09 Nov 2003 16:30:04 -0500 [thread overview]
Message-ID: <3FAEB1DC.7040608@watson.ibm.com> (raw)
In-Reply-To: <20031108124758.GQ14728@suse.de>
Jens Axboe wrote:
>I've implemented IO nice levels in the CFQ io scheduler.
>
Thanks for putting this in ! It'll be very useful to have some control
over I/O priorities.
>It works as
>follows.
>
>A process has an assigned io nice level, anywhere from 0 to 20. Both of
>these end values are "special" - 0 means the process is only allowed to
>do io if the disk is idle, and 20 means the process io is considered
>realtime. Realtime IO always gets first access to the disk.
>
>Values from 1 to 19 assign 5-95% of disk bandwidth to that process. Any io class is
>allowed to use all of disk bandwidth in absence of higher priority io.
>
>
Currently, cfq is doing bandwidth allocation in terms of number of
requests, not bytes. Hence priority inversion can happen if lower
priority levels submit larger requests on an average. Any plans to take
request sizes into consideration in future ?
Of course, request sizes alone don't determine actual disk bandwidth
consumed since their seek position also matters.
>About the patch: stuff like this really needs some resource management
>abstraction like CKRM. Right now we just look at the tgid of the
>process.
>
Now thats music to our ears :-) Though you've complicated matters by
calling the priority level a "class" ! Please consider renaming
class to something else (say priolevel ).
Thanks for separating the hashvalue as a macro. It should make it even
easier to convert cfq to use a CKRM I/O classes ' priority
rather than the submitting task's ioprio value.
-- Shailabh
next prev parent reply other threads:[~2003-11-09 21:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-08 12:47 [PATCH] cfq + io priorities Jens Axboe
2003-11-08 13:25 ` Jens Axboe
2003-11-08 14:06 ` Jens Axboe
2003-11-09 21:30 ` Shailabh Nagar [this message]
2003-11-09 21:34 ` Jens Axboe
2003-11-09 23:52 ` [ckrm-tech] " Shailabh Nagar
-- strict thread matches above, loose matches on Subject: below --
2003-11-09 10:57 Guillaume Chazarain
2003-11-09 11:39 ` Jens Axboe
2003-11-13 12:54 ` Pavel Machek
2003-11-16 22:56 ` Jakob Oestergaard
2003-11-17 8:14 ` Jens Axboe
2003-11-18 13:26 ` Pavel Machek
2003-11-18 13:32 ` Jens Axboe
2003-11-18 13:38 ` Pavel Machek
2003-11-10 1:49 Albert Cahalan
2003-11-10 10:19 ` Herbert Xu
2003-11-10 13:07 ` Albert Cahalan
2003-11-10 13:31 ` P
2003-11-10 13:37 ` Jens Axboe
2003-11-10 13:57 ` P
2003-11-10 23:52 ` Albert Cahalan
2003-11-18 9:27 ` Pavel Machek
2003-11-11 17:46 ` Toon van der Pas
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=3FAEB1DC.7040608@watson.ibm.com \
--to=nagar@watson.ibm.com \
--cc=axboe@suse.de \
--cc=ckrm-tech@lists.sourceforge.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox