memory - How to find out which processes are swapping in linux? -


Under Linux, how can I find out which process is using swap space? Enter

< o p

. Now the processes should be sorted based on their swap use.

There is an update here, as in my original reply, this problem was not answered exactly as stated in the comments. From:

It is not possible to obtain the exact size of the swap space used in any processing. The top holds this information by SWAP = VIRT-RES, but it is not a good metric, because other stuff like video storage also fell on VIRT (for example: above that my X process is 81m using swap But my system is fully using only 2M swap, so, I will not add a similar swap column to the htop because I have no idea about this information Not a reliable way (in fact, I do not think it's possible to have an exact number due to the shared pages).


Comments