steadystate: delete incorrect comment
authorVincent Fu <vincent.fu@samsung.com>
Tue, 24 May 2022 14:23:24 +0000 (14:23 +0000)
committerJens Axboe <axboe@kernel.dk>
Sat, 28 May 2022 02:37:17 +0000 (20:37 -0600)
Fio actually does not begin collecting steady state data until the
steady state ramp time has expired. Remove the comment that said steady
state data is collected from the start of the job.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220524142229.135808-2-vincent.fu@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
steadystate.c

index 2e3da1db0cfb3de21c068d6b6f3d159f71c592ad..ad19318c2a23f50cda50f6aef7927e4f0adde022 100644 (file)
@@ -250,13 +250,6 @@ int steadystate_check(void)
                rate_time = mtime_since(&ss->prev_time, &now);
                memcpy(&ss->prev_time, &now, sizeof(now));
 
-               /*
-                * Begin monitoring when job starts but don't actually use
-                * data in checking stopping criterion until ss->ramp_time is
-                * over. This ensures that we will have a sane value in
-                * prev_iops/bw the first time through after ss->ramp_time
-                * is done.
-                */
                if (ss->state & FIO_SS_RAMP_OVER) {
                        group_bw += 1000 * (td_bytes - ss->prev_bytes) / rate_time;
                        group_iops += 1000 * (td_iops - ss->prev_iops) / rate_time;