Add Total/Available/Allocated memory sensors
ClosedPublic

Authored by ahiemstra on Nov 14 2019, 2:15 PM.

Details

Summary

This exposes the previously hidden Total memory amount as
"mem/physical/total".

It also add an "Available" sensor, which reads the "MemAvailable" field
from /proc/meminfo. "Available" provides an estimate with how much
memory is available for starting new applications.

Finally, it adds an "Allocated" sensor, which equal "Total - Available"
and represents the total amount allocated to all currently running
applications.

Test Plan

The sensor browser now lists "total", "available" and "allocated" sensors.

Diff Detail

Repository
R106 KSysguard
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahiemstra created this revision.Nov 14 2019, 2:15 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 14 2019, 2:15 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ahiemstra requested review of this revision.Nov 14 2019, 2:15 PM
davidedmundson accepted this revision.Nov 26 2019, 2:31 PM
This revision is now accepted and ready to land.Nov 26 2019, 2:31 PM
This revision was automatically updated to reflect the committed changes.