[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v2 0/2] iowait and idle fixes in /proc/stat
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 increase.

Changes from v1 to v2:
* Cleaned up commit messages
* Clarified code comments
* Further optimized the logic in fs/proc/stat.c

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 | 26 ++------------------------
kernel/time/tick-sched.c | 9 +++++++++
2 files changed, 11 insertions(+), 24 deletions(-)


 \ /
  Last update: 2020-09-15 21:38    [W:0.044 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site