update
This commit is contained in:
parent
bc1917c8bb
commit
9c5b866d37
|
|
@ -11,5 +11,6 @@ do
|
||||||
state=$(cat /sys/block/$disk/device/state)
|
state=$(cat /sys/block/$disk/device/state)
|
||||||
echo "$disk $state $iorequest_cnt $iodone_cnt"
|
echo "$disk $state $iorequest_cnt $iodone_cnt"
|
||||||
done
|
done
|
||||||
|
ps aux | grep -w sh | grep D
|
||||||
sleep $1
|
sleep $1
|
||||||
done
|
done
|
||||||
|
|
|
||||||
2
loop.sh
2
loop.sh
|
|
@ -8,7 +8,7 @@ function add_fio()
|
||||||
do
|
do
|
||||||
fio_cnt=$(ps aux | grep fio -c)
|
fio_cnt=$(ps aux | grep fio -c)
|
||||||
if [ $fio_cnt -gt 150 ]; then
|
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
|
continue
|
||||||
fi
|
fi
|
||||||
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`
|
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue