Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp633866ybl; Fri, 6 Dec 2019 03:50:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyLGLteEaDZ5Ab9+scIFdEuFG+sm6H2HLvVFiqDdblYE8lBj1J8RcnYS8LHRD0+g5Kw+kFy X-Received: by 2002:aca:de03:: with SMTP id v3mr6413668oig.162.1575633005206; Fri, 06 Dec 2019 03:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575633005; cv=none; d=google.com; s=arc-20160816; b=U9pNT6zTj4kkd8778G9vmUxVXc07q4eMs+xRWkOR2URTk01r/I0ME9BJ9AXyu0ncAg oLYU5P5DVYL1TJKOpSDwlsVKr9y8FabBN+ZY+B7qFZpGVkTyEZOpGVqDzR/4S3l2BRMr +Ecocyae77Z6qGDeE8Tz4i/MWIQBLCnDe9Y97nnN2xPVQo2CcIqahOtyjLL5HJThOBQ2 q2AmyH+fmot4VuiU18OJxRnVT7wepUvQt71bRyNS9G3bNQy1+Kghm2LvrZVqj6X41isw I/+558duU2KtA8FZ0Fb3t1JPDaf1pvUDjO3rSWlDnTERG/wqfc8bL7uX/8DD9t/75cY4 3Y3Q== 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=ul+5f1hX2E5kfLrmLXoIYAU2vE47MTHyobscyii+F44=; b=lsAeMqrqETz/o9MjuNRBX4Lrb5cTZY0qglJBKIm4EeK2hGbOj2sinIZF+/YvZqK10X lOvDuCGs1rw2zt/he7mP7ELccO7DR8slnFvTQh1fJJjpx2BUlTnNWLLPcRsgbJyL1Qmq f1UvIhIovfYiw22aCEiUIQjwuOiXsq533kFcBMcW3Pdl0hZxcQqzNNxEU8f0IqcbaLqo GYBYdLF6RiSzCO04tnYbjZ2nhP3GQKAs7tbAWxuOvrxYOT6rCsUVESAer6XZ2lw3sCmh u85fFW0Qvq8yKC/+i8GugPkmMG08L0GzL5PB2g+otZmMzWszFSpp7YShLfiRWxcSyrof FUNg== 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 o21si7584563ote.320.2019.12.06.03.49.43; Fri, 06 Dec 2019 03:50:05 -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 S1726214AbfLFLt3 (ORCPT + 99 others); Fri, 6 Dec 2019 06:49:29 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:58026 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbfLFLt3 (ORCPT ); Fri, 6 Dec 2019 06:49:29 -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 1idC6w-006XuJ-0Z; Fri, 06 Dec 2019 12:49:26 +0100 Message-ID: <9bcbab4b562669b96198c632f476b1b74956ca09.camel@sipsolutions.net> Subject: Re: debugging TXQs being empty From: Johannes Berg To: Kan Yan Cc: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , linux-wireless Date: Fri, 06 Dec 2019 12:49:24 +0100 In-Reply-To: (sfid-20191206_101305_773178_ACF584A9) References: (sfid-20191206_020554_916514_C4D7D41E) <9b89b3b294295063aec045b9e863a44ad20b8782.camel@sipsolutions.net> (sfid-20191206_094144_773877_4A5AF79B) (sfid-20191206_101305_773178_ACF584A9) 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 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