This commit is contained in:
Wenchao Hao 2023-09-14 11:34:36 +08:00
parent bc1917c8bb
commit 9c5b866d37
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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}'`