1) the crash. kernel 2.1.130 it happens when i try to remove the qdisc
from eth0 or removing a class with child classes still there. I didn't
investigate this any further for now (i didn't save the synmtab when
inserting the cbq module. i'll rebuild the kernel with cbq as a
builtin thing.


2) the tests

i'm experimenting with CBQ and my tests show unexpected behaviour:

The setup is as follows:

#!/bin/sh
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit allot 1514 cell 8 avpkt 1000 
mpu 64

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot 
1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000 isolated

#bononunu class
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 5Mbit allot 
1514 cell 8 weight 300Kbit prio 3 maxburst 20 avpkt 1500 split 1:0 

#chomsky
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate 4Mbit allot 
1514 cell 8 weight 200Kbit prio 3 maxburst 20 avpkt 1500 split 1:0

#elias
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth 10Mbit rate 1Mbit allot 
1514 cell 8 weight 100Kbit prio 3 maxburst 20 avpkt 1500 split 1:0

tc filter add dev eth0 parent 1:0 protocol ip prio 100 route

#bononunu host route thruogh class 1:2
ip route add 193.46.232.10  dev eth0 flow 0x10002
#chomsky host route through class 1:3
ip route add 193.46.232.190 dev eth0 flow 0x10003
#elias host route through class 1:4
ip route add 193.46.232.175 dev eth0 flow 0x10004

what i'm expecting is that the traffic to bononunu is around 5 Mbit,
to chomsky around 4 Mbit and to elias around 1Mbit.

What i'm getting (tested with netpipe) is:
bononunu:

 32:      3520 bytes   27 times -->    2.97 Mbps in 0.009036 sec
 33:      3530 bytes   27 times -->    2.99 Mbps in 0.008995 sec
 34:      3540 bytes   27 times -->    2.89 Mbps in 0.009330 sec
 35:      3550 bytes   26 times -->    2.98 Mbps in 0.009103 sec


chomsky:
 32:      3520 bytes   27 times -->    2.93 Mbps in 0.009155 sec
 33:      3530 bytes   27 times -->    2.97 Mbps in 0.009074 sec
 34:      3540 bytes   27 times -->    2.98 Mbps in 0.009069 sec
 35:      3550 bytes   27 times -->    2.87 Mbps in 0.009437 sec

elias:
 26:      3460 bytes   21 times -->    2.27 Mbps in 0.011632 sec
 27:      3470 bytes   21 times -->    2.32 Mbps in 0.011410 sec
 28:      3480 bytes   21 times -->    2.29 Mbps in 0.011585 sec
 29:      3490 bytes   21 times -->    2.30 Mbps in 0.011577 sec

(elias is somewhat slower then the other two machines. I don't know
why, I suspect our ethernet switch is misconfigured or there's a
fullduplex/halfduplex mismatch somewhere).

tc -s class dev eth0 show output:

class cbq 1: root rate 10Mbit (bounded,isolated) prio 8
 Sent 166952 bytes 964 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 762 undertime 0
class cbq 1:1 parent 1: rate 10Mbit (isolated) prio 8
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 16973 overactions 0 avgidle 739 undertime 0
class cbq 1:2 parent 1:1 rate 5Mbit prio 3
 Sent 25598643 bytes 29454 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 27300 undertime 0
class cbq 1:3 parent 1:1 rate 4Mbit prio 3
 Sent 18587864 bytes 21403 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 42832 undertime 0
class cbq 1:4 parent 1:1 rate 1Mbit prio 3
 Sent 10025266 bytes 11685 pkts (dropped 0, overlimits 0) 
  borrowed 16973 overactions 0 avgidle -28274 undertime 11264

--
Michael Lausch/g.a.m.s. edv dienstleistungen gmbh
See my web page <http://www.lausch.at/> or query PGP key server for PGP key.
"Reality is that which, when you stop believing in it, doesn't go away".
                -- Philip K. Dick


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to