upd
This commit is contained in:
parent
9c5b866d37
commit
5ba8667f78
|
|
@ -2,15 +2,22 @@
|
||||||
|
|
||||||
while true :
|
while true :
|
||||||
do
|
do
|
||||||
|
date
|
||||||
hostbusy=$(cat /sys/class/scsi_host/host3/host_busy)
|
hostbusy=$(cat /sys/class/scsi_host/host3/host_busy)
|
||||||
echo "---- hostbusy is $hostbusy"
|
echo "---- hostbusy is $hostbusy"
|
||||||
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`; do
|
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`; do
|
||||||
disk=$(basename $dev)
|
disk=$(basename $dev)
|
||||||
iorequest_cnt=$(cat /sys/block/$disk/device/iorequest_cnt)
|
iorequest_cnt=$(cat /sys/block/$disk/device/iorequest_cnt)
|
||||||
iodone_cnt=$(cat /sys/block/$disk/device/iodone_cnt)
|
iodone_cnt=$(cat /sys/block/$disk/device/iodone_cnt)
|
||||||
|
timeout=$(cat /sys/block/$disk/device/timeout)
|
||||||
state=$(cat /sys/block/$disk/device/state)
|
state=$(cat /sys/block/$disk/device/state)
|
||||||
echo "$disk $state $iorequest_cnt $iodone_cnt"
|
inflight=$(cat /sys/block/$disk/inflight)
|
||||||
|
device_blocked=$(cat /sys/block/$disk/device/device_blocked)
|
||||||
|
echo "disk\tdevice_blocked\tstate\ttimeout\t\iorequest_cnt\tiodone_cnt\tinflight"
|
||||||
|
echo "$disk $device_blocked $state $timeout $iorequest_cnt $iodone_cnt $inflight"
|
||||||
done
|
done
|
||||||
ps aux | grep -w sh | grep D
|
ps aux | grep -w sh | grep D
|
||||||
|
nr_fio=$(ps aux | grep -c fio)
|
||||||
|
echo fio: $nr_fio
|
||||||
sleep $1
|
sleep $1
|
||||||
done
|
done
|
||||||
|
|
|
||||||
3
test.sh
3
test.sh
|
|
@ -4,8 +4,9 @@ source ./loop.sh
|
||||||
|
|
||||||
insmod /mnt/mainline/drivers/scsi/scsi_debug.ko add_host=1 num_tgts=2 max_luns=4 per_host_store=1 dev_size_mb=1024 lun_eh=0 lun_eh_fallback=0 target_eh=1 target_eh_fallback=0
|
insmod /mnt/mainline/drivers/scsi/scsi_debug.ko add_host=1 num_tgts=2 max_luns=4 per_host_store=1 dev_size_mb=1024 lun_eh=0 lun_eh_fallback=0 target_eh=1 target_eh_fallback=0
|
||||||
#insmod /mnt/mainline/drivers/scsi/scsi_debug.ko add_host=1 num_tgts=2 max_luns=4 per_host_store=1 dev_size_mb=1024 lun_eh=1 lun_eh_fallback=0
|
#insmod /mnt/mainline/drivers/scsi/scsi_debug.ko add_host=1 num_tgts=2 max_luns=4 per_host_store=1 dev_size_mb=1024 lun_eh=1 lun_eh_fallback=0
|
||||||
|
#insmod /mnt/mainline/drivers/scsi/scsi_debug.ko add_host=1 num_tgts=2 max_luns=4 per_host_store=1 dev_size_mb=1024 lun_eh=0 target_eh=0
|
||||||
|
|
||||||
scsi_logging_level -s --error 3 > /dev/null 2>&1
|
scsi_logging_level -s --error 4 > /dev/null 2>&1
|
||||||
|
|
||||||
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`
|
for dev in `lsscsi | grep scsi_debug | awk '{print $6}'`
|
||||||
do
|
do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue