Check SWAP Juexiao Zhou included in system 2022-06-09 39 words One minute Contents Check SWAP used by differnt PID 1 for i in $(cd /proc;ls | grep "^[0-9]" | awk '$0>100'); do awk '/Swap:/{a=a+$2}END{print '"$i"',a/1024"M"}' /proc/$i/smaps;done| sort -k2nr | head Get the information about the PID 1 ps aux | grep ${pid} Please enable JavaScript to view the comments powered by Utterances.