All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arthur Shau <arthurcshau@gmail.com>
To: fio@vger.kernel.org
Subject: Question about rwmixread/rwmixwrite implementation
Date: Thu, 17 Jun 2021 18:08:47 -0700	[thread overview]
Message-ID: <CA+_dZJifi4+5GX1D=HELXrNkniVgVMnJgbYX+PMhuZ0s0ZiQFA@mail.gmail.com> (raw)

I have a basic question about how the read/write ratio is enforced in
fio. I am new to fio, and I am not well versed enough in C to dig into
the source code myself, so I am asking here.

For I/O in a fixed size region, I am assuming that fio dynamically
throttles the number of requests in each direction as the job runs,
rather than predetermining the number of requests based on total size
and block sizes. Is this correct?

1. If so, how does it do this? Is there some sort of threshold where,
if too much of one type of request is happening, it will limit that
type and only allow the other to be requested? What happens if there
are multiple jobs reading and writing concurrently?

2. Why choose to do it this way rather than predetermining the number
of requests and limiting it that way?

If you could also point me to where this logic is happening in the
source code, that would also be immensely helpful. Thanks so much!


             reply	other threads:[~2021-06-18  1:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18  1:08 Arthur Shau [this message]
2021-06-18  2:31 ` Question about rwmixread/rwmixwrite implementation Elliott, Robert (Servers)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+_dZJifi4+5GX1D=HELXrNkniVgVMnJgbYX+PMhuZ0s0ZiQFA@mail.gmail.com' \
    --to=arthurcshau@gmail.com \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.