From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Walter D. Wyndroski" Date: Mon, 29 Sep 2003 03:11:22 +0000 Subject: [LARTC] Weird IMQ problem??? MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0007_01C38615.D52B0F30" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C38615.D52B0F30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I had IMQ running smoothly for nearly 4 hours, then my linux box started al= arming as if the CPU had overheated (which was not the case). The box was c= ompletely locked up. I'm not sure if this is an IMQ related problem or what= . I'm leaning toward an IMQ problem since I've not had a problem like this = before and have been running iproute2/iptables for 8+ months now. After a hard reboot, I scanned through the messages log and found this erro= r message moments before the crash had occurred. kernel: KERNEL: assertion (tp->retrans_out =3D=3D 0) failed at tcp_input.c(= 1614) My system specs: P3 933 mHz 512 MB PC133 RH 9.0 iptables-1.2.8 iproute-2.4.7-7 The following is my IMQ/HTB/SFQ setup: ##Remove ALL tc qdiscs and classes first by deleting root handle tc qdisc del dev imq0 root > /dev/null 2>&1 #remove any imq qdiscs ##Add HTB Root Handle tc qdisc add dev imq0 root handle 1: htb default 20 ##Add Primary Parent tc class add dev imq0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit ##Add Prmary Children tc class add dev imq0 parent 1:1 classid 1:10 htb rate 50mbit ceil 50mbit tc qdisc add dev imq0 parent 1:10 handle 10: sfq perturb 10 tc class add dev imq0 parent 1:1 classid 1:20 htb rate 128kbit ceil 128k= bit tc qdisc add dev imq0 parent 1:20 handle 20: sfq perturb 10 tc filter add dev imq0 parent 1: protocol ip handle 5 fw flowid 1:10 $IPTABLES -A PREROUTING -t mangle --src X.X.X.X/X -j MARK --set-mark 5 $IPTABLES -A PREROUTING -t mangle --dst X.X.X.X/X -j MARK --set-mark 5 $IPTABLES -A PREROUTING -t mangle -j IMQ --todev 0 #Send all packets passi= ng through $IPTABLES -A POSTROUTING -t mangle -j IMQ --todev 0 #mangle table to IMQ de= vice Any help would be greatly appreciated.=20 Regards, Walt ***************************************************************************= ******************* * This message has been scanned by CityNET's email scanner for viruses and = dangerous content * * and is believed to be clean. CityNET is proud to use MailScanner. For m= ore information * * concerning MailScanner, visit http://www.mailscanner.info = * ***************************************************************************= ******************* ------=_NextPart_000_0007_01C38615.D52B0F30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I had IMQ running smoothly for nearly 4 ho= urs, then=20 my linux box started alarming as if the CPU had overheated (which was not t= he=20 case). The box was completely locked up. I'm not sure if this is an IMQ rel= ated=20 problem or what. I'm leaning toward an IMQ problem since I've not had a pro= blem=20 like this before and have been running iproute2/iptables for 8+ months=20 now.
 
After a hard reboot, I scanned through the= messages=20 log and found this error message moments before the crash had=20 occurred.
 
kernel: KERNEL: assertion (tp->retrans_= out =3D=3D 0)=20 failed at tcp_input.c(1614)
 
My system specs:
P3 933 mHz
512 MB PC133
RH 9.0
iptables-1.2.8
iproute-2.4.7-7
 
The following is my IMQ/HTB/SFQ setup:

##Remove ALL tc qdiscs and classes fir= st by=20 deleting root handle
tc qdisc del dev imq0 root > /dev/null=20 2>&1  #remove any imq qdiscs
 
##Add HTB Root Handle
tc qdisc add dev = imq0 root=20 handle 1: htb default 20
 
##Add Primary Parent
tc class add dev i= mq0=20 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
##Add Prmary=20 Children
   tc class add dev imq0 parent 1:1 classid 1:10 htb = rate=20 50mbit ceil 50mbit
      tc qdisc add dev imq0= =20 parent 1:10 handle 10: sfq perturb 10
   tc class add dev imq0= =20 parent 1:1 classid 1:20 htb rate 128kbit ceil=20 128kbit
      tc qdisc add dev imq0 parent 1:20= =20 handle 20: sfq perturb 10
 
tc filter add dev imq0 parent 1: protocol = ip handle=20 5 fw flowid 1:10

$IPTABLES -A PREROUTING -t mangle --src X.X.X.X/X -j MARK --set-ma= rk=20 5
$IPTABLES -A PREROUTING -t mangle --dst X.X.X.X/X -j MARK --set-m= ark=20 5
$IPTABLES -A PREROUTING -t mangle -j IMQ --todev 0  #Send all pac= kets=20 passing through
$IPTABLES -A POSTROUTING -t mangle -j IMQ --todev 0 #man= gle=20 table to IMQ device
 
Any help would be greatly appreciated.
 
Regards,
 
Walt


 This message has been scanned by CityNET's = email scanner for viruses and dangerous content 
 and is believed to be clean. CityNET is proud to use MailScann= er. For more information 
 concerning MailScanner, visit http://www.mailscanner.info

------=_NextPart_000_0007_01C38615.D52B0F30-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/