From: Ryan Hardin Date: Mon, 18 Oct 2021 20:43:22 +0000 (-0400) Subject: Use min_bs in rate_process=poisson X-Git-Tag: fio-3.29~52^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d6299558d4e1e720056a10c13794c1016239b3aa;p=fio.git Use min_bs in rate_process=poisson This fixes an issue where IOPS targets were not met when the `bs` parameter was not given explicitly, such as when using `bssplit`. Fixes #1290 Signed-off-by: Ryan Hardin --- diff --git a/backend.c b/backend.c index 2f463293..e2ffec51 100644 --- a/backend.c +++ b/backend.c @@ -836,7 +836,7 @@ static long long usec_for_io(struct thread_data *td, enum fio_ddir ddir) if (td->o.rate_process == RATE_PROCESS_POISSON) { uint64_t val, iops; - iops = bps / td->o.bs[ddir]; + iops = bps / td->o.min_bs[ddir]; val = (int64_t) (1000000 / iops) * -logf(__rand_0_1(&td->poisson_state[ddir])); if (val) {