Skip to content

Commit 201242e

Browse files
committed
Merge: cgroup: Remove steal time from usage_usec
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6423 JIRA: https://issues.redhat.com/browse/RHEL-79933 commit db5fd3c Author: Muhammad Adeel <[email protected]> Date: Fri, 7 Feb 2025 14:24:32 +0000 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]> Signed-off-by: Waiman Long <[email protected]> Approved-by: Thomas Huth <[email protected]> Approved-by: Radostin Stoyanov <[email protected]> Approved-by: Phil Auld <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: Augusto Caringi <[email protected]>
2 parents 51e8744 + 1bde841 commit 201242e

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
@@ -586,7 +586,6 @@ static void root_cgroup_cputime(struct cgroup_base_stat *bstat)
586586

587587
cputime->sum_exec_runtime += user;
588588
cputime->sum_exec_runtime += sys;
589-
cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL];
590589

591590
#ifdef CONFIG_SCHED_CORE
592591
bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE];

0 commit comments

Comments
 (0)