Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1342586ybl; Fri, 6 Dec 2019 15:48:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwGty2sb8WGqUv3pFTGP5ks3O+7MmSdCjrYRS5+UrPvN+sPxctw8//0U9VKzUMnl6ORgtxE X-Received: by 2002:a05:6830:1141:: with SMTP id x1mr13587320otq.120.1575676095116; Fri, 06 Dec 2019 15:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575676095; cv=none; d=google.com; s=arc-20160816; b=Os82tDCaZafqfDKbbYspB0S2vwp4O8lmkGgyojQtqHA5PNIS/mJSuWtn5pQZ9yaYxZ 07gxnzMaDu+iF1shxy8o+dAr6xZ+d+3xtDPRRkSznFskaP//IhqREJg8KL6i/582N2F1 oFc1peBrAHkWI6acUuSEYdHEuy6rmZ5BA8W4fAinAnYo8U9PbxVrOUCJtUaMkcJfNXKc o5pGFNtTuh9eq/EeebZkINvLWe96iAaxUnKPtNITPL10Rkun8Ltral2vZPJeb6xTZmpJ SWcehT9eCO3VSWSEMwUk8qrd/CtSsBYkjg/reUt5WZtYJe1kWtG1FjDJFvB4jKa9JBQT hYZg== 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=sJ8nzbiL2OWur81yPVaFl4emuBw4KI2CH/Zwr+hA76c=; b=ZhDl/k1ucra62ei8dIjj2apN3fFhjdcbYWhE5JcL6KnoVpm1v0KhQ25l7gc+6bQtkm 1Ag6ZlqtJjPXyd6jueAcx6IHUuzdlb4tgOCuLqjtblKr7vuL3MSbENI6F2BPqxJ1B4Fg cqDDPV4ePavvBl8V7RZhbWigMRtxIiwtIiw58xKdp2uHya06NNCP+Fw50k5Lfw9t2YB5 W/jI71oQnRdH5mbouydlvJSKJmNbBTLTQC0LQPOeZHrNz7rmuROxlW6sWSAcebL61p6/ +WiS7nXzrhnSylVBx9YvNW70JX05ah2BWNkpVuIuFcesS9r8CoJis/v/tmXLUpB71s1X wFrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=M5UbEIBM; 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 l26si8122344oti.152.2019.12.06.15.47.50; Fri, 06 Dec 2019 15:48:15 -0800 (PST) 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=M5UbEIBM; 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 S1726425AbfLFXov (ORCPT + 99 others); Fri, 6 Dec 2019 18:44:51 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:59182 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbfLFXov (ORCPT ); Fri, 6 Dec 2019 18:44:51 -0500 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 03E2C137531; Fri, 6 Dec 2019 15:44:50 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 03E2C137531 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1575675891; bh=brQmNkR9PrnRs05ydsCxZV3oTLxCc/Mye+QqLBgFi3o=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=M5UbEIBM7q4aN9rIHcXaKNqsr3tjU63iUAT1y2w915Snd8ZEzHdMq3U5Vlujra05c fXdZzZ69mOcHrwfZYHp3yK8tT4G9AS0LlqpumVpkt7ZwZb8TBY9haQn4AayKhQJMrD imOIQGQo6b5CVYnKUYiOcMCX97DI1/8LA0KC/uy0= Subject: Re: debugging TXQs being empty To: Johannes Berg , Kan Yan Cc: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , linux-wireless References: <9b89b3b294295063aec045b9e863a44ad20b8782.camel@sipsolutions.net> <9bcbab4b562669b96198c632f476b1b74956ca09.camel@sipsolutions.net> From: Ben Greear Organization: Candela Technologies Message-ID: <336996e4-d9fe-bf3a-72fb-6919bd0adcbf@candelatech.com> Date: Fri, 6 Dec 2019 15:44:50 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <9bcbab4b562669b96198c632f476b1b74956ca09.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 12/6/19 3:49 AM, Johannes Berg wrote: > On Fri, 2019-12-06 at 10:12 +0100, Johannes Berg wrote: >> On Fri, 2019-12-06 at 09:41 +0100, Johannes Berg wrote: >>> Maybe somehow TSO is interacting badly with the TXQs and the tracking >>> here, since TSO makes the traffic *very* bursty? A 64k packet in the >>> driver will typically expand to 9 or 10 A-MSDUs I think? >> >> No, that all seems well. Without TSO (with the trivial mac80211 patch to >> let me turn it off with ethtool) I get about 890Mbps, so about 5% less. >> That's not actually *that* bad, I guess due to software A-MSDU in >> mac80211, but it's not really the right direction :) >> >> Changing wmem_max/tcp_mem to outrageous values also didn't really make >> any difference. >> >> I guess it's time to see if I can poke into the TCP stack to figure out >> what's going on... > > Sadly no functioning kprobes on the system ... bpftrace -l lists them, > but can't actually use them. > > If I also change net.ipv4.tcp_limit_output_bytes to an outrageous value > (10x) I can recover a bit more than half of the performance loss with > TSO disabled, but it makes no real difference with TSO enabled. > > Either way, what bothers me somewhat is that the backlog fluctuates so > much. Sometimes I see a backlock of 2MB or more, while it *still* > manages to go completely empty. > > Shouldn't I expect the steady state to have a somewhat even backlog? Why > does this vary so much? > > johannes > I did some tests today: kernel is 5.2.21+, with the fix for ax200 upload corruption bug. AP is QCA 9984 based PC (i5 processor) running ath10k-ct firmware/driver, configured for 2x2 160Mhz STA is PC (i5 processor) with AX200 OTA, about 5 feet apart AP reports STA is sending at MCS-9 160Mhz (AX200 STA does not report tx rate it seems) Our LANforge tool is traffic generator, running directly on AP and STA machine. Download UDP, I see about 697Mbps goodput Upload UDP, I see about 120Mbps goodput TCP download, about 660Mbps TCP upload, about 99Mbps Our hacked version of pktgen, bps includes down to Ethernet frame: Download: 740Mbps Upload: 129Mbps I changed AP to 80Mhz mode, and re-ran the UDP tests: Upload 137Mbps Download 689Mbps Though not confirmed today, one of us reports about 1.7Gbps download on AX200 against an enterprise /AX AP, and only abuot 600Mbps upload in that same system. That is in isolation chamber and such. So, for whatever reason(s), we see consistent poor upload performance on AX200. For reference, we have previously seen about 1.1Gbps upload between QCA9984 station and 4x4 /AC APs (and about 1.3Gbps download goodput), so in general, wifi upload can run faster. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com