From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 8731F20019F for ; Mon, 17 Jun 2013 09:38:43 -0700 (PDT) Received: by mail-ie0-f179.google.com with SMTP id c10so7389421ieb.38 for ; Mon, 17 Jun 2013 09:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=A7mRO59fIYRRYp9LtTwUZgtW754natt5FZp2wn6RxGg=; b=m7PUBjCIXD5yI/sC4eFlcRavWyCxYpDSKb8x9IT5XC2oorN4iiy4mLR9Rh2HZOuorh WNst91YrFFNmItDy+t3TBPYFN10ca0NTR7nlwq0J4qTth6XnHp7tdBhdyjO4abRFdVg+ ENffU59qx0eJIf3zcs4181KPtMYL05hmgySKoPJyUhfa+CCT4fwCpamSKg2wJPR67SZN 5gwqnZCBCg8j0PC9b1NN5tKiLUnVw2snVoKBENuMK37sFi+mY8A4GvZVqEiJ3o2sEI0T 1xEdmPZ8Y00Ur7MsV3Qx4id9aYcE6jgiNkPtJaTsEQBozzqxxxvh3Jg5jEcRCO/cUmDn JMGg== MIME-Version: 1.0 X-Received: by 10.50.108.114 with SMTP id hj18mr5487209igb.87.1371487122684; Mon, 17 Jun 2013 09:38:42 -0700 (PDT) Received: by 10.64.45.137 with HTTP; Mon, 17 Jun 2013 09:38:42 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Jun 2013 09:38:42 -0700 Message-ID: From: Dave Taht To: Eric Dumazet Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: cerowrt-devel Subject: Re: [Cerowrt-devel] htb has internal pfifo queue X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 16:38:43 -0000 OH, thank you! One of the things that irked me on my htb+netem delay/loss setup was that the need to also feed arp and ND through it resulted in major startup transients that wouldn't exist in the real world. So now I understand how to feed those protocols through a separate unshaped htb queue. thankyou, thankyou,thankyou On Sun, Jun 16, 2013 at 8:54 PM, Eric Dumazet wrote: > This 'direct' queue is only used if one of your filter explicitly > targets the '0' classid of htb qdisc as in : > > (Note the 'direct_packets_stat 1145408' in tc qdisc output) > > > > lpq83:~# cat fq_codel0.sh > DEV=3Deth4 > CEIL=3D"ceil 10000Mbit" > EST=3D"est 1sec 4sec" > > tc qdisc del dev $DEV root 2>/dev/null > > tc qdisc add dev $DEV root handle 1: est 1sec 8sec htb default 1 > tc class add dev $DEV parent 1: classid 1:1 $EST htb rate 1Gbit $CEIL > mtu 1500 quantum 1514 > tc class add dev $DEV parent 1: classid 1:2 $EST htb rate 1Gbit $CEIL > mtu 1500 quantum 1514 > > # access to direct queue : following trafic doesnt need overhead of an > htb_class, > # as we do not want it to be shaped at all. > tc filter add dev $DEV parent 1: protocol ip u32 \ > match ip dst 7.7.7.84 flowid 1:0 > > lpq83:~# ./netperf -H 7.7.7.84;tc -s qd sh dev eth4 > MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to > 7.7.7.84 () port 0 AF_INET > Recv Send Send > Socket Socket Message Elapsed > Size Size Size Time Throughput > bytes bytes bytes secs. 10^6bits/sec > > 87380 16384 16384 10.00 18390.46 > qdisc htb 1: root refcnt 257 r2q 10 default 1 direct_packets_stat 1145408 > Sent 67913929786 bytes 46865570 pkt (dropped 0, overlimits 0 requeues 11= ) > rate 13754Mbit 1186190pps backlog 0b 0p requeues 11 > > On Sun, Jun 16, 2013 at 2:32 PM, Dave Taht wrote: >> In looking over the htb mess, I noticed that htb has an internal pfifo >> queue, which is controllable via new stuff in net-next. >> >> http://snapon.lab.bufferbloat.net/~cero2/htb_mess/11256-htb-add-HTB_DIRE= CT_QLEN-attribute.patch >> >> I have no idea what, if anything, it affects. I was under the >> impression, until now, that htb buffered up one, and only one packet >> no matter how many classes you have. Still am retaining that >> impression... >> >> Ah well... fiddling with setting txqueuelen to 2 on the device on >> 3.8.13-7 before running the aqm script might have an interesting >> result on simple.qos, if anyone wants to try it. >> >> such a backlog of stuff to sort through! >> >> -- >> Dave T=E4ht >> >> Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscri= be.html --=20 Dave T=E4ht Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.= html