Skip to content

Instantly share code, notes, and snippets.

@concubidated
Last active December 10, 2015 23:08
Show Gist options
  • Save concubidated/4506894 to your computer and use it in GitHub Desktop.
Save concubidated/4506894 to your computer and use it in GitHub Desktop.
hosts="node-14 compute-0-0"
for size in 4096 131072 4194304
do
for host in $hosts
do
for n in {1..4}
do
ssh $host rados bench 300 write -p performance_${n} -b $size >> rados_write_${size}_${host}_${n} &
done
echo "$host: running $n rados bench write instances. Size: $size"
done
wait
for host in $host
do
ssh $host echo 3 \> /proc/sys/vm/drop_caches
for n in {1..4}
do
ssh $host rados bench 300 seq -p performance_${n} -b $size >> rados_bench_read_${size}_${host}_${n} &
done
echo "Running $n Rados bench read instances. Size: $size"
done
wait
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment