aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2015-12-17 17:19:56 -0500
committerTejun Heo <tj@kernel.org>2015-12-18 12:43:15 -0500
commita0166ec4b0996b259f24a831c6ca8d06ecd7e59f (patch)
treed45aefb2702e7bd63adb8f90483c052fccdcf6e5 /init
parentfccd3af57100027e5330079819987aade07631ad (diff)
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 <hannes@cmpxchg.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig65
1 files changed, 26 insertions, 39 deletions
diff --git a/init/Kconfig b/init/Kconfig
index c24b6f767bf0..07086e7ad61d 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -941,23 +941,22 @@ menuconfig CGROUPS
941if CGROUPS 941if CGROUPS
942 942
943config CGROUP_DEBUG 943config CGROUP_DEBUG
944 bool "Example debug cgroup subsystem" 944 bool "Example controller"
945 default n 945 default n
946 help 946 help
947 This option enables a simple cgroup subsystem that 947 This option enables a simple controller that exports
948 exports useful debugging information about the cgroups 948 debugging information about the cgroups framework.
949 framework.
950 949
951 Say N if unsure. 950 Say N.
952 951
953config CGROUP_FREEZER 952config CGROUP_FREEZER
954 bool "Freezer cgroup subsystem" 953 bool "Freezer controller"
955 help 954 help
956 Provides a way to freeze and unfreeze all tasks in a 955 Provides a way to freeze and unfreeze all tasks in a
957 cgroup. 956 cgroup.
958 957
959config CGROUP_PIDS 958config CGROUP_PIDS
960 bool "PIDs cgroup subsystem" 959 bool "PIDs controller"
961 help 960 help
962 Provides enforcement of process number limits in the scope of a 961 Provides enforcement of process number limits in the scope of a
963 cgroup. Any attempt to fork more processes than is allowed in the 962 cgroup. Any attempt to fork more processes than is allowed in the
@@ -973,13 +972,13 @@ config CGROUP_PIDS
973 attach to a cgroup. 972 attach to a cgroup.
974 973
975config CGROUP_DEVICE 974config CGROUP_DEVICE
976 bool "Device controller for cgroups" 975 bool "Device controller"
977 help 976 help
978 Provides a cgroup implementing whitelists for devices which 977 Provides a cgroup controller implementing whitelists for
979 a process in the cgroup can mknod or open. 978 devices which a process in the cgroup can mknod or open.
980 979
981config CPUSETS 980config CPUSETS
982 bool "Cpuset support" 981 bool "Cpuset controller"
983 help 982 help
984 This option will let you create and manage CPUSETs which 983 This option will let you create and manage CPUSETs which
985 allow dynamically partitioning a system into sets of CPUs and 984 allow dynamically partitioning a system into sets of CPUs and
@@ -994,41 +993,29 @@ config PROC_PID_CPUSET
994 default y 993 default y
995 994
996config CGROUP_CPUACCT 995config CGROUP_CPUACCT
997 bool "Simple CPU accounting cgroup subsystem" 996 bool "Simple CPU accounting controller"
998 help 997 help
999 Provides a simple Resource Controller for monitoring the 998 Provides a simple controller for monitoring the
1000 total CPU consumed by the tasks in a cgroup. 999 total CPU consumed by the tasks in a cgroup.
1001 1000
1002config PAGE_COUNTER 1001config PAGE_COUNTER
1003 bool 1002 bool
1004 1003
1005config MEMCG 1004config MEMCG
1006 bool "Memory Resource Controller for Control Groups" 1005 bool "Memory controller"
1007 select PAGE_COUNTER 1006 select PAGE_COUNTER
1008 select EVENTFD 1007 select EVENTFD
1009 help 1008 help
1010 Provides a memory resource controller that manages both anonymous 1009 Provides control over the memory footprint of tasks in a cgroup.
1011 memory and page cache. (See Documentation/cgroups/memory.txt)
1012 1010
1013config MEMCG_SWAP 1011config MEMCG_SWAP
1014 bool "Memory Resource Controller Swap Extension" 1012 bool "Swap controller"
1015 depends on MEMCG && SWAP 1013 depends on MEMCG && SWAP
1016 help 1014 help
1017 Add swap management feature to memory resource controller. When you 1015 Provides control over the swap space consumed by tasks in a cgroup.
1018 enable this, you can limit mem+swap usage per cgroup. In other words, 1016
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.
1030config MEMCG_SWAP_ENABLED 1017config MEMCG_SWAP_ENABLED
1031 bool "Memory Resource Controller Swap Extension enabled by default" 1018 bool "Swap controller enabled by default"
1032 depends on MEMCG_SWAP 1019 depends on MEMCG_SWAP
1033 default y 1020 default y
1034 help 1021 help
@@ -1053,12 +1040,12 @@ config MEMCG_KMEM
1053 will ever exhaust kernel resources alone. 1040 will ever exhaust kernel resources alone.
1054 1041
1055config CGROUP_HUGETLB 1042config CGROUP_HUGETLB
1056 bool "HugeTLB Resource Controller for Control Groups" 1043 bool "HugeTLB controller"
1057 depends on HUGETLB_PAGE 1044 depends on HUGETLB_PAGE
1058 select PAGE_COUNTER 1045 select PAGE_COUNTER
1059 default n 1046 default n
1060 help 1047 help
1061 Provides a cgroup Resource Controller for HugeTLB pages. 1048 Provides a cgroup controller for HugeTLB pages.
1062 When you enable this, you can put a per cgroup limit on HugeTLB usage. 1049 When you enable this, you can put a per cgroup limit on HugeTLB usage.
1063 The limit is enforced during page fault. Since HugeTLB doesn't 1050 The limit is enforced during page fault. Since HugeTLB doesn't
1064 support page reclaim, enforcing the limit at page fault time implies 1051 support page reclaim, enforcing the limit at page fault time implies
@@ -1069,17 +1056,17 @@ config CGROUP_HUGETLB
1069 that we cannot use the controller with huge page less than 3 pages. 1056 that we cannot use the controller with huge page less than 3 pages.
1070 1057
1071config CGROUP_PERF 1058config CGROUP_PERF
1072 bool "Enable perf_event per-cpu per-container group (cgroup) monitoring" 1059 bool "Perf controller"
1073 depends on PERF_EVENTS && CGROUPS 1060 depends on PERF_EVENTS && CGROUPS
1074 help 1061 help
1075 This option extends the per-cpu mode to restrict monitoring to 1062 This option extends the perf per-cpu mode to restrict monitoring
1076 threads which belong to the cgroup specified and run on the 1063 to threads which belong to the cgroup specified and run on the
1077 designated cpu. 1064 designated cpu.
1078 1065
1079 Say N if unsure. 1066 Say N if unsure.
1080 1067
1081menuconfig CGROUP_SCHED 1068menuconfig CGROUP_SCHED
1082 bool "Group CPU scheduler" 1069 bool "CPU controller"
1083 default n 1070 default n
1084 help 1071 help
1085 This feature lets CPU scheduler recognize task groups and control CPU 1072 This feature lets CPU scheduler recognize task groups and control CPU
@@ -1117,7 +1104,7 @@ config RT_GROUP_SCHED
1117endif #CGROUP_SCHED 1104endif #CGROUP_SCHED
1118 1105
1119config BLK_CGROUP 1106config BLK_CGROUP
1120 bool "Block IO controller" 1107 bool "IO controller"
1121 depends on BLOCK 1108 depends on BLOCK
1122 default n 1109 default n
1123 ---help--- 1110 ---help---
@@ -1139,7 +1126,7 @@ config BLK_CGROUP
1139 See Documentation/cgroups/blkio-controller.txt for more information. 1126 See Documentation/cgroups/blkio-controller.txt for more information.
1140 1127
1141config DEBUG_BLK_CGROUP 1128config DEBUG_BLK_CGROUP
1142 bool "Enable Block IO controller debugging" 1129 bool "IO controller debugging"
1143 depends on BLK_CGROUP 1130 depends on BLK_CGROUP
1144 default n 1131 default n
1145 ---help--- 1132 ---help---