update
This commit is contained in:
parent
1330c88bf8
commit
fafd9877ce
|
|
@ -7,7 +7,7 @@ do
|
|||
hostbusy=$(cat /sys/class/scsi_host/host3/host_busy)
|
||||
echo -e "\e[36mhost busy :\t \e[32m$hostbusy\e[0m"
|
||||
echo -e "\e[36mhost state :\t \e[32m$(cat /sys/class/scsi_host/host3/state)\e[0m"
|
||||
echo -e "\e[36mfio :\t \e[32m$(ps aux | grep -c fio)\e[0m"
|
||||
echo -e "\e[36mfio :\t \e[32m$(ps aux | grep dev | grep -c fio)\e[0m"
|
||||
ps aux | grep -w sh | grep D
|
||||
|
||||
echo -e "\e[36m-------------------------------------\e[0m"
|
||||
|
|
|
|||
4
loop.sh
4
loop.sh
|
|
@ -9,7 +9,7 @@ function add_fio()
|
|||
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`
|
||||
do
|
||||
fio_cnt=$(ps aux | grep fio | grep $dev -c)
|
||||
if [ $fio_cnt -gt 20 ]; then
|
||||
if [ $fio_cnt -gt 15 ]; then
|
||||
echo "$fio_cnt larger than 20, do not add"
|
||||
continue
|
||||
fi
|
||||
|
|
@ -20,7 +20,7 @@ function add_fio()
|
|||
|
||||
done
|
||||
|
||||
sleep 10
|
||||
sleep 3
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue