LoginSignup
2
2

More than 3 years have passed since last update.

iowaitの原因processをざっくり特定する

Last updated at Posted at 2019-03-26

iostat,vmstat,iotopない、でもsysstatはある

iowaitの高いprocessをざっくり特定する自分用メモ

ioを30秒毎でざっくり目視で...上昇を監視

sar -p 30

state が Dのものをgrep

ps -eo state,pid,cmd | grep "^D"

色々加工して lsofで詳細出す

 ps -eo state,pid,cmd | grep "^D" |awk '{print $2}'|xargs -I{} sh -c 'lsof -p {}|grep -E "DIR|txt"'

ただただio 強めなproccess 調査なら

find /proc -name io 2>/dev/null| xargs egrep "write|read" | grep -v ": 0" | sort -n -k 2 |tail -n 5|grep -o -E "[0-9]*"|sort|uniq|xargs -I{} lsof -p "{}"|grep -E "DIR|txt|COMMAND"

iotop あればそれを使ってください...
参考:

2
2
0

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
2
2