Since i appl;ied the patches from Alexej The crashes are gone (there
were same nasty stack overflows when using bounded,isolated classes).

i observe the same results regardless of the `tc qdisc ... sfq ...'
for every class.

my setup is:

#!/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 est 250msec 8sec cbq bandwidth 10Mbit 
rate 8Mbit allot 1514 cell 8 weight 1Mbit maxburst 20 avpkt 1000 isolated bounded 

#bononunu class
tc class add dev eth0 parent 1:1 classid 1:2 est 250msec 8sec cbq bandwidth 10Mbit 
rate 5Mbit allot 1514 cell 8 weight 800Kbit maxburst 20 avpkt 1500 split 1:0 
tc qdisc add dev eth0 parent 1:2 sfq quantum 1514 perturb 15

#chomsky
tc class add dev eth0 parent 1:1 classid 1:3 est 250msec 8sec cbq bandwidth 10Mbit 
rate 1Mbit allot 1514 cell 8 weight 100Kbit maxburst 20 avpkt 1500 split 1:0
tc qdisc add dev eth0 parent 1:3 sfq quantum 1514 perturb 15

#elias
tc class add dev eth0 parent 1:1 classid 1:4 est 250msec 8sec cbq bandwidth 10Mbit 
rate 3Mbit allot 1514 cell 8 weight 400Kbit maxburst 20 avpkt 1500 split 1:0
tc qdisc add dev eth0 parent 1:4 sfq quantum 1514 perturb 15

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

#bononunu
ip route add 193.46.232.10  dev eth0 flow 0x10002
#chomsky
ip route add 193.46.232.190 dev eth0 flow 0x10003
#elias
ip route add 193.46.232.175 dev eth0 flow 0x10004

and the traffic goes to the correct class, but using netpipe as a
simple throughput test i'm getting:

to bononunu (should be 5Mbit)
 66:      4330 bytes   34 times -->    4.00 Mbps in 0.008254 sec
 67:      4335 bytes   30 times -->    3.54 Mbps in 0.009332 sec
 68:      4340 bytes   26 times -->    4.30 Mbps in 0.007705 sec
 69:      4345 bytes   32 times -->    4.20 Mbps in 0.007885 sec
 70:      4350 bytes   31 times -->    3.18 Mbps in 0.010432 sec

to chomsky (should be 1 Mbit)

 59:      4295 bytes   22 times -->    2.03 Mbps in 0.016122 sec
 60:      4300 bytes   15 times -->    1.64 Mbps in 0.019971 sec
 61:      4305 bytes   12 times -->    1.62 Mbps in 0.020216 sec
 62:      4310 bytes   12 times -->    1.44 Mbps in 0.022760 sec
 63:      4315 bytes   10 times -->    2.16 Mbps in 0.015275 sec

and to elias (should be 3 Mbit)
 54:      4270 bytes   22 times -->    2.86 Mbps in 0.011390 sec
 55:      4275 bytes   21 times -->    2.90 Mbps in 0.011247 sec
 56:      4280 bytes   22 times -->    3.49 Mbps in 0.009369 sec
 57:      4285 bytes   26 times -->    2.61 Mbps in 0.012517 sec


what i dont't understand is that:
tc -s class show dev eth0

class cbq 1:1 parent 1: rate 8Mbit (bounded,isolated) prio 1
 Sent 183336411 bytes 129013 pkts (dropped 0, overlimits 0) 
 rate 191bps 2pps 
  borrowed 46807 overactions 0 avgidle 3956 undertime 0

tells me that 1:1 borrows some traffic, although it's isolated and
bounded (i think it shouldn't borrow frm it's ancestores and its
neighbours).


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

Reply via email to