All of lore.kernel.org
 help / color / mirror / Atom feed
From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tcf_action_destroy destroying
Date: Sat, 28 Jan 2006 03:36:57 +0000	[thread overview]
Message-ID: <43DAE6D9.81AB7FE7@iswest.com> (raw)
In-Reply-To: <20060125024152.82345.qmail@web15407.mail.cnb.yahoo.com>

bend chen wrote:
> 
> hi.
> 
> 
> >gypsy worte:---------------------------
> >This is HUGE; you cannot mean 10,000Kbit!??
> ???,my script 10000Kbps is mean10Mbps.
> Iproute can not support 10Mbps?

Sure, yes it can handle 10Mbps - and 100Mbps too.  But the reason you
are getting the r2q error message is that you set a much smaller rate
for the children.

I stole this from a previous posting to LARTC and have never actually
used it, but try something like this, or search the archives for
messages containing "LAN" and "Klauer" to see from whom it was stolen ;)

DEV=eth1

# 100000 kbit ~= 100Mbit.
# Lower this value if your LAN doesn't actually make 100MBit.
LAN_SPEED\x100000
LAN_SUBNET\x192.168.223.0

# install root HTB, point default traffic to 1:20:
$BIN_TC qdisc add dev $DEV root handle 1: htb default 20

# Add fat class.
$BIN_TC class add dev $DEV parent 1: classid 1:2 htb rate
${LAN_SPEED}kbit quantum 1500

# Add local lan child.
$BIN_TC class add dev $DEV parent 1:2 classid 1:3 htb rate
$(($LAN_SPEED-$UPLINK))kbit quantum 1500

$BIN_TC class add dev $DEV parent 1:2 classid 1:1 htb rate ${UPLINK}kbit
burst 6k

# high prio class 1:10:
$BIN_TC class add dev $DEV parent 1:1 classid 1:10 htb rate
${UPLINK}kbit \
   burst 6k prio 1

# bulk & default class 1:20
$BIN_TC class add dev $DEV parent 1:1 classid 1:20 htb rate
$[9*$UPLINK/10]kbit \
   burst 6k prio 2
$BIN_TC class add dev $DEV parent 1:1 classid 1:30 htb rate
$[8*$UPLINK/10]kbit \
   burst 6k prio 2

# attach ingress policer:

$BIN_TC qdisc add dev $DEV handle ffff: ingress

# exclude LAN traffic
$BIN_TC filter add dev $DEV parent ffff: protocol ip prio 1 u32 \
    match ip src $LAN_SUBNET/24 \
    match ip dst $LAN_SUBNET/24 \
    flowid :1


> >bend chen wrote:
> >
> > Hi,lartc
> >
> > I used iproute-060110 with iptables1.3.4 on gentoo 2005r1 kernel
> > 2.6.14-5.
> > I find some error messages in system logfile:
> >
> > HTB: quantum of class 10001 is big. Consider r2q change.
> > HTB: quantum of class 10010 is big. Consider r2q change.
> > tcf_action_init_1: successfull police
> > HTB: quantum of class 20001 is big. Consider r2q change.
> > HTB: quantum of class 20020 is big. Consider r2q change.
> > HTB: quantum of class 10001 is big. Consider r2q change.
> > HTB: quantum of class 10010 is big. Consider r2q change.>
> tcf_action_destroy destroying dcf0ba60 next 00000000
> > tcf_action_init_1: successfull police
> > HTB: quantum of class 20001 is big. Consider r2q change.
> > HTB: quantum of class 20020 is big. Consider r2q change.
> >
> > and this is my script:
> >
> > /root/ct/sbin/ct qdisc del dev eth0 root ;
> > /root/ct/sbin/c! t qdisc del dev eth0 ingress ;
> > /root/ct/sbin/ct qdisc add dev eth0 root handle 1: htb default 10
> r2q
> > 1;
> > /root/ct/sbin/ct class add dev eth0 parent 1: classid 1:1  htb rate
> > 10000kbps;
> > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:10 htb rate
> > 9990kbps ceil 10000kbps;
> > /root/ct/sbin/ct class add dev eth0 parent 1:1 classid 1:11 htb rate
> > 10kbps;
> > /root/ct/sbin/ct qdisc add dev eth0 parent 1:10 handle 13: sfq
> perturb
> > 5;
> > /root/ct/sbin/ct qdisc add dev eth0 parent 1:11 handle 14: sfq
> perturb
> > 5;
> > /root/ct/sbin/ct filter! add dev eth0 parent 1: protocol ip handle 1
> fw
> > classid 1:10;
> > /root/ct/sbin/ct filter add dev eth0 parent 1: protocol ip handle 2
> fw
> > classid 1:11;
> > /root/ct/sbin/ct qdisc del dev eth1 root;
> > /root/ct/sbin/ct qdisc add dev eth1 root handle 2: htb default 20
> r2q
> > 1;
> > /root/ct/sbin/ct class add dev eth1 parent 2: classid 2:1 htb rate
> > 10000kbps;
> --------------------------
> >This is HUGE; you cannot mean 10,000Kbit!??
> --
> gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2006-01-28  3:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25  2:41 [LARTC] tcf_action_destroy destroying bend chen
2006-01-25 15:20 ` gypsy
2006-01-26  8:35 ` bend chen
2006-01-28  3:36 ` gypsy [this message]
2006-01-28  6:15 ` bend chen

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=43DAE6D9.81AB7FE7@iswest.com \
    --to=gypsy@iswest.com \
    --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.