Re: Need help with HTB

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 28 October 2003 21:38, Mihai Tanasescu wrote:
> This is the output I get from tc -s -d class show dev eth0 and eth1:
>
> serv:~# tc -s -d class show dev eth0
>
> class htb 1:99 parent 1:1 leaf 990: prio 7 quantum 2560 rate 20Kbit ceil
> 90Kbit burst 1624b/8 mpu 0b cburst 1714b/8 mpu 0b level 0
>  Sent 4693480 bytes 28021 pkts (dropped 0, overlimits 0)
>  rate 470bps 2pps
>  lended: 26883 borrowed: 1138 giants: 0
>  tokens: 502079 ctokens: 117973
>
> class htb 1:1 root rate 100Kbit ceil 100Kbit burst 1727b/8 mpu 0b cburst
> 1727b/8 mpu 0b level 7
>  Sent 38956319 bytes 489172 pkts (dropped 0, overlimits 0)
>  rate 1771bps 18pps
>  lended: 2994 borrowed: 0 giants: 0
>  tokens: 101376 ctokens: 101376
>
> class htb 1:2 parent 1:1 prio 1 quantum 2560 rate 20Kbit ceil 20Kbit
> burst 1624b/8 mpu 0b cburst 1624b/8 mpu 0b level 0
>  Sent 33941 bytes 221 pkts (dropped 0, overlimits 0)
>  lended: 221 borrowed: 0 giants: 0
>  tokens: 333119 ctokens: 333119
>
> class htb 1:3 parent 1:1 leaf 30: prio 3 quantum 7680 rate 60Kbit ceil
> 90Kbit burst 1675b/8 mpu 0b cburst 1714b/8 mpu 0b level 0
>  Sent 34228898 bytes 460930 pkts (dropped 0, overlimits 0)
>  rate 1362bps 17pps
>  lended: 459074 borrowed: 1856 giants: 0
>  tokens: 163413 ctokens: 111717
>
> serv:~# tc -s -d class show dev eth1
>
>
> class htb 2:99 parent 2:1 leaf 299: prio 5 quantum 3840 rate 30Kbit ceil
> 90Kbit burst 1637b/8 mpu 0b cburst 1714b/8 mpu 0b level 0
>  Sent 109217144 bytes 335470 pkts (dropped 0, overlimits 0)
>  rate 1927bps 13pps
>  lended: 277195 borrowed: 58275 giants: 0
>  tokens: 244309 ctokens: 103297
>
> class htb 2:1 root rate 100Kbit ceil 100Kbit burst 1727b/8 mpu 0b cburst
> 1727b/8 mpu 0b level 7
>  Sent 172060944 bytes 480526 pkts (dropped 0, overlimits 0)
>  rate 2186bps 14pps
>  lended: 68187 borrowed: 0 giants: 0
>  tokens: 96257 ctokens: 96257
>
> class htb 2:2 parent 2:1 prio 1 quantum 8960 rate 70Kbit ceil 90Kbit
> burst 1688b/8 mpu 0b cburst 1714b/8 mpu 0b level 0
>  Sent 62843800 bytes 145056 pkts (dropped 18, overlimits 0)
>  rate 259bps
>  lended: 135144 borrowed: 9912 giants: 0
>  tokens: 150034 ctokens: 118543
I'm afraid it's not so easy to get better results.  You allmost have no 
borrowed packets so none of your classes are over limited. And tokens/ctokens 
is never negative so you have tokens enough to send something.

Stef

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

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux