From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic304-21.consmr.mail.sg3.yahoo.com (sonic304-21.consmr.mail.sg3.yahoo.com [106.10.242.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id AA0653B2A4 for ; Thu, 8 Nov 2018 15:16:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1541708167; bh=S1BSUXqL+L1UlOccchrKFDodcIJPEf0bkZ5e1hQmgY4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From:Subject; b=OlUfF6cAJUww/8t+AwhFlAlv25t2NSNIoHjGOIkgoEtRU5jApx4Z2dKWYUNagrHocGhuIDpBZxeO5JGb9iidx3tIx5MDwLGRSHC9h4Y0Huk5Zdx/KpC3vORpVRCkNsMoEUJoI1wtmopFmpN7YP/+0bwf84G/5mZId+/YNvM0T8rpa6eSDAlMBfLF6OSTPy4VCVgW3Va/Ueb8nkqaw9r+CvJHIVdH8IbKj0euvUQ5hxWBfv+GLd/iBWhCWbOArzbr/Vym08mlK+fRQ2qSQdj1NtXaBVk3w8I/f4TNqIvya7h8kxT+OUfAWU1iGgcwPuWK45zuh0sn0rrayiHklJEnQw== X-YMail-OSG: lhdWi7QVM1lunPUSmiK7RmkV35tFF97mAPNhmCbBUdHXlZ2ekEsKKi.24TaW8zk mPEzmHdLuYbWxYi3jixONUi7liAdthEP70cSmwiYxv2mYw8mK7I70urOqrfUNnZ2hsJAsRsu97yl 1Mtj0Bvs6HlI_dJi6g.1yRIXNgRNdttwhWNHPrLDGx5f6RhNbeEeJ_CP5kQH62J_ekBstl6BGY1H dT6Tx1xQEwHtgMaIxCJ9UpNm7UVAnkVO.uEhqeKyfSj_LXf.j1AkRaOfALS62vsyzNs56J0dVPwh BoSg7kqddvADH2J_mdApFRBuNMVEJuM4p8JC2bzUkVzYYkfz54_YF.9AmgGNkKFpBBWTMfa0faiV TfC6ATdmt1hBd9jU0OgEQ.OjCN9q41g7XcNTyE46pZQHoR3GYJszZkW_XZXwBmmoq29bmT0PM_wj lCVUw7rEwU5b0.Nnb2nyBQyOkaTvCL8GvwfjdLd_lw00m1eehwabTWeudgXRDq0EdvHgW5yeFJ5Z JMWU15Q1yg0meMjPloEkkEWg9ufvZqaYnlwEj3NCyZumeO1Em2kjF1T6KM4a.2kwGkFoweutGkWP 2S3ugbJxdBkO8dGotIoHit4kIEtyh7NWrZaRxnJq4kNgjTdK.c1HlAj_PtxNTwejmHRMr57z.L26 9ms7OWqFfVyLWi9VGCtBnKj._j9.9bs20YJ1XwyiKhzRhMyv8sOxIb7Zdouj6wbSM0dabmOOnsK1 hRbXQn1JMU4yDkfDSmJqNHDzKoZZl8CDlGBXZgFaBn_dt2CTMk6thKOF8hxI09MoH3cUXFTo8A3X 5mKL4ZIMt.8kIWNyAr4gkRhgDQP2ZYgkktPYnFm0D0AGl5exbmjXCmlwEV3sHW11QxBT4_5Va1JI 4mGNWfXUs1bXyyTuvBDEJR3WLc0F77cEBO2Ixjy2uL2la9QjFq_qFt6cOqo9uUym2QQqpEFKkYBi KydV3gS9BSyy7rSGgJAAwz5_g28QFHqbPMtGrpLh2Gdf7zRWpaxVVXP29IGS1M9gkn3a.bcE2b8m nE.G9MqyruQW7tkI4IXMgRx8TI1FM_LYmRW0nPlmWjOKzfBlhmXN7n5bonRxPEg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.sg3.yahoo.com with HTTP; Thu, 8 Nov 2018 20:16:07 +0000 Received: from PPPa3628.e13.eacc.dti.ne.jp (EHLO raspberrypi) ([59.157.101.87]) by smtp410.mail.sg3.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 5f1a76c922979c7a2ce1aa37b00aa36c; Thu, 08 Nov 2018 20:16:04 +0000 (UTC) Date: Fri, 9 Nov 2018 05:15:52 +0900 From: Y To: Sebastian Moeller Cc: Bloat@lists.bufferbloat.net Message-ID: <20181109051552.2d11fb64@raspberrypi> In-Reply-To: References: <20181105161227.1b63df36@raspberrypi> <87y3a4lma8.fsf@taht.net> <20181108064830.6c6a9682@raspberrypi> <20181108071306.32aa01ff@raspberrypi> <22A986F3-2A99-466E-9C03-2343503FE807@gmx.de> <20181108090652.70c8205f@raspberrypi> <20181108111752.6d50869a@raspberrypi> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; arm-unknown-linux-gnueabihf) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Bloat] About Setting Bandwidth limit with or without ethernet overhead? X-BeenThere: bloat@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: General list for discussing Bufferbloat List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 20:16:10 -0000 On Thu, 8 Nov 2018 08:57:18 -0800 Sebastian Moeller wrote: > Hi Y, > > > > On Nov 7, 2018, at 18:17, Y wrote: > > > > Dear Moe > > > > I have never touch this defaults.sh > > Oops, my bad. What I really wanted to see is the full > contents of the file you use to configure your sqm instances. If you > never edit defaults.sh t"han there are not the droids I am looking > for". > > But the tc output below seems okay to me. So do you observe any > peculiarities otherwise just use that configuration ;) > > Best Regards Ya , Thanks you for your help :) > > > > > > sqm-scripts/src/defaults.sh > > > > # You need to jiggle these parameters. Note limits are tuned > > towards a <10Mbit uplink <60Mbup down > > > > [ -z "$SCRIPT" ] && SCRIPT= > > [ -z "$UPLINK" ] && UPLINK=2302 > > [ -z "$DOWNLINK" ] && DOWNLINK=14698 > > [ -z "$IFACE" ] && IFACE=eth0 > > [ -z "$QDISC" ] && QDISC=fq_codel > > [ -z "$LLAM" ] && LLAM="default" > > [ -z "$LINKLAYER" ] && LINKLAYER="none" > > [ -z "$OVERHEAD" ] && OVERHEAD=0 > > [ -z "$STAB_MTU" ] && STAB_MTU=2047 > > [ -z "$STAB_MPU" ] && STAB_MPU=0 > > [ -z "$STAB_TSIZE" ] && STAB_TSIZE=512 > > [ -z "$AUTOFLOW" ] && AUTOFLOW=0 > > [ -z "$LIMIT" ] && LIMIT=1001 # sane global default for > > *LIMIT for fq_codel on a small memory device [ -z "$ILIMIT" ] && > > ILIMIT= [ -z "$ELIMIT" ] && ELIMIT= > > [ -z "$ITARGET" ] && ITARGET= > > [ -z "$ETARGET" ] && ETARGET= > > [ -z "$IECN" ] && IECN="ECN" > > [ -z "$EECN" ] && EECN="ECN" > > # These two used to be called something else; preserve backwards > > compatibility [ -z "$ZERO_DSCP_INGRESS" ] && > > ZERO_DSCP_INGRESS="${ZERO_DSCP:-${SQUASH_DSCP:-1}}" [ -z > > "$IGNORE_DSCP_INGRESS" ] && > > IGNORE_DSCP_INGRESS="${IGNORE_DSCP:-${SQUASH_INGRESS:-1}}" > > > > [ -z "$IQDISC_OPTS" ] && IQDISC_OPTS="" > > [ -z "$EQDISC_OPTS" ] && EQDISC_OPTS="" > > [ -z "$TC" ] && TC=tc_wrapper > > [ -z "$TC_BINARY" ] && TC_BINARY=$(which tc) > > [ -z "$IP" ] && IP=ip_wrapper > > [ -z "$IP_BINARY" ] && IP_BINARY=$(which ip) > > # Try modprobe first, fall back to insmod > > [ -z "$INSMOD" ] && INSMOD=$(which modprobe) || INSMOD=$(which > > insmod) [ -z "$TARGET" ] && TARGET="5ms" > > [ -z "$IPT_MASK" ] && IPT_MASK="0xff" # to disable: set mask to > > 0xffffffff #sm: we need the functions above before trying to set the > > ingress IFB device #sm: *_CAKE_OPTS should contain the diffserv > > keyword for cake [ -z "$INGRESS_CAKE_OPTS" ] && > > INGRESS_CAKE_OPTS="diffserv3" [ -z "$EGRESS_CAKE_OPTS" ] && > > EGRESS_CAKE_OPTS="diffserv3" > > > > # HTB without a sufficiently large burst/cburst value is a bit CPU > > hungry # so allow to specify the permitted burst in the time domain > > (microseconds) # so the user has a feeling for the associated worst > > case latency cost # set to zero to use htb default butst of one MTU > > [ -z "$SHAPER_BURST_DUR_US" ] && SHAPER_BURST_DUR_US=1000 > > [ -z "$ISHAPER_BURST_DUR_US" ] && > > ISHAPER_BURST_DUR_US=$SHAPER_BURST_DUR_US [ -z > > "$ESHAPER_BURST_DUR_US" ] && > > ESHAPER_BURST_DUR_US=$SHAPER_BURST_DUR_US > > > > # use the same logic for the calculation of htb's quantum > > # quantum controlls how many bytes htb tries to deque from the > > current tier # before switching tiers. > > [ -z "$SHAPER_QUANTUM_DUR_US" ] && > > SHAPER_QUANTUM_DUR_US=$SHAPER_BURST_DUR_US [ -z > > "$ISHAPER_QUANTUM_DUR_US" ] && > > ISHAPER_QUANTUM_DUR_US=$SHAPER_QUANTUM_DUR_US [ -z > > "$ESHAPER_QUANTUM_DUR_US" ] && > > ESHAPER_QUANTUM_DUR_US=$SHAPER_QUANTUM_DUR_US > > > > > > # Logging verbosity > > VERBOSITY_SILENT=0 > > VERBOSITY_ERROR=1 > > VERBOSITY_WARNING=2 > > VERBOSITY_INFO=5 > > VERBOSITY_DEBUG=8 > > VERBOSITY_TRACE=10 > > [ -z "$SQM_VERBOSITY_MAX" ] && SQM_VERBOSITY_MAX=$VERBOSITY_INFO > > # For silencing only errors > > [ -z "$SQM_VERBOSITY_MIN" ] && SQM_VERBOSITY_MIN=$VERBOSITY_SILENT > > > > [ -z "$SQM_DEBUG" ] && SQM_DEBUG=0 > > if [ "$SQM_DEBUG" -eq "1" ] > > then > > SQM_DEBUG_LOG=${SQM_STATE_DIR}/${IFACE}.debug.log > > OUTPUT_TARGET=${SQM_DEBUG_LOG} > > else > > OUTPUT_TARGET="/dev/null" > > fi > > > > # These are the modules that do_modules() will attempt to load > > ALL_MODULES="act_ipt sch_$QDISC sch_ingress act_mirred cls_fw > > cls_flow cls_u32 sch_htb sch_hfsc" > > > > tc -s qdisc > > qdisc noqueue 0: dev lo root refcnt 2 > > Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) > > backlog 0b 0p requeues 0 > > qdisc htb 1: dev eth0 root refcnt 2 r2q 10 default 18 > > direct_packets_stat 0 direct_qlen 3 Sent 2448706 bytes 1851 pkt > > (dropped 319, overlimits 4375 requeues 0) backlog 6413b 4p requeues > > 0 qdisc fq_codel 120: dev eth0 parent 1:12 limit 1001p flows 1024 > > quantum 300 target 17.2ms interval 112.2ms memory_limit 32Mb Sent > > 2437470 bytes 1844 pkt (dropped 319, overlimits 0 requeues 0) > > backlog 6413b 4p requeues 0 maxpacket 1643 drop_overlimit 0 > > new_flow_count 861 ecn_mark 0 memory_used 8960 new_flows_len 0 > > old_flows_len 7 qdisc fq_codel 130: dev eth0 parent 1:13 limit > > 1001p flows 1024 quantum 300 target 17.2ms interval 112.2ms > > memory_limit 32Mb Sent 0 bytes 0 pkt (dropped 0, overlimits 0 > > requeues 0) backlog 0b 0p requeues 0 maxpacket 0 drop_overlimit 0 > > new_flow_count 0 ecn_mark 0 new_flows_len 0 old_flows_len 0 > > qdisc fq_codel 110: dev eth0 parent 1:11 limit 1001p flows 1024 > > quantum 300 target 17.2ms interval 112.2ms memory_limit 32Mb Sent 0 > > bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p > > requeues 0 maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0 > > new_flows_len 0 old_flows_len 0 > > qdisc ingress ffff: dev eth0 parent ffff:fff1 ---------------- > > Sent 117856 bytes 1631 pkt (dropped 0, overlimits 0 requeues 0) > > backlog 0b 0p requeues 0 > > qdisc htb 1: dev ifb4eth0 root refcnt 2 r2q 10 default 16 > > direct_packets_stat 0 direct_qlen 32 Sent 206912 bytes 1631 pkt > > (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 > > qdisc fq_codel 110: dev ifb4eth0 parent 1:10 limit 1001p flows 1024 > > quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn > > Sent 206912 bytes 1631 pkt (dropped 0, overlimits 0 requeues 0) > > backlog 0b 0p requeues 0 maxpacket 1643 drop_overlimit 0 > > new_flow_count 1428 ecn_mark 0 new_flows_len 1 old_flows_len 6 > > > > qdisc noqueue 0: dev lo root refcnt 2 > > qdisc htb 1: dev eth0 root refcnt 2 r2q 10 default 18 > > direct_packets_stat 0 ver 3.17 direct_qlen 3 linklayer atm overhead > > -4 mtu 2047 tsize 512 qdisc fq_codel 120: dev eth0 parent 1:12 > > limit 1001p flows 1024 quantum 300 target 17.2ms interval 112.2ms > > memory_limit 32Mb qdisc fq_codel 130: dev eth0 parent 1:13 limit > > 1001p flows 1024 quantum 300 target 17.2ms interval 112.2ms > > memory_limit 32Mb qdisc fq_codel 110: dev eth0 parent 1:11 limit > > 1001p flows 1024 quantum 300 target 17.2ms interval 112.2ms > > memory_limit 32Mb qdisc ingress ffff: dev eth0 parent ffff:fff1 > > ---------------- qdisc htb 1: dev ifb4eth0 root refcnt 2 r2q 10 > > default 16 direct_packets_stat 0 ver 3.17 direct_qlen 32 linklayer > > atm overhead -4 mtu 2047 tsize 512 qdisc fq_codel 110: dev ifb4eth0 > > parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms > > interval 100.0ms memory_limit 32Mb ecn > > > > > > > > On Wed, 07 Nov 2018 16:35:16 -0800 > > Sebastian Moeller wrote: > > > >> Dear Y. > >> > >> Okay could you please post the full defaults.sh then as I assume > >> this to configure sqm. Also the output of > >> tc -s qdisc > >> tc -d qdisc > >> Would be interesting. > >> > >> Best Regards > >> > >> > >> On November 7, 2018 4:06:52 PM PST, Y > >> wrote: > >>> moeee :) > >>> > >>> I don't use openwrt. > >>> Maybe, so I cannot find /etc/config/sqm on my pc. > >>> But I use sqmscript with below setting. > >>> > >>> UPLINK=815 # 98% of linkspeed > >>> DOWNLINK=11603 # 98% of linkspeed > >>> SCRIPT=simple.qos > >>> LINKLAYER=atm > >>> OVERHEAD=-4 > >>> EECN=NOECN > >>> > >>> Thanks. > >>> Yutaka. > >>> > >>> > >>> On Wed, 7 Nov 2018 15:21:24 -0800 > >>> Sebastian Moeller wrote: > >>> > >>>> Hi Y, > >>>> > >>>> when you shape for an ATM link you absolutely nned to set the > >>>> linklayer to ATM. If you use openwrt why don't you post the > >>>> contents of "cat /etc/config/sqm" > >>>> here and we can go over it line by line? > >>>> > >>>> Best Regards > >>>> Sebastian > >>>> > >>>>> On Nov 7, 2018, at 14:13, Y wrote: > >>>>> > >>>>> I am sorry. Dave. > >>>>> > >>>>> My actual speed with this setting , almost expected . > >>>>> Around 90kbytes per second actual speed = 810kbit per second > >>>>> actual setting speed * 48/53 considering atm connection. > >>>>> This settled speed doesn't include ethernet framing. > >>>>> > >>>>> Maybe , > >>>>> Bandwidth = without ethernet overhead > >>>>> tc-stab overhead = -14 > >>>>> is correct. > >>>>> > >>>>> Thank you . > >>>>> > >>>>> On Thu, 8 Nov 2018 06:48:30 +0900 > >>>>> Y wrote: > >>>>> > >>>>>> Hi , Dave > >>>>>> Thank you for your reply. > >>>>>> > >>>>>> I should show you tc-stab setting. > >>>>>> > >>>>>> My connection is PPPoA via ethernet. PC connects ethernet > >>> directly. > >>>>>> > >>>>>> ####stab linklayer atm overhead -4 > >>>>>> > >>>>>> I add PPPoA overhead 10 + Ethernet overhead -14 = -4 > >>>>>> But, settled Bandwith is 98% of link speed ( I mean this is > >>>>>> settled bandwidth without ethernet overhead). > >>>>>> > >>>>>> I should shape more? > >>>>>> > >>>>>> Thanks. > >>>>>> > >>>>>> On Wed, 07 Nov 2018 11:28:47 -0800 > >>>>>> Dave Taht wrote: > >>>>>> > >>>>>>> Y writes: > >>>>>>> > >>>>>>>> Hi, I am Yutaka. > >>>>>>>> > >>>>>>>> I connect internet via ethenet. > >>>>>>>> Shoud I set Bandwidth limit with or without ethernet overhead > >>>>>>>> in any qdiscs? > >>>>>>>> When I measured , It seems setting without ethernet overhead > >>>>>>>> is correct. > >>>>>>> > >>>>>>> It depends on your next hop's framing. If you are on ethernet > >>>>>>> going to ethernet, then you should set ethernet. If you are on > >>>>>>> ethernet, going through a cablemodem, set docsis. If you are > >>>>>>> on ethernet, going through dsl or something else, you set > >>>>>>> the > >>> framing > >>>>>>> appropriately. > >>>>>>> > >>>>>>> Without setting the framing appropriately you can run into > >>>>>>> situations where your shaper can be 60% in accurate (dsl). > >>>>>>> > >>>>>>>> > >>>>>>>> Thanks. > >>>>>>>> _______________________________________________ > >>>>>>>> Bloat mailing list > >>>>>>>> Bloat@lists.bufferbloat.net > >>>>>>>> https://lists.bufferbloat.net/listinfo/bloat > >>>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> Bloat mailing list > >>>>> Bloat@lists.bufferbloat.net > >>>>> https://lists.bufferbloat.net/listinfo/bloat >