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

Add an option to show the sum of all used memory, including swap #79

Closed
MurzNN opened this issue Aug 17, 2023 · 2 comments
Closed

Add an option to show the sum of all used memory, including swap #79

MurzNN opened this issue Aug 17, 2023 · 2 comments

Comments

@MurzNN
Copy link

MurzNN commented Aug 17, 2023

Will be good to add an option to show the sum of all used memory, including swap, cuz some applications really use a lot of swap memory in time, but now it's not easy to catch them.

@pixelb
Copy link
Owner

pixelb commented Aug 17, 2023

We already show the total swap in the output from sudo ps_mem -S.
If you want an exact total of core + swap used you could use:
echo $(($(sudo ps_mem --total) + $(sudo ps_mem -S --total)))

@pixelb pixelb closed this as completed Aug 17, 2023
@MurzNN
Copy link
Author

MurzNN commented Aug 17, 2023

I want to see the sum of "ram + swap" per program (and sort by this sum), not the total usage of swap.

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