aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r--Documentation/cgroups/cgroups.txt9
-rw-r--r--Documentation/cgroups/cpuacct.txt9
-rw-r--r--Documentation/cgroups/cpusets.txt2
3 files changed, 18 insertions, 2 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt
index cd67e90003c..60d82e1e498 100644
--- a/Documentation/cgroups/cgroups.txt
+++ b/Documentation/cgroups/cgroups.txt
@@ -593,6 +593,15 @@ there are not tasks in the cgroup. If pre_destroy() returns error code,
593rmdir() will fail with it. From this behavior, pre_destroy() can be 593rmdir() will fail with it. From this behavior, pre_destroy() can be
594called multiple times against a cgroup. 594called multiple times against a cgroup.
595 595
596int allow_attach(struct cgroup *cgrp, struct task_struct *task)
597(cgroup_mutex held by caller)
598
599Called prior to moving a task into a cgroup; if the subsystem
600returns an error, this will abort the attach operation. Used
601to extend the permission checks - if all subsystems in a cgroup
602return 0, the attach will be allowed to proceed, even if the
603default permission check (root or same user) fails.
604
596int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, 605int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
597 struct task_struct *task) 606 struct task_struct *task)
598(cgroup_mutex held by caller) 607(cgroup_mutex held by caller)
diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt
index 9ad85df4b98..e21a932059f 100644
--- a/Documentation/cgroups/cpuacct.txt
+++ b/Documentation/cgroups/cpuacct.txt
@@ -23,7 +23,7 @@ New accounting groups can be created under the parent group /sys/fs/cgroup.
23 23
24# cd /sys/fs/cgroup 24# cd /sys/fs/cgroup
25# mkdir g1 25# mkdir g1
26# echo $$ > g1 26# echo $$ > g1/tasks
27 27
28The above steps create a new group g1 and move the current shell 28The above steps create a new group g1 and move the current shell
29process (bash) into it. CPU time consumed by this bash and its children 29process (bash) into it. CPU time consumed by this bash and its children
@@ -39,6 +39,13 @@ system: Time spent by tasks of the cgroup in kernel mode.
39 39
40user and system are in USER_HZ unit. 40user and system are in USER_HZ unit.
41 41
42cpuacct.cpufreq file gives CPU time (in nanoseconds) spent at each CPU
43frequency. Platform hooks must be implemented inorder to properly track
44time at each CPU frequency.
45
46cpuacct.power file gives CPU power consumed (in milliWatt seconds). Platform
47must provide and implement power callback functions.
48
42cpuacct controller uses percpu_counter interface to collect user and 49cpuacct controller uses percpu_counter interface to collect user and
43system times. This has two side effects: 50system times. This has two side effects:
44 51
diff --git a/Documentation/cgroups/cpusets.txt b/Documentation/cgroups/cpusets.txt
index 5b0d78e55cc..5c51ed406d1 100644
--- a/Documentation/cgroups/cpusets.txt
+++ b/Documentation/cgroups/cpusets.txt
@@ -180,7 +180,7 @@ files describing that cpuset:
180 - cpuset.sched_load_balance flag: if set, load balance within CPUs on that cpuset 180 - cpuset.sched_load_balance flag: if set, load balance within CPUs on that cpuset
181 - cpuset.sched_relax_domain_level: the searching range when migrating tasks 181 - cpuset.sched_relax_domain_level: the searching range when migrating tasks
182 182
183In addition, the root cpuset only has the following file: 183In addition, only the root cpuset has the following file:
184 - cpuset.memory_pressure_enabled flag: compute memory_pressure? 184 - cpuset.memory_pressure_enabled flag: compute memory_pressure?
185 185
186New cpusets are created using the mkdir system call or shell 186New cpusets are created using the mkdir system call or shell