diff options
author | Dan Schatzberg <schatzberg.dan@gmail.com> | 2021-10-29 01:15:27 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2021-11-01 19:47:08 +0300 |
commit | 81c49d39aea8a10e6d05d3aa1cb65ceb721e19b0 (patch) | |
tree | 9fae7adcc55b83b9ce6d753ce75dc024c646e797 /Documentation/admin-guide | |
parent | 822bc9bac9e9a2f76a772a34f745962dfc223353 (diff) | |
download | linux-81c49d39aea8a10e6d05d3aa1cb65ceb721e19b0.tar.xz |
cgroup: Fix rootcg cpu.stat guest double counting
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: 936f2a70f207 ("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>
Diffstat (limited to 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions