D25305: Add Total/Available/Allocated memory sensors
Arjen Hiemstra
noreply at phabricator.kde.org
Thu Nov 14 14:15:37 GMT 2019
ahiemstra created this revision.
ahiemstra added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
ahiemstra requested review of this revision.
REVISION 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.
REPOSITORY
R106 KSysguard
BRANCH
memory_sensors
REVISION DETAIL
https://phabricator.kde.org/D25305
AFFECTED FILES
ksysguardd/Linux/Memory.c
ksysguardd/Linux/Memory.h
To: ahiemstra, #plasma
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191114/1d77e4c3/attachment-0001.html>
More information about the Plasma-devel
mailing list