From fbf6ded29166208c0be3dcd13e8d0247fdbcea5b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 31 Oct 2017 08:55:02 -0600 Subject: [PATCH 1/1] init: make sure that compression enables refill buffers Otherwise the results aren't going to be great. Signed-off-by: Jens Axboe --- init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.c b/init.c index e80aec30..736c6ff8 100644 --- a/init.c +++ b/init.c @@ -855,8 +855,10 @@ static int fixup_options(struct thread_data *td) if (o->compress_percentage == 100) { o->zero_buffers = 1; o->compress_percentage = 0; - } else if (!fio_option_is_set(o, refill_buffers)) + } else if (!fio_option_is_set(o, refill_buffers)) { o->refill_buffers = 1; + td->flags |= TD_F_REFILL_BUFFERS; + } } /* -- 2.25.1