All of lore.kernel.org
 help / color / mirror / Atom feed
From: devik <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB doesn't respect rate values
Date: Sun, 06 Jul 2003 08:43:17 +0000	[thread overview]
Message-ID: <marc-lartc-105748117307925@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105738977131234@msgid-missing>

Interestingly from what I see HTB didn't come into play.
All drop and overlimits counters are zero. It seems that
www server haven't managed to send more.
Please try to add pfifo with limit 10 under both classes.
Because you are sending from the same computer, your
TCP stack uses send queue management which counts packets
in qdisc and backs off. It MIGHT cause problems ...

-------------------------------
    Martin Devera aka devik
Linux kernel QoS/HTB maintainer
  http://luxik.cdi.cz/~devik/

On Sat, 5 Jul 2003, Sergiusz Brzeziñski wrote:

> Thak you for your hints!
>
>  > 1) 6kbit is really too small it should be at least 10 ..
>
> I tried with 12, 20 and even with 30kbit for 1:3
>
> I noticed, that it work for some seconds (or 1-2 minutes) but than the
> 1:3 class gets more then it should get :(.
>
>
>  > 2) it should workeven with 6k:
>  >  - look at stats (tc -s class show dev eth0) before and
>  >    after the test - you are interested in drops. Also try
>  >    it during the test to look whether queues are build up.
>  >
>
> I made a test with settings:
> ---------------------------------
>
> tc qdisc del root dev eth0
> tc qdisc add dev eth0 root handle 1:0 htb default 3
>
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 128kbit ceil
> 128kbit burst 20kbit
>
> tc class add dev eth0 parent 1:1 classid 1:2 htb rate 98kbit ceil
> 128kbit quantum 4900 burst 20kbit
>
> tc class add dev eth0 parent 1:1 classid 1:3 htb rate 30kbit ceil
> 128kbit quantum 1500
>
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip sport
> 80 0xffff flowid 1:2
>
> Bevore test: (reseted htb)
> --------------------------------
> # tc -s class show dev eth0
>
> class htb 1:1 root rate 128Kbit ceil 128Kbit burst 2559b cburst 1762b
>   Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   lended: 0 borrowed: 0 giants: 0
>   tokens: 244140 ctokens: 168131
>
> class htb 1:2 parent 1:1 prio 0 rate 98Kbit ceil 128Kbit burst 2559b
> cburst 1762b
>   Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   lended: 0 borrowed: 0 giants: 0
>   tokens: 318876 ctokens: 168131
>
> class htb 1:3 parent 1:1 prio 0 rate 30Kbit ceil 128Kbit burst 1637b
> cburst 1762b
>   Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   lended: 0 borrowed: 0 giants: 0
>   tokens: 666503 ctokens: 168131
>
> After test:
> ------------
> class htb 1:1 root rate 128Kbit ceil 128Kbit burst 2559b cburst 1762b
>   Sent 5843869 bytes 4715 pkts (dropped 0, overlimits 0)
>   rate 15427bps 12pps
>   lended: 1461 borrowed: 0 giants: 0
>   tokens: -21142 ctokens: -97151
>
> class htb 1:2 parent 1:1 prio 0 rate 98Kbit ceil 128Kbit burst 2559b
> cburst 1762b
>   Sent 2735702 bytes 1811 pkts (dropped 0, overlimits 0)
>   rate 6397bps 4pps
>   lended: 1802 borrowed: 9 giants: 0
>   tokens: 312898 ctokens: 163555
>
> class htb 1:3 parent 1:1 prio 0 rate 30Kbit ceil 128Kbit burst 1637b
> cburst 1762b
>   Sent 3108167 bytes 2904 pkts (dropped 0, overlimits 0)
>   rate 9488bps 8pps
>   lended: 1452 borrowed: 1452 giants: 0
>   tokens: -561135 ctokens: -97151
>
> Description of the test:
> ------------------------
> On the beginning it was everything OK, after 1 min, 1:2 lost his 98kbit.
> Than he got sometimes his 98kbit again and sometimes he got even 30kbit.
>
>
> 1. Can I do something more to find out what happen?
> 2. What does mean: "queues are build up" ?
>
> Sergiusz
>
>
>
>
> _______________________________________________
> 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/

  parent reply	other threads:[~2003-07-06  8:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-05  7:19 [LARTC] HTB doesn't respect rate values Sergiusz Brzeziński
2003-07-05 11:25 ` Martin Devera
2003-07-05 16:52 ` Sergiusz Brzeziński
2003-07-06  8:43 ` devik [this message]
2003-07-06 13:12 ` Sergiusz Brzeziński
2003-07-07  4:16 ` Leonardo Balliache
2003-07-07  6:31 ` devik
2003-07-07 10:23 ` Stef Coene
2003-07-07 17:27 ` Sergiusz Brzeziński
2003-07-07 18:38 ` devik
2003-07-07 20:52 ` Sergiusz Brzeziński
2003-07-08  2:13 ` rio
2003-07-08  7:48 ` devik
2003-07-08 19:18 ` Jose Luis Domingo Lopez

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-105748117307925@msgid-missing \
    --to=devik@cdi.cz \
    --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.