LoginSignup
29
32

More than 5 years have passed since last update.

Linuxで1プロセスが利用しているSWAP量を調べるコマンド

Posted at

awkさまさま

cat /proc/$$/smaps | grep -i swap | awk 'BEGIN{sum=0}{sum+=$2}END{print sum}' 
29
32
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
32