Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3785686ybc; Mon, 25 Nov 2019 21:36:15 -0800 (PST) X-Google-Smtp-Source: APXvYqx/fKAHzAa5qerv4DRDLjNDBg1i5e7kkSZGbS6rm6dtUdgbCeCIe6XpwCRgPMdKrDrNrbm0 X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr40367075ejb.138.1574746574999; Mon, 25 Nov 2019 21:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574746574; cv=none; d=google.com; s=arc-20160816; b=0xlxPPV23kW13/fhZiA9fotK0s4Ku6kM6+9HVALEytNyctsS2wcuUcQELXyA9f6qP5 gxtMQrK1nAbyt8JfHDKneSN0OH60UMsfaCyv//Rpugc7yxP7pFfZsshhh4XbMyJzJYpm bhkpnI/iI9CluqUQLZeP95JcFWQh314ztzySHCoT5zGq8emDBTnOlvn07gxFlLX96SZe jUsDjZcG2mukt8czAPAaCu1YzPQ6l23e+5lDzwRkNQEI/g7TnFYm7gqEDBYmUNutfik8 et1/vxQFkmJ5/wDnjRJQdlVpGoNtOBRh0jwvXykw8Pmji4h6yY+0w29OlJiwisW8UE2X EQVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JQSdHWPAU2nitRvT0Di7Ib4QABBb5+QiA8tiP3X9DWM=; b=LCw0bAqy9kxE6uDjB2wxjvNn8DIJR1Rr8k9rjigfS0hB8w58c2b9MmLDg2Ym/O+Srx yst/rd9FGm+v74MgZmeGGNo4HuMrm7Yr/bYaihPUTuTwTpn1a48vjmKccdp2Fdc4nQUL qbSa08V92uiqdOtVyjy4DDoq5e+5MtgnAQ03u/VdNUVZKIcv8ofAqzE45Ff0pazEJ4Ie dUARekSI84ecABbkLC8TT756cEo1DvrKyCoakoj2kLlmozKkSpeLIRCATsqZ/SB0I6/e Z8DvP+bvdxEQyV/QB+znkM17USuoYBPtbP/jM6CGNkyFWb2rWL4eXZkc4TxC8MsxXaFW wsFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lRned6cZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha8si6154269ejb.248.2019.11.25.21.35.33; Mon, 25 Nov 2019 21:36:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lRned6cZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725817AbfKZFEi (ORCPT + 99 others); Tue, 26 Nov 2019 00:04:38 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41589 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfKZFEi (ORCPT ); Tue, 26 Nov 2019 00:04:38 -0500 Received: by mail-lj1-f193.google.com with SMTP id m4so18569257ljj.8 for ; Mon, 25 Nov 2019 21:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JQSdHWPAU2nitRvT0Di7Ib4QABBb5+QiA8tiP3X9DWM=; b=lRned6cZi6/wDX1xJ1HLugPH2HIWLAYfrFFbV5Y5oAcFWELce6f+opZWj8td6z0XNB k8QaFu+1RuA6mRb6k5xImAYyuEqIs/5RktUh92Mf1W/F9z/AaiEK+lGAUctcjdbJj4RR 7cIdRNW6MzmSYifH29aeislagfZslmXmofI5n55rTGY6AYHNYnAzXu/OQfLxhoOOzFP2 MMmVDBGqiuDpDvGwnDsqdMC3TlTl4xlDDzzyxZmRx9shgiXdB2xjfmG+wnXw9dqWE1ak jU3JPtw85qRh/Wex4UWXpT6hECE89NXzNikKzqO9jc1HxjBzorcm53qyHJzNYjs/wG/W 99xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JQSdHWPAU2nitRvT0Di7Ib4QABBb5+QiA8tiP3X9DWM=; b=bwZPBqOFULCXhm9V+WgZmFiR/GfYnq73k5GyYNeKUWOfHAsD/z5/Lj4EAeQysbr0aK Uf+iztjVUg/UF8onQZRZQAjGBbywfrwWCZh08rgcNbtVXyJcncLcwobv/QxdmYX3YF9+ RUf5AUUi2cQ0BcwxXrGftJgXG9G5Xn1myPqKfQin9Sxv84y86qvasvQatgnJvCzaCv16 6rGEGOjL5Fj3mWh+/XYfSvKqfFSlM1p4puu0BJNaIbg+xySV3QHgdz7fptpn3Umdkle1 agvpIPKHjDJ5Bg03OSmzX3nWQKvXfu1uFfwJAokmbXSRck5fcVaNCFWIiIykGEoVG42T jHZA== X-Gm-Message-State: APjAAAUYN0IbrV36QUpNHctHLLR+D9G2aze2/IN8jU2lR0R6jHFQkqyC V/yxQOVK4cTkbhSsLJ23M6lV04bokDIB4mRw7GsayQ== X-Received: by 2002:a2e:574d:: with SMTP id r13mr24686240ljd.10.1574744675047; Mon, 25 Nov 2019 21:04:35 -0800 (PST) MIME-Version: 1.0 References: <20191115014846.126007-1-kyan@google.com> <8736eiam8f.fsf@toke.dk> <87a78p8rz7.fsf@toke.dk> <87muco5gv5.fsf@toke.dk> In-Reply-To: <87muco5gv5.fsf@toke.dk> From: Kan Yan Date: Mon, 25 Nov 2019 21:04:23 -0800 Message-ID: Subject: Re: [Make-wifi-fast] [PATCH v8 0/2] Implement Airtime-based Queue Limit (AQL) To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Dave Taht , Rajkumar Manoharan , Kevin Hayes , Make-Wifi-fast , linux-wireless , Yibo Zhao , John Crispin , Johannes Berg , Lorenzo Bianconi , Felix Fietkau Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Yeah, bpftrace can be a bit of a pain to get running; but it may be > worth the investment longer term as well. It really is quite useful! :) My attempt to build bpftrace didn't work out, so I just got the sojourn time using old fashioned trace event. The raw trace, parsed data in csv format and plots can be found here: https://drive.google.com/open?id=3D1Mg_wHu7elYAdkXz4u--42qGCVE1nrILV All tests are done with 2 TCP download sessions that oversubscribed the link bandwidth. With AQL on, the mean sojourn time about ~20000us, matches the default codel "target". With AQL off, the mean sojourn time is less than 4us even the latency is off the charts, just as we expected that fd_codel with mac80211 alone is not effective for drivers with deep firmware/hardware queues. > Any chance you could turn ecn on and off and give it a go > again in your next test run? ECN on shows very similar results as with ECN off. "aqm" stats from debugfs shows it is doing ECN marking instead of dropping packets as expected. Flent test data also is in the same link. On Fri, Nov 22, 2019 at 2:45 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > Kan Yan writes: > > >> In theory, this ought to produce a histogram of sojourn times (in > >> microseconds): > >> bpftrace -e 'kretprobe:codel_skb_time_func { @sojourn =3D lhist((nsecs= - > > (retval << 10))/1000, 0, 100000, 1000); }' > > > > Thanks for the tips! > > > >> Can't get the CoDel drop mechanism to trigger on my system at all, > >> though (a laptop running on iwl). I guess because there's queue > >> backpressure to userspace first? > > > > What's the tcp_congestion_control in your system? Maybe it is BBR that > > prevents bufferbloat. > > It's not BBR, just plain old CUBIC. I've seen the issue before that it's > almost impossible to build a queue in the mac80211 layer when the TCP > session is originated on the local machine, though... > > >> It would be interesting to see if it works for you, assuming you can g= et > >> bpftrace to work on your test system :) > > > > I can enable required kernel configuration easily, but cross-compile > > bpftrace for an ARM64 platform may take some time and effort. > > Yeah, bpftrace can be a bit of a pain to get running; but it may be > worth the investment longer term as well. It really is quite useful! :) > > Some links: > > Install guide: > https://github.com/iovisor/bpftrace/blob/master/INSTALL.md > > Tutorial by one-liners: > https://github.com/iovisor/bpftrace/blob/master/docs/tutorial_one_liners.= md > > Reference guide: > https://github.com/iovisor/bpftrace/blob/master/docs/reference_guide.md#5= -tracepoint-static-tracing-kernel-level > > -Toke >