Skip to contentSkip to conversation

IMQ crash dump

LARTC Alexander Trotsai 2 participants 2 messages Jul 12, 2002

lore
Share & tools
lore
#0 lore raw

Hi

I try setup imq pseudo device for shaping
I'm work such script
#!/bin/sh

TC=/sbin/tc

/sbin/modprobe imq numdevs=1
/sbin/ip link set imq0 up
$TC qdisc add dev imq0 handle 1: root htb default 1 $TC class add dev imq0 parent 1: classid 1:1 htb rate 10mbit

# client1 tunnel tunnel
$TC class add dev imq0 parent 1: classid 1:2 htb rate 256kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.40/30 flowid 1:2
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.52/30 flowid 1:2
# client2
$TC class add dev imq0 parent 1: classid 1:3 htb rate 128kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:3
# client3
$TC class add dev imq0 parent 1: classid 1:4 htb rate 64kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:4
# client4
$TC class add dev imq0 parent 1: classid 1:5 htb rate 64kbit ceil 768kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:5
# send to intarface all from eth0.9 (clients)
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ

All patches I get from http://luxik.cdi.cz/~patrick/imq/
iptables and kernel modules compiled and loaded successfully But after run last line
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ I got kernel crush and register stack
I can't save it because kernel frezze

O, my kernel is
Linux watcher 2.4.19-pre8-ac5 #2 Wed Jul 10 10:08:55 EEST 2002 i686 unknown

May be I do something wrong or any other ideas?

Signature · 6 lines
Best regard, Alexander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My PGP at ftp://blackhole.adamant.net/pgp/trotsai.key[.asc]
Big trouble - The Borg tried to assimilate your system. Resistance is futile.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw

Hi Alexander,

Quoted 29 lines · Alexander Trotsai

Hi

I try setup imq pseudo device for shaping
I'm work such script
#!/bin/sh

TC=/sbin/tc

/sbin/modprobe imq numdevs=1
/sbin/ip link set imq0 up
$TC qdisc add dev imq0 handle 1: root htb default 1 $TC class add dev imq0 parent 1: classid 1:1 htb rate 10mbit

# client1 tunnel tunnel
$TC class add dev imq0 parent 1: classid 1:2 htb rate 256kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.40/30 flowid 1:2
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src 10.255.255.52/30 flowid 1:2
# client2
$TC class add dev imq0 parent 1: classid 1:3 htb rate 128kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:3
# client3
$TC class add dev imq0 parent 1: classid 1:4 htb rate 64kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:4
# client4
$TC class add dev imq0 parent 1: classid 1:5 htb rate 64kbit ceil 768kbit
$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 match ip src x.x.x.x/30 flowid 1:5
# send to intarface all from eth0.9 (clients)
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ
Quoted 7 lines

All patches I get from http://luxik.cdi.cz/~patrick/imq/
iptables and kernel modules compiled and loaded successfully But after run last line
/sbin/iptables -t mangle -A PREROUTING -i eth0.9 -j IMQ I got kernel crush and register stack
I can't save it because kernel frezze

Thats bad, i can't really help you without at least the registers and the corresponding symbols ...
You could try two things: use serial console to capture the output or use kdb to obtain a backtrace
and the registers after it crashed. kdb requires recompiling the kernel, but if you are used to using
debuggers it can give you alot more information.

Quoted 7 lines

O, my kernel is
Linux watcher 2.4.19-pre8-ac5 #2 Wed Jul 10 10:08:55 EEST 2002 i686 unknown

May be I do something wrong or any other ideas?

Hmm there's not much to do wrong, everything seems to be ok .... seems to be imq's fault.
If you send me your config (off-list please) i can compile a kernel with it and try it myself ..

Bye,
Patrick

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