Lines Matching refs:cgroup
8 The process number controller is used to allow a cgroup hierarchy to stop any
13 preventable in the scope of a cgroup hierarchy by allowing resource limiting of
14 the number of tasks in a cgroup.
20 pids.max (this is not available in the root cgroup for obvious reasons). The
21 number of processes currently in the cgroup is given by pids.current.
23 Organisational operations are not blocked by cgroup policies, so it is possible
25 be smaller than pids.current, or attaching enough processes to the cgroup such
26 that pids.current > pids.max. However, it is not possible to violate a cgroup
28 creation of a new process would cause a cgroup policy to be violated.
30 To set a cgroup to have no limit, set pids.max to "max". This is the default for
34 pids.current tracks all child cgroup hierarchies, so parent/pids.current is a
39 - max: Number of times fork failed in the cgroup because limit was hit in
47 # mkdir -p /sys/fs/cgroup/pids
48 # mount -t cgroup -o pids none /sys/fs/cgroup/pids
52 # mkdir -p /sys/fs/cgroup/pids/parent/child
53 # echo 2 > /sys/fs/cgroup/pids/parent/pids.max
54 # echo $$ > /sys/fs/cgroup/pids/parent/cgroup.procs
55 # cat /sys/fs/cgroup/pids/parent/pids.current
62 # cat /sys/fs/cgroup/pids/parent/pids.current
68 Even if we migrate to a child cgroup (which doesn't have a set limit), we will
72 # echo $$ > /sys/fs/cgroup/pids/parent/child/cgroup.procs
73 # cat /sys/fs/cgroup/pids/parent/pids.current
75 # cat /sys/fs/cgroup/pids/parent/child/pids.current
77 # cat /sys/fs/cgroup/pids/parent/child/pids.max
87 # echo 1 > /sys/fs/cgroup/pids/parent/pids.max
90 # echo 0 > /sys/fs/cgroup/pids/parent/pids.max