From: Steven Noonan Date: Mon, 30 Jan 2012 21:34:04 +0000 (-0800) Subject: fix early termination of runs caused by ramp_time > runtime X-Git-Tag: fio-2.0.2~11 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e4413f05e5fe1ff50e5fa751b818b1f539a33120;ds=sidebyside fix early termination of runs caused by ramp_time > runtime If ramp_time was longer than the runtime, then the run terminated immediately after the ramp_time was exceeded. In order to avoid this, teach runtime_exceeded about ramp_time. Signed-off-by: Steven Noonan Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 77e5572b..7aa55a8f 100644 --- a/fio.c +++ b/fio.c @@ -343,6 +343,8 @@ static int check_min_rate(struct thread_data *td, struct timeval *now, static inline int runtime_exceeded(struct thread_data *td, struct timeval *t) { + if (in_ramp_time(td)) + return 0; if (!td->o.timeout) return 0; if (mtime_since(&td->epoch, t) >= td->o.timeout * 1000)