All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arkadiusz Miskiewicz <misiek@pld.org.pl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] problem with htb rates | small rates question
Date: Wed, 16 Jul 2003 19:06:57 +0000	[thread overview]
Message-ID: <marc-lartc-105838251826350@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105827512408684@msgid-missing>

On/Dnia Tue, Jul 15, 2003 at 06:54:30PM +0200, Atahualpa Jones wrote/napisa³(a)

> Its just a guess but are you sure this works? parent 1:1? where is the class
> with classid 1:1? What are these classes children of?
Weird but there is no class 1:1.

> try it with this setting, it should do the same:
> tc qdisc add dev eth0 handle 1:0 root htb default 11
> tc class add dev eth0 parent 1:0 classid 1:1 rate 512kbit ceil 512kbit  #
> 128+384 = 512
> tc class add dev eth0 parent 1:1 classid 1:10 rate 128kbit ceil 512kbit
> tc qdisc add dev eth0 handle 2:0 parent 1:10 sfq perturb 10
> tc class add dev eth0 parent 1:1 classid 1:11 rate 384kbit ceil 512kbit
> tc qdisc add dev eth0 handle 3:0 parent 1:11 sfq perturb 10
> tc filter add dev eth0 protocol ip parent 1:0 u32 match ip dst 192.168.0.134
> flowid 1:10
Unfortunately that doesn't work either (btw. tc class add ... htb ... -
missed htb).

Now when I'm downloading only on .134 machine I get maks about
20 Kbyte/s - only at beggining in first second I get 40 Kbyte/s which
drops to 20 Kbyte/s...

# tc class show dev eth0

class htb 1:11 parent 1:1 leaf 3: prio 0 rate 384Kbit ceil 512Kbit burst 2090b cburst 2254b
 Sent 68140 bytes 205 pkts (dropped 0, overlimits 0)
 rate 159bps 1pps
 lended: 205 borrowed: 0 giants: 0
 tokens: 34050 ctokens: 27588

class htb 1:1 root rate 512Kbit ceil 512Kbit burst 2254b cburst 2254b
 Sent 6266075 bytes 6394 pkts (dropped 0, overlimits 0)
 rate 37034bps 38pps
 lended: 4160 borrowed: 0 giants: 0
 tokens: -32581 ctokens: -32581

class htb 1:10 parent 1:1 leaf 2: prio 0 rate 128Kbit ceil 512Kbit burst 1762b cburst 2254b
 Sent 6197935 bytes 6189 pkts (dropped 0, overlimits 0)
 rate 36871bps 37pps
 lended: 2029 borrowed: 4160 giants: 0
 tokens: -24430 ctokens: -32581

No drops?

Anyway rest works as I described in previous email... downloading
from linuxRT gives me as much bandwidtch as htb rules allow but
downloading from internet causes only half of bandwidtch to be
used even if rest is not used.

I'm going to try esfq because it seems that wrr doesn't work properly
with 2.4 kernels either (at least statistics shown by tc class are in
most cases zeros for each dynamicly created class).

> Andreas

-- 
Arkadiusz Mi¶kiewicz     CS at FoE, Wroclaw University of Technology
arekmatssedotpl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-07-16 19:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 13:18 [LARTC] problem with htb rates | small rates question Arkadiusz Miskiewicz
2003-07-15 16:54 ` Atahualpa Jones
2003-07-16 19:06 ` Arkadiusz Miskiewicz [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-105838251826350@msgid-missing \
    --to=misiek@pld.org.pl \
    --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.