From 8019f14b8f0538adffd8af39e06e5627b9c8773b Mon Sep 17 00:00:00 2001 From: Sitsofe Wheeler Date: Sun, 9 Jul 2017 17:10:42 +0100 Subject: [PATCH] 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 --- doc/fio_examples.rst | 10 ++++++++++ examples/butterfly.fio | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 examples/butterfly.fio 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% -- 2.25.1