* Prevention of full device? [not found] <27943043.31081549.1372778944376.JavaMail.root@framestore.com> @ 2013-07-02 15:34 ` James Vanns 2013-07-03 7:08 ` Jens Axboe 0 siblings, 1 reply; 2+ messages in thread From: James Vanns @ 2013-07-02 15:34 UTC (permalink / raw) To: fio Hi. In attempting to get a single job to create files before allowing further jobs to perform I/O on them, I cannot see how to restrict the sum total of all the files on the device. I wish to create n files ranging in size from i-j with a cap of m in total (so the sum of n does not exceed m). For example; [file-generator] numjobs=1 create_only=1 create_on_open=0 time_based=0 fill_fs=0 fill_device=0 filesize=4k-20m size=512m nrfiles=256 fallocate=posix fadvise_hint=1 filename_format=\$filenum.dat directory=/tmp/fio I'd expect the above to create 256 files ranging from 4k to 20m and a 'du -sh' on /tmp/fio to result in 512m. However, it always seems to fill the device! How can I stop this? Cheers, Jim -- Jim Vanns Senior Software Developer Framestore ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Prevention of full device? 2013-07-02 15:34 ` Prevention of full device? James Vanns @ 2013-07-03 7:08 ` Jens Axboe 0 siblings, 0 replies; 2+ messages in thread From: Jens Axboe @ 2013-07-03 7:08 UTC (permalink / raw) To: James Vanns; +Cc: fio On Tue, Jul 02 2013, James Vanns wrote: > Hi. In attempting to get a single job to create files before allowing further jobs to perform I/O on them, I cannot > see how to restrict the sum total of all the files on the device. I wish to create n files ranging in size from i-j > with a cap of m in total (so the sum of n does not exceed m). For example; > > [file-generator] > numjobs=1 > create_only=1 > create_on_open=0 > time_based=0 > fill_fs=0 > fill_device=0 > filesize=4k-20m > size=512m > nrfiles=256 > fallocate=posix > fadvise_hint=1 > filename_format=\$filenum.dat > directory=/tmp/fio > > I'd expect the above to create 256 files ranging from 4k to 20m and a 'du -sh' on /tmp/fio to result in > 512m. However, it always seems to fill the device! How can I stop this? It might be a little confusing, but it's actually documented behaviour. If you set filesize and nrfiles, that dictates the workload size and not the size= setting. So with the above, you could expect anywhere from 4k * 256 to 20m * 256 of bytes used. For a normal random distribution of sizes, you should see around ~2.5GB of data used. -- Jens Axboe ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-03 7:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <27943043.31081549.1372778944376.JavaMail.root@framestore.com>
2013-07-02 15:34 ` Prevention of full device? James Vanns
2013-07-03 7:08 ` Jens Axboe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox