読者です 読者をやめる 読者になる 読者になる

IT Notebook

ITについての備忘録的なブログです

sysbench - sysbenchコマンドサンプル

sysbench

sysbenchのコマンドサンプル。自分用にメモ。

CPU処理性能

sysbench --test=cpu --cpu-max-prime=20000 --num-threads=16 run > sysbench_cpu_16.txt
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=128 run > sysbench_cpu_128.txt

Disk処理性能

sysbench --test=fileio --file-total-size=10G prepare
sysbench --test=fileio --file-total-size=10G --file-test-mode=seqwr --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_seqwr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=seqrewr --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_seqrewr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=seqrd --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_seqrd.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrd --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_rndrd.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndwr --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_rndwr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrw --num-threads=16 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_16_rndrw.txt

sysbench --test=fileio --file-total-size=10G --file-test-mode=seqwr --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_seqwr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=seqrewr --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_seqrewr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=seqrd --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_seqrd.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrd --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_rndrd.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndwr --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_rndwr.txt
sysbench --test=fileio --file-total-size=10G --file-test-mode=rndrw --num-threads=128 --file-block-size=16384 --init-rng=on --max-time=60 --max-requests=0 run > sysbench_fileio_128_rndrw.txt
sysbench --test=fileio --file-total-size=10G cleanup

Memory処理性能

sysbench --test=memory --num-threads=16 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=read --memory-access-mode=seq run > sysbench_memory_16_read_seq.txt
sysbench --test=memory --num-threads=16 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=read --memory-access-mode=rnd run > sysbench_memory_16_read_rnd.txt
sysbench --test=memory --num-threads=16 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=write --memory-access-mode=seq run > sysbench_memory_16_write_seq.txt
sysbench --test=memory --num-threads=16 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=write --memory-access-mode=rnd run > sysbench_memory_16_write_rnd.txt

sysbench --test=memory --num-threads=128 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=read --memory-access-mode=seq run > sysbench_memory_128_read_seq.txt
sysbench --test=memory --num-threads=128 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=read --memory-access-mode=rnd run > sysbench_memory_128_read_rnd.txt
sysbench --test=memory --num-threads=128 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=write --memory-access-mode=seq run > sysbench_memory_128_write_seq.txt
sysbench --test=memory --num-threads=128 --memory-total-size=100G --memory-block-size=200M --memory-scope=global --memory-hugetlb=off --memory-oper=write --memory-access-mode=rnd run > sysbench_memory_128_write_rnd.txt

スレッド処理性能

sysbench --test=threads --num-threads=16 run
sysbench --test=threads --num-threads=128 run

Mutex処理性能

sysbench --test=mutex --num-threads=16 run
sysbench --test=mutex --num-threads=128 run