From: SEOKYOUNG KO Date: Thu, 7 Mar 2013 11:31:04 +0000 (+0100) Subject: Fix rate iops with ramp time X-Git-Tag: fio-2.0.15~41 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5b3faae6f26beb2572ebeae7caf8cd7d693bb818;hp=111e032d60f2341cfe09accbfcf25ec81b9251e0 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 --- 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);