Skip to contentSkip to conversation

tc -s class problem (with cbq only)

LARTC [email protected] 1 participant 2 messages Dec 5, 2003 – Dec 6, 2003

lore
Share & tools
lore
#0 lore raw

I have changed kernel to 2.2.22 and have a problem:

#tc -s class ls dev eth3
and
#tc show class dev eth3
and
#tc -s -d class ls dev eth3

shows me NOTHING when i use CBQ queues on interface !!!

i can olny watch queues (QDISC) with:
#tc -s qdisc ls dev eth3
(this is working OK, as earlier)

I tried many of tc bin's (from devik, compiled, old , etc) - nothing help.

the tc -s class ls dev eth0 works fine, when i used HTB queues.

How to solve that problem ?

this is trace of problem:
open("/proc/net/psched", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "000c8000 000f4240 000f4240 00000"..., 4096) = 36

close(3)                                = 0
munmap(0x40014000, 4096)                = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 3

bind(3, {sin_family¯_NETLINK, {sa_family, sa_data="\0\0\0\0\0\0\0\0\0\0@\25\6\10"}, 12) = 0
getsockname(3, {sin_family¯_NETLINK, {sa_family, sa_data="q\3375<\0\0\0\0\0\0@\25\6\10"}, [12]) = 0
time(NULL) = 1070634212
sendto(3, "\24\0\0\0\22\0\1\3\345\224\320?\0\0\0\0\0006\1@", 20, 0, {sin_family¯_NETLINK, {sa_family, sa_data="\0\0\0\0\0\0\0\0\0\0\24\0\0\0"}, 12) = 20
recvmsg(3, {msg_name(12)={sin_family¯_NETLINK, {sa_family, sa_data="\21\300\0\0\0\0\0\0\0\0\264\0\0\0"}, msg_iov(1)=[{"\264\0\0\0\20\0\2\0\345\224\320?5
recvmsg(3, {msg_name(12)={sin_family¯_NETLINK, {sa_family, sa_data="\301\367\0\0\0\0\0\0\0\0\24\0\0\0"}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\345\224\320?5<\
sendmsg(3, {msg_name(12)={sin_family¯_NETLINK, {sa_family, sa_data="\0\0\0\0\0\0\0\0\0\0$\0\0\0"}, msg_iov(2)=[{"$\0\0\0*\0\1\3\346\224\320?\0\0\0\0", 1
recvmsg(3, {msg_name(12)={sin_family¯_NETLINK, {sa_family, sa_data="\301\367\0\0\0\0\0\0\0\0\24\0\0\0"}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\346\224\320?5<\
_exit(0) = ?
Why does it exit's here ?? if i'm sure that there are queues/classes on that interface:
here i past them :

# tc -s qdisc ls dev eth3 |head -n 10
qdisc tbf 84e3: rate 160Kbit burst 300Kb peakrate 10Mbit minburst 1600b lat
189.2ms
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

qdisc tbf 84e2: rate 640Kbit burst 300Kb peakrate 10Mbit minburst 1600b lat
189.2ms
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

qdisc tbf 84e1: rate 150Kbit burst 300Kb peakrate 10Mbit minburst 1600b lat
189.2ms
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

qdisc tbf 84e0: rate 600Kbit burst 300Kb peakrate 10Mbit minburst 1600b lat
189.2ms

PLEASE HELP ME !

A.Binder

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 10 lines

I have changed kernel to 2.2.22 and have a problem:

#tc -s class ls dev eth3
and
#tc show class dev eth3
and
#tc -s -d class ls dev eth3

shows me NOTHING when i use CBQ queues on interface !!!

I found where is a problem,,, It occurs only when i use only in one or more
class a TBF queue discipline.

Even when i use the sample from LARTC.org script.

Instead of : (the actual CBQ script)
##tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 i use a tbf queue:
#tc qdisc add dev $DEV parent 1:20 handle 30: tbf rate 20kbit buffer 1600 limit 3000

and after that
tc -s class ls dev $DEV shows NOTHING !!!

if I use a SFQ queue, tc -s class ls dev $DEV works OK.

I'm not doing some stupid mistake on that...

A.Binder

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/