All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ronaldo Z. Afonso" <ronaldo.afonso@cyclades.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Excess Bandwidth
Date: Thu, 14 Oct 2004 08:14:02 +0000	[thread overview]
Message-ID: <416E354A.9070404@cyclades.com> (raw)
In-Reply-To: <4166FA94.2090208@cyclades.com.br>


    Sorry for my insistence, but I have tried to use different "prios" 
based on the class rate and what happens is that the class that has more 
rate, and in this case more priority, will borrow almost all the excess 
bandwidth.
    Like I said, I have read that htb share its excess bandwidth 
proportionaly to the class rates its childrens are assigned.
    I made a test and based on the statistics of "tc ouput" we can see 
that the class that has more rate "borrowed" less of the excess bandwidth.
    Another question is what is the meaning of "lended" in htb? To me it 
is a little bit confusing.


[root@teste_hsbc htb]# tc -s -d class show dev pvc0
class htb 1:2 root rate 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 
2254b/8 mpu 0b level 7
Sent 7543402 bytes 5031 pkts (dropped 0, overlimits 0)
rate 37748bps 25pps
lended: 2112 borrowed: 0 giants: 0
tokens: 27488 ctokens: 27488

class htb 1:3 parent 1:2 leaf 3: prio 1 quantum 1000 rate 50Kbit ceil 
512Kbit burst 1664b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2068254 bytes 1377 pkts (dropped 2988, overlimits 0)
rate 11268bps 7pps
lended: 493 borrowed: 884 giants: 0
tokens: -326656 ctokens: 9488

class htb 1:4 parent 1:2 leaf 4: prio 1 quantum 1280 rate 100Kbit ceil 
512Kbit burst 1728b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2588080 bytes 1728 pkts (dropped 2644, overlimits 0)
rate 11335bps 7pps
lended: 980 borrowed: 748 giants: 0
tokens: 73728 ctokens: 20988

class htb 1:5 parent 1:2 leaf 5: prio 1 quantum 1920 rate 150Kbit ceil 
512Kbit burst 1791b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2887068 bytes 1926 pkts (dropped 2447, overlimits 0)
rate 11696bps 7pps
lended: 1446 borrowed: 480 giants: 0
tokens: 74070 ctokens: 27488

Daniel Frederiksen wrote:

>Hej Ronaldo
>
>Remember to prioritize the excess bandwidth. If you are using the HTB
>read the bottom section of the manual.:
>http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#prio
>
>The "prio" parameter will help you with your problem, give the child
>classes a priority from 1-3, where 1 is the highest priority and 3 is
>the lowest.
>
>On Fri, 2004-10-08 at 22:37, Ronaldo Z. Afonso wrote:
>  
>
>>   Hi,
>>
>>   I'm trying to configure QoS on my linux in the following manner:
>>   I have a main link with 64K, so I divided it in 3 classes of 18K, 14K 
>>and 9K with an excess (not used for classified traffic, just to be 
>>shared) of 23K. This excess should be distributed proportonally among 
>>the 3 classes,  that is, the class that has more rate should borrow more 
>>bandwidth. What is happening is just the opposite, the class that has 
>>less rate is borrowing more bandwidth. A representation of my 
>>"hierarchical class layout" is as follow:
>>
>>                              root - 64K
>>
>>         A - 18K           B - 14K            C - 9K
>>
>>   I have read some documentation that says it should work exactly in 
>>this in way, but it is not happening in my environment. All the tests I 
>>did show me that the class with less rate is borrow more bandwidth.
>>   Can anyone help me?
>>    
>>
>
>_______________________________________________
>LARTC mailing list / LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>  
>


-- 
______________________________
Ronaldo Z. Afonso
Projetista de Software Jr.
Cyclades Brasil
ronaldo.afonso@cyclades.com.br

Phone: 55 11 5033-3361
Fax: 55 11 5033-3388
www.cyclades.com.br
"Everywhere with Linux"

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

      parent reply	other threads:[~2004-10-14  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-08 20:37 [LARTC] Excess Bandwidth Ronaldo Z. Afonso
2004-10-09  1:45 ` Daniel Frederiksen
2004-10-14  8:14 ` Ronaldo Z. Afonso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=416E354A.9070404@cyclades.com \
    --to=ronaldo.afonso@cyclades.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.