From: Robert Penz <robert.penz@outertech.com>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB: messages in my log
Date: Thu, 29 Aug 2002 13:37:59 +0000 [thread overview]
Message-ID: <marc-lartc-103062837401615@msgid-missing> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I'm getting following messages in my log, don't know what I'm doing wrong.
I have that messages on 2.419 and 20pre1
first call of my TC script, after the boot
Aug 29 14:30:06 whitestar kernel: HTB init, kernel part version 3.6
Aug 29 14:30:06 whitestar kernel: HTB: quantum of class 10001 is big. Consider
r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q change.<6>HTB
init, kernel part version 3.6
second call
Aug 29 15:35:25 whitestar kernel: HTB: quantum of class 10001 is big. Consider
r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q
change.<7>htb*g j=1476817
Aug 29 15:35:25 whitestar kernel: HTB init, kernel part version 3.6
Aug 29 15:35:25 whitestar kernel: HTB: quantum of class 10001 is big. Consider
r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q change.<6>HTB
init, kernel part version 3.6
here is my script
#!/bin/bash
# Written by Robert Penz (robert.penz@outertech.com)
# Script is under GPL
# Thx for the help goes to the Linux Advanced Routing & Traffic Control HOWTO
# at http://lartc.org/HOWTO//cvs/2.4routing/lartc.html
# and http://www.docum.org/ and http://luxik.cdi.cz/~patrick/imq/index.html
#
=========================================================================================
#
=========================================================================================
#
# all in Mbit
# $1 = max bandwidth down
# $2 = max bandwidth up
# first check the parameter
[ -z "$1" ] && echo "parameter 1 missing" && exit 1
[ -z "$2" ] && echo "parameter 2 missing" && exit 1
if [ -n "`tc -s qdisc ls dev imq0 | grep "htb"`" ] ; then
tc qdisc del dev imq0 root handle 1:0
tc qdisc del dev eth0 root handle 1:0
echo old stuff killed
fi
# start with the download stuff
# we use htb
tc qdisc add dev eth0 root handle 1: htb default 10
# 100mbit nic
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit
# 80mbit is just a fake value, the ceil value is more important
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 80mbit ceil 100mbit
# traffic shaping to $1 mbit
tc class add dev eth0 parent 1:1 classid 1:11 htb rate $1mbit
# we use sfq for all
tc qdisc add dev eth0 parent 1:10 handle 30:0 sfq
tc qdisc add dev eth0 parent 1:11 handle 40:0 sfq
## now call the filters
# put the capped marked stuff into that chain, uncapped is default so we don't
# need to do anythink
# mark with -j MARK --set-mark 1
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 1 fw classid 1:11
## continue with the upload stuff
# we use HTB
# all traffic to this device is to the ip 141 .. put it by default into the TC
tc qdisc add dev imq0 handle 1: root htb default 10
# 100mbit virtual nic
tc class add dev imq0 parent 1: classid 1:1 htb rate 100mbit
# 80mbit is just a fake value, the ceil value is more important
tc class add dev imq0 parent 1:1 classid 1:10 htb rate 80mbit ceil 100mbit
# traffic shaping to $2
tc class add dev imq0 parent 1:1 classid 1:11 htb rate $2Mbit
# we use sfq for both
tc qdisc add dev imq0 parent 1:10 handle 30:0 sfq
tc qdisc add dev imq0 parent 1:11 handle 40:0 sfq
## now call the filters
# put the capped marked stuff into that chain, uncapped is default so we don't
# need to do anythink
# mark with -j MARK --set-mark 2
tc filter add dev imq0 protocol ip pref 2 parent 1: handle 2 fw classid 1:11
## bring up the imq virtual nic
ip link set imq0 up
- --
Regards,
Robert
- ----------------
Robert Penz
robert.penz@outertech.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9biO48tTsQqJDUBMRAgxKAJwKbnPrqDbfl4Il6OGXyQc0CGkGHgCgl16J
FxcZjs4+Rovn92EWiR8c2tA=
=r2/R
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-08-29 13:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-29 13:37 Robert Penz [this message]
2002-08-29 13:48 ` [LARTC] HTB: messages in my log Stef Coene
2002-08-29 14:00 ` Robert Penz
2002-08-29 14:17 ` Stef Coene
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-103062837401615@msgid-missing \
--to=robert.penz@outertech.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox