From e766de86a865c4790891dba4ea879bb840e39bce Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Wed, 7 Sep 2016 20:09:47 +0300 Subject: [PATCH] More fileio regression tests. --- tests/t/test_fileio.t | 126 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/tests/t/test_fileio.t b/tests/t/test_fileio.t index b8cc164..955046c 100644 --- a/tests/t/test_fileio.t +++ b/tests/t/test_fileio.t @@ -74,6 +74,132 @@ fileio tests events (avg/stddev): 150.0000/0.00 execution time (avg/stddev): *.*/0.00 (glob) + $ sysbench $fileio_args --max-requests=150 --file-test-mode=rndrd run + sysbench *.*: multi-threaded system evaluation benchmark (glob) + + Running the test with following options: + Number of threads: 1 + Random number generator seed is 0 and will be ignored + + + Extra file open flags: 0 + 4 files, 8Mb each + 32Mb total file size + Block size 16Kb + Number of IO requests: 150 + 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 read test + Initializing worker threads... + + Threads started! + + Operations performed: 150 reads, 0 writes, 0 Other = 150 Total + Read *.*b Written 0b Total transferred *.*b (*.*b/sec) (glob) + *.* Requests/sec executed (glob) + + General statistics: + total time: *.*s (glob) + total number of events: 150 + total time taken by event execution: *.*s (glob) + response time: + min: *.*ms (glob) + avg: *.*ms (glob) + max: *.*ms (glob) + approx. 95 percentile: *.*ms (glob) + + Threads fairness: + events (avg/stddev): 150.0000/0.00 + execution time (avg/stddev): *.*/0.00 (glob) + + + $ sysbench $fileio_args --max-requests=150 --file-test-mode=seqrd run + sysbench *.*: multi-threaded system evaluation benchmark (glob) + + Running the test with following options: + Number of threads: 1 + Random number generator seed is 0 and will be ignored + + + Extra file open flags: 0 + 4 files, 8Mb each + 32Mb total file size + Block size 16Kb + Periodic FSYNC enabled, calling fsync() each 100 requests. + Calling fsync() at the end of test, Enabled. + Using synchronous I/O mode + Doing sequential read test + Initializing worker threads... + + Threads started! + + Operations performed: 150 reads, 0 writes, 0 Other = 150 Total + Read *.*b Written 0b Total transferred *.*b (*.*b/sec) (glob) + *.* Requests/sec executed (glob) + + General statistics: + total time: *.*s (glob) + total number of events: 150 + total time taken by event execution: *.*s (glob) + response time: + min: *.*ms (glob) + avg: *.*ms (glob) + max: *.*ms (glob) + approx. 95 percentile: *.*ms (glob) + + Threads fairness: + events (avg/stddev): 150.0000/0.00 + execution time (avg/stddev): *.*/0.00 (glob) + + + $ sysbench $fileio_args --max-requests=150 --file-test-mode=rndwr run + sysbench *.*: multi-threaded system evaluation benchmark (glob) + + Running the test with following options: + Number of threads: 1 + Random number generator seed is 0 and will be ignored + + + Extra file open flags: 0 + 4 files, 8Mb each + 32Mb total file size + Block size 16Kb + Number of IO requests: 150 + 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 write test + Initializing worker threads... + + Threads started! + + Operations performed: 0 reads, 150 writes, 8 Other = 158 Total + Read 0b Written *.*b Total transferred *.*b (*.*b/sec) (glob) + *.* Requests/sec executed (glob) + + General statistics: + total time: *.*s (glob) + total number of events: 150 + total time taken by event execution: *.*s (glob) + response time: + min: *.*ms (glob) + avg: *.*ms (glob) + max: *.*ms (glob) + approx. 95 percentile: *.*ms (glob) + + Threads fairness: + events (avg/stddev): 150.0000/0.00 + execution time (avg/stddev): *.*/0.00 (glob) + + + $ sysbench $fileio_args --max-requests=150 --file-test-mode=foo run + sysbench *.*: multi-threaded system evaluation benchmark (glob) + + FATAL: Invalid IO operations mode: foo. + [1] $ sysbench $fileio_args cleanup sysbench *.*: multi-threaded system evaluation benchmark (glob)