Skip to content

Instantly share code, notes, and snippets.

@fiftin
Last active October 15, 2018 09:12
Show Gist options
  • Save fiftin/639d6cf743706e1d2b8f001dc3dd4572 to your computer and use it in GitHub Desktop.
Save fiftin/639d6cf743706e1d2b8f001dc3dd4572 to your computer and use it in GitHub Desktop.
Benchmarking Disks
root@scw-985e9d:~# sysbench --test=fileio --num-threads=6 --file-total-size=10G --file-test-mode=rndrw --max-requests=-1 --max-time=300
run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 6
Extra file open flags: 0
128 files, 80Mb each
10Gb total file size
Block size 16Kb
Number of random requests for random IO: -1
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Threads started!
Time limit exceeded, exiting...
(last message repeated 5 times)
Done.
Operations performed: 1064652 Read, 709764 Write, 2271104 Other = 4045520 Total
Read 16.245Gb Written 10.83Gb Total transferred 27.075Gb (92.417Mb/sec)
5914.67 Requests/sec executed
Test execution summary:
total time: 300.0027s
total number of events: 1774416
total time taken by event execution: 612.7635
per-request statistics:
min: 0.00ms
avg: 0.35ms
max: 195.89ms
approx. 95 percentile: 1.02ms
Threads fairness:
events (avg/stddev): 295736.0000/461.85
execution time (avg/stddev): 102.1272/0.12
root@scw-985e9d:~# sysbench --test=fileio --num-threads=6 --file-total-size=10G --file-test-mode=rndrw --max-requests=-1 --max-time=300 run
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 6
Extra file open flags: 0
128 files, 80Mb each
10Gb total file size
Block size 16Kb
Number of random requests for random IO: -1
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Threads started!
Time limit exceeded, exiting...
(last message repeated 5 times)
Done.
Operations performed: 173793 Read, 115859 Write, 370583 Other = 660235 Total
Read 2.6519Gb Written 1.7679Gb Total transferred 4.4197Gb (15.086Mb/sec)
965.49 Requests/sec executed
Test execution summary:
total time: 300.0054s
total number of events: 289652
total time taken by event execution: 104.5925
per-request statistics:
min: 0.01ms
avg: 0.36ms
max: 167.15ms
approx. 95 percentile: 1.11ms
Threads fairness:
events (avg/stddev): 48275.3333/143.98
execution time (avg/stddev): 17.4321/0.09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment