Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2004131ybz; Sun, 26 Apr 2020 09:01:26 -0700 (PDT) X-Google-Smtp-Source: APiQypIywKvpjcVrQnYloYUgGSkpnY9d1cwyXQj3twqj7X2duJKb0VEEXkQHV1VCBAwB+/22F6iG X-Received: by 2002:a17:906:4548:: with SMTP id s8mr15570959ejq.349.1587916886694; Sun, 26 Apr 2020 09:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587916886; cv=none; d=google.com; s=arc-20160816; b=fY4QAeXnPmd22zXs9+dMOgpXb37AGTt79LmF08CUc30TRKKzbjem2qyt9o2Wg0X+dD A/rsPJNpNLjhGZv8QNRl8K0fvp0ZRbIhdC5+FQinbH4xfomSXit4ccVatBuHMwO4xjQi 1QUGIOS4hONlwayhk8CXCXG6k6sPUjGNtWPp8Q60PrzLcXb/BS19siikNAIyaTdrrOz2 tfzqfo10i1rYIs5odVaSWUc7ooymVPk/6b0dYi9GFCBGbB5dnDPgUHWwpN4MCozhIiEv hLDbhe7mK+Xl3YPynTzCLxBFecZepTx7eQdeXl1eFqJ6rFn2R2Xrvs8rqit5ms+nAPrp hV6A== 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:date:message-id:subject:from:to:dkim-signature :dkim-filter; bh=GosaWD4xRZzW5ma+eitgf4L+ttlxT7LC2X68Ju8cXdE=; b=qouJ6BA72XG1nM2oVfnWYkTyteolnf+46cW3wd8PN4ynqmyK+f/rIB3it1r1pIWBTs zdP7esEc1SlkiqyzVPxT5YBh/WyMbTeUqk+FrKad2ljaceuDDm5wdoizEiuM/274vPzP BAmZ6S5Oncl9JleeVEppFDH934htN0/QKYTL+LHnz+Hmci0aUoVStMiz3Mu678FXmUJC uPa+5il3eTjkv6UOSdzQVBg3HMauPljNNjUAVhEF3aQx0TuG/5aWvWmxib84laWXH0G5 RLdDGReZYdrMsf+UdLuu8nSDWNGJVWGkH0/aP9OOX392iVTXe+P5ghPGTirlzvRopilj QEzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=Tr2opzNW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f25si6030145edw.292.2020.04.26.09.00.48; Sun, 26 Apr 2020 09:01:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=Tr2opzNW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S1726206AbgDZP4h (ORCPT + 99 others); Sun, 26 Apr 2020 11:56:37 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:56076 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgDZP4h (ORCPT ); Sun, 26 Apr 2020 11:56:37 -0400 Received: from [192.168.254.4] (unknown [50.34.219.109]) (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 A41B613C283 for ; Sun, 26 Apr 2020 08:56:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com A41B613C283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1587916596; bh=9/1w6dAGFFxWzAuGO0TNENsbBAnkOJjjdZA7wKKQvFk=; h=To:From:Subject:Date:From; b=Tr2opzNWvPTCwgX5v/INCCyi3Ecy3Yc8d65WDP66AWOwwvusvLaXyuh4BxkfKMk80 2k76r2838YObzYISM7/Ub8fhY2JoLOSGmUxLEzGUFCjRHM/UJ6erBWJ3BFpcD9KK3j 3KPRtO+/ug473/J9fGVuSMIKSDbn9mFxy1zC6R50= To: "linux-wireless@vger.kernel.org" From: Ben Greear Subject: WiFi Performance issue in 5.4.25+ Message-ID: <1a7c11e6-df88-209a-6053-17d4578c27e8@candelatech.com> Date: Sun, 26 Apr 2020 08:56:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, One of my test cases is to create lots of virtual station devices, and run bi-directional TCP traffic between them an an Ethernet port, through an AP. My automation is doing around 7 tcp flows per station vdev. This test is reliably falling apart at around 30 stations on an i7 2-core processor system. Interesting to me is the perf top in this state. The stop_queue reliably dominates. 1 22.20% [kernel] [k] __ieee80211_stop_queue 2 7.66% [kernel] [k] __lock_acquire_lockdep.isra.36 3 4.46% [kernel] [k] queued_spin_lock_slowpath 4 4.40% [kernel] [k] lock_release 5 4.18% [kernel] [k] lock_acquire 6 1.47% btserver [.] bitfield::get 7 1.45% [kernel] [k] sock_poll 8 1.32% [kernel] [k] tcp_poll 9 1.30% libc-2.23.so [.] __memset_sse2 10 1.26% [kernel] [k] do_raw_spin_lock 11 1.06% btserver [.] Cell::next 12 0.85% btserver [.] Endpoint::doTrafficRound 13 At 180 to 190 stations, the situation significantly improves. At this point, there are only two flows per station. If I limit to one TCP flow per station for all numbers of vdevs, then it does not have total failures like it does with more streams, but the stop_queue still dominates the perf top at higher numbers of stations (like 60-70). I need to do some more testing with other kernels and such, but curious if anyone has any suggestions as to why stop_queue is taking so much time? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com