From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 9867D3B25D for ; Sun, 5 Jun 2016 13:23:08 -0400 (EDT) Received: by mail-io0-x22d.google.com with SMTP id o189so111156805ioe.2 for ; Sun, 05 Jun 2016 10:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5zCTvzWLJl6T8aEjVfWATSQf8RkkF3bKyN92uuTW3iQ=; b=jRqwRlapt1uns6um9+6jEEE/VogoitFvcWgs0JAYU/HQMZg5o3meKgIUSClyFoYuAM 0yWVE4aKq8ucslmKpDlxfRex717IDh3DhiZtKCfDe42S8PxrVRD+Kg+R9nyyTvF0DHdc ivM9abKFrpEXX1X4Nl4Qp2IaQSFPbGbUwRIGGhZfR10vl0GJOcVmniHh3mblwnQoNQfM BTsMWj48vkxOWt8tCiGFE7mn9/q9Ysveeh67bmGPVZeQTskn3oXy69z4xpZcVZTmIR2y KsEf60fiQqSjMbf3JtxvnUpwW9d3iNJBVI4Ft/YoXK4PdNviIywOuIs+orMecqX3AaAL ihdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=5zCTvzWLJl6T8aEjVfWATSQf8RkkF3bKyN92uuTW3iQ=; b=Ls9BTP0xUSsuMSCQLX/suL7YsoIoJorZtkFHzFfvMKtykuHz3AEMOLg257iqfc0yEF 1pSpcI5kce1hRBfPJegH4qjfmDxc2fkrdVofHx0JiNneUrj9TlMKfw3DBUuT8on9WHzA U4IFKtt8PXVc+uepI/09O9RCzCRslalaYcWTKpBm6bvhnFAf/9RhS+v+bQHEP7uYXFU7 9Nh6MoLQgEfeau4SXHTgR+CHWBSc9gnwHNSNfjPSY/H6srmU9x1AAZT0Ms0ISXk2gpY+ iG2aiGbAH7g9q5Af3G0lPNih0EuKYSB4zWBRHeDmLVR0RBLVJpxdDoMQCuFrNPcZbwhU tvdA== X-Gm-Message-State: ALyK8tJCUd0nAklVSHkJokIrTXM6JkAU1AoHDp9Hcib2w1RFqEwqnu+D60PSlwDx270suZexNxj7VyD77pSsjg== X-Received: by 10.107.144.67 with SMTP id s64mr16114847iod.165.1465147388066; Sun, 05 Jun 2016 10:23:08 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.36.113.3 with HTTP; Sun, 5 Jun 2016 10:23:07 -0700 (PDT) In-Reply-To: <8737orucq4.fsf@toke.dk> References: <20160603165144.17356-1-toke@toke.dk> <20160603165144.17356-6-toke@toke.dk> <8737orucq4.fsf@toke.dk> From: Adrian Chadd Date: Sun, 5 Jun 2016 10:23:07 -0700 X-Google-Sender-Auth: jNj9LKylZRVXmrkGAPlaVMhtNp4 Message-ID: To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: "linux-wireless@vger.kernel.org" , make-wifi-fast@lists.bufferbloat.net, ath9k-devel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Make-wifi-fast] [RFC/RFT 5/5] ath9k: Count RX airtime in airtime deficit X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2016 17:23:08 -0000 On 5 June 2016 at 03:55, Toke H=C3=B8iland-J=C3=B8rgensen wr= ote: > Adrian Chadd writes: > >> I've been working on something similar in freebsd, so cool to see this >> happening here! > > Cool. Do you have code available somewhere? not yet. It was mostly what you just did in ath9k anyway :) The sample rate control module and net80211 already had the duration calculation bits, and I was just trying to figure out how to track it per-node in a useful way without blowing CPU time. > >> The only thing missing atm is STBC and LDPC. My RX airtime code looks >> basically like this one too; but I have TODO items for ensuring >> LDPC/STBC calculations are sane. > > So basically this means taking into account whether there was MIMO in > use (which may lower the transmit time)? My understanding is that (at > least in Linux) this is encoded in the rate tables (i.e. a MIMO rate is > a separate entry). Am I wrong in thinking so? Or is this something else > entirely? The existing routines take GI, MCS rate, channel width; figure out MIMO, and do the math. The assumption is the symbol count is the same. For STBC I think there's an additional symbol at the end (because it's mixed current symbol plus previous symbol.) I forget the details for LDPC. I'll er, go read the standard again. :) -adrian