All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB dequeueing in pairs fixed
@ 2004-01-31  1:40 Andy Furniss
  2004-01-31 10:03 ` Stef Coene
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andy Furniss @ 2004-01-31  1:40 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
@ 2004-01-31 10:03 ` Stef Coene
  2004-01-31 15:16 ` Artūras Šlajus
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2004-01-31 10:03 UTC (permalink / raw)
  To: lartc

On Saturday 31 January 2004 02:40, Andy Furniss wrote:
> 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

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
  2004-01-31 10:03 ` Stef Coene
@ 2004-01-31 15:16 ` Artūras Šlajus
  2004-01-31 17:00 ` Alexander Clouter
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Artūras Šlajus @ 2004-01-31 15:16 UTC (permalink / raw)
  To: lartc

Stef Coene wrote:
> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
  2004-01-31 10:03 ` Stef Coene
  2004-01-31 15:16 ` Artūras Šlajus
@ 2004-01-31 17:00 ` Alexander Clouter
  2004-01-31 17:44 ` Andy Furniss
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Alexander Clouter @ 2004-01-31 17:00 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

On Jan 31, Art??ras ??lajus wrote:
> Stef Coene wrote:
> >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


-- 
 _________________________________________ 
/ A wise man can see more from the bottom \
| of a well than a fool can from a        |
\ mountain top.                           /
 ----------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
                   ` (2 preceding siblings ...)
  2004-01-31 17:00 ` Alexander Clouter
@ 2004-01-31 17:44 ` Andy Furniss
  2004-02-01  9:26 ` Stef Coene
  2004-02-01 10:21 ` Alexander Clouter
  5 siblings, 0 replies; 7+ messages in thread
From: Andy Furniss @ 2004-01-31 17:44 UTC (permalink / raw)
  To: lartc

Stef Coene wrote:
> On Saturday 31 January 2004 02:40, Andy Furniss wrote:
> 
>>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
> 
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
                   ` (3 preceding siblings ...)
  2004-01-31 17:44 ` Andy Furniss
@ 2004-02-01  9:26 ` Stef Coene
  2004-02-01 10:21 ` Alexander Clouter
  5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2004-02-01  9:26 UTC (permalink / raw)
  To: lartc

On Saturday 31 January 2004 18:00, Alexander Clouter wrote:
> On Jan 31, Art??ras ??lajus wrote:
> > Stef Coene wrote:
> > >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.
I don't know if it's save to change this on the fly.

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] HTB dequeueing in pairs fixed
  2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
                   ` (4 preceding siblings ...)
  2004-02-01  9:26 ` Stef Coene
@ 2004-02-01 10:21 ` Alexander Clouter
  5 siblings, 0 replies; 7+ messages in thread
From: Alexander Clouter @ 2004-02-01 10:21 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]

On Feb 01, Stef Coene wrote:
> On Saturday 31 January 2004 18:00, Alexander Clouter wrote:
> > On Jan 31, Art??ras ??lajus wrote:
> > > Stef Coene wrote:
> > > >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.
> 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

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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-01 10:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-31  1:40 [LARTC] HTB dequeueing in pairs fixed Andy Furniss
2004-01-31 10:03 ` Stef Coene
2004-01-31 15:16 ` Artūras Šlajus
2004-01-31 17:00 ` Alexander Clouter
2004-01-31 17:44 ` Andy Furniss
2004-02-01  9:26 ` Stef Coene
2004-02-01 10:21 ` Alexander Clouter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.