I'm trying to setup shaper at my gentoo box: tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000 cell 8 tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate 100Mbit allot 1514 cell 8 weight 10Mbit prio 8 maxburst 20 avpkt 1000 tc class add dev eth0 parent 10:1 classid 10:1280 cbq bandwidth 100Mbit rate 128Kbit allot 1514 cell 8 weight 10Kbit prio 5 maxburst 20 avpkt 1000 bounded tc qdisc add dev eth0 parent 10:1280 tbf rate 128Kbit buffer 10Kb/8 limit 15Kb gentoo root # tc qdisc show dev eth0 qdisc tbf 800f: rate 128Kbit burst 10Kb lat 305.2ms qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit gentoo root # tc -s class show dev eth0 gentoo root # <nothing> ???? gentoo root # uname -a Linux gentoo 2.4.22-hardened #3 Fri Nov 21 10:59:10 EET 2003 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux gentoo root # qpkg -I -v iproute sys-apps/iproute-20010824-r4 * I'm using that way for shapping for long time at redhat 7.2 box After same setup sequence: [root@linora root]# tc qdisc show dev eth0 qdisc tbf 8002: rate 128Kbit burst 10Kb lat 381.5ms qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit [root@linora root]# tc class show dev eth0 class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit class cbq 10:1 parent 10: rate 100Mbit prio no-transmit class cbq 10:1280 parent 10:1 leaf 8002: rate 128Kbit (bounded) prio 5 [root@linora root]# uname -a Linux linora.flavia-bg.com 2.4.20-20.7 #1 Mon Aug 18 14:56:30 EDT 2003 i686 unknown [root@linora root]# rpm -q iproute iproute-2.2.4-14 Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.49-r16-gpp7 (selinux-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-hardened) ================================================================= System uname: 2.4.22-hardened i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.10 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O2 -pipe -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/ config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs strict sfperms" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/ Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PKGUSE="" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 crypt ncurses selinux zlib gdbm berkdb readline mysql gpm tcpd pam libwww ssl perl python maildir mbox nls sasl"
works here # tc qdisc show dev eth0 qdisc tbf 8002: rate 128Kbit burst 10Kb lat 1562.5s qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit System uname: 2.4.22-gentoo-r4 sys-apps/iproute-20010824-r4 maybe this is a hardend issue
i dont think it'll solve this problem but could you test iproute-20010824-r5 ?
tested on: Linux 2.4.25 #1 SMP Thu Apr 8 11:40:55 EEST 2004 Linux 2.4.24-hardened-r1 #1 SMP Tue Mar 23 05:27:34 EET 2004 Linux 2.4.25-gentoo #1 SMP Thu Apr 8 12:48:59 EEST 2004 doesn't work Martin, command that doesn't work is "tc class show dev ethX" not "tc qdisc show dev ethX" but on 2.6.5 works Linux 2.6.5 #1 Wed Apr 7 18:20:13 EEST 2004 tc qdisc show dev eth0 qdisc tbf 8003: rate 128Kbit burst 10Kb lat 312.5ms qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit tc class show dev eth0 class tbf 8003:1 parent 8003: [UNKNOWN] class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit class cbq 10:1 parent 10: rate 100Mbit prio no-transmit class cbq 10:1280 parent 10:1 leaf 8003: rate 128Kbit (bounded) prio 5
did you test -r5 or are you talking about -r4 Jetchko ?
qpkg -I -v iproute sys-apps/iproute-20010824-r5 *
what linux-headers do you have on all your 2.4 systems ? this bug might stem from the fact that x86 has pretty old 2.4.x headers available to it ...
sys-apps/iproute-20010824-r5 doesn't compile agains sys-kernel/linux-headers-2.4.19 (maybe ebuild needs (R)DEPEND fix) qpkg -I -v linux-headers sys-kernel/linux-headers-2.4.21-r1 *
well, you could try this on your machines ... edit the -r5 iproute ebuild and change all the /usr/include references to /usr/src/linux-2.4.25/include (or wherever your 2.4.x kernel trees are) and then emerge it and see if this bug gets 'fixed'
i hate to ask but could you test iproute2-2.4.7.20020116 ?
see if the latest unstable (2.6.7.xxxx) does anything for you please