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