Add four-way latency comparison (NFS and CIFS)
[bluesky.git] / microbench / setup / run-synread
1 #!/bin/bash
2 #
3 # Launch the synthetic read benchmark.
4
5 SYNREAD_OUTSTANDING=32
6 SYNREAD_PROCS=4
7 SYNREAD_SIZE=$((1 << 20))
8 SYNREAD_DURATION=30
9
10 # Export any environment variables specified on the command line
11 for e in "$@"; do
12     echo "$e" 1>&2
13     if echo "$e" | grep = >/dev/null; then
14         eval "$e"
15         export ${e%=*}
16     fi
17 done
18
19 mkdir /scratch/synread/$BLUESKY_RUN_NAME
20 cd /scratch/synread/$BLUESKY_RUN_NAME
21 for i in $(seq $SYNREAD_PROCS); do
22     /scratch/bluesky.git/nfs3/synreadbench /scratch/inodes.txt $SYNREAD_OUTSTANDING $SYNREAD_SIZE proc-$i.data &
23 done
24
25 sleep $SYNREAD_DURATION
26
27 pkill -TERM synreadbench