Created
November 8, 2012 22:58
-
-
Save concubidated/4042427 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inktank@inktank01:~$ cat fsbench.sh | |
#!/bin/bash | |
hosts=`cat /etc/ceph/ceph.conf | grep host | sort | uniq | awk {'print $3'}` | |
results="smallio_results" | |
duration="300" | |
for host in $hosts | |
do | |
ssh root@$host mkdir $results | |
osds=`ssh root@$host ps aux | grep osd | awk {'print $13'}` | |
for size in 4096 10372 4194304 | |
do | |
for osd in $osds | |
do | |
data="/data/osd.$osd/test" | |
journal="/dev/sdb_vg/osd.$osd-journal" | |
ssh root@$host rm -rf $data | |
ssh root@$host mkdir $data | |
ssh root@$host ./smalliobenchfs --num-concurrent-ops 16 --io-size $size --object-size 4194304 --filestore-path $data --journal-path $journal --disable-detailed-ops=1 --filestore-op-threads=10 --write-ratio=0 --duration=$duration \>\> $results/osd.${osd}_read_${size} & | |
done | |
echo "Write test running on osd.[$osds]" | |
wait | |
for osd in $osds | |
do | |
data="/data/osd.$osd/test" | |
journal="/dev/sdb_vg/osd.$osd-journal" | |
ssh root@$host rm -rf $data | |
ssh root@$host mkdir $data | |
ssh root@$host ./smalliobenchfs --num-concurrent-ops 16 --io-size $size --object-size 4194304 --filestore-path $data --journal-path $journal --disable-detailed-ops=1 --filestore-op-threads=10 --duration=$duration --write-ratio=1 \>\> $results/osd.${osd}_write_${size} & | |
done | |
echo "Read test running on osd.[$osds]" | |
wait | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment