psi: Add PSI_CPU_FULL state
authorChengming Zhou <zhouchengming@bytedance.com>
Wed, 3 Mar 2021 03:46:56 +0000 (11:46 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:22 +0000 (12:40 +0100)
commite7fcd762282332f765af2035a9568fb126fa3c01
tree1fb1f7fdcf440354928f2d478c3a51d6b5cf766d
parent585b6d2723dc927ebc4ad884c4e879e4da8bc21f
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
include/linux/psi_types.h
kernel/sched/psi.c