From 6bc5cf9cf84af3ba2086bff4141b559708917be7 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Mon, 9 Oct 2017 16:35:51 -0400 Subject: [PATCH] add an filecreate example file to examples/ This adds an example with some documentation on how to use ioengine=filecreate. Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe --- examples/filecreate-ioengine.fio | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/filecreate-ioengine.fio diff --git a/examples/filecreate-ioengine.fio b/examples/filecreate-ioengine.fio new file mode 100644 index 00000000..e1eb06ce --- /dev/null +++ b/examples/filecreate-ioengine.fio @@ -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] -- 2.25.1