Linux-Fsdevel Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/2] iowait and idle fixes in /proc/stat
@ 2020-06-10 21:05 Tom Hromatka
  2020-06-10 21:05 ` [PATCH 1/2] tick-sched: Do not clear the iowait and idle times Tom Hromatka
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Hromatka @ 2020-06-10 21:05 UTC (permalink / raw)
  To: tom.hromatka, linux-kernel, linux-fsdevel
  Cc: fweisbec, tglx, mingo, adobriyan

A customer is using /proc/stat to track cpu usage in a VM and noted
that the iowait and idle times behave strangely when a cpu goes
offline and comes back online.

This patchset addresses two issues that can cause iowait and idle
to fluctuate up and down.  With these changes, cpu iowait and idle
now only monotonically increase.

Tom Hromatka (2):
  tick-sched: Do not clear the iowait and idle times
  /proc/stat: Simplify iowait and idle calculations when cpu is offline

 fs/proc/stat.c           | 24 ++++++------------------
 kernel/time/tick-sched.c |  9 +++++++++
 2 files changed, 15 insertions(+), 18 deletions(-)

-- 
2.25.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-14 19:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-10 21:05 [PATCH 0/2] iowait and idle fixes in /proc/stat Tom Hromatka
2020-06-10 21:05 ` [PATCH 1/2] tick-sched: Do not clear the iowait and idle times Tom Hromatka
2020-06-10 21:05 ` [PATCH 2/2] /proc/stat: Simplify iowait and idle calculations when cpu is offline Tom Hromatka
2020-07-14 18:55 ` [PATCH 0/2] iowait and idle fixes in /proc/stat Tom Hromatka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).