]> git.proxmox.com Git - pve-common.git/commit
read_proc_stat: substract guest && guest_nice from user && nice time
authorAlexandre Derumier <aderumier@odiso.com>
Mon, 10 Jan 2022 04:52:58 +0000 (05:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 13 Jan 2022 15:03:49 +0000 (16:03 +0100)
commitc140206bf8ef51dd7d07089e1b03bd98edeb8754
tree7e443c7e3301ed02de74b2b1aa06921dbc1ab93b
parent5224b31bbd417fbcfcb6d0bf6ff93be8c120dc22
read_proc_stat: substract guest && guest_nice from user && nice time

user && nice time already include guest value
https://github.com/torvalds/linux/blob/4ec9f7a18/kernel/sched/cputime.c#L151-L158

Other monitoring tools are already substracting theses guest values

https://github.com/htop-dev/htop/blob/main/linux/LinuxProcessList.c
https://github.com/influxdata/telegraf/blob/c66ccee46f47717c399ccc0348d17c95d11f477d/plugins/inputs/cpu/cpu.go
src/PVE/ProcFSTools.pm