Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 20:24 -0700, Gaurav Poothia wrote: (top posting.. naught naughty;) > 1.What is the function that translates from various nice levels to > weight i.e. nice(0) == 1024 how to translate for other levels If you rummage around in kernel/sched, you'll find this table: const int

Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 20:24 -0700, Gaurav Poothia wrote: (top posting.. naught naughty;) > 1.What is the function that translates from various nice levels to > weight i.e. nice(0) == 1024 how to translate for other levels If you rummage around in kernel/sched, you'll find this table: const int

Re: Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
Thanks Mike. So if I understand you right - tasks on interior nodes get their weight from task's nice level and not from some cpu.share setting. Two followups: 1.What is the function that translates from various nice levels to weight i.e. nice(0) == 1024 how to translate for other levels 2.How

Re: Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
Thanks Mike. So if I understand you right - tasks on interior nodes get their weight from task's nice level and not from some cpu.share setting. Two followups: 1.What is the function that translates from various nice levels to weight i.e. nice(0) == 1024 how to translate for other levels 2.How

Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 18:18 -0700, Gaurav Poothia wrote: > > ROOT > > > > > + -Group1(3072) > > >| > > > +- A(2048) > > >| > > >+- B(1024) > > > > > +- Group2(2048) > > | > > +-C(1024) > > | > > +-D(1024) > > > > Say I add a task E to Group1's task list (note

Re: Question about group scheduler cpu shares

2016-07-21 Thread Mike Galbraith
On Thu, 2016-07-21 at 18:18 -0700, Gaurav Poothia wrote: > > ROOT > > > > > + -Group1(3072) > > >| > > > +- A(2048) > > >| > > >+- B(1024) > > > > > +- Group2(2048) > > | > > +-C(1024) > > | > > +-D(1024) > > > > Say I add a task E to Group1's task list (note

Re: Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
+Ingo, Peter On Thu, Jul 21, 2016 at 12:03 PM, Gaurav Poothia wrote: > Hi, > The cgroup "cpu" subsystem's weight calculation using "cpu shares" is > fairly clear when all tasks are attached to the leaf cgroups in "cpu" > subsystem. > For example in this cgroup

Re: Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
+Ingo, Peter On Thu, Jul 21, 2016 at 12:03 PM, Gaurav Poothia wrote: > Hi, > The cgroup "cpu" subsystem's weight calculation using "cpu shares" is > fairly clear when all tasks are attached to the leaf cgroups in "cpu" > subsystem. > For example in this cgroup hierarchy with tasks A.B,C and D

Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
Hi, The cgroup "cpu" subsystem's weight calculation using "cpu shares" is fairly clear when all tasks are attached to the leaf cgroups in "cpu" subsystem. For example in this cgroup hierarchy with tasks A.B,C and D and associated cpu shares: ROOT | + -Group1(3072) || | +- A(2048) || |

Question about group scheduler cpu shares

2016-07-21 Thread Gaurav Poothia
Hi, The cgroup "cpu" subsystem's weight calculation using "cpu shares" is fairly clear when all tasks are attached to the leaf cgroups in "cpu" subsystem. For example in this cgroup hierarchy with tasks A.B,C and D and associated cpu shares: ROOT | + -Group1(3072) || | +- A(2048) || |