Created
February 11, 2013 18:40
-
-
Save concubidated/4756537 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
#!/bin/bash | |
object_size=4194304; #4MB | |
duration=60; | |
results_folder="./smallio_results" | |
mkdir -p ${results_folder}; | |
#one at a time | |
#for iosize in 4096 131072 4194304; | |
#do | |
# for osd in `ls -1 /var/lib/ceph/osd`; | |
# do | |
# mkdir /var/lib/ceph/osd/${osd}/test/; | |
# touch /var/lib/ceph/osd/${osd}/test/journal; | |
# | |
# #read tests | |
# ./smalliobenchfs --num-concurrent-ops 16 --io-size ${iosize} --object-size ${object_size} --filestore-path /var/lib/ceph/osd/${osd}/test/ --journal-path /var/lib/ceph/osd/${osd}/test/journal --disable-detailed-ops=1 --filestoreop-threads=10 --write-ratio=0 --numobjects=2500 --duration=${duration} > ${results_folder}/smalliobenchfs_${osd}_read.txt; | |
# | |
# #write tests | |
# ./smalliobenchfs --num-concurrent-ops 16 --io-size ${iosize} --object-size ${object_size} /var/lib/ceph/osd/${osd}/test/ --journal-path /var/lib/ceph/osd/${osd}/test/journal --disable-detailed-ops=1 --filestore-op-threads=10 --duration=${duration} --numobjects=2500 --write-ratio=1 > ${results_folder}/smalliobenchfs_${osd}_write.txt; | |
# | |
# rm -rf /var/lib/ceph/osd/${osd}/test/; | |
# | |
# done; | |
#done; | |
object_size=4194304; #4MB | |
duration=300; | |
#concurrent | |
for iosize in 4096 131072 4194304; | |
do | |
for osd in `ls -1 /var/lib/ceph/osd`; | |
do | |
if [ -d "/var/lib/ceph/osd/${osd}/test/" ] | |
then | |
rm -r /var/lib/ceph/osd/${osd}/test | |
fi | |
mkdir /var/lib/ceph/osd/${osd}/test/ | |
touch /var/lib/ceph/osd/${osd}/test/journal | |
#read tests | |
./smalliobenchfs --num-concurrent-ops 16 --io-size ${iosize} --object-size ${object_size} --filestore-path /var/lib/ceph/osd/${osd}/test/ --journal-path /var/lib/ceph/osd/${osd}/test/journal --disable-detailed-ops=1 --filestoreop-threads=10 --write-ratio=0 --numobjects=2500 --duration=${duration} > ${results_folder}/osd_${osd}_read_${iosize}.txt & | |
done | |
wait | |
done | |
for iosize in 4096 131072 4194304; | |
do | |
for osd in `ls -1 /var/lib/ceph/osd`; | |
do | |
if [ -d "/var/lib/ceph/osd/${osd}/test/" ] | |
then | |
rm -r /var/lib/ceph/osd/${osd}/test | |
fi | |
mkdir /var/lib/ceph/osd/${osd}/test/ | |
touch /var/lib/ceph/osd/${osd}/test/journal | |
#write tests | |
./smalliobenchfs --num-concurrent-ops 16 --io-size ${iosize} --object-size ${object_size} --filestore-path /var/lib/ceph/osd/${osd}/test/ --journal-path /var/lib/ceph/osd/${osd}/test/journal --disable-detailed-ops=1 --filestore-op-threads=10 --duration=${duration} --numobjects=2500 --write-ratio=1 > ${results_folder}/osd_${osd}_write_${iosize}.txt & | |
done; | |
wait; #wait for each set to complete | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment