Improve rwmix buffered split
authorJens Axboe <jens.axboe@oracle.com>
Fri, 16 Mar 2007 19:27:27 +0000 (20:27 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 16 Mar 2007 19:27:27 +0000 (20:27 +0100)
commitafe24a5a66350a3828e8965f7b189fc95b8bbf6c
tree48a59f0222da0e0d5f1a73556aac79d47469ad13
parentac71feb12023e3fadb793cc30636af1c982ce106
Improve rwmix buffered split

For buffered IO, the rwmix split can often be grossly unfair
towards reads, because dirtying tons of memory is done much
faster than reading data. Improve the split for such workloads
by not only looking at time.

Note that it'll still be somewhat unfair, there's only so much
we can reliably do. But it's better.

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