sysbench-developers team mailing list archive
-
sysbench-developers team
-
Mailing list archive
-
Message #00115
[Question #272772]: File-io test fails with errno = 0
New question #272772 on sysbench:
https://answers.launchpad.net/sysbench/+question/272772
I created a shell script to test file-io as,
--------------------------------------------------------------------------------------------------------------------------------------------------
# declare array for variables
noOfThread=(1 2 4 8 16 32 64 128 256) # no. of threads
blockSize=("4K" "16K" "64K" "256K" "512K" "1024K") #blocksize in KB
fileIOMode=("sync" "async" "mmap") #file io mode
fileTestMode=("seqwr" "rndrw")
len_noOfThread=${#noOfThread[@]}
len_blockSize=${#blockSize[@]}
len_fileIOMode=${#fileIOMode[@]}
len_fileTestMode=${#fileTestMode[@]}
# create files for io benchmark
sysbench --test=fileio --file-total-size=500GB prepare
# run tests with random read/write
for noT in `seq 1 $len_noOfThread`
do
for blkSZ in `seq 1 $len_blockSize`
do
for fIOMode in `seq 1 $len_fileIOMode`
do
for fTestMode in `seq 1 $len_fileTestMode`
do
sysbench --num-threads=${noOfThread[$noT-1]} --file-block-size=${blockSize[$blkSZ-1]} --file-io-mode=${fileIOMode[$fIOMode-1]} --test=fileio --file-total-size=500G --file-test-mode=${fileTestMode[$fTestMode-1]} --max-time=300 --max-requests=0 run > output_${fileTestMode[$fTestMode-1]}_${fileIOMode[$fIOMode-1]}_io_${noOfThread[$noT-1]}_${blockSize[$blkSZ-1]}K.txt
sleep 10
done
done
done
done
# clean up generated input files
#sysbench --test=fileio --file-total-size=500G cleanup
------------------------------------------------------------------------------------------------------------------------------------------------
When I started the I see in failure in first loop as "1thread - 4K block size - async mode - rndrw mode" as
sysbench 0.4.13: multi-threaded system evaluation benchmark
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
128 files, 3.9062Gb each
500Gb total file size
Block size 4Kb
Number of random requests for random IO: 0
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 asynchronous I/O mode
Doing random r/w test
Threads started!
FATAL: Asynchronous read failed!
FATAL: Failed to read file! file: 111 pos: 3159269376 errno = 0 (häu^O)
One more thing is for every run I need to prepare the data otherwise I see less data after every run.
Please suggest If I am missing something or is it a bug?
I am using sysbench 0.4.13 version on opensuse 11.3
--
You received this question notification because your team sysbench-
developers is an answer contact for sysbench.