Add plugin showing nvidia GPU load stats
ClosedPublic

Authored by davidedmundson on Aug 20 2019, 7:32 PM.

Details

Reviewers
apol
Group Reviewers
Plasma
Summary

This plugin shows the process GPU load and GPU memory usage for users of
Nvidia graphic cards.

Data is fetched by running the (fortunately lightweight) process
nvidia-smi to extract data. If this binary is not available this plugin
does nothing and the columns will not be available.

It's not feasible to try try and reverse engineer nvidia-smi to recreate
the functionality to do it without the extra executable. The headers are
hidden within a giant proprietary SDK, and internally it's just opening
a completely arbitrary address in /dev/mem.

Test Plan

Ran webGL test in firefox, FF process, Xorg and kwin all spiked

Diff Detail

Repository
R111 KSysguard Library
Branch
plugins2
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 15386
Build 15404: arc lint + arc unit
davidedmundson created this revision.Aug 20 2019, 7:32 PM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 20 2019, 7:32 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson requested review of this revision.Aug 20 2019, 7:32 PM
apol added a subscriber: apol.Aug 20 2019, 10:31 PM

Otherwise LGTM

processplugins/nvidia/CMakeLists.txt
3

copy-paste? I don't see why XRes is needed.

remove stray copy pasted line

davidedmundson marked an inline comment as done.Aug 20 2019, 11:24 PM
apol accepted this revision.Aug 21 2019, 11:19 AM

LGTM

This revision is now accepted and ready to land.Aug 21 2019, 11:19 AM