This commit is contained in:
Wenchao Hao 2023-09-21 16:45:35 +08:00
parent 1330c88bf8
commit fafd9877ce
2 changed files with 3 additions and 3 deletions

View File

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

View File

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