Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3027428ybc; Thu, 21 Nov 2019 02:09:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwVdqmJbargihFn9DR1tFBqQPNdTUDxPP5M/OBbDOD/rletdAXCQW1R/IfpiQeRXi5OAt7Y X-Received: by 2002:a17:906:57d7:: with SMTP id u23mr12995876ejr.130.1574330963318; Thu, 21 Nov 2019 02:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574330963; cv=none; d=google.com; s=arc-20160816; b=OlTZOH3MTZj17jbK6W2Ckd1+UjJRNh9aqUOJMOi/iK5P9SpHx4MkVi7GMVK2+TeTi/ wRioxESj+28w6dvlhZymgKDbW5HonNdWMOkia3F4fF4HwsUA+lwaTLQqJr/CGc5g3RWN 0FrpqLUZGcBHA6t55YB7h43i0gp0a6dgkll7U3zwDUkuoDLGh+B4fEQkBuYUHpzeQa8e URE6JLrNobShXr8cQGx1ZlMvppQvHtYKbqwfhJrxwjV9vUdvinQOUVb2JjxmJZn2SEoV JjkLLbOU+wvBfNjbZ1l6YmdbwdwdACeugDqayqlbO/kqMPg9qXuWU+3Uvd+msSuhNyB3 q0oQ== 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:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=PKJaj7sZjc6579dv29AEceQXePo8ctco2c9W8uoDneA=; b=SwEsYm/n+9YUVZanm1nqAgc2kiyG4wY6UkoJjpKd4Z386XMrqPvl8GOY+xbYN/a6Zd TIXSfOl7yvZ/Xkmg0lBlzJ/C7qrGwmSv8TGMIftDkWs/XaqdgjqcZU2kwDWsSSgGNytM lw5m6VzLxZI/BpSo7JnKWojnfaUtsJq8+llUC0PsUAvv4yoGRftdlA7I0rI4o/hQMBSt zxgE0v0iUL/uiC80qAP4BvfGX7bBKrv7JjRgrE9EM3DrWa80J6P/qFb86SV/aNeICLl2 I4hZhtPTDyBt5KYtU3Q/DWuN5qAkHY2dhyKqiJsVHhR7TlC0+I0vbZJs8m2uaetC2hlY KXEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I9EuNpwB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si1692647eda.404.2019.11.21.02.08.46; Thu, 21 Nov 2019 02:09:23 -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=@redhat.com header.s=mimecast20190719 header.b=I9EuNpwB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbfKUKFY (ORCPT + 99 others); Thu, 21 Nov 2019 05:05:24 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:27977 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726529AbfKUKFY (ORCPT ); Thu, 21 Nov 2019 05:05:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574330723; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PKJaj7sZjc6579dv29AEceQXePo8ctco2c9W8uoDneA=; b=I9EuNpwBQtQhMpVHFfDSBGULjn1fBrwDDujknEJPk1WhRMMRrV3bdjGaYpYZPl65D1OuB8 qUt1RBQuhpExzLm6JIBkG5ocwCcDLssn2xBjy/KFlIcQ8L+xn4Fu6T3CiKG071Pg0yGqgj xG/zNPJpIULEQx9D7yVLt0Wc8MiciCA= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-349-8EZ2ZZ0iMW2yjXcmvsm7Dg-1; Thu, 21 Nov 2019 05:05:20 -0500 Received: by mail-lj1-f200.google.com with SMTP id e17so452015ljj.12 for ; Thu, 21 Nov 2019 02:05:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=//BqCXRTQqZ/4bta4yIpsp57qADMVHEdiZm1YRgSpeA=; b=iLuQQnPib8wnF896oMbgOnKkKxO3n3i6iZn5+7TVNj6y1PXYPCyjsGTseEZ6kv97Ve lppZLiCWAainW1pgucdXszRKdXyZlN8bXOzP0xJZ7YdBAvCsoyMQMGpO3FJCbC3tIUDF 0kNh+z9xtx7k9JcJAq8HxdXvwoTVllhOS9LooJuXDRCVmdYC5L0XCIn9eqC7XA65vo1d 5kfxCywcpus0X8h2oXvgQwRY/zGOaabZjatA9nc/58ov5HxFhs2EUDOKdgSgKCzcAcse 19P7oQ1YfGn4zRQ5oaH96vQlj6JKnUavGcAmLE7YeSXhxllsMbp5D58aw17sL0SP+/wI tt+g== X-Gm-Message-State: APjAAAUCwpYDa8Pj67JVMd69AhZVoQu0agP3u+TnUVrKVVHGRFMQNDSj y5vPdapt7slN/lVrklX8xFUB9C8Cc9SZyhns5tFkKZDv3kdQCi/qvSzcWeytJBWqdsfgLDtyUeg 15pfoKocHi+mpj5xD20u0rnh5M3c= X-Received: by 2002:a2e:7204:: with SMTP id n4mr6346094ljc.139.1574330718761; Thu, 21 Nov 2019 02:05:18 -0800 (PST) X-Received: by 2002:a2e:7204:: with SMTP id n4mr6346072ljc.139.1574330718505; Thu, 21 Nov 2019 02:05:18 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk (borgediget.toke.dk. [85.204.121.218]) by smtp.gmail.com with ESMTPSA id y5sm1078673lfg.5.2019.11.21.02.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 02:05:17 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 65D611818B9; Thu, 21 Nov 2019 11:05:16 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Kan Yan Cc: Dave Taht , Rajkumar Manoharan , Kevin Hayes , Make-Wifi-fast , linux-wireless , Yibo Zhao , John Crispin , Johannes Berg , Lorenzo Bianconi , Felix Fietkau Subject: Re: [Make-wifi-fast] [PATCH v8 0/2] Implement Airtime-based Queue Limit (AQL) In-Reply-To: References: <20191115014846.126007-1-kyan@google.com> <8736eiam8f.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 21 Nov 2019 11:05:16 +0100 Message-ID: <87a78p8rz7.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: 8EZ2ZZ0iMW2yjXcmvsm7Dg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Kan Yan writes: >> It would be interesting to get some samples of the actual sojourn time >> as seen by CoDel in mac80211. Might be doable with bpftrace... > > I will try to add some trace event to get the sojourn time for the > next round of tests. In theory, this ought to produce a histogram of sojourn times (in microseconds): bpftrace -e 'kretprobe:codel_skb_time_func { @sojourn =3D lhist((nsecs - (r= etval << 10))/1000, 0, 100000, 1000); }' 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? It would be interesting to see if it works for you, assuming you can get bpftrace to work on your test system :) -Toke