From 5b3faae6f26beb2572ebeae7caf8cd7d693bb818 Mon Sep 17 00:00:00 2001 From: SEOKYOUNG KO Date: Thu, 7 Mar 2013 12:31:04 +0100 Subject: [PATCH] Fix rate iops with ramp time When the ramp time is over, fio resets the ->io_issues[] counters, but not the rwmix counters. This causes a problem for mixed read/write workloads that are rate limited and include a ramp time. Fix it by resetting rwmix_issues with the regular issues. Signed-off-by: Jens Axboe --- libfio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfio.c b/libfio.c index ac629dcb..433fee46 100644 --- a/libfio.c +++ b/libfio.c @@ -119,6 +119,7 @@ void reset_all_stats(struct thread_data *td) td->io_issues[i] = 0; td->ts.total_io_u[i] = 0; td->ts.runtime[i] = 0; + td->rwmix_issues = 0; } fio_gettime(&tv, NULL); -- 2.25.1