Public | Automated Build

Last pushed: 6 months ago
Short Description
SysBench (Version 1.0)
Full Description

SysBench (Version 1.0)

SysBench is a modular, cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load.

Docker Image

Usage Example

# Run CPU performance test
docker run --rm \
    -v `pwd`:/root/results \
    ljishen/sysbench \
    /root/results/output_cpu.prof \
    --test=cpu \
    --cpu-max-prime=20000 \
    run

# Run Memory functions speed test
docker run --rm \
    -v `pwd`:/root/results \
    ljishen/sysbench \
    /root/results/output_memory.prof \
    --test=memory \
    run

# Run File I/O test
docker run --rm \
    -v `pwd`/workdir:/root/workdir \ 
    ljishen/sysbench \
    /root/results/output_fileio.prof \
    --test=fileio \
    --file-num=64 \
    prepare

docker run --rm \
    -v `pwd`:/root/results \
    -v `pwd`/workdir:/root/workdir \ 
    ljishen/sysbench \
    /root/results/output_fileio.prof \
    --test=fileio \
    --file-num=64 \
    --file-test-mode=seqrewr \
    run

docker run --rm \
    -v `pwd`/workdir:/root/workdir \ 
    ljishen/sysbench \
    /root/results/output_fileio.prof \
    --test=fileio \
    cleanup

rm -r workdir

# Print help message
docker run --rm \
    ljishen/sysbench \
    /root/results/output_help.prof \
    help

Help Options

sysbench 1.0:  multi-threaded system evaluation benchmark

Usage:
  sysbench --test=<test-name> [options]... <command>

Commands: prepare run cleanup help version

General options:
  --num-threads=N             number of threads to use [1]
  --max-requests=N            limit for total number of requests [10000]
  --max-time=N                limit for total execution time in seconds [0]
  --forced-shutdown=STRING    amount of time to wait after --max-time before forcing shutdown [off]
  --thread-stack-size=SIZE    size of stack per thread [64K]
  --tx-rate=N                 target transaction rate (tps) [0]
  --report-interval=N         periodically report intermediate statistics with a specified interval in seconds. 0 disables intermediate reports [0]
  --report-checkpoints=[LIST,...]dump full statistics and reset all counters at specified points in time. The argument is a list of comma-separated values representing the amount of time in seconds elapsed from start of test when report checkpoint(s) must be performed. Report checkpoints are off by default. []
  --test=STRING               test to run
  --debug=[on|off]            print more debugging info [off]
  --validate=[on|off]         perform validation checks where possible [off]
  --help=[on|off]             print help and exit
  --version=[on|off]          print version and exit [off]
  --rand-type=STRING          random numbers distribution {uniform,gaussian,special,pareto} [special]
  --rand-spec-iter=N          number of iterations used for numbers generation [12]
  --rand-spec-pct=N           percentage of values to be treated as 'special' (for special distribution) [1]
  --rand-spec-res=N           percentage of 'special' values to use (for special distribution) [75]
  --rand-seed=N               seed for random number generator, ignored when 0 [0]
  --rand-pareto-h=N           parameter h for pareto distibution [0.2]
  --config-file=FILENAME      File containing command line options

Log options:
  --verbosity=N      verbosity level {5 - debug, 0 - only critical messages} [3]

  --percentile=N      percentile rank of query response times to count. Use the special value of 0 to disable percentile statistics. [95]

General database options:

  --db-driver=STRING  specifies database driver to use ('help' to get list of available drivers)
  --db-ps-mode=STRING prepared statements usage mode {auto, disable} [auto]
  --db-debug=[on|off] print database-specific debug information [off]


Compiled-in database drivers:

Compiled-in tests:
  fileio - File I/O test
  cpu - CPU performance test
  memory - Memory functions speed test
  threads - Threads subsystem performance test
  mutex - Mutex performance test

See 'sysbench --test=<name> help' for a list of options for each test.

Dependencies

See Homepage and Git repository of SysBench for more details.

Docker Pull Command
Owner
ljishen
Source Repository

Comments (0)