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 <[email protected]> Acked-by: Michal Koutný <[email protected]> Signed-off-by: Muhammad Adeel <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent fd07912 commit db5fd3c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)