! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Use MemAvailable to estimate free RAM
Status:
RESOLVED: FIXED
Product:
Xfce4-systemload-plugin
Component:
General

Comments

Description liquider 2016-07-07 23:24:40 CEST
When kernel is 3.14+, the plugin should prefer to use MemAvailable metric [1] to estimate free RAM. Currently, files in /dev/shm are counted towards Cache and as such marked as "freeish" which is not really the case.

I'd like to submit a patch is someone can promise a timely review/acceptance.

[1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
Comment 1 Landry Breuil editbugs 2016-07-08 21:28:08 CEST
I have no way of testing it since i have no linux box around, but sure if you provide a patch and don't break other platforms i'll gladly merge it.
Comment 2 liquider 2016-07-09 00:40:12 CEST
Created attachment 6729 
Use MemAvailable on Linux 3.14+

This works.
Comment 3 Landry Breuil editbugs 2016-07-10 08:55:54 CEST
Thanks, applied in http://git.xfce.org/panel-plugins/xfce4-systemload-plugin/commit/?id=224b30efc6d4bb71a99e56c5db4edb44a0520e74, will be in the next release
Comment 4 liquider 2016-07-10 17:52:39 CEST
Thanks!

Bug #12686

Reported by:
liquider
Reported on: 2016-07-07
Last modified on: 2016-07-10

People

Assignee:
Xfce-Goodies Maintainers
CC List:
2 users

Version

Attachments

Additional information