From: Jens Axboe Date: Thu, 1 Sep 2011 15:58:11 +0000 (-0600) Subject: Use r/R/w/W instead of m/M for mixed workloads with 100% reads or writes X-Git-Tag: fio-1.58~10 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e3b3f81eca16ed5db01e81ff6ae697f5c8f9f6cf Use r/R/w/W instead of m/M for mixed workloads with 100% reads or writes Signed-off-by: Jens Axboe --- diff --git a/eta.c b/eta.c index e1cced46..d93bf1a1 100644 --- a/eta.c +++ b/eta.c @@ -28,10 +28,21 @@ static void check_str_update(struct thread_data *td) break; case TD_RUNNING: if (td_rw(td)) { - if (td_random(td)) - c = 'm'; - else - c = 'M'; + if (td_random(td)) { + if (td->o.rwmix[DDIR_READ] == 100) + c = 'r'; + else if (td->o.rwmix[DDIR_WRITE] == 100) + c = 'w'; + else + c = 'm'; + } else { + if (td->o.rwmix[DDIR_READ] == 100) + c = 'R'; + else if (td->o.rwmix[DDIR_WRITE] == 100) + c = 'W'; + else + c = 'M'; + } } else if (td_read(td)) { if (td_random(td)) c = 'r';