fio: steadystate: allow for custom check interval
authorChristian Loehle <cloehle@posteo.de>
Tue, 7 Feb 2023 15:06:16 +0000 (16:06 +0100)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 20 Mar 2023 17:57:09 +0000 (13:57 -0400)
commit90e678ba69ab9bbbfb2136f2d84a7224b72a61cb
tree6accb059f5083458c30c94996c8a569a9b01a3e1
parenta967e54d34afe3bb10cd521d78bcaea2dd8c7cdc
fio: steadystate: allow for custom check interval

Allow for a different steady state check interval than 1s with
a new --ss_interval parameter.

Steady state is reached when the steady state condition (like slope) is
true when comparing the last windows (set with --ss_dur).
The actual values for this comparison is currently calculated for a 1s
interval during the window.
This is especially problematic for slow random devices, where the values do
not converge for such a fine granularity.
Letting the user set this solves this problem, although requires them figuring
out an appropriate value themselves.

--ss=iops:5% --ss_dur=120s should reproduce this for many (slower) devices.
Then adding like --ss_interval=20s may let it converge.

Signed-off-by: Christian Loehle <cloehle@posteo.de>
12 files changed:
HOWTO.rst
STEADYSTATE-TODO
cconv.c
fio.1
helper_thread.c
init.c
options.c
stat.c
steadystate.c
steadystate.h
t/steadystate_tests.py
thread_options.h