diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2021-03-03 11:46:56 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-03-06 12:40:22 +0100 |
commit | e7fcd762282332f765af2035a9568fb126fa3c01 (patch) | |
tree | 1fb1f7fdcf440354928f2d478c3a51d6b5cf766d /include/linux/psi_types.h | |
parent | 585b6d2723dc927ebc4ad884c4e879e4da8bc21f (diff) | |
download | linux-stable-e7fcd762282332f765af2035a9568fb126fa3c01.tar.gz linux-stable-e7fcd762282332f765af2035a9568fb126fa3c01.tar.bz2 linux-stable-e7fcd762282332f765af2035a9568fb126fa3c01.zip |
psi: Add PSI_CPU_FULL state
The FULL state doesn't exist for the CPU resource at the system level,
but exist at the cgroup level, means all non-idle tasks in a cgroup are
delayed on the CPU resource which used by others outside of the cgroup
or throttled by the cgroup cpu.max configuration.
Co-developed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lkml.kernel.org/r/20210303034659.91735-2-zhouchengming@bytedance.com
Diffstat (limited to 'include/linux/psi_types.h')
-rw-r--r-- | include/linux/psi_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/psi_types.h b/include/linux/psi_types.h index b95f3211566a..0a23300d49af 100644 --- a/include/linux/psi_types.h +++ b/include/linux/psi_types.h @@ -50,9 +50,10 @@ enum psi_states { PSI_MEM_SOME, PSI_MEM_FULL, PSI_CPU_SOME, + PSI_CPU_FULL, /* Only per-CPU, to weigh the CPU in the global average: */ PSI_NONIDLE, - NR_PSI_STATES = 6, + NR_PSI_STATES = 7, }; enum psi_aggregators { |