Bug 451074 - Graphing percentage sensors with scalar value sensors
Summary: Graphing percentage sensors with scalar value sensors
Status: REPORTED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.24.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-03 09:43 UTC by AlexDeLorenzo.dev
Modified: 2023-03-31 23:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AlexDeLorenzo.dev 2022-03-03 09:43:00 UTC
SUMMARY
I would like to the ability to add percentage-based sensors to graphs with scalar value sensors and have it make sense. For example, if I graph a GPU Usage percentage-based sensor against a GPU Frequency sensor, it does not work because the first sensor is graphed as a value of 0 through 100, while frequency will be graphed in billions of hertz, so the GPU Usage is dwarfed by speed even if the percentage value is 100%.

STEPS TO REPRODUCE
1. Open System Monitor and edit a page
2. Add a GPU Usage sensor
3. Add a GPU Frequency sensor
4. Change the Display Style to "Line chart"

OBSERVED RESULT
GPU Usage is dwarfed by GPU Frequency even if GPU usage is 100%. 1 billion hertz will be over 100, and the two values are graphed as if they're measuring the same thing.

EXPECTED RESULT
I expect the line for percentage-based sensors to occupy a proportional amount of space on a line graph compared to the percentage being graphed. For example, 100% should result with a line at the top of the graph, even if another line is graphing billions of hertz.

SOFTWARE/OS VERSIONS
Operating System: Linux
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16
Graphics Platform: Wayland
Comment 1 Will Styler 2023-03-31 23:26:17 UTC
I'd like to second this request.  In my case, I'd like to be able to have three horizontal bar graphs for CPU usage (reported as 0-100%), Memory usage (reported as 0-100%), and GPU VRAM usage (reported as 2.0GiB).  As the parent post highlights, even at 24 GiB, this graph ends up being problematically unreadable, with 2GiB being shown as 2/100.

This could be meaningfully addressed by adding a 'Min/Max' option for bars, or allowing the use of formulas to compose the graphed quantity (e.g. 'graph ($GPU_VRAM_USED/24)*100).  Or, no doubt, there are plenty of other approaches, but those two come to mind.

Thank you for your help!

VERSIONS (although this issue has existed on all versions of KDE I've tried this on)
Operating System: Fedora Linux 38 and 37
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-300.fc38.x86_64 (64-bit)
Graphics Platform: X11