fileio Checksum mismatch when running with more than 1 thread

Bug #1414657 reported by Gavin B on 2015-01-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Undecided
Unassigned

Bug Description

Running the man page example but with --validate in addition

                        $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw prepare
                        $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw --validate run

Results in :

 gavin@gbhpcc /home/scratch/tmp $ sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw --validate run
sysbench 0.4.12: multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 16
Additional request validation enabled.

Extra file open flags: 0
128 files, 24Mb each
3Gb total file size
Block size 16Kb
Number of random requests for random IO: 10000
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
Using checksums validation.
Doing random r/w test
Threads started!
FATAL: Checksum mismatch in block:
(last message repeated 1 times)
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 0, block offset 0x60c000, exiting...
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Checksum mismatch in block:
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 10, block offset 0xfc4000, exiting...
FATAL: Checksum mismatch in block:
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 45, block offset 0x548000, exiting...
FATAL: Checksum mismatch in block:
(last message repeated 1 times)
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 23, block offset 0xf10000, exiting...
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Checksum mismatch in block:
FATAL: Validation failed on file 0, block offset 0x0, exiting...
FATAL: Checksum mismatch in block:
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Checksum mismatch in block:
(last message repeated 1 times)
FATAL: Validation failed on file 124, block offset 0x1174000, exiting...
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 6, block offset 0x1458000, exiting...
FATAL: Checksum mismatch in block:
FATAL: Validation failed on file 116, block offset 0x808000, exiting...
FATAL: Validation failed on file 93, block offset 0x81c000, exiting...
FATAL: Checksum mismatch in block:
(last message repeated 1 times)
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 84, block offset 0x1374000, exiting...
FATAL: Checksum mismatch in block:
(last message repeated 1 times)
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Checksum mismatch in block:
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 14, block offset 0x8a4000, exiting...
(last message repeated 1 times)
FATAL: Validation failed on file 23, block offset 0x920000, exiting...
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 110, block offset 0xc8c000, exiting...
FATAL: Checksum mismatch in block:
FATAL: Validation failed on file 13, block offset 0x4c000, exiting...
FATAL: Validation failed on file 59, block offset 0x10a4000, exiting...
FATAL: Calculated value: 0x66337a37 Stored value: 0x0
FATAL: Validation failed on file 17, block offset 0xa28000, exiting...
Done.

Operations performed: 0 Read, 0 Write, 0 Other = 0 Total
Read 0b Written 0b Total transferred 0b (0b/sec)
    0.00 Requests/sec executed

Test execution summary:
    total time: 0.0024s
    total number of events: 16
    total time taken by event execution: 0.0006
    per-request statistics:
         min: 0.01ms
         avg: 0.04ms
         max: 0.31ms
         approx. 95 percentile: 0.04ms

Threads fairness:
    events (avg/stddev): 1.0000/0.00
    execution time (avg/stddev): 0.0000/0.00

Works fine for single threaded IO, but any multi-threaded run fails in this way.

 gavin@gbhpcc /home/scratch/tmp $ sysbench --version
sysbench 0.4.12

Alexey Kopytov (akopytov) wrote :

This is now fixed in the 0.5 branch on Github.

Changed in sysbench:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers