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

Views All Time
Views All Time
68
Views Today
Views Today
2

Leave a Reply

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