Skip to content

Instantly share code, notes, and snippets.

@ixiaohei
Last active September 25, 2018 05:58
Show Gist options
  • Save ixiaohei/765a47df94e636d76d332e7aa6bc4586 to your computer and use it in GitHub Desktop.
Save ixiaohei/765a47df94e636d76d332e7aa6bc4586 to your computer and use it in GitHub Desktop.
sysbench usage

Syntax

sysbench [options]... [testname] [command] 

testname

  1. fileio
  2. cpu
  3. memory
  4. threads
  5. mutex

command

  1. prepare
  2. run
  3. cleanup
  4. help

example

fileio

sysbench fileio --file-total-size=128G prepare

sysbench fileio --file-total-size=128G --file-test-mode=rndrw --max-time=300 --max-requests=0 run

sysbench fileio --file-total-size=128G cleanup

cpu

sysbench cpu --cpu-max-prime=20000 --threads=2 run

threads

sysbench threads --thread-locks=1 run

mutex

sysbench mutex --threads=64 run

memory

sysbench memory --threads=4 run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment