infinite loop dd benchmark stress test script

X=1 while : do echo $X echo “write sync” time sh -c “dd if=/dev/zero of=/mnt/sda/ddfile bs=8k count=4000000 && sync” echo “write flush” time sh -c “dd if=/dev/zero of=/mnt/sda/ddfile bs=8k count=2000000” echo “read” time sh -c “dd if=/mnt/sda/ddfile of=/dev/null bs=8k” ((X+=1)) done