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

Polish: Slight innacuracy in the memory display? #1569

Open
Ray-Escobar opened this issue Dec 15, 2024 · 1 comment
Open

Polish: Slight innacuracy in the memory display? #1569

Ray-Escobar opened this issue Dec 15, 2024 · 1 comment
Labels
support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.

Comments

@Ray-Escobar
Copy link

Ray-Escobar commented Dec 15, 2024

This is just a minor visual "bug". I believe the memory meter should display in way that is more aligned with actually memory used? i.e. here I am using around 30% of the available memory, yet the meter is way above 50%. Not sure if it's intended that way, but could be a small visual improvement. This is from htop version 3.3.0 installed via apt.

image

@BenBE
Copy link
Member

BenBE commented Dec 16, 2024

This is intentional and the yellow/orange part of the meter is memory that can readily be freed up when needed (e.g. filesystem caches). And if you look at the display itself, it reflects the actual usage to be about one third (10G of ~31G).

What might be a bit confusing at first is, that the cache portion is drawn in, but this is actual memory being used, thus not drawing it, would be wrong for different reasons.

The current way things are handled is a bit of a compromise: It shows what memory is used and for what, while also providing an indication how much is free to use. If you ignore the orange part (which is intentionally drawn last), you end up with the 10G of actually used memory that isn't easy for the OS to free without much additional work.

I hope this explanation helps the decisions made when this visual was implemented.

@BenBE BenBE added the support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Projects
None yet
Development

No branches or pull requests

2 participants