lkml.org 
[lkml]   [2016]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Question about group scheduler cpu shares
From
Date
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 that is an interior aka
> > non-leaf node)
> > How does the CPU split change between A, B and E.
> > AFAICT there is no cgroup cpu subsystem knob to weight tasks on an
> > interior node against the tasks in that node's children

A, B and E are all entities with a weight, so just plug E into your
graph. Its weight is determined by nice level, which is what cgroups
should have done instead of inventing shares IMHO. 1024 == nice(0).

-Mike

\
 
 \ /
  Last update: 2016-07-22 05:21    [W:0.076 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site