public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Priorities for I/O
@ 2002-10-21  7:26 Kurt Garloff
  2002-10-21  8:24 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Kurt Garloff @ 2002-10-21  7:26 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Linux kernel list

[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]

Hi Jens,

one of the shortcomings of Linux process priority system is that it only
affects CPU resources (and even those are not affected strongly enough for
some applications). 
As soon as processes waits for I/O, they are all equal.

I wonder how difficult it was to just add priorities to your I/O scheduler.
Basically, I think everything is there: You sort requests already and we
have deadlines. For sorting scores are used.
So the idea is: Why not just give I/O submitted on behalf of -19 processes
(and RT) some higher score and a shorter deadline than +19 ones?
Probably, it would only affect reads, as there we have the processes wait
on them; writes are often triggered asynchronously anyway.

This should have the effects that we want: When there's no fight for I/O
bandwidth, everybody just gets maximum performance as the I/O scheduler's
queue will be short. As soon as processes fight for reads, unniced processes
have a higher chance of getting served first.

Just think of nightly updatedb on a webserver for a real-world example why
this may matter.

Looks like something not too difficult to do, but my current knowledge on
2.5 code is somewhat sparse :-(

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers                        SuSE Labs
SuSE Linux AG, Nuernberg, DE                            SCSI, Security

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-21  8:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-21  7:26 Priorities for I/O Kurt Garloff
2002-10-21  8:24 ` Jens Axboe
2002-10-21  8:51   ` Christoffer Hall-Frederiksen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox