DF-4895 / writer.sh
#!/bin/sh # DF-4895 writer: sweep the 4MB RAID-5 volume with 32KB group writes. # Each dd is one RAID-5 read-modify-write: first-phase reads launch via # dev_dstrategy() on the cdev, second-phase writes launch via # vn_strategy(drive->vp) from complete_raid5_write(). i=0 id=$1 while [ ! -f /tmp/stop_race ]; do off=$(( (i * 7 + id * 13) % 120 )) dd if=/dev/zero of=/dev/vinum/vol/rv bs=32k seek=$off count=1 conv=notrunc >/dev/null 2>&1 i=$((i+1)) echo $i > /tmp/wcount.$id 2>/dev/null done |