* Creating random/sequential mix
@ 2012-05-03 18:26 Bill Hooper (whooper)
2012-05-08 6:50 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Bill Hooper (whooper) @ 2012-05-03 18:26 UTC (permalink / raw)
To: fio
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.
Bill
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Creating random/sequential mix
2012-05-03 18:26 Creating random/sequential mix Bill Hooper (whooper)
@ 2012-05-08 6:50 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2012-05-08 6:50 UTC (permalink / raw)
To: Bill Hooper (whooper); +Cc: fio
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-08 6:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 18:26 Creating random/sequential mix Bill Hooper (whooper)
2012-05-08 6:50 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox