[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAC4Lta0qd2vW4ENSOpzK+0i06MorzfmsZZZuW9xUtpZ_gWA9gA@mail.gmail.com>
Date: Wed, 30 Apr 2014 16:27:51 +0530
From: Raghavendra KT <raghavendra.kt@...ux.vnet.ibm.com>
To: Tejun Heo <tj@...nel.org>
Cc: Vivek Goyal <vgoyal@...hat.com>, lizefan@...wei.com,
containers@...ts.linux-foundation.org, cgroups@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCHSET cgroup/for-3.15] cgroup: implement unified hierarchy
On Mon, Apr 14, 2014 at 11:22 PM, Tejun Heo <tj@...nel.org> wrote:
>> How does this work for root's tasks now? Given that task can only be
>> in leaf cgroups, that means tasks can't be in / cgroup (If one wants
>> to create some cgroups). Does that mean / will be empty and init system
>> need to setup things right.
>
> Root is exempt from the restriction. Root has always been special
> anyway.
>
(I do not wish to Hijack this thread, but found a relevant context
here to initiate discussion. But would discuss in a separate thread
once I get a positive go on the topic)
Hi Tejun,
For some controllers like cpuset, when we have exclusive_cpu is set,
what about having a knob in the cpuset controller
to move the task to non-root (when option is set).
Because all the way along, though we have freedom to make the cpusets
exclusive and move tasks (say VMs) into them,
making sure they do not interfere with each other, we can not prevent
the other tasks spawned in a system eating into cpus of
exclusive cpuset since they go to root automatically.
Do you think having a knob, to make sure new tasks spawned go to say a
default directory under root makes sense?
I understand that we could easily have a userspace script which could
achieve intended goal, but kernel solution
would really make the exclusive cpusets have exclusive access to cpus
it should have.
(I also have a POC implemented for pre-unified hierarchy tree and
understand some bit of complications involved in that and
understand that we should not have complex policies in kernel for e.g.
filtering tasks based on patterns etc..).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists