axboe / fio

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

open zones in a read only job #1774

Closed pppcn closed 3 weeks ago

pppcn commented 3 weeks ago

Please acknowledge the following before creating a ticket

Description of the bug: FIO will open zones even if it's a read-only job. This means that I can't run a read-only job multiple times without manually closing some open zones, as the number of open zones will exceed the maximum limit.

Environment: centos 7.9 with kernel 6.9.3

fio version: version 3.36

Reproduction steps Execute the command multiple times: DUT=/to/your/zns/drive sudo fio zns_read.fio

Here is the script in the file zns_read.fio [global] filename=${DUT} ioengine=psync direct=1 ba=4k norandommap randrepeat=0 continue_on_error=none zonemode=zbd zonesize=1m max_open_zones=16 job_max_open_zones=1 read_beyond_wp=1

[RandomRead] numjobs=16 bs=1m rw=read iodepth=1 runtime=10m ramp_time=30 loops=1 offset=0z offset_increment=1z