Add support for 'bssplit' option, fine grained block size contrl
authorJens Axboe <jens.axboe@oracle.com>
Fri, 14 Dec 2007 11:21:19 +0000 (12:21 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 14 Dec 2007 11:21:19 +0000 (12:21 +0100)
commit564ca97254984165e06d5fd4b1270bac95ca55fb
tree557d7f9dea4e469258d091c79782c9f30d7f0a46
parent757aff4f5cdf8bc1e0720c01564838aed968c1db
Add support for 'bssplit' option, fine grained block size contrl

From the HOWTO addition:

bssplit=str Sometimes you want even finer grained control of the
block sizes issued, not just an even split between them.
This option allows you to weight various block sizes,
so that you are able to define a specific amount of
block sizes issued. The format for this option is:

bssplit=blocksize/percentage:blocksize/percentage

for as many block sizes as needed. So if you want to define
a workload that has 50% 64k blocks, 10% 4k blocks, and
40% 32k blocks, you would write:

bssplit=4k/10:64k/50:32k/40

Ordering does not matter. If the percentage is left blank,
fio will fill in the remaining values evenly. So a bssplit
option like this one:

bssplit=4k/50:1k/:32k/

would have 50% 4k ios, and 25% 1k and 32k ios. The percentages
always add up to 100, if bssplit is given a range that adds
up to more, it will error out.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
HOWTO
fio.h
io_u.c
options.c
parse.c
parse.h