mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 09:49:50 +00:00
Update cheatsheets
This commit is contained in:
29
sysbench
Normal file
29
sysbench
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sysbench
|
||||
|
||||
> Benchmark a System's CPU, IO and memory.
|
||||
> More information: <https://github.com/akopytov/sysbench/>.
|
||||
|
||||
- Run a CPU benchmark with 1 thread for 10 seconds:
|
||||
|
||||
`sysbench cpu run`
|
||||
|
||||
- Run 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 run`
|
||||
|
||||
- Prepare a filesystem-level read benchmark:
|
||||
|
||||
`sysbench fileio prepare`
|
||||
|
||||
- Run a filesystem-level benchmark:
|
||||
|
||||
`sysbench --file-test-mode={{rndrd|rndrw|rndwr|seqrd|seqrewr|seqwr}} fileio run`
|
||||
Reference in New Issue
Block a user