diff options
author | Corrado Zoccolo <czoccolo@gmail.com> | 2009-10-26 22:44:04 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-10-28 09:23:26 +0100 |
commit | 5db5d64277bf390056b1a87d0bb288c8b8553f96 (patch) | |
tree | eced8cdeae49e6920bbb9ae18b33ed7001332233 /crypto/seed.c | |
parent | 1a1238a7dd48e48b3bba8f426a1d61c22c80d6d1 (diff) |
cfq-iosched: adapt slice to number of processes doing I/O
When the number of processes performing I/O concurrently increases,
a fixed time slice per process will cause large latencies.
This patch, if low_latency mode is enabled, will scale the time slice
assigned to each process according to a 300ms target latency.
In order to keep fairness among processes:
* The number of active processes is computed using a special form of
running average, that quickly follows sudden increases (to keep latency low),
and decrease slowly (to have fairness in spite of rapid decreases of this
value).
To safeguard sequential bandwidth, we impose a minimum time slice
(computed using 2*cfq_slice_idle as base, adjusted according to priority
and async-ness).
Signed-off-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'crypto/seed.c')
0 files changed, 0 insertions, 0 deletions