axboe / fio

Flexible I/O Tester
GNU General Public License v2.0
5.21k stars 1.26k forks source link

When using fio to perform read and verify data with the time_based option enabled, fio exits after the first verification is completed. #1664

Open Michael-Duan1 opened 11 months ago

Michael-Duan1 commented 11 months ago

Please acknowledge the following before creating a ticket

Description of the bug:

When using fio to perform read and verify data with the time_based option enabled, fio exits after the first verification is completed. Because “ddir_rw_sum(td->bytes_done)“ all is Zero。 image

Environment: Linux fio version: fio-3.36 Reproduction steps

sudo ./fio --ioengine=libaio --bs=128k --rw=write --verify=crc32c --filename=/dev/sda --name=test --size=1g sudo ./fio --ioengine=libaio --bs=128k --time_based --rw=read --verify=crc32c --filename=/dev/sda --runtime=10 --test --size=1g

vincentkfu commented 11 months ago

This seems to only occur with async ioengines. I get the full 10s with --ioengine=psync.