All of lore.kernel.org
 help / color / mirror / Atom feed
* io_size usage
@ 2015-12-09  2:50 Jun He
  2015-12-10  6:56 ` Sitsofe Wheeler
  0 siblings, 1 reply; 3+ messages in thread
From: Jun He @ 2015-12-09  2:50 UTC (permalink / raw)
  To: fio

Hi all,
I think there is a bug for io_size. 

For example, I want to write 16KB data to a file of size 8KB (so each block is
written twice) and I have the following job file:

[global]
ioengine=sync
rw=write
bs=4kb
size=8kb
io_size=32kb

[job1]
write_iolog=iolog.1


After running, iolog.1 will contain the following contents:

fio version 2 iolog
job1.0.0 add
job1.0.0 open
job1.0.0 write 0 4096
job1.0.0 write 4096 4096
job1.0.0 close

This shows that each block has been only written once. 

If I change the ioengine to libaio, iolog.1 will contain:

fio version 2 iolog
job1.0.0 add
job1.0.0 open
job1.0.0 write 0 4096
job1.0.0 write 4096 4096
job1.0.0 close
job1.0.0 open
job1.0.0 write 0 4096
job1.0.0 write 4096 4096
job1.0.0 close
job1.0.0 open
job1.0.0 write 0 4096
job1.0.0 write 4096 4096
job1.0.0 close
job1.0.0 open
job1.0.0 write 0 4096
job1.0.0 write 4096 4096
job1.0.0 close


Bug or wrong usage?

Thanks,
Jun




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

end of thread, other threads:[~2015-12-10 15:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09  2:50 io_size usage Jun He
2015-12-10  6:56 ` Sitsofe Wheeler
2015-12-10 15:14   ` Jun He

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.