snippetbashTip
sysbench — Benchmark a System's CPU, IO, and memory. More information: <https://github.com/akopytov/sysbench#us
Viewed 0 times
commandsysbenchbenchmarkandmemoryclicpusystem
Problem
How to use the
sysbench command: Benchmark a System's CPU, IO, and memory. More information: <https://github.com/akopytov/sysbench#usage>.Solution
sysbench — Benchmark a System's CPU, IO, and memory. More information: <https://github.com/akopytov/sysbench#usage>.Run a CPU benchmark with 1 thread for 10 seconds:
sysbench cpu runRun a CPU benchmark with multiple threads for a specified time:
sysbench --threads={{number_of_threads}} --time={{seconds}}Run a memory benchmark with 1 thread for 10 seconds:
sysbench memory runPrepare a filesystem-level read benchmark:
sysbench fileio prepareRun a filesystem-level benchmark:
sysbench --file-test-mode={{rndrd|rndrw|rndwr|seqrd|seqrewr|seqwr}} fileio runCode Snippets
Run a CPU benchmark with 1 thread for 10 seconds
sysbench cpu runRun a CPU benchmark with multiple threads for a specified time
sysbench --threads={{number_of_threads}} --time={{seconds}}Run a memory benchmark with 1 thread for 10 seconds
sysbench memory runPrepare a filesystem-level read benchmark
sysbench fileio prepareRun a filesystem-level benchmark
sysbench --file-test-mode={{rndrd|rndrw|rndwr|seqrd|seqrewr|seqwr}} fileio runContext
tldr-pages: common/sysbench
Revisions (0)
No revisions yet.