Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jun 5, 2018

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit c397ab3aac3d4ed1660d9cd4d820f31a4375306e:

Fio 3.7 (2018-06-01 13:21:56 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 182cab24328ab22a5b76ba1edac2c801b83aeffb:

Fix issue with rate_process=poisson and ramp time (2018-06-04 13:51:47 -0600)

----------------------------------------------------------------
Jens Axboe (1):
Fix issue with rate_process=poisson and ramp time

 backend.c | 2 ++
 libfio.c  | 1 +
 2 files changed, 3 insertions(+)

---

Diff of recent changes:

backend.c +2 -0
index 033d5a7..180348f 100644
@@ -892,6 +892,8 @@ static void handle_thinktime(struct thread_data *td, enum fio_ddir ddir)
 			over = (usperop - total) / usperop * -bs;
 
 		td->rate_io_issue_bytes[ddir] += (missed - over);
+		/* adjust for rate_process=poisson */
+		td->last_usec[ddir] += total;
 	}
 }
 
libfio.c +1 -0
index 6faf32a..674bc1d 100644
@@ -92,6 +92,7 @@ static void reset_io_counters(struct thread_data *td, int all)
 			td->bytes_done[ddir] = 0;
 			td->rate_io_issue_bytes[ddir] = 0;
 			td->rate_next_io_time[ddir] = 0;
+			td->last_usec[ddir] = 0;
 		}
 	}