udda / multiload-ng

Modern graphical system monitor for any panel
http://udda.github.io/multiload-ng
GNU General Public License v2.0
147 stars 22 forks source link

RAM always displaying used + cache memory despite selecting "used" option under settings #83

Open stereotypy opened 6 months ago

stereotypy commented 6 months ago

Hi there, I'm having an issue where despite changing the setting in preferences, the ram usage doesn't reflect the use of gnome-system-monitor and HTOP in that it displays all the cache memory as well. The display is exactly the same as the setting that also displays cache. When I mouse over under detailed it does show the correct amounts but when my cache is full it's just constantly drawing a maxed out bar which is unhelpful for me. I tried restarting it and it doesn't seem to help - the display is the same no matter which option is selected.

Running from the gtk2 version from aur by the way. For some reason the gtk3 version didn't display for me

haarp commented 3 months ago

I've created a PR that should fix this. It changes memory calculation to mirror how htop does it. It removes shared memory from "cached" .

85

Referenced from:

https://stackoverflow.com/a/41251290 https://github.com/htop-dev/htop/blob/3.3.0/linux/LinuxMachine.c#L199-L218

stereotypy commented 3 months ago

Thanks very much for addressing this! For anyone who is struggling with this in the meantime, the solution I went with was to change the theme coloring to display cached memory to the same color the background. hoping the PR makes it soon