add an filecreate example file to examples/
PATCH 1/1 add an filecreate example file to examples/
From: Josef Bacik <[email protected]>
This adds an example with some documentation on how to use ioengine=filecreate.
Signed-off-by Josef Bacik <[email protected]>
--- examples/filecreate-ioengine.fio | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/filecreate-ioengine.fio
examples/filecreate-ioengine.fio new file +36 -0
@@ -0,0 +1,36 @@ +# Example filecreate job +# +# create_on_open is needed so that the open happens during the run and not the +# setup. +# +# openfiles needs to be set so that you do not exceed the maximum allowed open +# files. +# +# filesize needs to be set to a non zero value so fio will actually run, but the +# IO will not really be done and the write latency numbers will only reflect the +# open times. +[global] +create_on_open=1 +nrfiles=31250 +readwrite=write +ioengine=filecreate +fallocate=none +filesize=4k +openfiles=1 + +[t0] +[t1] +[t2] +[t3] +[t4] +[t5] +[t6] +[t7] +[t8] +[t9] +[t10] +[t11] +[t12] +[t13] +[t14] +[t15]
Signature · 1 line
2.7.4
Quoted 4 lines · Josef Bacik
From: Josef Bacik <[email protected]>
This adds an example with some documentation on how to use ioengine=filecreate.
Applied, but killed the readwrite= line. We have to ensure that the engine and job both use reads, otherwise the stats might not display correctly (as zeroes). Might be an idea to fix this up in an ->init() hook for the engine, to make it more resilient.
Signature · 1 line
Jens Axboe