Skip to contentSkip to conversation

HTB dequeueing in pairs fixed

LARTC Andy Furniss 4 participants 7 messages Jan 31, 2004 – Feb 1, 2004

lore
Share & tools
lore
#0 lore raw

I posted earlier when I noticed that htb was releasing packets in pairs, even though my burst/quantums were 1 pkt.

To fix I set HTB_HYSTERESIS 0 in net/sched/sch_htb.c .

This gives a noticable gain in upstream worst case latency, for me with 256kbit/s up I used to see +90 sometimes, now it's +45. For the many who
have 128 up it should limit them to +90 rather than +180.

Andy.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 8 lines · Andy Furniss

I posted earlier when I noticed that htb was releasing packets in pairs, even though my burst/quantums were 1 pkt.

To fix I set HTB_HYSTERESIS 0 in net/sched/sch_htb.c .

This gives a noticable gain in upstream worst case latency, for me with 256kbit/s up I used to see +90 sometimes, now it's +45. For the many who
have 128 up it should limit them to +90 rather than +180.

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Andy Furniss
Quoted 3 lines · Stef Coene

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Maybe this could be set as kernel option and not by editing .c file in next kernel release?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Andy Furniss
Quoted 10 lines · Art??ras ??lajus
Quoted 4 lines · Stef Coene

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Maybe this could be set as kernel option and not by editing .c file in next kernel
release?

can anyone say sysctl? Might as well add the other variables too if you are adding one.

have fun

Alex

Signature · 10 lines
 _________________________________________ 
/ A wise man can see more from the bottom \
| of a well than a fool can from a        |
\ mountain top.                           /
 ----------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
#4 lore raw
In reply to Andy Furniss
Quoted 11 lines · Stef Coene
Quoted 8 lines · Andy Furniss

I posted earlier when I noticed that htb was releasing packets in pairs, even though my burst/quantums were 1 pkt.

To fix I set HTB_HYSTERESIS 0 in net/sched/sch_htb.c .

This gives a noticable gain in upstream worst case latency, for me with 256kbit/s up I used to see +90 sometimes, now it's +45. For the many who
have 128 up it should limit them to +90 rather than +180.

Quoted 6 lines

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Stef

Yea - I read that a while ago, it's what gave me the idea to try 0, after changing jiffies to CPU didn't help. I doubt with my low bandwidth on a P200 I will notice much difference in load, others may of course.

Andy.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#5 lore raw
In reply to Andy Furniss
Quoted 7 lines · Alexander Clouter
Quoted 6 lines · Art??ras ??lajus
Quoted 4 lines · Stef Coene

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Quoted 6 lines
Quoted 3 lines

Maybe this could be set as kernel option and not by editing .c file in next kernel
release?

can anyone say sysctl? Might as well add the other variables too if you are adding one.

I don't know if it's save to change this on the fly.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#6 lore raw
In reply to Andy Furniss
Quoted 12 lines · Stef Coene
Quoted 11 lines · Alexander Clouter
Quoted 9 lines · Art??ras ??lajus
Quoted 4 lines · Stef Coene

Devik told me that disabling hysteresis will give you more accuracy, but you will loose speed. I had to disable hysteresis when I did some bursts tests.
http://docum.org/stef.coene/qos/faq/cache/36.html

Maybe this could be set as kernel option and not by editing .c file in next kernel
release?

Quoted 6 lines
Quoted 2 lines

can anyone say sysctl? Might as well add the other variables too if you are adding one.

I don't know if it's save to change this on the fly.

Stef

Looking at the source code it simply adds two extra lines (slightly changing a calculation, in the case of HTB_HYSTERESIS). I have downloaded some 'teach-yerself-linux-hacking' about sysctl and probably when I am looking to avoid doing work will have a go :)

Alex

Signature · 8 lines
 _______________________________ 
< The early worm gets the bird. >
 ------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||