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

Memory usage seems inaccurate #160

Closed
samperlmutter opened this issue Feb 28, 2019 · 2 comments
Closed

Memory usage seems inaccurate #160

samperlmutter opened this issue Feb 28, 2019 · 2 comments

Comments

@samperlmutter
Copy link

I'm writing a improved version of top, and when listing the memory usage of individual processes, I noticed that it doesn't line up with with what's reported by top or activity monitor. Is there any reason that this wouldn't be the case? I'm running MacOS Mojave.

memory usage

Also, it looks like the get_process_list() function only return processes started by me and not any started by other users, such as root. Is there a fix for this?

@GuillaumeGomez
Copy link
Owner

I'm writing a improved version of top, and when listing the memory usage of individual processes, I noticed that it doesn't line up with with what's reported by top or activity monitor. Is there any reason that this wouldn't be the case? I'm running MacOS Mojave.

The Activity Monitor of Mac doesn't get the same values as htop. So it's complicated to guess who's right and who's wrong. However, my computation for the total free memory seems a bit off, I'll try to fix it.

Also, it looks like the get_process_list() function only return processes started by me and not any started by other users, such as root. Is there a fix for this?

We can actually, I just ignored when I didn't get enough information but this is bad. It'll allow me to test some functions.

@samperlmutter
Copy link
Author

samperlmutter commented Feb 28, 2019 via email

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