Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stereotypy opened this issue Apr 15, 2024 · 2 comments

Comments

@stereotypy
Copy link

stereotypy commented Apr 15, 2024

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
Copy link

haarp commented Aug 5, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants