Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Martin Devera <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB doesn't respect rate values
Date: Sat, 05 Jul 2003 11:25:17 +0000	[thread overview]
Message-ID: <marc-lartc-105740440804578@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105738977131234@msgid-missing>

1) 6kbit is really too small it should be at least 10 ..
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.

devik

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

> Hi,
>
> machine:            AMD K6 200 MHz
> Linux distribution: Mandrake 8.1
> kernel:             compiled 2.4.21
> applied this:
> #define PSCHED_CLOCK_SOURCE PSCHED_CPU in file
> linux/include/net/pkt_sched.h bevore compiled the kernel
> (described on http://www.docum.org/stef.coene/qos/faq/cache/40.html)
> bandwitch on eth0:  128kbit
>
> The most simple configuration - 122kbit guaranted for WWW (sport 80) and
> 6kbit for the rest.
>
> 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
> tc class add dev eth0 parent 1:1 classid 1:2 htb rate 122kbit ceil
> 128kbit quantum 30500
> tc class add dev eth0 parent 1:1 classid 1:3 htb rate 6kbit   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
>
>
> I make a test:
> I send an email - it goes to default class 1:3. Then (during email is
> sent) I get e big file through www. What happen? WWW rate is 30-70kbit.
> So it doesn't keep his guaranted rate 122kbit. It lends his rate for
> SMTP. When SMTP stops sending his packets, WWW gets 100%.
>
> In real, I've got the more complicated configuration (64 kbit for www,
> 40kbit for pop3, 6kbit for smtp 12kbit for others), but the problem
> remains: www doesn't get hit minmal rate. Extremally it gets < 30kbit!
>
> It works only "ceil". If I set ceil for a class (for example 1:3) - it
> is respected. 1:3 doesn't get more than set in ceil.
>
> So, HTB doesn't work for me at all!
>
> WHAT'S UP?
>
> Could it be, that my rates are small? (6kbit). Does HTB work good for
> bandwitch <\x128kbit?
>
> Did I something wrong?
>
> Some sugestions?
>
> thanks in advance
>
> 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/

  reply	other threads:[~2003-07-05 11:25 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 [this message]
2003-07-05 16:52 ` Sergiusz Brzeziński
2003-07-06  8:43 ` devik
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-105740440804578@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox