Monitor io write/read with process name


while [ 1 -eq 1 ]; do iotop -n 1 -k -qqq -o|awk '{print "io_read_kbs,pid="$1",process="$12" value="$4"\nio_write_kbs,pid="$1",process="$12" value="$6}';sleep 1;done

io_read_kbs,pid=8848,process=rsync value=295.00
io_write_kbs,pid=8848,process=rsync value=0.00
io_read_kbs,pid=5091,process=cp value=2802.47

Leave a Reply

Your email address will not be published. Required fields are marked *