nokyan / resources

Keep an eye on system resources
GNU General Public License v3.0
706 stars 56 forks source link

Add swap memory column #217

Open jojo2357 opened 5 months ago

jojo2357 commented 5 months ago

Problem

When I am deep into using swap, I cant figure out what process to kill since the memory reported does not account for memory swapped out. I therefore want to know exactly how much memory each process/app is demanding even when my 128 GiB swap partition is nearly full.

Possible Solution

Add the option to have a swap memory column, and/or a swap+memory column so I can pick which metric to keep track of

nokyan commented 5 months ago

Hi, thanks for the issue. This should be possible, I'll look into it.

jojo2357 commented 5 months ago

I presume you are using /proc/pid/stat for that memory, and according to this so there is an entry for total memory, swap and resident