Last active
August 29, 2015 14:27
-
-
Save mmgaggle/4b9854171a133b1d5597 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
uuid=$(uuidgen) | |
mkdir -p /tmp/${uuid}.out/collectl | |
echo " [+] starting collectl" | |
sudo collectl -s+mYZ -i 1:10 -F0 -f /tmp/${uuid}.out/collectl | |
echo " [+] waiting 60s to establish baseline" | |
sleep 60 | |
echo " [+] starting single disk fio" | |
for i in $( ls /dev/disk/by-path/pci-0000\:03\:00.0-sas-0x5000c500587* | head -n1) | |
sudo /root/fio/fio --rw=write --bs=4M --direct=1 --size=64G --runtime=300 --name=${i} --output=/tmp/${uuid}.out/fio_single_output.${i}.log & | |
done | |
echo " [+] waiting 60s before next test" | |
sleep 60 | |
echo " [+] starting multi disk fio" | |
for i in $( ls /dev/disk/by-path/pci-0000\:03\:00.0-sas-0x5000c500587* ) | |
sudo /root/fio/fio --rw=write --bs=4M --direct=1 --size=64G --runtime=300 --name=${i} --output=/tmp/${uuid}.out/fio_concurrent_output.${i}.log & | |
done | |
echo " [+] stopping collectl" | |
sudo pkill -SIGINT -f collectl | |
sudo chown ceph:ceph -R /tmp/${uuid}.out | |
echo " [+] done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment