From 06d7286d7c8e579cb7354558745bfe9757064b94 Mon Sep 17 00:00:00 2001 From: Yihao Wu Date: Sat, 18 Apr 2020 19:35:55 +0800 Subject: [PATCH] alinux: sched: add kconfig SCHED_SLI to #26424323 This introduces the new bool kconfig SCHED_SLI, determining whether the scheduler SLI feature should be built-in or not. Signed-off-by: Yihao Wu Acked-by: Shanpei Chen --- init/Kconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index e5446705f5d7..b8a1c8ddbaa5 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -908,6 +908,20 @@ config CGROUP_DEVICE Provides a cgroup controller implementing whitelists for devices which a process in the cgroup can mknod or open. +config SCHED_SLI + bool "cgroup CPU usage and additional scheduler statistics" + depends on CGROUP_CPUACCT + default Y + help + This accounts CPU time spent by tasks in a cgroup into "usr%" "sys%" + "idle" "steal%" "irq%" "softirq%" "guest%". And this exports + nr_migrations, nr_running, nr_uninterruptible of a cgroup. + + The corresponding interface is cpuacct.proc_stat. + + Note CPU usage requires cpuacct and cpu cgroup subsys to be mounted + together to take effect. + config CGROUP_CPUACCT bool "Simple CPU accounting controller" help -- GitLab