Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp161470ybj; Thu, 19 Sep 2019 12:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsu/8fFtKP6MMIU1vREZWb9E1rSoZonyJHX+nV2IHW6JdGq2pCy0ibfdx+P6WARKNphjIB X-Received: by 2002:a17:906:f82:: with SMTP id q2mr15959304ejj.143.1568920609251; Thu, 19 Sep 2019 12:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568920609; cv=none; d=google.com; s=arc-20160816; b=vy0E0ZcWJb9b5aNOPQjny5XWvKHWhN//+82XWbQSsTlAO2Eubgfz0hu6J0wOuPqEgf kmaX9fctQc5dIF15F1qR1Z8J3TlVmJirRaP1vGguu/95+iTuIbrd0ZMCjhQOm31SRVVi JlQe1RrQW6jhkXT3kGvTgamOf4d5o4SkvraMporubiyacCgo3GQEJMzXWs1E4LVM+DZg qsNGlgXztK6FaP/+qrr7TDNNqc2Lx4C+emW/lxqGmdZnpRXDrUaeZGLFkmrf6HvuRkM7 IvGxGk12pCPaK7q26XDZLKJk8x4xjA3QLiEFbqaZ2nvaIllBVX4dUGhxVAWcUpLLXpnU dnBw== 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:references:cc:to:from:subject:dkim-signature; bh=FA0E4Xd1CxRoSy79h+C7G59jiUefZolA8vrNTdNN3WE=; b=oAyWT8clc+f7XF0Sa9Q+smWV+CQhjEoCUJlD0U8oHrqIMlMWcTlDLGxZ2pIiiC2CwD jjsoPhHnYl0nmjkVLhBunQ7zqrVAwItUdp6ffVH0p7/fLqI/i3lOF4ADtFuYpK4T0CoF +mJ3E6auVLDXczlEDopCtt+/cIrPmGMw/BE0eu+CoPHfqIV8iGKJcyK9uJoV0d/rSkTU TPmigT9uTIx4ot3MGxSEAjxR+s1hKFKhxuu8QOMfO3MYjc64iZ75JMPEbepQaJLiWOy0 BGTRG1ofr/CnbFY2FSmh4LDwwzt+0IDbePmGxjisPyu7cZACbgyjGnpK8GnhXwcg5WNy DGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=QlvCe6C3; 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.16.24; Thu, 19 Sep 2019 12:16:49 -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=QlvCe6C3; 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 S2391260AbfISSD3 (ORCPT + 99 others); Thu, 19 Sep 2019 14:03:29 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:40192 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391245AbfISSD2 (ORCPT ); Thu, 19 Sep 2019 14:03:28 -0400 Received: by mail-pf1-f194.google.com with SMTP id x127so2805845pfb.7 for ; Thu, 19 Sep 2019 11:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=FA0E4Xd1CxRoSy79h+C7G59jiUefZolA8vrNTdNN3WE=; b=QlvCe6C3s9Gkpi4E8pUbehQGVbcnFvQOu0RB6GI4xvf6YfpIMv7E4SAPwrm+cazZrv erobVzn69aaA11K2D0g/XfyNNeqNt07ZTS4zpbIgXwDfcrG5E/n5j4bWOwApuqWHucA2 x5/3YG4OYttEN6GOvDPZR0PLilsvKiKfSsih8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=FA0E4Xd1CxRoSy79h+C7G59jiUefZolA8vrNTdNN3WE=; b=ZY+KKgmlxgbAUpZfs/CR/RjMa0o2d1LOgFTOAryEiuA2/jc2US4dzwXQMGjsQ/hCcv KS2WJD0mkEPK5NgBPkoYW3P7Q910EswyN9TLmgXuyxRCRnUHCeP70MEHPncyWSxPO2Ar pm1kE0zOF3gKXTwQdxZCPM9fhgE3hwSL8Z49g8vRuu9OFTkmIbY8OPzVB++woH26Bjeq m7Wv0W6h1QtYkl/GMKTrLEmy59HhrZHJM2B3ZQgb7akMNsvoGtCRtqn8XfWTRdy90TEy 5hKUYYRG6oqVWAnJx/Yy7Xm6lrN3b0PQt+lsr1SI5iKWTNB9q7BdFwvIdWverq3/Fm/W H57w== X-Gm-Message-State: APjAAAUCjooTxWuN5HSscvM7L+MDlWyEU90Rf61fQXs4ytqZ2+UC7lbY 5rBm8XhCmu5XHUdwqWCpdmpQ1ev+2Fo= X-Received: by 2002:a17:90a:cf0c:: with SMTP id h12mr4951489pju.110.1568916206762; Thu, 19 Sep 2019 11:03:26 -0700 (PDT) Received: from [10.0.2.15] (eero.static.monkeybrains.net. [199.116.72.162]) by smtp.gmail.com with ESMTPSA id w21sm6019533pgj.36.2019.09.19.11.03.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2019 11:03:26 -0700 (PDT) Subject: Re: [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue From: Peter Oh 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> Message-ID: Date: Thu, 19 Sep 2019 11:03:23 -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: 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:54 AM, Peter Oh wrote: > > 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 rate is derived from small number of PPDUs and if it's OK to use it for AQL calculation or not". Thanks, Peter