Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cgroup: Fix documentation for cpu.idle

Two problems:
- cpu.idle cgroups show up with 0 weight, correct the
documentation to indicate this.
- cpu.idle has no entry describing it.

Signed-off-by: Josh Don <joshdon@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Josh Don and committed by
Tejun Heo
7b91eb60 877c737d

+15 -1
+15 -1
Documentation/admin-guide/cgroup-v2.rst
··· 1093 1093 A read-write single value file which exists on non-root 1094 1094 cgroups. The default is "100". 1095 1095 1096 - The weight in the range [1, 10000]. 1096 + For non idle groups (cpu.idle = 0), the weight is in the 1097 + range [1, 10000]. 1098 + 1099 + If the cgroup has been configured to be SCHED_IDLE (cpu.idle = 1), 1100 + then the weight will show as a 0. 1097 1101 1098 1102 cpu.weight.nice 1099 1103 A read-write single value file which exists on non-root ··· 1160 1156 This interface allows reading and setting maximum utilization clamp 1161 1157 values similar to the sched_setattr(2). This maximum utilization 1162 1158 value is used to clamp the task specific maximum utilization clamp. 1159 + 1160 + cpu.idle 1161 + A read-write single value file which exists on non-root cgroups. 1162 + The default is 0. 1163 + 1164 + This is the cgroup analog of the per-task SCHED_IDLE sched policy. 1165 + Setting this value to a 1 will make the scheduling policy of the 1166 + cgroup SCHED_IDLE. The threads inside the cgroup will retain their 1167 + own relative priorities, but the cgroup itself will be treated as 1168 + very low priority relative to its peers. 1163 1169 1164 1170 1165 1171