All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc strange behaviour
@ 2005-12-15 19:21 Alexander Kabanov
  2005-12-15 19:35 ` Andreas Klauer
  2005-12-16  5:52 ` gypsy
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kabanov @ 2005-12-15 19:21 UTC (permalink / raw)
  To: lartc

hi all,

I'm trying to do the following:

tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1mbit
tc class add dev eth0 parent 1:1 classid 1:15 htb rate 512kbit ceil 1mbit

what I expect:
limit outgoing traffic to 1mbit, start rate is 512kbit and let it grow
up to 1mbit
(correct me if i'm wrong here)

so, here is the problem
on different computers I have different behaviour (same kernel configuration)
tried on xeon, p3 and pentium-m (notebook), only on p3 it works as expected.
the only value has effect (on xeon, pentium-m) is the rate in classid
1:15, for example, when I put 128kbit, speed grows up to 1mbit

I tried to test this using lo interface - same problem.

-is there any hardware requirements for tc?
-how to debug such things? (where should I look)

thanks

--alex
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] tc strange behaviour
  2005-12-15 19:21 [LARTC] tc strange behaviour Alexander Kabanov
@ 2005-12-15 19:35 ` Andreas Klauer
  2005-12-16  5:52 ` gypsy
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Klauer @ 2005-12-15 19:35 UTC (permalink / raw)
  To: lartc

On Thursday 15 December 2005 20:21, Alexander Kabanov wrote:
> tc qdisc add dev eth0 root handle 1: htb default 15
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1mbit
> tc class add dev eth0 parent 1:1 classid 1:15 htb rate 512kbit ceil
> 1mbit
>
> what I expect:
> limit outgoing traffic to 1mbit, start rate is 512kbit and let it grow
> up to 1mbit
> (correct me if i'm wrong here)

That would be correct, if there were some sibling classes to 1:15 that 
prevented it from using 1mbit traffic at all times. Right now, there is no 
one who could prevent 1:15 to borrow bandwidth to reach 1mbit, so most 
likely it will just ignore the rate setting and use as much bandwidth as 
it needs, up to 1mbit in total.

Regards,
Andreas Klauer
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] tc strange behaviour
  2005-12-15 19:21 [LARTC] tc strange behaviour Alexander Kabanov
  2005-12-15 19:35 ` Andreas Klauer
@ 2005-12-16  5:52 ` gypsy
  1 sibling, 0 replies; 3+ messages in thread
From: gypsy @ 2005-12-16  5:52 UTC (permalink / raw)
  To: lartc

Alexander Kabanov wrote:
> 
> hi all,
> 
> I'm trying to do the following:
> 
> tc qdisc add dev eth0 root handle 1: htb default 15
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1mbit
> tc class add dev eth0 parent 1:1 classid 1:15 htb rate 512kbit ceil 1mbit
Try                     parent 1:
 
--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-12-16  5:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15 19:21 [LARTC] tc strange behaviour Alexander Kabanov
2005-12-15 19:35 ` Andreas Klauer
2005-12-16  5:52 ` gypsy

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.