[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1110191243110.2892@chino.kir.corp.google.com>
Date: Wed, 19 Oct 2011 12:47:32 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
cc: Mike Galbraith <efault@....de>,
LKML <linux-kernel@...r.kernel.org>,
Tejun Heo <htejun@...il.com>, Li Zefan <lizf@...fujitsu.com>,
Paul Menage <paul@...lmenage.org>
Subject: Re: patch] cpusets, cgroups: disallow attaching kthreadd
On Wed, 19 Oct 2011, Peter Zijlstra wrote:
> My thinking is that kthreadd is the mother of all kernel threads and the
> kernel assumes it can spawn kthreads without constraints, a valid
> assumption IMO.
>
Cgroups don't necessarily imply constraints, though, you could devise a
cgroup to just do monitoring or statistics tracking for an aggregate of
tasks and placing kthreadd in such a cgroup would make perfect sense
because then, since children are forked in the same cgroup, you can
monitor or gather statistics for all kthreads. This can be your only
cgroup on the system.
Cpusets, though, does imply cpu constraints, which is why we decline
PF_THREAD_BOUND threads from moving in the first place, which is the
source of Mike's issue. It's can_attach() function can explicitly decline
kthreadd as well since the cpu constraints of both types of threads should
never be altered by either cpusets or sched_setaffinity().
--
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