From: Sitsofe Wheeler Date: Sun, 9 Jul 2017 16:10:42 +0000 (+0100) Subject: examples: add a butterfly seek job file X-Git-Tag: fio-3.0~27^2~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8019f14b8f0538adffd8af39e06e5627b9c8773b;hp=4dbc7d3b076caf854e69e40e5fee8eb9994e9df3 examples: add a butterfly seek job file Add a job file that approximates doing read at start read at end read at start+1 read at end-1 [...] read at end-1 read at start+1 read at end read at start Signed-off-by: Sitsofe Wheeler --- diff --git a/doc/fio_examples.rst b/doc/fio_examples.rst index ae0ef6f8..cff1f394 100644 --- a/doc/fio_examples.rst +++ b/doc/fio_examples.rst @@ -60,3 +60,13 @@ Fixed rate submission .. literalinclude:: ../examples/fixed-rate-submission.fio :language: ini + +Butterfly seek pattern +----------------------- + +.. only:: builder_html + +:download:`Download butterfly.fio <../examples/butterfly.fio>` + +.. literalinclude:: ../examples/butterfly.fio + :language: ini diff --git a/examples/butterfly.fio b/examples/butterfly.fio new file mode 100644 index 00000000..42d253d5 --- /dev/null +++ b/examples/butterfly.fio @@ -0,0 +1,19 @@ +# Perform a butterfly/funnel seek pattern. This won't always alternate ends on +# every I/O but it will get close. + +[global] +filename=/tmp/testfile +bs=4k +direct=1 + +[forward] +rw=read +flow=2 +# Uncomment the size= and offset= lines to prevent each direction going past +# the middle of the file +#size=50% + +[backward] +rw=read:-8k +flow=-2 +#offset=50%