[LARTC] new perflow rate control queue

Wang Jian lark at linux.net.cn
Mon Apr 4 17:57:16 CEST 2005


Hi Andy Furniss,


On Mon, 04 Apr 2005 16:23:30 +0100, Andy Furniss <andy.furniss at dsl.pipex.com> wrote:

> 
> > 
> > Because this per-flow queue is new, you can add things useful to it.
> 
> It does look good :-) I'll test when I get time.
> 

The attached is the latest. The last one doesn't sync time: queue has a
variable time slot length; every flow has it own ticks.

This new patch against 2.6.11 sync queue and flows' time. Every new flow
has it jiffies set to q->jiffies and use that as start. As q->jiffies
and flow->jiffies increament in HZ step, time is synced. This will
improved accuracy.

But HZ is too long for token calculation. Sometimes, one of flow borrows
too much and get no enough penalty, so another flow hurts. But anyway,
per flow queue provides better fairness in my test, either in
short time period or long time period.

Looking forward to your feedback :)


-- 
  lark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-2.6.11-perflow-r3.diff
Type: application/octet-stream
Size: 15639 bytes
Desc: not available
Url : http://mailman.ds9a.nl/pipermail/lartc/attachments/20050404/6ca45f16/linux-2.6.11-perflow-r3.obj


More information about the LARTC mailing list