Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] htb, class, prio
@ 2002-05-14  9:38 Catalin BOIE
  2002-05-14  9:47 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Catalin BOIE @ 2002-05-14  9:38 UTC (permalink / raw)
  To: lartc

Hello!

Seems that whatever I set for prio for a htb class it is always set to 3.
Example script:

ifconfig dummy1 up
ifconfig dummy1 200.200.200.200 netmask 255.255.255.248

tc qdisc del dev dummy1 root

tc qdisc add dev dummy1 root handle 2: htb

tc class add dev dummy1 parent 2: classid 2:1 \
        htb prio 7 rate 1000bps ceil 2000bps
               ^^^^^

Dump:
# tc -s -d -r class show dev dummy1
class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b
                      ^^^^^
cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer [000a2000]
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0 injects: 0
 tokens: 1318912 ctokens: 663552


Thanks!

---
Catalin(ux) BOIE
catab@deuroconsult.ro
openh323://dino.rdsbv.ro

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

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

* Re: [LARTC] htb, class, prio
  2002-05-14  9:38 [LARTC] htb, class, prio Catalin BOIE
@ 2002-05-14  9:47 ` Stef Coene
  2002-05-14 12:09 ` Martin Devera
  2002-11-07 14:31 ` Martin Devera
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-05-14  9:47 UTC (permalink / raw)
  To: lartc

On Tuesday 14 May 2002 11:38, Catalin BOIE wrote:
> Hello!
>
> Seems that whatever I set for prio for a htb class it is always set to 3.
Prio is a number between 0 and 3.  Prio's > 3 are set to 3.

Stef

> Example script:
>
> ifconfig dummy1 up
> ifconfig dummy1 200.200.200.200 netmask 255.255.255.248
>
> tc qdisc del dev dummy1 root
>
> tc qdisc add dev dummy1 root handle 2: htb
>
> tc class add dev dummy1 parent 2: classid 2:1 \
>         htb prio 7 rate 1000bps ceil 2000bps
>                ^^^^^
>
> Dump:
> # tc -s -d -r class show dev dummy1
> class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b
>                       ^^^^^
> cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer
> [000a2000] Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0 injects: 0
>  tokens: 1318912 ctokens: 663552
>
>
> Thanks!
>
> ---
> Catalin(ux) BOIE
> catab@deuroconsult.ro
> openh323://dino.rdsbv.ro
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

-- 

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] 4+ messages in thread

* Re: [LARTC] htb, class, prio
  2002-05-14  9:38 [LARTC] htb, class, prio Catalin BOIE
  2002-05-14  9:47 ` Stef Coene
@ 2002-05-14 12:09 ` Martin Devera
  2002-11-07 14:31 ` Martin Devera
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Devera @ 2002-05-14 12:09 UTC (permalink / raw)
  To: lartc

In the latest HTB the prio number can be increased
to 8 or more without sacrifying performance.
Probably I will make both depth & prios 8 in default
configuration ..
devik

On Tue, 14 May 2002, Stef Coene wrote:

> On Tuesday 14 May 2002 11:38, Catalin BOIE wrote:
> > Hello!
> >
> > Seems that whatever I set for prio for a htb class it is always set to 3.
> Prio is a number between 0 and 3.  Prio's > 3 are set to 3.
>
> Stef
>
> > Example script:
> >
> > ifconfig dummy1 up
> > ifconfig dummy1 200.200.200.200 netmask 255.255.255.248
> >
> > tc qdisc del dev dummy1 root
> >
> > tc qdisc add dev dummy1 root handle 2: htb
> >
> > tc class add dev dummy1 parent 2: classid 2:1 \
> >         htb prio 7 rate 1000bps ceil 2000bps
> >                ^^^^^
> >
> > Dump:
> > # tc -s -d -r class show dev dummy1
> > class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b
> >                       ^^^^^
> > cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer
> > [000a2000] Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> >  lended: 0 borrowed: 0 giants: 0 injects: 0
> >  tokens: 1318912 ctokens: 663552
> >
> >
> > Thanks!
> >
> > ---
> > Catalin(ux) BOIE
> > catab@deuroconsult.ro
> > openh323://dino.rdsbv.ro
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> --
>
> 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/
>
>

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

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

* Re: [LARTC] htb, class, prio
  2002-05-14  9:38 [LARTC] htb, class, prio Catalin BOIE
  2002-05-14  9:47 ` Stef Coene
  2002-05-14 12:09 ` Martin Devera
@ 2002-11-07 14:31 ` Martin Devera
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Devera @ 2002-11-07 14:31 UTC (permalink / raw)
  To: lartc

You can use up to 32 prios (bitmask limitation). But
delay and cpu load increases with prio
count as it is searched linerly often.
devik

On Thu, 7 Nov 2002, Kurt Wagner wrote:

> Hi Martin,
>
> On Tue, 14 May 2002, Martin Devera wrote:
> > In the latest HTB the prio number can be increased
> > to 8 or more without sacrifying performance.
>
> Hmm, any easy way to change this to more than 8 priorities? I have kind of
> a obscure setup here, and would need about 20 prios.
>
> Performace problems should only occur if the 20 bands are active at the
> same time, right (I think you talk about latency issues, not
> implementation limitations?)? Would not be the case in my setup.
>
>
> regards,
> Kurt
>
>
>

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

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

end of thread, other threads:[~2002-11-07 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-14  9:38 [LARTC] htb, class, prio Catalin BOIE
2002-05-14  9:47 ` Stef Coene
2002-05-14 12:09 ` Martin Devera
2002-11-07 14:31 ` Martin Devera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox