Patch "cgroup: Remove steal time from usage_usec" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    cgroup: Remove steal time from usage_usec

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     cgroup-remove-steal-time-from-usage_usec.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0cec13405e674150c027cc61447ec34ba7f91249
Author: Muhammad Adeel <Muhammad.Adeel@xxxxxxx>
Date:   Fri Feb 7 14:24:32 2025 +0000

    cgroup: Remove steal time from usage_usec
    
    [ Upstream commit db5fd3cf8bf41b84b577b8ad5234ea95f327c9be ]
    
    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: 936f2a70f2077 ("cgroup: add cpu.stat file to root cgroup")
    Acked-by: Axel Busch <axel.busch@xxxxxxx>
    Acked-by: Michal Koutný <mkoutny@xxxxxxxx>
    Signed-off-by: Muhammad Adeel <muhammad.adeel@xxxxxxx>
    Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/kernel/cgroup/rstat.c b/kernel/cgroup/rstat.c
index 5877974ece92c..aac91466279f1 100644
--- a/kernel/cgroup/rstat.c
+++ b/kernel/cgroup/rstat.c
@@ -590,7 +590,6 @@ static void root_cgroup_cputime(struct cgroup_base_stat *bstat)
 
 		cputime->sum_exec_runtime += user;
 		cputime->sum_exec_runtime += sys;
-		cputime->sum_exec_runtime += cpustat[CPUTIME_STEAL];
 
 #ifdef CONFIG_SCHED_CORE
 		bstat->forceidle_sum += cpustat[CPUTIME_FORCEIDLE];




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux