Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp154050ybj; Thu, 19 Sep 2019 12:10:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuPS5Z8yx+0Aqagf/N5JPqiRqgehgQSm/1Kt3ttclWTdlivkiuhs+JqcPngGdSd0cqbLne X-Received: by 2002:a50:ab84:: with SMTP id u4mr17757795edc.13.1568920203649; Thu, 19 Sep 2019 12:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568920203; cv=none; d=google.com; s=arc-20160816; b=04DUxAQAuDFr1pAUImQXKAbROU/DTzf9F/nl/p0MWqdKeHTRhZ7hCUe0R0hkgr3YQn oiVD2brqnwSTjVafnfUwKZY9b6DYttMw9gQ/8EAVB4Km/jW/arMLuJsAn7buEGfVUe55 oPN6a/AI30QLsc12TbnBka1Ye3nlSWK4qEUKL6OvhM3dkLGMJLWkqIPAcOjn0KoWgJsH Fmnc3ivCZ6wXMrHdK3X8vnbeYLG5UXU3UGxIrU9ORBsc3fgo3AEcg1j+U9yuRI+7N4bv QY8KW6jncckOtsEn2yovxpVByEKPOl5auYgXaciJUOyLRb4k9Dr+ycjybVdWAwD0DNDh L78A== 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=KV7BcvVoIG2Uqk9r+7/9f3w5prQhME9V1LLUutRolBE=; b=jDohgQyFg7OxJE1E43t0OqF0hkZveQ1LodYd+Fy402rLnoR22tbdaDR/sifPEEqdgP 2hgV9nAfhzJo75/O3ew9o/UMo2ExNGBsevSyJmMVGq6bRLRp3Y1gnBiVMLUZmuf6so5F yUaYYtfGaxnk6z76RkEAGsg104P/UjK6w0Xw6Ine2CvXBkRAw3omWY+KdQj6R8osAC6w Ab0B7DxLDw8ARf0mIY25GcMXMskhcG/QBaQH0M26ydv6tqR0ja3uvtFEKf9PTWz1bgE0 3TFdQMyy7Wx6vT3WkU990nfTucRjt6iXtwi3SxoDqhXFFDyHBWPdCaJXrNBzNYFXoT2a KX4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b="uZHjeIj/"; 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 s20si5039849eja.63.2019.09.19.12.09.33; Thu, 19 Sep 2019 12:10:03 -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="uZHjeIj/"; 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 S2391044AbfISRol (ORCPT + 99 others); Thu, 19 Sep 2019 13:44:41 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:45548 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391042AbfISRok (ORCPT ); Thu, 19 Sep 2019 13:44:40 -0400 Received: by mail-pg1-f196.google.com with SMTP id 4so2274048pgm.12 for ; Thu, 19 Sep 2019 10:44:39 -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=KV7BcvVoIG2Uqk9r+7/9f3w5prQhME9V1LLUutRolBE=; b=uZHjeIj/sglu3+IuPenK9IEHeEBP81Q4z+qBPBqMuKlP+1l9koWIJYZVF9q01mV3sI y8sP4C6YroshRsQOq2ryYGn1R2Yp6hIL1ApB/i+9eI8ANaJqn1fTQ0oUBFeMAXTzS0iN 3rVPCn4MJWWXYaPs/qK/NCMr5za6VKXNr8wjw= 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=KV7BcvVoIG2Uqk9r+7/9f3w5prQhME9V1LLUutRolBE=; b=n0Gdy0ZEIs2gNGoO2p40PZrsZaxfq6/LCYqJOwJsyHh2/NYkkxmJoav3U7P14oveIm lUX5oN2PGmiVHP9NUmyjtkUjdlRF6xutWf3joXLwlrmHHecjFA5LiG8eNHc3OT2ysC1g n1u+OH2m43fD8TtelovT94lhnJCyoh0vuQMwJ8NeDLKF/63cb/kJ8eQcQlOKGHxE1Bfb BEltFthOf8+eL6CxHkwPJi3qgeooPFii3dbIx8YTUCTpo3R6GewF2Moef63mGlAnzb/W mxB1kCPULSbva9PsPUsqUUQ/t5vcWx2t7K2ebGSZCzz0xleOXbswDcDPJZUadfFuAqC5 zuxw== X-Gm-Message-State: APjAAAVHlGq93DMbtdNI3qcglpsZGIVjtc5s9Ju4ubNTRdmKAQFkaZ3Z EuMq6VPycJanHgRbJAaaaxXlNA== X-Received: by 2002:a65:6084:: with SMTP id t4mr10497447pgu.248.1568915078451; Thu, 19 Sep 2019 10:44:38 -0700 (PDT) Received: from [10.0.2.15] (eero.static.monkeybrains.net. [199.116.72.162]) by smtp.gmail.com with ESMTPSA id f62sm17760523pfg.74.2019.09.19.10.44.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 10:44:37 -0700 (PDT) Subject: Re: [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue To: =?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> From: Peter Oh Message-ID: Date: Thu, 19 Sep 2019 10:44:35 -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: <156889576869.191202.510507546538322707.stgit@alrua-x1> 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 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? Peter