Public bug reported: The plugin calculates the memory usage on Linux as (MemTotal - (MemFree+Buffers+Cached)). This is not quite correct since: * Shared memory (Shmem in /proc/meminfo) is contained in the "cached" memory figure yet not reclaimable in most cases * SReclaimable is slab memory that may be reclaimed in principle
So a much more realistic figure for the actual memory usage is (Total - (Free+Buffers+Cached-Shmem+SReclaimable)). With the current (old) setting the plugin displays a memory usage that is far too low for systems that run applications with significant shared memory usage - a prominent example would be virtual machines running in VMware player / workstation. In principle one would also need to subtract HugePages_Rsvd but since this is mostly used on servers with big databases it's probably not such a big issue for desktop systems. This issue should most likely be fixed upstream. Package: xfce4-systemload-plugin Package version: 1:1.1.1-1ubuntu2 (but issue is present in Ubuntu 15.10 as well) Release: Ubuntu 14.04.4 LTS ** Affects: xfce4-systemload-plugin (Ubuntu) Importance: Undecided Status: New ** Patch added: "proof of concept patch for fixing the issue" https://bugs.launchpad.net/bugs/1547918/+attachment/4576691/+files/xfce4-systemload-plugin-1.1.1-usedmem.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1547918 Title: Plugin calculates free memory usage on Linux incorrectly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xfce4-systemload-plugin/+bug/1547918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs