linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CFS scheduler behavior regards root group
       [not found] <1328122427.31465.YahooMailNeo@web113520.mail.gq1.yahoo.com>
@ 2012-02-01 18:56 ` Vinay Shankarkumar
  0 siblings, 0 replies; only message in thread
From: Vinay Shankarkumar @ 2012-02-01 18:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: vc376



Hello.
we are testing CPU shares concept with cgroups enabled, on the .32 kernel
and observing this --
        When the load on the root group (init group) is increased, the performance
of the processes in the child cgroups decreases. Is this expected? should the share
ratio if the groups (root and child) hold good and the child performance stay same
as before the increase in load on the root group?

      I think this behavior is in accordance with the below comment, is that correct?
since there is no ->se associated with the init task group, what we are observing is valid?
/*

* How much cpu bandwidth does init_task_group get? * * In case of task-groups formed thr' the cgroup filesystem, * it * gets 100% of the cpu resources in the system. This overall * system cpu resource is divided among the tasks of * init_task_group and its child task-groups in a fair manner, * based on each entity's (task or task-group's) weight * (se->load.weight). * * In other words, if init_task_group has 10 tasks of weight * 1024) and two child groups A0 and A1 (of weight 1024 each), * then A0's share of the cpu resource is: * *      A0's bandwidth = 1024 / (10*1024 + 1024 + 1024) = *      8.33% * * We achieve this by letting init_task_group's tasks sit * directly in rq->cfs (i.e init_task_group->se[] = NULL). */
Is there a way to limit the share of the root cgroup so that the behavior we are
observing can be changed?


Please kindly copy me in the responses as I have not yet subscribed to the mailing list.

Thanks in advance,
-Vinay.      

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-01 18:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1328122427.31465.YahooMailNeo@web113520.mail.gq1.yahoo.com>
2012-02-01 18:56 ` CFS scheduler behavior regards root group Vinay Shankarkumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).