Add support for zones of random IO, with varying frequency of access
authorJens Axboe <axboe@fb.com>
Fri, 4 Mar 2016 22:29:32 +0000 (15:29 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 4 Mar 2016 22:29:32 +0000 (15:29 -0700)
commite0a04ac15f6164cfceb3e1090cc1055e3c823f7d
treee5192ef672326867995e032415d619df728a0299
parent8116fd24b737c9d878ccb6a4cc13cc4f974dc2dc
Add support for zones of random IO, with varying frequency of access

Let's say you want to ensure that 50% of the IO falls in the first 5%
of the flie, with the remaining 50% over the last 95%. Now that's
possible with random_distribution=zoned. For this particular case,
you would do:

random_distribution=zoned:50/5:50/95

Up to 64 ranges can be specified, and multiple data directions can
be given as well. The above would apply to both reads, writes, and
trims. If you wanted to have 50% of the writes fall in the first
10%, 25% in the next 10%, and the last 25% over the remaining 80%,
you could extend the above ala:

random_distribution=zoned:50/5:50/95,50/10:25/10:25/80

Signed-off-by: Jens Axboe <axboe@fb.com>
HOWTO
cconv.c
examples/rand-zones.fio [new file with mode: 0644]
fio.1
fio.h
init.c
io_u.c
lib/rand.h
options.c
server.h
thread_options.h