Flexible I/O Tester development
 help / color / mirror / Atom feed
* fio laying out file question
@ 2014-04-16 14:21 Yuyang Wang
  2014-04-16 17:00 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Yuyang Wang @ 2014-04-16 14:21 UTC (permalink / raw)
  To: fio

hi all

I am using fio (2.1.7) for a simple sequential write test (see command
below). It seems the process will get stuck on "Laying out IO file" for a
long long time ...  Of course, smaller size take less time for layout,  I
am curious as to, is FIO trying to precreate the file before doing write,
what's going on there?

./fio --rw=write --size=128g --bs=8m --filename=/test/$RANDOM
--ioengine=posixaio --iodepth=16 --name=mytest

Thanks

Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fio laying out file question
  2014-04-16 14:21 fio laying out file question Yuyang Wang
@ 2014-04-16 17:00 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2014-04-16 17:00 UTC (permalink / raw)
  To: Yuyang Wang, fio

On 04/16/2014 08:21 AM, Yuyang Wang wrote:
> hi all
> 
> I am using fio (2.1.7) for a simple sequential write test (see command
> below). It seems the process will get stuck on "Laying out IO file" for a
> long long time ...  Of course, smaller size take less time for layout,  I
> am curious as to, is FIO trying to precreate the file before doing write,
> what's going on there?
> 
> ./fio --rw=write --size=128g --bs=8m --filename=/test/$RANDOM
> --ioengine=posixaio --iodepth=16 --name=mytest

For a pure write, it wont layout the file completely first. I'm guessing
you are stuck in fallocate - depending on the file system, that will
fill out blocks. You can try and add fallocate=none, that should get rid
of it.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-16 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 14:21 fio laying out file question Yuyang Wang
2014-04-16 17:00 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox