From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (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 325373B2A3 for ; Fri, 3 Mar 2017 01:54:24 -0500 (EST) Received: by mail-qk0-x232.google.com with SMTP id h9so7469596qke.2 for ; Thu, 02 Mar 2017 22:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=7hb2ttPGHVV6kkUN/y/E9fOHRTKI/uAJthvKqvF+PIg=; b=MFNxk/i9lkZk7/RjIDLLsws2pky+vt+UUQldVtt0srmmIR7MLMmr2UCpXHc2oeGT2y FkFB7BbOQv+BclRjJ4gzt651xt4AFp++1xONN/IacEgMb0MdVEgva32TnN5cGJXhOHS0 TSScphj25bEig23YG2sqVW1d8cCV7JHybUyLGrHnawhFn087wpNyU7BBaLvBE/hDr4SP fQKTx+ewyIJ4s7Km/FM4rCrrY+vY7AylRQsAYPhHDvFRfseYRg7SO0VVX3KycnRaAbLi Lk+vJtVvAq1XSJfDJo4t9EiNBhz9mrqi4a/hfV92EUbTiHf4Fn/cNtCVtIBZH3UxqKAr sLcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=7hb2ttPGHVV6kkUN/y/E9fOHRTKI/uAJthvKqvF+PIg=; b=t/XbErP9IYU2x4WBdnu/TBarsD6zV6S4ioM1Y5OrG7/wr4FK+ORWPpgXp0mL4PYqSj l8aF81qrvHE+HYm1Cpq4/ocHYM2Z7iz9mCpvGBun0FF5F2cTPRM5Zyp02e/LZgdXdXjB /BFsIkL3afdpNJjzqmU7infJU/IjXJSAVmyjPAbmlFQlYVmBHN6MfFtMYIUTtDnNIbak Wk36ySaCGuBx/E2YNpvlWJtuoCwywwWMAu3Ri7Z2VJV7hGZlgLsu4JpayrHmMbF6Ueju P+4I2DIL6BeEnl+DyEmpsblTJXvu7QFGAFLs1LRF/U/vQqKlr7kmMQUHwL0mI+QgODrp bGuA== X-Gm-Message-State: AMke39lvGVKITIETL2YEklYsOC8GWvXti+ohvTORBLwLIbNhEBOjc3Jg9dU7tJzCSIluP/KKah4iAVZGkQNzyQ== X-Received: by 10.55.7.138 with SMTP id 132mr1238692qkh.114.1488524063538; Thu, 02 Mar 2017 22:54:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.142.132 with HTTP; Thu, 2 Mar 2017 22:54:23 -0800 (PST) From: Dave Taht Date: Thu, 2 Mar 2017 22:54:23 -0800 Message-ID: To: Cake List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Cake] improving inbound shaping X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 06:54:24 -0000 As that's the highest cpu user there is, (and the biggest problem I have, on comcast, there's 2 sec of latency at 100mbit without shaping: http://www.taht.net/~d/comcast2/asmiserabledlasever.png (more flent data there). It's always been a daydream to somehow bypass the existing tc_mirred facility we use and be able to express: tc qdisc add dev eth0 ingress cake bandwidth 990mbit and have that "just work". My hope would be that that would halve the packet copies needed (don't know if that's the case in the first place)= ... When I last looked at it (2+ years ago), that portion of linux was a hairball that extended back to the late 90s, and I gave up. There were a few commits there recently - adding hardware offload support for the flower classifier and this one: commit d2788d34885d4ce5ba17a8996fd95d28942e574e Author: Daniel Borkmann Date: Sat May 9 22:51:32 2015 +0200 net: sched: further simplify handle_ing Ingress qdisc has no other purpose than calling into tc_classify() that executes attached classifier(s) and action(s). It has a 1:1 relationship to dev->ingress_queue. After having commit 087c1a601ad7 ("net: sched: run ingress qdisc without locks") removed the central ingress lock, one major contention point is gone. The extra indirection layers however, are not necessary for calling into ingress qdisc. pktgen calling locally into netif_receive_skb() with a dummy u32, single CPU result on a Supermicro X10SLM-F, Xeon E3-1240: before ~21,1 Mpps, after patch ~22,9 Mpps. --=20 Dave T=C3=A4ht Let's go make home routers and wifi faster! With better software! http://blog.cerowrt.org