From d6299558d4e1e720056a10c13794c1016239b3aa Mon Sep 17 00:00:00 2001 From: Ryan Hardin Date: Mon, 18 Oct 2021 16:43:22 -0400 Subject: [PATCH] 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 --- backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1