From: "Eduardo Bejar" <wonka@linkabu.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Warnings with and without r2q
Date: Wed, 12 Mar 2003 18:31:44 +0000 [thread overview]
Message-ID: <marc-lartc-104749414411587@msgid-missing> (raw)
Hi everyone,
My HTB script is showing me those "r2q change" warnings. I read that I
should test with r2q values to gain accuracy and stop the warnings but I
made some tests with r2q and with burst and I still get the warnings. Any
ideas on this issue will be very helpful. The script seems to be working as
the bandwidth for the IPs is being shaped.
The NIC works at 100mbit and the Internet link that is shared is 128kbit.
iptable rules mark the packets on the PREROUTING and POSTROUTING chain
Here is what I tested and then the rules I´m using:
With this tests:
1. Script with no r2q and no burst
2. Script with "r2q 1" and no burst
3. Script with no r2q and "burst 2k"
4. Script with "r2q 1" and "burst 2k"
I get the same warnings:
htb*g j\x154890413
HTB: quantum of class 10001 is big. Consider r2q change
HTB: quantum of class 10010 is big. Consider r2q change
HTB: quantum of class 10021 is small. Consider r2q change
...
...
...
HTB: quantum of class 10028 is small. Consider r2q change
htb*g j\x154890421
HTB: quantum of class 10001 is big. Consider r2q change
HTB: quantum of class 10010 is big. Consider r2q change
HTB: quantum of class 10021 is small. Consider r2q change
...
...
...
HTB: quantum of class 10028 is small. Consider r2q change
With this tests:
5. With "r2q 2" and no burst
6. With "r2q 2" and "burst 2k"
I get only this:
htb*g j\x154890500
HTB: quantum of class 10001 is big. Consider r2q change
HTB: quantum of class 10010 is big. Consider r2q change
htb*g j\x154890508
HTB: quantum of class 10001 is big. Consider r2q change
HTB: quantum of class 10010 is big. Consider r2q change
Here's the script I´m using (with the burst parameter):
#!/bin/sh
#===========
# uploading
#===========
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 80mbit ceil 100mbit
burst 2k
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 128kbit burst 2k
tc class add dev eth0 parent 1:11 classid 1:21 htb rate 16kbit ceil 56kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:22 htb rate 16kbit ceil 40kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:23 htb rate 16kbit ceil 72kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:24 htb rate 16kbit ceil 64kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:25 htb rate 16kbit ceil 40kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:26 htb rate 16kbit ceil 40kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:27 htb rate 16kbit ceil 32kbit
burst 2k
tc class add dev eth0 parent 1:11 classid 1:28 htb rate 16kbit ceil 56kbit
burst 2k
tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq
tc qdisc add dev eth0 parent 1:21 handle 21:0 sfq
tc qdisc add dev eth0 parent 1:22 handle 22:0 sfq
tc qdisc add dev eth0 parent 1:23 handle 23:0 sfq
tc qdisc add dev eth0 parent 1:24 handle 24:0 sfq
tc qdisc add dev eth0 parent 1:25 handle 25:0 sfq
tc qdisc add dev eth0 parent 1:26 handle 26:0 sfq
tc qdisc add dev eth0 parent 1:27 handle 27:0 sfq
tc qdisc add dev eth0 parent 1:28 handle 28:0 sfq
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 1 fw classid 1:21
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 2 fw classid 1:22
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 3 fw classid 1:23
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 4 fw classid 1:24
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 5 fw classid 1:25
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 6 fw classid 1:26
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 7 fw classid 1:27
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 8 fw classid 1:28
#===========# downloading
#===========tc qdisc del dev eth1 root
#===========
# uploading
#===========
tc qdisc add dev eth1 root handle 1: htb default 10
tc class add dev eth1 parent 1: classid 1:1 htb rate 100mbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 80mbit ceil 100mbit
burst 2k
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 128kbit burst 2k
tc class add dev eth1 parent 1:11 classid 1:21 htb rate 16kbit ceil 56kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:22 htb rate 8kbit ceil 40kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:23 htb rate 16kbit ceil 72kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:24 htb rate 16kbit ceil 64kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:25 htb rate 16kbit ceil 40kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:26 htb rate 16kbit ceil 32kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:27 htb rate 16kbit ceil 32kbit
burst 2k
tc class add dev eth1 parent 1:11 classid 1:28 htb rate 16kbit ceil 56kbit
burst 2k
tc qdisc add dev eth1 parent 1:10 handle 10:0 sfq
tc qdisc add dev eth1 parent 1:21 handle 21:0 sfq
tc qdisc add dev eth1 parent 1:22 handle 22:0 sfq
tc qdisc add dev eth1 parent 1:23 handle 23:0 sfq
tc qdisc add dev eth1 parent 1:24 handle 24:0 sfq
tc qdisc add dev eth1 parent 1:25 handle 25:0 sfq
tc qdisc add dev eth1 parent 1:26 handle 26:0 sfq
tc qdisc add dev eth1 parent 1:27 handle 27:0 sfq
tc qdisc add dev eth1 parent 1:28 handle 28:0 sfq
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 9 fw classid 1:21
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 10 fw classid
1:22
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 11 fw classid
1:23
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 12 fw classid
1:24
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 14 fw classid
1:25
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 15 fw classid
1:26
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 16 fw classid
1:27
tc filter add dev eth1 protocol ip pref 1 parent 1: handle 17 fw classid
1:28
Thank you,
Eduardo
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-03-12 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-12 18:31 Eduardo Bejar [this message]
2003-03-12 20:19 ` [LARTC] Warnings with and without r2q Stef Coene
2003-03-12 23:18 ` Eduardo Bejar
2003-03-13 16:05 ` 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-104749414411587@msgid-missing \
--to=wonka@linkabu.net \
--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.