public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to disable group scheduler correctly?
@ 2008-07-25 17:05 Alberto Gonzalez
  2008-07-25 17:38 ` Dhaval Giani
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alberto Gonzalez @ 2008-07-25 17:05 UTC (permalink / raw)
  To: linux-kernel

Hello,

Could anyone tell me which options to enable/disable to have the scheduler behavior as it was before 2.6.25 (i.e, completely disable the group scheduler)? There seems to be a lot of confusion [1] about which options to set or not set, so it would be nice if anyone could give the exact ones.

Thanks.

[1] For example, in Arch Linux the group scheduler was first enabled in 2.6.25, but due to latency issues it was quickly disabled. But after that, the following report claims to have problems with everything *GROUP* disabled and that you need to enable CGROUPS to solve them (the report links to similar reports on Gentoo and Ubuntu, so it seems the confusion is quite general):

http://bugs.archlinux.org/task/10512



      

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

* Re: How to disable group scheduler correctly?
  2008-07-25 17:05 How to disable group scheduler correctly? Alberto Gonzalez
@ 2008-07-25 17:38 ` Dhaval Giani
  2008-07-27 23:24 ` Bill Davidsen
  2008-07-28 16:42 ` Chris Friesen
  2 siblings, 0 replies; 6+ messages in thread
From: Dhaval Giani @ 2008-07-25 17:38 UTC (permalink / raw)
  To: Alberto Gonzalez; +Cc: linux-kernel

On Fri, Jul 25, 2008 at 10:05:52AM -0700, Alberto Gonzalez wrote:
> Hello,

Hi Alberto

> 
> Could anyone tell me which options to enable/disable to have the scheduler behavior as it was before 2.6.25 (i.e, completely disable the group scheduler)? There seems to be a lot of confusion [1] about which options to set or not set, so it would be nice if anyone could give the exact ones.
> 

To switch off group scheduling completely, please set CONFIG_GROUP_SCHED
to off.

If you wish to have cgroup based group scheduling, you need to
set CONFIG_CGROUP_SCHED on (and if required CONFIG_FAIR_GROUP_SCHED for
CFS group scheduling and CONFIG_RT_GROUP_SCHED for RT group scheduling)

-- 
regards,
Dhaval

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

* Re: How to disable group scheduler correctly?
  2008-07-25 17:05 How to disable group scheduler correctly? Alberto Gonzalez
  2008-07-25 17:38 ` Dhaval Giani
@ 2008-07-27 23:24 ` Bill Davidsen
  2008-07-28 16:47   ` Paul Menage
  2008-07-28 16:42 ` Chris Friesen
  2 siblings, 1 reply; 6+ messages in thread
From: Bill Davidsen @ 2008-07-27 23:24 UTC (permalink / raw)
  To: luis6674; +Cc: linux-kernel

Alberto Gonzalez wrote:
> Hello,
> 
> Could anyone tell me which options to enable/disable to have the scheduler behavior as it was before 2.6.25 (i.e, completely disable the group scheduler)? There seems to be a lot of confusion [1] about which options to set or not set, so it would be nice if anyone could give the exact ones.
> 
> Thanks.
> 
> [1] For example, in Arch Linux the group scheduler was first enabled in 2.6.25, but due to latency issues it was quickly disabled. But after that, the following report claims to have problems with everything *GROUP* disabled and that you need to enable CGROUPS to solve them (the report links to similar reports on Gentoo and Ubuntu, so it seems the confusion is quite general):
> 
> http://bugs.archlinux.org/task/10512
> 
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.

-- 
Bill Davidsen <davidsen@tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

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

* Re: How to disable group scheduler correctly?
  2008-07-25 17:05 How to disable group scheduler correctly? Alberto Gonzalez
  2008-07-25 17:38 ` Dhaval Giani
  2008-07-27 23:24 ` Bill Davidsen
@ 2008-07-28 16:42 ` Chris Friesen
  2 siblings, 0 replies; 6+ messages in thread
From: Chris Friesen @ 2008-07-28 16:42 UTC (permalink / raw)
  To: luis6674; +Cc: linux-kernel

Alberto Gonzalez wrote:

> [1] For example, in Arch Linux the group scheduler was first enabled
> in 2.6.25, but due to latency issues it was quickly disabled. But
> after that, the following report claims to have problems with
> everything *GROUP* disabled and that you need to enable CGROUPS to
> solve them (the report links to similar reports on Gentoo and Ubuntu,
> so it seems the confusion is quite general):
> 
> http://bugs.archlinux.org/task/10512

The linked thread talks about latency problems in the CFQ I/O scheduler, 
not the process scheduler.  It appears that enabling CGROUPS helps get 
around the I/O scheduler issues.

Are you sure that you actually want to disable group scheduling for 
processes?

Chris

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

* Re: How to disable group scheduler correctly?
  2008-07-27 23:24 ` Bill Davidsen
@ 2008-07-28 16:47   ` Paul Menage
  2008-07-28 17:28     ` Bill Davidsen
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Menage @ 2008-07-28 16:47 UTC (permalink / raw)
  To: Bill Davidsen; +Cc: luis6674, linux-kernel

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?

Paul

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

* Re: How to disable group scheduler correctly?
  2008-07-28 16:47   ` Paul Menage
@ 2008-07-28 17:28     ` Bill Davidsen
  0 siblings, 0 replies; 6+ messages in thread
From: Bill Davidsen @ 2008-07-28 17:28 UTC (permalink / raw)
  To: Paul Menage; +Cc: luis6674, linux-kernel

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 



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

end of thread, other threads:[~2008-07-28 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-25 17:05 How to disable group scheduler correctly? Alberto Gonzalez
2008-07-25 17:38 ` Dhaval Giani
2008-07-27 23:24 ` Bill Davidsen
2008-07-28 16:47   ` Paul Menage
2008-07-28 17:28     ` Bill Davidsen
2008-07-28 16:42 ` Chris Friesen

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