To see some memory info I can watch it in top
of through cat /proc/meminfo
.
In /proc/meminfo I can see the swap usage of the whole system like this:
SwapCached: 4 kB
SwapTotal: 33460220 kB
SwapFree: 33460216 kB
But there can be I situation when almost all the swap is used (i.e. there is a too small piece of SwapFree
). How can I figure out, which process(es) are eating this swap?
UPD: there is a too small piece of SwapFree
basically means that there is some process(processes) which ate a lot of memory and didn't use it for a long time. I need to find such processes.
press 'p' to add swap to display
when I go to SWAP: ` SWAP = Swapped Size (KiB)` and pressp
nothing happens..