Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Alexey Talikov <alexey_talikov@texlab.com.uz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB3 big problem
Date: Wed, 14 Aug 2002 12:41:38 +0000	[thread overview]
Message-ID: <marc-lartc-102932897406331@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102932266200713@msgid-missing>

Hello Daniel,
Increase burst value or simple don't set it,
htb calculate it for you.

Wednesday, August 14, 2002, 3:56:29 PM, you wrote:


DS> With the following setup I can get maxim of 4Mbit bandwidth when
DS> downloading to ip dst 10.0.0.1. When I remove the shapers it works at
DS> full 100Mbit.
DS> What could be the problem?


DS> tc -s -d class ls dev eth0

DS> class htb 1:1 root rate 100Mbit ceil 100Mbit burst 2031b/8 mpu 0b cburst
DS> 132644b/8 mpu 0b level 7
DS>  Sent 30473118 bytes 20564 pkts (dropped 0, overlimits 0)
DS>  rate 394194bps 261pps
DS>  lended: 0 borrowed: 0 giants: 0
DS>  tokens: -155 ctokens: 8009

DS> class htb 1:2 parent 1:1 leaf 10: prio 5 quantum 200000 rate 50Mbit ceil
DS> 50Mbit burst 2Kb/8 mpu 0b cburst 67121b/8 mpu 0b level 0
DS>  Sent 30524594 bytes 20598 pkts (dropped 0, overlimits 0)
DS>  rate 395529bps 262pps backlog 34p
DS>  lended: 20564 borrowed: 0 giants: 0
DS>  tokens: -309 ctokens: 7827

DS> class htb 1:3 parent 1:1 leaf 20: prio 5 quantum 1638 rate 128Kbit ceil
DS> 128Kbit burst 2Kb/8 mpu 0b cburst 1762b/8 mpu 0b level 0
DS>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
DS>  lended: 0 borrowed: 0 giants: 0
DS>  tokens: 102400 ctokens: 88149


DS> To kernel-2.4.18 I applied the following patches:
DS> htb3.6_2.4.17.diff
DS> imq-2.4.18.diff-10
DS> iptables-1.2.6a-imq

DS> /sbin/tc qdisc del dev eth0 root
DS> /sbin/tc qdisc add dev eth0 root handle 1: htb default 200
DS> /sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb\
DS>  rate 100Mbit ceil 100Mbit burst 2k prio 5

DS> /sbin/tc filter add dev eth0 parent 1:0 protocol ip\
DS>   prio 5 handle 1: u32 divisor 256

DS> /sbin/tc class add dev eth0 parent 1:1 classid 1:2 htb\
DS>  rate 50Mbit ceil 50Mbit burst 2k prio 5
DS> /sbin/tc qdisc add dev eth0 parent 1:2 handle 10: sfq quantum 1514 perturb 10
DS> /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 5 u32 \
DS>   match ip dst 10.0.0.1 flowid 1:2

DS> /sbin/tc filter add dev eth0 parent 1:0 prio 5\
DS>   handle ::1 u32 ht 800:: match ip nofrag\
DS>   offset mask 0x0F00 shift 6\
DS>   hashkey mask 0x00ff0000 at 8 link 1:


DS> Daniel Sercaianu
DS> Terranet Virtual Media
DS> sdan@terranet.ro
DS> GSM +40 788 837723


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


-----------------------------------
mailto:alexey_talikov@texlab.com.uz
BR
Alexey Talikov
FORTEK
-----------------------------------

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

      reply	other threads:[~2002-08-14 12:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-14 10:56 [LARTC] HTB3 big problem Daniel Sercaianu
2002-08-14 12:41 ` Alexey Talikov [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=marc-lartc-102932897406331@msgid-missing \
    --to=alexey_talikov@texlab.com.uz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox