kernel_optimize_test/kernel/cgroup
Dan Schatzberg 9308f9c9c7 cgroup: Fix rootcg cpu.stat guest double counting
[ Upstream commit 81c49d39aea8a10e6d05d3aa1cb65ceb721e19b0 ]

In account_guest_time in kernel/sched/cputime.c guest time is
attributed to both CPUTIME_NICE and CPUTIME_USER in addition to
CPUTIME_GUEST_NICE and CPUTIME_GUEST respectively. Therefore, adding
both to calculate usage results in double counting any guest time at
the rootcg.

Fixes: 936f2a70f2 ("cgroup: add cpu.stat file to root cgroup")
Signed-off-by: Dan Schatzberg <schatzberg.dan@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:04:13 +01:00
..
cgroup-internal.h
cgroup-v1.c cgroup1: fix leaked context root causing sporadic NULL deref in LTP 2021-07-31 08:16:11 +02:00
cgroup.c cgroup: Make rebind_subsystems() disable v2 controllers all at once 2021-11-18 14:04:02 +01:00
cpuset.c cgroup/cpuset: Fix violation of cpuset locking rule 2021-09-15 09:50:38 +02:00
debug.c
freezer.c
legacy_freezer.c
Makefile
namespace.c nsproxy: add struct nsset 2020-05-09 13:57:12 +02:00
pids.c clone3: allow spawning processes into cgroups 2020-02-12 17:57:51 -05:00
rdma.c
rstat.c cgroup: Fix rootcg cpu.stat guest double counting 2021-11-18 14:04:13 +01:00