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

[Bug?] memory stats on macOS and Windows don't match 0.8.0 after migration to sysinfo #1043

Closed
1 task done
ClementTsang opened this issue Mar 4, 2023 · 0 comments · Fixed by #1051
Closed
1 task done
Labels
bug Something isn't working the way that is expected.

Comments

@ClementTsang
Copy link
Owner

ClementTsang commented Mar 4, 2023

Checklist

Describe the issue

Behaviour changed after #1036.

macOS

On macOS, the reported used memory usage is way too high to be correct. Figured this one out at least. The issue is that it displays memory used + cached files, whereas the previous one reported something closer to htop. The new value is closer to what something like top or the Activity Monitor reports.

Now, is this behaviour better? Unfortunately, it seems like this might boil down to "what are we measuring?" - not necessarily straightforward. One thing I'm not a fan of regarding the new value is that it'll just always show memory usage pinned at near 100%. Maybe what we should do is separate memory used vs cached files, a la Activity Monitor, if possible?

Related issue: #785

Windows

On Windows, "swap", or paged memory, is lower both in usage and total amount. Not sure why sysinfo reports it this way, will look at what heim is doing.

What operating system and version are you using?

macOS Catalina, Windows 11

What architecture are you using?

x86_64 / AMD64, arm64

What terminal(s) are you running bottom on?

iTerm, Alacritty

What version of bottom are you running?

master

How did you install bottom?

Repos (developing)

How can we reproduce this?

Turn it on and look.

Additional information

No response

@ClementTsang ClementTsang added the bug Something isn't working the way that is expected. label Mar 4, 2023
@ClementTsang ClementTsang changed the title [Bug] sysinfo memory stats are causing problems [Bug] inaccurate memory stats on macOS and Windows after migration to sysinfo Mar 4, 2023
@ClementTsang ClementTsang changed the title [Bug] inaccurate memory stats on macOS and Windows after migration to sysinfo [Bug] memory stats on macOS and Windows don't match 0.8.0 after migration to sysinfo Mar 4, 2023
@ClementTsang ClementTsang changed the title [Bug] memory stats on macOS and Windows don't match 0.8.0 after migration to sysinfo [Bug?] memory stats on macOS and Windows don't match 0.8.0 after migration to sysinfo Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working the way that is expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant