How to find out which processes are using swap space in Linux?

后端 未结 18 1962
终归单人心
终归单人心 2020-11-27 09:11

Under Linux, how do I find out which process is using the swap space more?

18条回答
  •  遥遥无期
    2020-11-27 09:19

    It's not entirely clear if you mean you want to find the process who has most pages swapped out or process who caused most pages to be swapped out.

    For the first you may run top and order by swap (press 'Op'), for the latter you can run vmstat and look for non-zero entries for 'so'.

提交回复
热议问题