Created
July 29, 2014 18:59
-
-
Save billhathaway/bd1741c8d6e79408b43d to your computer and use it in GitHub Desktop.
Using sysbench
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
# install sysbench with | |
# sudo yum --enablerepo=epel install -y sysbench | |
targetDir=/data/benchmark # pick a directory inside your target file system | |
fileSize=300G # pick large enough size that you aren't using FS cache effectively | |
threads=128 | |
test=rndrw # can also use rndrd | |
blockSize=4096 | |
mkdir $targetDir | |
cd $targetDir | |
# first time step - build the files it will use | |
sysbench --num-threads=$threads --test=fileio --file-total-size=$fileSize prepare | |
# run the actual benchmark | |
sysbench --test=fileio --file-test-mode=$test --file-extra-flags=direct --file-fsync-freq=0 --file-total-size=$fileSize --max-time=300 --num-threads=$threads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment