From: Jens Axboe <axboe@kernel.dk>
To: "Bill Hooper (whooper)" <whooper@micron.com>
Cc: fio <fio@vger.kernel.org>
Subject: Re: Creating random/sequential mix
Date: Tue, 08 May 2012 08:50:32 +0200 [thread overview]
Message-ID: <4FA8C238.2020408@kernel.dk> (raw)
In-Reply-To: <8C39003C166535489D52AF2C9D8C58BC1A32FFED@NTXBOIMBX04.micron.com>
On 05/03/2012 08:26 PM, Bill Hooper (whooper) wrote:
> I have a request to collect data with a 75%/25% random/sequential mix.
> I am having a difficult time figuring out how to get fio to do this.
> Any suggestions would be appreciated.
That's a good question. There's really no easy way to do that. For
random IO, you can do a number of sequential blocks for each random
offset generated. But that doesn't give you very fine control of the
percentages. For sequential IO, you can skip X bytes for every
sequential block read/written. That's really the flexibility that fio
has now.
Outside of that, you could perhaps use the flow option to have two
synchronized jobs with the given weights. But that would throttle one of
them, so not ideal if you just want a 75/25 random/sequential running at
full speed.
I don't think your situation is unique, it would be nice to be able to
support a mixed workload like that. One thing I've wanted before (but
never implemented) is somewhat related - the option to specify the size
of the hot part of the data set. For instance, operate on the full
device, but consider region X or size X the hot part which we'll read
repeatedly. Would be useful for testing caching.
Let me think about how we can best do what you want, and I'll get back
to you.
--
Jens Axboe
prev parent reply other threads:[~2012-05-08 6:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-03 18:26 Creating random/sequential mix Bill Hooper (whooper)
2012-05-08 6:50 ` Jens Axboe [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=4FA8C238.2020408@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=whooper@micron.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox