From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from orbital.burn.net (orbital.burn.net [IPv6:2607:f2f8:a4c8::2]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 70D5F3CB80 for ; Wed, 20 Jan 2016 10:30:28 -0500 (EST) Received: by orbital.burn.net (Postfix, from userid 1001) id 4A6FC2F210; Wed, 20 Jan 2016 10:30:28 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on orbital.burn.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 Received: from [IPv6:::1] (phosphor.burn.net [IPv6:2607:ff70:11::10]) by orbital.burn.net (Postfix) with ESMTPSA id AD10C2F20E; Wed, 20 Jan 2016 10:30:26 -0500 (EST) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_753EBACE-D868-4BB2-8A0A-CAE3C8411893"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Brandon Applegate In-Reply-To: <893CBD83-58AB-407E-864D-B47F0B8D0334@gmx.de> Date: Wed, 20 Jan 2016 10:30:25 -0500 Cc: Bloat@lists.bufferbloat.net Message-Id: References: <893CBD83-58AB-407E-864D-B47F0B8D0334@gmx.de> To: moeller0 X-Mailer: Apple Mail (2.2104) Subject: Re: [Bloat] Getting started with sqm-scripts - latency good, bandwidth decimated 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: Wed, 20 Jan 2016 15:30:29 -0000 --Apple-Mail=_753EBACE-D868-4BB2-8A0A-CAE3C8411893 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99ll try to tackle what I can for now below inline. > On Jan 20, 2016, at 6:30 AM, moeller0 wrote: >=20 > Hi Brandon, >=20 >=20 >> On Jan 20, 2016, at 00:33 , Brandon Applegate = wrote: >>=20 >> Disclaimer: if this is the wrong list for such a question - let me = know. This is specifically about the sqm-scripts package... >>=20 >> Hello, >>=20 >> I=E2=80=99ve been reading all I can on the bufferbloat website and = also trying to understand the evolution of the various scripts (debloat, = sqm, etc). >>=20 >> I managed to get sqm-scripts on my firewall (Ubuntu linux on a PC - = no *wrt etc). Got it built with the =E2=80=98linux=E2=80=99 platform. = Since this is Ubuntu 12.04 - I had to cheat a bit and pull down the = iproute2 source from 14.04. I=E2=80=99ve tweaked the main sqm script to = reflect this for the tc bindary - this is working. I also updated my = kernel to a later version that supports fq_codel. >=20 > Great, could I convince you to post a quick description of the = required steps somewhere linkeable on the net (in case we actually get = it to work correctly first ;) ) >=20 >>=20 >> My topology is =E2=80=98on a stick=E2=80=99. I have one gig = interface to a managed switch, on which are eth0.666 (outside/wan) and = eth0.10 (inside). >=20 > Okay, that is a configuration that has not received much testing = in the past=E2=80=A6 >=20 >>=20 >> I have 30/5 cable service, and have tried both those values as well = as 90% in my /etc/sqm/*conf file. >>=20 >> I=E2=80=99ve tried both eth0 (raw/parent interface) as well as = eth0.666. >=20 > Eth0 is not going to work in that situation as you will send and = receive both incoming and outgoing traffic on that interface, so we = really need to configure it correctly on the VLAN interfaces. I would = like to propose to start with egress/uplink first and handle ingress = afterwards. If you select eth0.666 (the superstitious among us would = probably try a different VLAN number ;) ) and only configure the upload = bandwidth but set download to 0, effectively sqm will only try to shape = the egress traffic. I would propose to try this first, if that works = let=E2=80=99s tackle download/ingress okay I set DOWNLINK to 0 and here are the results (again - using = speedtest.dslreports.com) Download: 36 mbit (bufferbloat through the roof) Upload: Slowly climbed to ~ 4.5mbit (bufferbloat good/very low) >>=20 >> No matter what I do - my bandwidth is 10% of what it should be. >=20 > Here a comprehensive list what you actually did might help to = form educated hypothesis what is going on... >=20 >> I get approx. 3/4mbit down + 2/3mbit up on dslreports speedtest. = Bufferbloat looks great though - A+. >=20 > Mmmh, while I would love to declare success (bufferbloat = quashed, let=E2=80=99s move on) I have a hunch you are not too impressed = with that solution ;) >=20 >>=20 >> Is there something inherent I=E2=80=99m doing wrong ? >=20 > No, by all means you are doing the right thing, namely helping = us making sqm robust under more different conditions, thanks. >=20 >=20 >> Something to do with my =E2=80=98on a stick=E2=80=99 topology biting = me ? >=20 > Could be, but nobody knows. >=20 >> Kernel version (Ubuntu=E2=80=99s 3.13.0-74-generic btw). >>=20 >> Thanks in advance for any help or info (or pointer to a more = appropriate list). >=20 > We recently taught sqm a whole new level of verbosity, please = have a look at Readme.md on https://github.com/tohojo/sqm-scripts , I = believe under non openwrt systems you might need to set: > [ -z "$SQM_VERBOSITY" ] && SQM_VERBOSITY=3D$VERBOSITY_DEBUG > instead of the default: > [ -z "$SQM_VERBOSITY" ] && SQM_VERBOSITY=3D$VERBOSITY_INFO > and then issue: > /usr/bin/sqm/sqm-bin stop > /usr/bin/sqm/sqm-bin start > manually to get more verbose output, You could also try setting = SQM_DEBUG unconditionally to 1 in defaults.sh (in addition to raising = the default log level to SQM_DEBUG) to get debug logs under: > /var/run/sqm/eth0.666.debug.log > or similar. That ideally will contain all debug output as well as all = calls to the tc and ip and iptables binaries and their output, which = should be plenty information to figure out the root cause of your = issues. I can=E2=80=99t get it to log anything for the life of me. I=E2=80=99ve = tried: SQM_DEBUG=3D1 SQM_VERBOSITY=3D8 /etc/init.d/sqm stop ; SQM_DEBUG=3D1 = SQM_VERBOSITY=3D8 /etc/init.d/sqm start As well as temporarily mucking around in the defaults.sh script. It = never writes anything to the /var/run (but the state gets written, so I = don=E2=80=99t think it=E2=80=99s perms). --Apple-Mail=_753EBACE-D868-4BB2-8A0A-CAE3C8411893 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWn6gRAAoJEMCnGJ6ewDp0yhEP/2bI8qRZ0gZtfb5qj59zUO4p 7R7ek60BtWVhiQhb4o4QauDBlr0ttUrNb9JCm5b15ezch8MFLOB2iZs/Q/SZQkYl lTrVHP3h7C0TAO0AO1DuMIhow5M5HLhZrk9o1h8dJbrnYcPCx73VcSdSJ9/JPQ7m q0B8o7A1d5gJH0Q1CJEs131iL9GILa+YBv0IUSt17m2SzKPJWLpML3bjb/9Dj3Aw FBeGU8rfD6jEVq62UmG/TYjDT7kf4Pmq1JMVmHZt2cLDr2IRCPbgWUMXSw3zYMw3 hdGKDP2bEQzzUMCgDxVdnQo8y+1KLwNFmHJav5c3ZmOQlcL1lbtWPElUdrWOakWF 1R2q1CVMsuqB/nCFEfJb6Y9JHY0/99RqcuABpUzNm28fv2pNDNq+H/rLeSjxAK93 2ECui6k3wQBnOubZu6pkd8ADvJZQp9LxrqCQaOzZMjDrQfbSbmGVsgCH6QCsOJWn ecQCiVfol9awUWU6DJgSxTN1uqVNckT0QPYk/9YzpkWO+gUdPvDImQt/37gdy38s 7a5ivT4L/31smgG2JVcan6FEjIWLsfRWoMGDHWRoxl3l8H09SkQMGQAnCyVdlOJK W5P05/HEwxkQa7d18HGmhggaE2WZsgMIBgrr5uH1kYBncdSeJLVGR9NIXkbuMgX+ Nm++RTjM/Tjw+v2kyaIs =9xgt -----END PGP SIGNATURE----- --Apple-Mail=_753EBACE-D868-4BB2-8A0A-CAE3C8411893--