diff --git a/checkstat.sh b/checkstat.sh index 861a48e..96bcbef 100644 --- a/checkstat.sh +++ b/checkstat.sh @@ -11,5 +11,6 @@ do state=$(cat /sys/block/$disk/device/state) echo "$disk $state $iorequest_cnt $iodone_cnt" done + ps aux | grep -w sh | grep D sleep $1 done diff --git a/loop.sh b/loop.sh index ebc0fd4..56738dc 100644 --- a/loop.sh +++ b/loop.sh @@ -8,7 +8,7 @@ function add_fio() do fio_cnt=$(ps aux | grep fio -c) if [ $fio_cnt -gt 150 ]; then - echo "$fio_cnt larger than 50, do not add" + echo "$fio_cnt larger than 150, do not add" continue fi for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`