Skip to contentSkip to conversation

The relation about size/filesize/nrfiles

DISCUSSION majianpeng 2 participants 2 messages Jan 10, 2013

lore
Share & tools
lore

majianpeng

author
#0 lore raw

Hi all,
I wanted to test some files.But i wanted to use size rather than nrfiles.The job file is:
[global]
rw=write
directory=/media
bs=64k
size=500M

[j1]
filesize=256k

But fio only created one file.If i used nrfiles,the size is ignored. So how to write which can do what i wanted?

Jianpeng
Thanks!

#1 lore raw
Quoted 8 lines · majianpeng

Hi all,
I wanted to test some files.But i wanted to use size rather than nrfiles.The job file is:
[global]
rw=write
directory=/media
bs=64k
size=500M

Quoted 5 lines

[j1]
filesize=256k

But fio only created one file.If i used nrfiles,the size is ignored. So how to write which can do what i wanted?

If you just set size= and nrfiles=, then the file size will set according to that. By default, each file will be size / nrfiles. You can influence that with filesize=low:high.

The above wont work, fio will not calculate the number of files needed to satisfy that job file (it could though, I'll take a patch!).

Signature · 1 line
Jens Axboe