https://bugs.kde.org/show_bug.cgi?id=465768

            Bug ID: 465768
           Summary: iowait is counted as cpu usage by per-core sensors
    Classification: Plasma
           Product: plasma-systemmonitor
           Version: 5.26.5
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ksysguard-b...@kde.org
          Reporter: yumpusamongus+...@gmail.com
                CC: ahiems...@heimr.nl, plasma-b...@kde.org
  Target Milestone: ---

Created attachment 156271
  --> https://bugs.kde.org/attachment.cgi?id=156271&action=edit
script that reproduces the problem (and doesn't thrash the cache)

SUMMARY

IO wait time is counted as CPU busy time by whichever underlying library is
used plasma-systemmonitor, ksysguard, and desktop sensor widgets.

STEPS TO REPRODUCE
1. Open the "history" view of plasma-systemmonitor, or the "System Load" tab of
ksysguard, or have a system monitor widget using the "Core # Total Usage"
sensor on your panel.
2. Run the attached script.  If you don't have any SATA drives, change
"/dev/sda" to something you do have.

OBSERVED RESULT

CPU usage appears to be 100%, even though the workload is totally I/O bound.

EXPECTED RESULT

CPU usage includes only % of time the CPU is executing instructions, matching
the much lower value reported by htop.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:  Fedora Linux 37
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION

This has probably been reported before, as bug 339164 against the plasma4
widget.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to