Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp154049ybj; Thu, 19 Sep 2019 12:10:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqykiUJeH6fHszDB3UzyEniDkUJ6S1vnGzaFSpoqdvmbl+DpKJ6YWonuF5y9VCR6524E4VDB X-Received: by 2002:a50:f0d4:: with SMTP id a20mr18182907edm.149.1568920203631; 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=FPRv6+2FJs35JHMD3ZDlE2/ffvr1VCWnzDiFK0la7G2gHuOUqUO5xThfvPnWjOKqcS Q7IkSupOGAqjEpzZyMQZKsQqDWXO+3r+5ZYA8hjGQfNlYkzdiocekjFilKggzRjl4MHD SV+PegXXuu1pQPtJUHRV8VhhxskoVZMvJCPXD6D+nuIYweNFXCAAYODlB7fo4Vcjl1i5 NNK5QUgFTYQ+Qh5DRhMSwUfM4p5WB3nbYBPLlTZeAMhfIqQGfJu2A/GpB2euHgIQq6Cc xVlHT2EUqEC3TbO3Z2dMYHj6lZzWPxl6NxIEZWF1QY44T5hXAOhwAgQdAkGqWRDWJx/f yLNw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-filter; bh=QeYV0EvRunLRo2xHmk0G0c5On0omoqsnnW/PXAvNuSw=; b=YOfhj0GaVu1tGgUK0SDdpMevHEe/yVLuPjopda654zGBjNbrEkox9/SGd7YX9a3xYB PUq1uwIcGjORGWGfPslWFnsTit1swKM0WxYCHJ4eSQ/f0SrkRehUPMNSdlzh299JjmAf /Zf8TZgZWt2Alx8Nr4BJdu4BriCkvJxDYxnSlbEG/oBfVG3oZgee9HW9Pxg8NmLAdUXI muRaMnuicZk2tWlNd+rNcsIOowwgnmn1iRGHx0PWtQETSoYHkz9qE5vCeLto/XhQLiW1 RbJydEWK49uXwD2MuaKLkYeHQIwj4hau3AyO80z7e148rLirO4vVFXq2rpZf2LMQ//nV Zwcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b="Yk/OFYoC"; 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=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si5044316ejd.150.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=@candelatech.com header.s=default header.b="Yk/OFYoC"; 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=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388719AbfISRqb (ORCPT + 99 others); Thu, 19 Sep 2019 13:46:31 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:50418 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbfISRqb (ORCPT ); Thu, 19 Sep 2019 13:46:31 -0400 Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id D89EA13C2BA; Thu, 19 Sep 2019 10:46:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com D89EA13C2BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1568915191; bh=y5pMe5OXBDLj1brmPp3mYaakMnMvxIS3GLjvZ9fewmw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Yk/OFYoCeIVx8I3SfYtfhUE1LWicnfchgPrXuElPZkg0I0J3862fR/A4s7YNGJPHu JnYUWsS55YE2wjwGQiIHltangODPJktHo5FciQiw7VWWUAKdqw98ZtDPxvS8/hAbW7 d72VaMzwluI5DEDKD57K6ksWQVosMi180pf6DmCg= Subject: Re: [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue To: Peter Oh , =?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: Ben Greear Organization: Candela Technologies Message-ID: <879913e9-4254-1381-07f6-d860fb0b8de0@candelatech.com> Date: Thu, 19 Sep 2019 10:46:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com