LWN.net Logo

CFQ priorities

CFQ priorities

Posted Aug 29, 2005 11:36 UTC (Mon) by thames (guest, #238)
Parent article: The 2.6.13 kernel is out

Is there any command (similar to nice) that changes a process' io-priority?
It seems that CFQ priorities are inherited from the normal (cpu) priority, so it would be nice with a simple way of changeing them.


(Log in to post comments)

CFQ priorities

Posted Aug 29, 2005 13:12 UTC (Mon) by joib (guest, #8541) [Link]

Were would it actually be needed?

My guess is that processes which are deemed important enough to get more cpu time also should get more I/O time and vice versa.

Or to put it another way, since I/O is orders of magnitude slower than just about anything else, if I/O is the bottleneck then the I/O heavy process whould also get a high cpu priority, so that when it needs cpu it gets it so it can go back to doing I/O ASAP.

Certainly one could design any number of synthetic benchmarks were different cpu and I/O priorities would be beneficial, but do these situations really occur in real life?

CFQ priorities

Posted Aug 29, 2005 16:49 UTC (Mon) by larryr (guest, #4030) [Link]

I may want an IO bound process to have a lower IO priority than other processes, but that doesnt mean I necessarily want it to have to wait for CPU time when it is ready for it. By definition an IO bound process is not going to be competing much with other IO bound processes for CPU time, so it doesnt seem to make much sense to force them to use CPU priority for their IO contention, when that will put them at a disadvantage relative to CPU bound processes; it seems reasonable for all IO bound processes to have a high CPU priority, as has traditionally been the case.

Larry

CFQ priorities

Posted Aug 29, 2005 13:36 UTC (Mon) by LogicG8 (guest, #11076) [Link]

Robert Love's ionice is in linux-utils as of version 2.13-pre1
IIRC it was previously contained in a package called sched-utils

CFQ priorities

Posted Aug 29, 2005 18:12 UTC (Mon) by ncm (subscriber, #165) [Link]

If I can't apt-get it, it doesn't exist. :-)

CFQ priorities

Posted Aug 29, 2005 18:40 UTC (Mon) by jwb (guest, #15467) [Link]

Package: schedutils
Priority: optional
Section: universe/utils
Installed-Size: 84
Maintainer: Guus Sliepen <guus@debian.org>
Architecture: amd64
Version: 1.4.0-1
Depends: libc6 (>= 2.3.4-1)
Filename: pool/universe/s/schedutils/schedutils_1.4.0-1_amd64.deb
Size: 16560
MD5sum: e2c7d859db4ad078a1dbe029933800ea

CFQ priorities

Posted Aug 29, 2005 20:28 UTC (Mon) by micampe (guest, #4384) [Link]

 The programs that are included in this package are taskset and chrt. Together
 with nice and renice (not included), they allow full control of process
 scheduling parameters. Suggestions for related utilities are welcome, although
 it is believed (barring new interfaces) that all scheduling interfaces are
 covered.
... ;)

CFQ priorities

Posted Aug 30, 2005 1:40 UTC (Tue) by dlang (✭ supporter ✭, #313) [Link]

in that case you can ignore this entire topic as 2.6.13 doesn't exist for you

CFQ priorities

Posted Aug 30, 2005 0:08 UTC (Tue) by darthmdh (guest, #8032) [Link]

Jens posted an ionice utility for cfq to the ck mailing list a while ago.
Check the archives off http://ck.kolivas.org/

I only tested it once, it did successfully cripple an annoying cron job just as I asked it to ;)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds