Basic fileio regression test.
This commit is contained in:
81
tests/test_fileio.t
Normal file
81
tests/test_fileio.t
Normal file
@ -0,0 +1,81 @@
|
||||
########################################################################
|
||||
fileio tests
|
||||
########################################################################
|
||||
|
||||
$ fileio_args="--test=fileio --file-num=4 --file-total-size=32M"
|
||||
|
||||
$ sysbench $fileio_args prepare
|
||||
sysbench *.*: multi-threaded system evaluation benchmark (glob)
|
||||
|
||||
4 files, 8192Kb each, 32Mb total
|
||||
Creating files for the test...
|
||||
Extra file open flags: 0
|
||||
Creating file test_file.0
|
||||
Creating file test_file.1
|
||||
Creating file test_file.2
|
||||
Creating file test_file.3
|
||||
33554432 bytes written in * seconds (*.* MB/sec). (glob)
|
||||
|
||||
$ ls test_file.*
|
||||
test_file.0
|
||||
test_file.1
|
||||
test_file.2
|
||||
test_file.3
|
||||
$ for i in $(seq 0 3)
|
||||
> do
|
||||
> echo -n "test_file.$i:"
|
||||
> wc -c < test_file.$i
|
||||
> done
|
||||
test_file.0: 8388608
|
||||
test_file.1: 8388608
|
||||
test_file.2: 8388608
|
||||
test_file.3: 8388608
|
||||
|
||||
$ sysbench $fileio_args run | grep FATAL
|
||||
FATAL: Missing required argument: --file-test-mode
|
||||
|
||||
$ sysbench $fileio_args --max-requests=150 --file-test-mode=rndrw 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 r/w test
|
||||
Initializing worker threads...
|
||||
|
||||
Threads started!
|
||||
|
||||
Operations performed: 90 reads, 60 writes, 8 Other = 158 Total
|
||||
Read *.*Mb Written *Kb Total transferred *.*Mb (*.*Mb/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 cleanup
|
||||
sysbench 0.5: multi-threaded system evaluation benchmark
|
||||
|
||||
Removing test files...
|
||||
$ ls
|
||||
Reference in New Issue
Block a user