Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp158194ybj; Thu, 19 Sep 2019 12:13:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAVf4NQu6rR8vALFyrthG/ZOPB3yUDcYeMG6OYxyhD/KKdFCL1xkQ/dXSkJlmaqSlDLh7Y X-Received: by 2002:a17:906:7d10:: with SMTP id u16mr15492369ejo.194.1568920432823; Thu, 19 Sep 2019 12:13:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568920432; cv=none; d=google.com; s=arc-20160816; b=GnCfbNmMCfLa3EsNBPl4Pd31g85kaid/RlP/+lGdM3sgaT8ZfI7w0TZeF2J6hrzIG7 ynIXulYVRuEB993jwyMgWnr93ShxxrKuPEP6kPDO5GTlORoLZoEY9v2mb85m75AmlF83 3WOUJQ+Kw1lLqGCrNcGQ1LBRMqGhEvKXGPkziHY4r01VU0t1SNLLm00lDcba/1Wd2ONT Uy/Do4ENzbf5u/itYXHD9xWhvH8nJd78Ad0EEyZJK5I9f9gFgkZxd0OL02/vKvwwONfC ReJvFbrITZX8xdP2/vrxeSvdrAsrDBucdCNOb8Rbfg+Kj10QyxFaPAuZQrRKtCbjw617 1lVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nKKtMJgm2T8OQpNNkegrSmUFwcFcES0Bmbw8lt6ta2E=; b=cXzqaJy/VAiduZYJ69hOCgOqojjTKXU1zBwBrPLs9VtSrBvvwkxe+LzvQDsSTkJQNF Y8i1wAy3fgjKsjzY0r1W4F+1XDGEuh6yGIp0K6ABzquymbyMUxjaigL3MjfyeZ/Guwky zFf9i30RlxaHclJXPn8TMSr9FX4v0q9D5AtHG/fbmJOGs7LCEHM7kAXuwc92VyeCPnRi gYhahV9aC52ByFzE+D6RMxh1EMhxixcwMggMZN1Yokjvv2gmRAmV9MdD6bVxXr35+yQV JJ5LLzstFife14sAUSAzUMODY+tu0jOz1ub1ePU/P+cr+GzbSPcf8wECa4hx2yURjZSz 24Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=FvGCWlOA; 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=eero.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rh27si5067586ejb.52.2019.09.19.12.13.27; Thu, 19 Sep 2019 12:13:52 -0700 (PDT) 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=@eero.com header.s=google header.b=FvGCWlOA; 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=eero.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391133AbfISRyP (ORCPT + 99 others); Thu, 19 Sep 2019 13:54:15 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37395 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389717AbfISRyP (ORCPT ); Thu, 19 Sep 2019 13:54:15 -0400 Received: by mail-pf1-f193.google.com with SMTP id y5so2804057pfo.4 for ; Thu, 19 Sep 2019 10:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=nKKtMJgm2T8OQpNNkegrSmUFwcFcES0Bmbw8lt6ta2E=; b=FvGCWlOA83AdVjinet8cdNHH9U4kf0RnYxo/mg+ua/u0voG5RDgPRApc6YFKIfMxIN ptPYQj1m+IUtIrUJ/JTFOgZtM/V7Xevnawc63U4byD9Khz8STqtmJkciIFtac447xhp7 RWebBtMhKaKi8QJQX0wQLMJ4ze40ThS+joIq8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=nKKtMJgm2T8OQpNNkegrSmUFwcFcES0Bmbw8lt6ta2E=; b=TNoAx3cvgaayamoSoJo4dInrMP8mi1fjXXoSDSRP/MZPPLauhRc1lS60/jpeI3XdDw ATepQoKA+smwdgd/dcfAg0Ht9lsu+k8CKXZyvukm3yhWDrgknZSrj1OQm7rDEj2k91qd Jxoc71Vf5MWJor1AgfWaDwulCWav2oX0dFYlz/aAAR+d9gx+aW3hiupSha/KJBSO923Y 8M1ApLbplf+E46YjZK59ez8NKq3b4Chd6EU2dIoXoOQ3a3rZp9Ar95sPXNFXX9xM/hYi E9qLWOrl1+ZtaH3hHqljyUA3oboswIybn9sDtJlzmy3nUoV2IIcCv0Ow35hHDfkmX0YO ck7Q== X-Gm-Message-State: APjAAAXKPZ/YAThxsy5lvXuJm7HNEJvCpvdbuWX0PNCIJC3ETboVsWEi h7WpH/Y2SAjRWCCzzoWWQm5LLg== X-Received: by 2002:a63:4562:: with SMTP id u34mr10150235pgk.288.1568915654364; Thu, 19 Sep 2019 10:54:14 -0700 (PDT) Received: from [10.0.2.15] (eero.static.monkeybrains.net. [199.116.72.162]) by smtp.gmail.com with ESMTPSA id c14sm13534604pfm.179.2019.09.19.10.54.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 10:54:13 -0700 (PDT) Subject: Re: [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue To: Ben Greear , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , Johannes Berg Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, John Crispin , Lorenzo Bianconi , Felix Fietkau References: <156889576422.191202.5906619710809654631.stgit@alrua-x1> <156889576869.191202.510507546538322707.stgit@alrua-x1> <879913e9-4254-1381-07f6-d860fb0b8de0@candelatech.com> From: Peter Oh Message-ID: Date: Thu, 19 Sep 2019 10:54:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <879913e9-4254-1381-07f6-d860fb0b8de0@candelatech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 9/19/19 10:46 AM, Ben Greear wrote: > On 9/19/19 10:44 AM, Peter Oh wrote: >> On 9/19/19 5:22 AM, Toke Høiland-Jørgensen wrote: >>> From: Toke Høiland-Jørgensen >>> >>> This patch ports that idea over to mac80211. The basic idea is simple >>> enough: Whenever we dequeue a packet from the TXQs and send it to the >>> driver, we estimate its airtime usage, based on the last recorded TX >>> rate >>> of the station that packet is destined for. >> >> The way to decide the last recorded TX rate could be vary among >> drivers. In terms of ath10k driver and FW, they use 4 PPDUs to update >> the Tx rate. Isn't it too small sampling number to be used for AQL? > > Probably it is not exactly the last 4 either, since the report comes > back indirectly and not > synchronized with the tx path? > The point of my question is "the last recorded Tx raith small nte is derived wumber of PPDUs and if it's ok to use it for AQL calculation or not". Thanks, Peter