lkml.org 
[lkml]   [2017]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC 1/2] cgroup, kthread: do not allow moving kthreads out of the root cgroup
On Thu, Oct 12, 2017 at 06:37:22PM +0100, Roman Gushchin wrote:
> Attaching kernel threads to a non-root cgroup is generally a bad
> idea. Kernel threads are generally performing the work required
> to keep the system working and healthy, and applying various
> resource limits may affect system stability and performance.
>
> Some examples of dangerous behavior are limiting CPU time available
> to rcu stuff, memory limits applied to almost all kthreads, etc.
>
> To prevent this dangerous behavior, let's deny all kthread
> movements between cgroups. Right now only kthreads bounded
> to CPUs are not allowed to move, which is not sufficient.
>
> If there are examples of kthreads which can be limited,
> and it's guaranteed to be safe, we can allow explicit
> exceptions further.

The traditional use-case is stuffing all the unbound kthreads into a
system cpuset in order to limit 'crap' on the rest of the CPUs.
This setup is typically found in HPC and RT environments.

So NAK. This needs to stay working in as far as it still works.

\
 
 \ /
  Last update: 2017-10-12 21:25    [W:0.046 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site