Skip to content

Commit a0166ec

Browse files
hnazhtejun
authored andcommitted
cgroup: clean up the kernel configuration menu nomenclature
The config options for the different cgroup controllers use various terms: resource controller, cgroup subsystem, etc. Simplify this to "controller", which is clear enough in the cgroup context. Signed-off-by: Johannes Weiner <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent fccd3af commit a0166ec

File tree

1 file changed

+26
-39
lines changed

1 file changed

+26
-39
lines changed

init/Kconfig

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -941,23 +941,22 @@ menuconfig CGROUPS
941941
if CGROUPS
942942

943943
config CGROUP_DEBUG
944-
bool "Example debug cgroup subsystem"
944+
bool "Example controller"
945945
default n
946946
help
947-
This option enables a simple cgroup subsystem that
948-
exports useful debugging information about the cgroups
949-
framework.
947+
This option enables a simple controller that exports
948+
debugging information about the cgroups framework.
950949

951-
Say N if unsure.
950+
Say N.
952951

953952
config CGROUP_FREEZER
954-
bool "Freezer cgroup subsystem"
953+
bool "Freezer controller"
955954
help
956955
Provides a way to freeze and unfreeze all tasks in a
957956
cgroup.
958957

959958
config CGROUP_PIDS
960-
bool "PIDs cgroup subsystem"
959+
bool "PIDs controller"
961960
help
962961
Provides enforcement of process number limits in the scope of a
963962
cgroup. Any attempt to fork more processes than is allowed in the
@@ -973,13 +972,13 @@ config CGROUP_PIDS
973972
attach to a cgroup.
974973

975974
config CGROUP_DEVICE
976-
bool "Device controller for cgroups"
975+
bool "Device controller"
977976
help
978-
Provides a cgroup implementing whitelists for devices which
979-
a process in the cgroup can mknod or open.
977+
Provides a cgroup controller implementing whitelists for
978+
devices which a process in the cgroup can mknod or open.
980979

981980
config CPUSETS
982-
bool "Cpuset support"
981+
bool "Cpuset controller"
983982
help
984983
This option will let you create and manage CPUSETs which
985984
allow dynamically partitioning a system into sets of CPUs and
@@ -994,41 +993,29 @@ config PROC_PID_CPUSET
994993
default y
995994

996995
config CGROUP_CPUACCT
997-
bool "Simple CPU accounting cgroup subsystem"
996+
bool "Simple CPU accounting controller"
998997
help
999-
Provides a simple Resource Controller for monitoring the
998+
Provides a simple controller for monitoring the
1000999
total CPU consumed by the tasks in a cgroup.
10011000

10021001
config PAGE_COUNTER
10031002
bool
10041003

10051004
config MEMCG
1006-
bool "Memory Resource Controller for Control Groups"
1005+
bool "Memory controller"
10071006
select PAGE_COUNTER
10081007
select EVENTFD
10091008
help
1010-
Provides a memory resource controller that manages both anonymous
1011-
memory and page cache. (See Documentation/cgroups/memory.txt)
1009+
Provides control over the memory footprint of tasks in a cgroup.
10121010

10131011
config MEMCG_SWAP
1014-
bool "Memory Resource Controller Swap Extension"
1012+
bool "Swap controller"
10151013
depends on MEMCG && SWAP
10161014
help
1017-
Add swap management feature to memory resource controller. When you
1018-
enable this, you can limit mem+swap usage per cgroup. In other words,
1019-
when you disable this, memory resource controller has no cares to
1020-
usage of swap...a process can exhaust all of the swap. This extension
1021-
is useful when you want to avoid exhaustion swap but this itself
1022-
adds more overheads and consumes memory for remembering information.
1023-
Especially if you use 32bit system or small memory system, please
1024-
be careful about enabling this. When memory resource controller
1025-
is disabled by boot option, this will be automatically disabled and
1026-
there will be no overhead from this. Even when you set this config=y,
1027-
if boot option "swapaccount=0" is set, swap will not be accounted.
1028-
Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
1029-
size is 4096bytes, 512k per 1Gbytes of swap.
1015+
Provides control over the swap space consumed by tasks in a cgroup.
1016+
10301017
config MEMCG_SWAP_ENABLED
1031-
bool "Memory Resource Controller Swap Extension enabled by default"
1018+
bool "Swap controller enabled by default"
10321019
depends on MEMCG_SWAP
10331020
default y
10341021
help
@@ -1053,12 +1040,12 @@ config MEMCG_KMEM
10531040
will ever exhaust kernel resources alone.
10541041

10551042
config CGROUP_HUGETLB
1056-
bool "HugeTLB Resource Controller for Control Groups"
1043+
bool "HugeTLB controller"
10571044
depends on HUGETLB_PAGE
10581045
select PAGE_COUNTER
10591046
default n
10601047
help
1061-
Provides a cgroup Resource Controller for HugeTLB pages.
1048+
Provides a cgroup controller for HugeTLB pages.
10621049
When you enable this, you can put a per cgroup limit on HugeTLB usage.
10631050
The limit is enforced during page fault. Since HugeTLB doesn't
10641051
support page reclaim, enforcing the limit at page fault time implies
@@ -1069,17 +1056,17 @@ config CGROUP_HUGETLB
10691056
that we cannot use the controller with huge page less than 3 pages.
10701057

10711058
config CGROUP_PERF
1072-
bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
1059+
bool "Perf controller"
10731060
depends on PERF_EVENTS && CGROUPS
10741061
help
1075-
This option extends the per-cpu mode to restrict monitoring to
1076-
threads which belong to the cgroup specified and run on the
1062+
This option extends the perf per-cpu mode to restrict monitoring
1063+
to threads which belong to the cgroup specified and run on the
10771064
designated cpu.
10781065

10791066
Say N if unsure.
10801067

10811068
menuconfig CGROUP_SCHED
1082-
bool "Group CPU scheduler"
1069+
bool "CPU controller"
10831070
default n
10841071
help
10851072
This feature lets CPU scheduler recognize task groups and control CPU
@@ -1117,7 +1104,7 @@ config RT_GROUP_SCHED
11171104
endif #CGROUP_SCHED
11181105

11191106
config BLK_CGROUP
1120-
bool "Block IO controller"
1107+
bool "IO controller"
11211108
depends on BLOCK
11221109
default n
11231110
---help---
@@ -1139,7 +1126,7 @@ config BLK_CGROUP
11391126
See Documentation/cgroups/blkio-controller.txt for more information.
11401127

11411128
config DEBUG_BLK_CGROUP
1142-
bool "Enable Block IO controller debugging"
1129+
bool "IO controller debugging"
11431130
depends on BLK_CGROUP
11441131
default n
11451132
---help---

0 commit comments

Comments
 (0)