All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Elliott, Robert (Servers)" <elliott@hpe.com>
To: 'Arthur Shau' <arthurcshau@gmail.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: RE: Question about rwmixread/rwmixwrite implementation
Date: Fri, 18 Jun 2021 02:31:22 +0000	[thread overview]
Message-ID: <TU4PR8401MB1055D36322B806ABF9C05AF4AB0D9@TU4PR8401MB1055.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CA+_dZJifi4+5GX1D=HELXrNkniVgVMnJgbYX+PMhuZ0s0ZiQFA@mail.gmail.com>



> -----Original Message-----
> From: Arthur Shau <arthurcshau@gmail.com>
> Sent: Thursday, June 17, 2021 8:09 PM
> To: fio@vger.kernel.org
> Subject: Question about rwmixread/rwmixwrite implementation
> 
> 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.
> 
...
> 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!

The HOWTO file sometimes has more information than the manpage, so
that's the first place to check.

To find the applicable source code, run:
    grep rwmix *.[ch]

That shows that the io handling code in io_u.c is where decisions
are made based on that argument, particularly in the rate_ddir() and
get_rw_ddir() functions.


      reply	other threads:[~2021-06-18  2:33 UTC|newest]

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

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=TU4PR8401MB1055D36322B806ABF9C05AF4AB0D9@TU4PR8401MB1055.NAMPRD84.PROD.OUTLOOK.COM \
    --to=elliott@hpe.com \
    --cc=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.