From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x241.google.com (mail-qt0-x241.google.com [IPv6:2607:f8b0:400d:c0d::241]) (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 E20CA3B29F for ; Sun, 9 Oct 2016 13:44:05 -0400 (EDT) Received: by mail-qt0-x241.google.com with SMTP id m5so2659999qtb.0 for ; Sun, 09 Oct 2016 10:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=PTuchc8eTTe+m4O7HKnL8VuM+QYgr9sofUqNUuiBwLA=; b=TMvFvKaDD8f0b0umG6Hb8E0RFDLD8kOAv0Yzfo/a5k3i+3aZaiJcZvHxeqEdY7DfxB bfSYqHuvF/yrCPJjeMwJeQsNKF2AZgrx0iYtubcV8tqfNyKB3JwujouVxJkE6CH+45GN XS2Fwg+05NCB8oryXzYpvyQD30ZnTJMg9vf4QOWoe5VzMvV3BUMP6Qys7HTviTJIdlrx ki5dVbOGG86uCHcxHnvWl6IfHsyIoe/D1BbBir9eR+f49joiw9UMZ4Pke/5ZglBaak4F gDvV4ctTZs/6Uvk6ZQltM0E0SW456N8MHy4zuiSKVwA52ZkD/Lsj0vLr+Hw5kbzsIG8y QsXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=PTuchc8eTTe+m4O7HKnL8VuM+QYgr9sofUqNUuiBwLA=; b=ArtDU9EtHvlf6clVyfr99TVBNpD2WNK/OCGhnYKmNQcTrioubg9EJOqWcXt/td1pNp isZjfDm2fyGsC2/h5vybiTf5y4BcVJp5kK0rEXwS9efmGuQRMui40Om3ytS5KA9T5ONB s0+CQ1sxrQvt7cHUsncIRGLO8qOUkBwaRgJcQlzX/WycArTI4ZMZXdaAOpFrBkRUN1pt tdvOWfw+5L+m9Zr+pEuOgjTIXMkwKG0++a59TszVEXqO4Q3MIHXwGRjCnI1Qlk5GzdAQ OBcHwrEA5raj0w9/fSGJjZS/XIL03qKVGzqesoYE+g0/CGgAZ7LPPNdHRCsb8kbrsD1U NzaA== X-Gm-Message-State: AA6/9Rkjddxn7AsXcq7a4gzQAaZ3UCZIH48DI6m7vjclmxkFsk6xPCAcfz6PFrmC1eHBmuNlNjm2+KPwEv/nDQ== X-Received: by 10.237.46.161 with SMTP id k30mr3093586qtd.104.1476035045323; Sun, 09 Oct 2016 10:44:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.146.164 with HTTP; Sun, 9 Oct 2016 10:44:04 -0700 (PDT) From: Dave Taht Date: Sun, 9 Oct 2016 10:44:05 -0700 Message-ID: To: make-wifi-fast@lists.bufferbloat.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Make-wifi-fast] netnext, ubuntu fq_codel+airtime for ath9k, fq_codel for ath10k X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2016 17:44:06 -0000 I have updated toke's patch set to apply on top of net-next. You can get pre-built kernel .debs and the patches from: http://www.taht.net/~d/airtime-8/ These were built for ubuntu 16.04. I've also supplied a sample hostapd.conf file for x86. I found it necessary in some cases to "kick" the ath9k card into 5ghz mode by manually running iwconfig essid whatever channel 36 before hostapd would start. (I did not get HT40 to work on this card, but I never had before) Tested on the pcengines apu2d2 (ath10k), and a Qualcomm Atheros AR9462 in a laptop acting as AP... with up to 5 clients, mostly from the last working build for lede. Note, these are "unofficial" - my main purpose was to test crypto and make sure that the stuff didn't crash. 1) I did not preserve authorship in these (how do you apply git patches with fuzz?) 2) I moved back the fq_codel defaults to the same as mainline, rather than the relaxed defaults others have been using. For all I know this will mess with codel, but there are a few other approaches to try there. 3) enabled the fq_codel stuff for the ath10k cards I have 4) I did not apply toke's patch to make codel gentler at lower rates As these are based on net-next, I wouldn't risk a machine you care about to this! I have got an occasional oops from my graphics card in the laptop. * Tested on the ath10k and ath9k for several days ** not having airtime fairness on the ath10k hurts, but for single statio= n benchmarks, it's quite lovely. ** ath9k -> elsewhere is nice at both 2.4ghz and 5ghz. http://www.taht.net/~d/airtime-8/upisgood.png maybe it's too good, have to look at codel harder ** OSX appears to be cheating somehow ** stats seem to be wrong in this case? root@nemesis:/sys/kernel/debug/ieee80211/phy0/netdev:wlp3s0# cat aqm ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets 2 0 0 747 0 0 0 3 235451 748 but ok in this case: root@nemesis:/sys/kernel/debug/ieee80211/phy0/netdev:wlp3s0/stations/48:d7:= 05:c0:9a:d9# cat aqm tid ac backlog-bytes backlog-packets new-flows drops marks overlimit collisions tx-bytes tx-packets 0 2 0 0 245103 470812 0 0 2 1232820484 1844136 --=20 Dave T=C3=A4ht Let's go make home routers and wifi faster! With better software! http://blog.cerowrt.org