Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1997673ybl; Thu, 5 Dec 2019 10:14:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwam30RwYl+7tY2vzt+Y3hCQPX63upVEWjzNoNOFgpsFh6rvSQ+48eC7skj4j86sMWsMR/F X-Received: by 2002:a9d:75c7:: with SMTP id c7mr2186521otl.181.1575569698754; Thu, 05 Dec 2019 10:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575569698; cv=none; d=google.com; s=arc-20160816; b=my0OvXF0YX2Hxyh+b9ziJrQJxB9QzdTsDlU3NcA9eiSKGBSvFTCo0CrVhvj9C/aPZX gc3roxKD/n1vrXuD7XOWZehiGYnF9iEaM4d4D1A+qJXcDGCwJtWQbRQYRSdLCEF8IxYZ wTBqYAEG3Re43xsMzThlsn/tzkv3sm1j3E/2a2QnAjz/dYdKhU/kvuv4I1iPCPlobXfQ PkZBF+/O+3TFWO76VfUQ0YFONH73h7aAnT4ns/2Vxgw1QGoauLjk5NeYVKdGzmbzdUZt CcKPWwsO7wXIfsd4pvDaJJLSC8tspcrSDhhRsVDpBacUQPYuyZucMBx2dg62cYZUyBVA drpA== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=+lf3U5e85JRPH38AEWvNzcRE/fgF/7bQOQSNibqVGic=; b=fNZAg1t9IZFcwA6D1d9c5RzfuJkq+rHtUPPbeW+2+rIMTriYAUUHiGDucDM3zMjkNK E7ZBw/2kwRI7hJ8Ybk8unegd4o0pnjYjeXbqKzNYA7p6fjAkwSMMfConQrAzMJ3mBwQ+ KwBagB4nSXby3HluG3k3tLC/hRMGdVQY91fhx3OUjwFHFC9G5TNMaWji/LWvb/i+CRqr v5hMHWACoULTpmfVZFbh192VX+4Iiov6MU4w8GnKENIRstvmIRc/TM3QtnPgTkl11+6y 7pGf8AE9BviFZ/UvsFG0yyTXKxRknTB8GH+Y6fk29ePPHc20h/UJgxo6mivfLogrhgRK CN8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si5221485otg.309.2019.12.05.10.14.38; Thu, 05 Dec 2019 10:14:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729789AbfLESEQ (ORCPT + 99 others); Thu, 5 Dec 2019 13:04:16 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:59212 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbfLESEQ (ORCPT ); Thu, 5 Dec 2019 13:04:16 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1icvU4-004Lo4-5v; Thu, 05 Dec 2019 19:04:12 +0100 Message-ID: Subject: Re: debugging TXQs being empty From: Johannes Berg To: Ben Greear , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: linux-wireless@vger.kernel.org Date: Thu, 05 Dec 2019 19:04:10 +0100 In-Reply-To: <64a6ae15-b7be-8c27-4e60-4cb3d253f3dc@candelatech.com> References: <49288397-55b3-f49a-e277-5197d7c1bea3@candelatech.com> <2e01fb1d5b8ff3335220231251f893c01c6c22d3.camel@sipsolutions.net> <64a6ae15-b7be-8c27-4e60-4cb3d253f3dc@candelatech.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2019-12-05 at 08:57 -0800, Ben Greear wrote: > On 12/5/19 8:49 AM, Johannes Berg wrote: > > On Thu, 2019-12-05 at 08:37 -0800, Ben Greear wrote: > > > > > > All this seems to mean that the TCP stack isn't feeding us fast enough, > > > > but is that really possible? > > > > > > Does UDP work better? > > > > Somewhat, I get about 1020-1030 Mbps. But still a TON of "TXQ of STA ... > > is now empty" messages. Say this run got about 15 per second of those. > > It would seem that it is not some issue with TCP stack then? Hmm, yeah, maybe not then. Something more general in the stack? I just can't think of anything. > In general, UDP uses more CPU to send from user-space than TCP > because of TSO, etc. Sendmmsg can help a bit, but it is a bit painful > to code against so things like iperf do not use it, at least ones I've > looked at. True. > Can you provide some details on how you are generating this load? Using chariot. I don't really know it well, just the testers use it. > For what it's worth, we've seen about 1.9Gbps download goodput > when using ax200 as a station receiving traffic from 160Mhz AP. > I don't have any reports of > 1Gbps of upload performance though, > not sure our user with the fast AP has done much upload testing... :) > > > or pktgen? > > > > I haven't really tried, the setup is a bit complicated ... and it's > > nowhere near me either :) > > Yeah, it will likely crash your system unless you apply years-old patches I posted > too :) > > But, at least with pktgen, you can be quite sure it is not some slowdown farther up > the stack that is causing the problem. True. johannes