Skip to content

Commit db5fd3c

Browse files
madeelibmhtejun
authored andcommitted
cgroup: Remove steal time from usage_usec
The CPU usage time is the time when user, system or both are using the CPU. Steal time is the time when CPU is waiting to be run by the Hypervisor. It should not be added to the CPU usage time, hence removing it from the usage_usec entry. Fixes: 936f2a7 ("cgroup: add cpu.stat file to root cgroup") Acked-by: Axel Busch <axel.busch@ibm.com> Acked-by: Michal Koutný <mkoutny@suse.com> Signed-off-by: Muhammad Adeel <muhammad.adeel@ibm.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent fd07912 commit db5fd3c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

kernel/cgroup/rstat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ static void root_cgroup_cputime(struct cgroup_base_stat *bstat)
590590

591591
cputime->sum_exec_runtime += user;
592592
cputime->sum_exec_runtime += sys;
593-
cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL];
594593

595594
#ifdef CONFIG_SCHED_CORE
596595
bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE];

0 commit comments

Comments
 (0)