axboe / fio

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

fio write files in sequence #1196

Open wxgsdy opened 3 years ago

wxgsdy commented 3 years ago

Description of the new feature

Hello fio team, fio has been a really powerful and handy tool since I found this. Appreciate you guys' contribution to this.

I have been playing with --nrfiles, --filesize configuration, and I set my job to be time based. But is seems no matter how I set those parameters, fio is always creating this number of files(nrfiles) at one time with size of filesize for each, and then overwrite them over and over again.

Is there a way we can control fio to write files with unified size(filesize) and create them in sequence and run for a specific time(runtime) instead of overwriting.

I have been reading over the public doc for fio, but not finding any configurations can do this, so I created this feature request for discussion.

Thanks

wxgsdy commented 3 years ago

Also, I tried to remove --nrfiles configurations and leave only --filesize, fio is taking default values as 1 for --nrfiles.

wxgsdy commented 3 years ago

Here is the configuration file I am using for my fio testing:

[global]
loops=1
time_based=1
runtime=180
direct=1
ioengine=libaio
cpus_allowed=0,2,4,6,8,10,12,14
directory={some local directory}
group_reporting

[256k 100%seq 100% write]
rw=write
bs=256K
filesize=1M
numjobs=8
iodepth=4
ramp_time=30
stonewall
dpronin commented 2 years ago

Is the option --create_on_open you are looking for?