Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp497895ybl; Fri, 6 Dec 2019 01:13:27 -0800 (PST) X-Google-Smtp-Source: APXvYqz1wLotOER6zfuhbhUXu+ich+bLGSQqY+VqEco7XAFrSXZDfy3oE0upX2CEZytnf0/Y+SlU X-Received: by 2002:a05:6808:8ca:: with SMTP id k10mr11075758oij.164.1575623607520; Fri, 06 Dec 2019 01:13:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575623607; cv=none; d=google.com; s=arc-20160816; b=dh03kKBNJBzdXi+nF6DYk2JyaIHYF7iibN8BF4er15bpCQi3v/99k61SJ0U+JeTj3c z22vRcom6UQ3vO/y3JC/TMAle9AizoSakTwF0FBGwCEqhh4z7Qk7eLN2LbzhIqc+Qagy cUnrJYjU3Ewtsc08NLwZj+iGAmG6xm+djKbYuHO2FDP6hV04KqtsVXFV0CQdNrjIJ/th k4kgE+P5pfhw5e03JVjn6iHphdZE9yzMR+qbx7e2HWdBzNLZFqRGXi1MsseTnqBpqL73 B8wC5at6dMVx9bGZKf66/63ouiLMZ6wxFH6MEAxT84qeFmY97bCTN3mxC3DJvOdVRYDp afIA== 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=+AL6O6W1I5T3ej/aoYD3GuMbvcwlvZddRPizZ+O/rcw=; b=daBfh7xA/Y5KzfEgLlBQrDsPdbzyHyCBEUM4URS9NwskKgZauts20W2WART8dgo2zS +7b0nz+GDv9HOslbQ8rB1665RPLNpWW/Ehatkb0QhgL4ygNEbBHujRCtyxkKYn/N/5FE ZqRlsnXxNQpc/pfMvge5/lfDM3m4nOYoSym3YF9nMTFKZsERQTA5cGDI7fvL/LeK14Ud 475mTuUdZsqB8j5MKyHAbIUwz9wt2XHQVzff+o2zRSksZwJ/4MOoPEzJNd1AyGwefwzQ AIzEdzLWfyR+7hIms1pVuK5jnlL62EEA2FLpwCb2VrjLkw2OAMpvA+Clk+uICTbzvgCV xoTQ== 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 d11si6443633oti.325.2019.12.06.01.13.08; Fri, 06 Dec 2019 01:13:27 -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 S1726160AbfLFJND (ORCPT + 99 others); Fri, 6 Dec 2019 04:13:03 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:55338 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbfLFJND (ORCPT ); Fri, 6 Dec 2019 04:13:03 -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 1id9fY-006E2l-7y; Fri, 06 Dec 2019 10:13:00 +0100 Message-ID: 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 10:12:59 +0100 In-Reply-To: <9b89b3b294295063aec045b9e863a44ad20b8782.camel@sipsolutions.net> (sfid-20191206_094144_773877_4A5AF79B) References: (sfid-20191206_020554_916514_C4D7D41E) <9b89b3b294295063aec045b9e863a44ad20b8782.camel@sipsolutions.net> (sfid-20191206_094144_773877_4A5AF79B) 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 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... johannes