diff options
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/cgroups.txt | 9 | ||||
-rw-r--r-- | Documentation/cgroups/cpuacct.txt | 9 | ||||
-rw-r--r-- | Documentation/cgroups/cpusets.txt | 2 |
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, | |||
593 | rmdir() will fail with it. From this behavior, pre_destroy() can be | 593 | rmdir() will fail with it. From this behavior, pre_destroy() can be |
594 | called multiple times against a cgroup. | 594 | called multiple times against a cgroup. |
595 | 595 | ||
596 | int allow_attach(struct cgroup *cgrp, struct task_struct *task) | ||
597 | (cgroup_mutex held by caller) | ||
598 | |||
599 | Called prior to moving a task into a cgroup; if the subsystem | ||
600 | returns an error, this will abort the attach operation. Used | ||
601 | to extend the permission checks - if all subsystems in a cgroup | ||
602 | return 0, the attach will be allowed to proceed, even if the | ||
603 | default permission check (root or same user) fails. | ||
604 | |||
596 | int can_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | 605 | int 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 | ||
28 | The above steps create a new group g1 and move the current shell | 28 | The above steps create a new group g1 and move the current shell |
29 | process (bash) into it. CPU time consumed by this bash and its children | 29 | process (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 | ||
40 | user and system are in USER_HZ unit. | 40 | user and system are in USER_HZ unit. |
41 | 41 | ||
42 | cpuacct.cpufreq file gives CPU time (in nanoseconds) spent at each CPU | ||
43 | frequency. Platform hooks must be implemented inorder to properly track | ||
44 | time at each CPU frequency. | ||
45 | |||
46 | cpuacct.power file gives CPU power consumed (in milliWatt seconds). Platform | ||
47 | must provide and implement power callback functions. | ||
48 | |||
42 | cpuacct controller uses percpu_counter interface to collect user and | 49 | cpuacct controller uses percpu_counter interface to collect user and |
43 | system times. This has two side effects: | 50 | system 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 | ||
183 | In addition, the root cpuset only has the following file: | 183 | In 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 | ||
186 | New cpusets are created using the mkdir system call or shell | 186 | New cpusets are created using the mkdir system call or shell |