sched/psi: Remove NR_ONCPU task accounting
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 25 Aug 2022 16:41:07 +0000 (00:41 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 9 Sep 2022 09:08:32 +0000 (11:08 +0200)
commit71dbdde7914d32e86f01ac1f6e54e964c9dfdbd9
tree3614bdf8c54b95e134334bc3da8c6b1e83e32e6e
parent65176f59a18d888684525658a1d0b8bf749d24f3
sched/psi: Remove NR_ONCPU task accounting

We put all fields updated by the scheduler in the first cacheline of
struct psi_group_cpu for performance.

Since we want add another PSI_IRQ_FULL to track IRQ/SOFTIRQ pressure,
we need to reclaim space first. This patch remove NR_ONCPU task accounting
in struct psi_group_cpu, use one bit in state_mask to track instead.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com>
Tested-by: Chengming Zhou <zhouchengming@bytedance.com>
Link: https://lore.kernel.org/r/20220825164111.29534-7-zhouchengming@bytedance.com
include/linux/psi_types.h
kernel/sched/psi.c