diff options
author | Suren Baghdasaryan <surenb@google.com> | 2021-02-01 15:31:40 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-02-22 11:43:42 -0800 |
commit | 5e2f1d9167f9d8c1fd3af5902a52bcd1b9c31ddc (patch) | |
tree | f8d891a9c305bb88e4af9c4e59e5c3e9dd7e30a1 /init | |
parent | 5bf1af0c987ac1394ccd817e5e794fc916703cd0 (diff) |
ANDROID: make per-cgroup PSI tracking configurable
With cgroup v2 hierarchy enabled PSI accounts stalls for each cgroup
separately and aggregates at each level of the hierarchy. That causes
additional overhead since psi_avgs_work would be called for each
cgroup in the hierarchy.
In Android we use PSI only at the system level, therefore this overhead
can be avoided.
Introduce CONFIG_PSI_PER_CGROUP_ACCT that controls per-cgroup PSI
tracking and is disabled by default.
Bug: 178872719
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I70a418aba76b46a27eb9e66080434aa870496384
(cherry picked from commit bd3983c8a85b5e69e0e7596449824d8b419af746)
(cherry picked from commit 5e00dceecb6d26c2d7382045b488fd9d1ced1c11)
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 7607b88a4776..4bb497eb0636 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -635,6 +635,21 @@ config PSI_DEFAULT_DISABLED Say N if unsure. +config PSI_PER_CGROUP_ACCT + bool "Enable per-cgroup pressure stall information tracking" + default n + depends on PSI + depends on CGROUPS + help + If set, pressure stall information will be tracked for each + individual cgroup. Otherwise, pressure stall information will + be tracked only at the system level under /proc/pressure/. + + This feature generates overhead that depends on the number of + cgroups in the cgroup v2 hierarchy. + + Say N if unsure. + endmenu # "CPU/Task time and stats accounting" config CPU_ISOLATION |