|author||Vivek Goyal <email@example.com>||2010-04-26 19:27:56 +0200|
|committer||Jens Axboe <firstname.lastname@example.org>||2010-04-26 19:27:56 +0200|
blk-cgroup: config options re-arrangement
This patch fixes few usability and configurability issues. o All the cgroup based controller options are configurable from "Genral Setup/Control Group Support/" menu. blkio is the only exception. Hence make this option visible in above menu and make it configurable from there to bring it inline with rest of the cgroup based controllers. o Get rid of CONFIG_DEBUG_CFQ_IOSCHED. This option currently does two things. - Enable printing of cgroup paths in blktrace - Enables CONFIG_DEBUG_BLK_CGROUP, which in turn displays additional stat files in cgroup. If we are using group scheduling, blktrace data is of not really much use if cgroup information is not present. To get this data, currently one has to also enable CONFIG_DEBUG_CFQ_IOSCHED, which in turn brings the overhead of all the additional debug stat files which is not desired. Hence, this patch moves printing of cgroup paths under CONFIG_CFQ_GROUP_IOSCHED. This allows us to get rid of CONFIG_DEBUG_CFQ_IOSCHED completely. Now all the debug stat files are controlled only by CONFIG_DEBUG_BLK_CGROUP which can be enabled through config menu. Signed-off-by: Vivek Goyal <email@example.com> Acked-by: Divyesh Shah <firstname.lastname@example.org> Reviewed-by: Gui Jianfeng <email@example.com> Signed-off-by: Jens Axboe <firstname.lastname@example.org>
Diffstat (limited to 'init/Kconfig')
1 files changed, 27 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index eb77e8ccde1..087c14f3c59 100644
@@ -612,6 +612,33 @@ config RT_GROUP_SCHED
+ tristate "Block IO controller"
+ depends on CGROUPS && BLOCK
+ default n
+ Generic block IO controller cgroup interface. This is the common
+ cgroup interface which should be used by various IO controlling
+ Currently, CFQ IO scheduler uses it to recognize task groups and
+ control disk bandwidth allocation (proportional time slice allocation)
+ to such task groups.
+ This option only enables generic Block IO controller infrastructure.
+ One needs to also enable actual IO controlling logic in CFQ for it
+ to take effect. (CONFIG_CFQ_GROUP_IOSCHED=y).
+ See Documentation/cgroups/blkio-controller.txt for more information.
+ bool "Enable Block IO controller debugging"
+ depends on BLK_CGROUP
+ default n
+ Enable some debugging help. Currently it exports additional stat
+ files in a cgroup which can be useful for debugging.
endif # CGROUPS