Commits
Konstantin Khlebnikov authored and Den Lunev committed 2c3e1d1372b
CFS: Implement bandwidth distribution control The one is based on per-ioprio iotime ratio coefficient (precalculated). Bluntly speaking, the bc iotime flows with different speed, depending on ioprio. BC with lower IO priority sinks faster in queue and gets less bandwidth. Ratio coefficients selected to conform with bandwidth distribution in the previous implementation: ratio = 100./(1+ioprio/7.) ioprio 0 -> ratio 100 -> weight 1 ioprio 7 -> ratio 50 -> weight 2 Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>