Messages in this thread | | | Date | Mon, 28 Jul 2008 13:28:42 -0400 | From | Bill Davidsen <> | Subject | Re: How to disable group scheduler correctly? |
| |
Paul Menage wrote: > On Sun, Jul 27, 2008 at 4:24 PM, Bill Davidsen <davidsen@tmr.com> wrote: > >> Would be nice to have a clean way to do this at runtime, so you could run a >> distribution kernel and just avoid the group part of the scheduling. >> > > If the cgroups scheduler is enabled but you don't actually create any > cpu scheduler cgroups, then you're just scheduling across a single > group that contains all processes/threads. Is that distinguishable > from not having group scheduling at all? >
In decisions, hopefully not. But given that there are other places in kernel which allow code to be bypassed completely, a flag which would simply avoid ever going into the code would not be a new idea. In the network code there are flags to prevent passing packets in a bridge through iptables, something similar could be provided in scheduling. It actually makes sense to default the flag to "no cgroups" asnd only enable it if cgroups have been defined.
There is no optimization faster than not executing the code.
-- Bill Davidsen <davidsen@tmr.com> "Woe unto the statesman who makes war without a reason that will still be valid when the war is over..." Otto von Bismark
| |