lkml.org 
[lkml]   [2001]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Make highly niced processes run only when idle
Hi!

> > Even better would be to keep the process at low priority while in userland
> > and reverts to normal "nice" priority while in kernelspace.
>
> But the point of a SCHED_IDLE would be to only run them while idle, so
> they can still never even get the CPU.
>
> Ahh ... wait, do you mean periodically run them, but only give them the
> boost while they are in kernel space? Very good idea. Can you see an
> easy way to do this?

This was done before... As I wrote... Make it flag similar to "this is
being ptraced" to get out of fast path, and rest is easy. Unset
"low_priority" on entering of kernel, and set it back on exit from
kernel.

Pavel
--
"I do not steal MS software. It is not worth it."
-- Pavel Kankovsky
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:14    [W:0.086 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site