From: "Leo Wetz" Date: Sun, 10 Sep 2006 15:28:00 +0000 Subject: [LARTC] HFSC traffic loss bug, kernel 2.6.16.24 Message-Id: <20060910152735.81EB3405C@outpost.ds9a.nl> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0012_01C6D4FE.77465EC0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C6D4FE.77465EC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I have finally managed to understand HFSC up to a level which allowed me to create a QoS script which maintains low VoIP latency while running stuff like eMule. Unfortunately, HFSC seems to have a severe bug. Why do I consider this as a bug defenitely? Well, my script runs without any errors, then QoS works perfectly for some hours, no error messages in kernel log. Then randomly the kernel starts saying this: Sep 10 17:14:51 router kernel: HFSC: Non-work-conserving qdisc ? Sep 10 17:14:56 router kernel: printk: 266 messages suppressed. Sep 10 17:14:56 router kernel: HFSC: Non-work-conserving qdisc ? Sep 10 17:15:01 router kernel: printk: 259 messages suppressed. Sep 10 17:15:01 router kernel: HFSC: Non-work-conserving qdisc ? Sep 10 17:15:06 router kernel: printk: 294 messages suppressed. Sep 10 17:15:06 router kernel: HFSC: Non-work-conserving qdisc ? It floods the whole kernel log with this. Traffic is also heavily affected by package loss when this happens, thus I cannot ignore it. I have to check my kernel log when I notice that I cannot access websites anymore and then restart QoS manually. My complete QoS script is attached to this mail. If this is not the right location for the bug report please tell me whom I should contact. Thanks, Leo ------=_NextPart_000_0012_01C6D4FE.77465EC0 Content-Type: application/octet-stream; name="qos" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="qos" #!/bin/sh=0A= =0A= IF=3D"dev ppp0"=0A= IFUP=3D63kbps=0A= P2PUP=3D50kbps=0A= =0A= qROOT=3D"1:0"=0A= cMAIN=3D"1:1"=0A= =0A= cHTB=3D"1:88"=0A= cSKYPE=3D"1:15"=0A= cDEFAULT=3D"1:20"=0A= =0A= qHTB=3D"10:0"=0A= cP2P=3D"10:10"=0A= cEMULE=3D"10:11"=0A= cFTP=3D"10:12"=0A= cMIRANDA=3D"10:13"=0A= cAPACHE=3D"10:14"=0A= =0A= hSKYPE=3D115=0A= hEMULE=3D111=0A= hFTP=3D112=0A= hMIRANDA=3D113=0A= hAPACHE=3D114=0A= =0A= MTU=3D"1492"=0A= q1=3D"quantum 1492"=0A= q2=3D"quantum 2984"=0A= q3=3D"quantum 4476"=0A= q5=3D"quantum 7460"=0A= addc=3D"tc class add $IF parent"=0A= addq=3D"tc qdisc add $IF parent"=0A= addf=3D"tc filter add $IF parent"=0A= fst=3D"prio 1 protocol ip"=0A= =0A= qos_enable()=0A= {=0A= tc qdisc add $IF root handle $qROOT hfsc default 20=0A= =0A= $addc $qROOT classid $cMAIN hfsc ls rate $IFUP ul rate $IFUP=0A= $addc $cMAIN classid $cHTB hfsc ls rate 20kbps ul rate $P2PUP=0A= $addc $cMAIN classid $cSKYPE hfsc rt umax $MTU dmax 30ms rate 10kbps=0A= $addc $cMAIN classid $cDEFAULT hfsc sc umax $MTU dmax 80ms rate 33kbps = ul rate 42kbps=0A= =0A= $addq $cHTB handle $qHTB htb r2q 4=0A= $addc $qHTB classid $cP2P htb rate $P2PUP mtu $MTU=0A= $addc $cP2P classid $cEMULE htb rate 16kbps ceil $P2PUP $q1 prio 4=0A= $addc $cP2P classid $cFTP htb rate 10kbps ceil $P2PUP $q1 prio 3=0A= $addc $cP2P classid $cMIRANDA htb rate 12kbps ceil $P2PUP $q1 prio 2=0A= $addc $cP2P classid $cAPACHE htb rate 12kbps ceil $P2PUP $q1 prio 1=0A= =0A= $addf $qROOT $fst handle $hSKYPE fw flowid $cSKYPE=0A= $addf $qROOT $fst handle $hEMULE fw flowid $cHTB=0A= $addf $qROOT $fst handle $hFTP fw flowid $cHTB=0A= $addf $qROOT $fst handle $hMIRANDA fw flowid $cHTB=0A= $addf $qROOT $fst handle $hAPACHE fw flowid $cHTB=0A= =0A= $addf $qHTB $fst handle $hEMULE fw flowid $cEMULE=0A= $addf $qHTB $fst handle $hFTP fw flowid $cFTP=0A= $addf $qHTB $fst handle $hMIRANDA fw flowid $cMIRANDA=0A= $addf $qHTB $fst handle $hAPACHE fw flowid $cAPACHE=0A= =0A= $addq $cEMULE handle 101: sfq perturb 10 =0A= $addq $cFTP handle 201: sfq perturb 10=0A= $addq $cMIRANDA handle 301: sfq perturb 10=0A= $addq $cAPACHE handle 401: sfq perturb 10=0A= $addq $cSKYPE handle 501: sfq perturb 10=0A= $addq $cDEFAULT handle 601: sfq perturb 10=0A= }=0A= =0A= qos_disable()=0A= {=0A= tc qdisc del $IF root=0A= sleep 1=0A= }=0A= =0A= =0A= qos_restart()=0A= {=0A= qos_disable=0A= qos_enable=0A= }=0A= =0A= case "$1" in=0A= start)=0A= echo "Enabling QoS..."=0A= qos_enable=0A= ;;=0A= stop)=0A= echo "Disabling QoS..."=0A= qos_disable=0A= ;;=0A= restart)=0A= echo "Restarting QoS... "=0A= qos_restart=0A= ;;=0A= *)=0A= echo "*** Usage: QoS {start|stop|restart}"=0A= ;;=0A= esac=0A= =0A= ------=_NextPart_000_0012_01C6D4FE.77465EC0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ------=_NextPart_000_0012_01C6D4FE.77465EC0--