From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 19 20:56:57 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74CD28AC; Thu, 19 Mar 2015 20:56:57 +0000 (UTC) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E6BE7FB; Thu, 19 Mar 2015 20:56:57 +0000 (UTC) Received: by igcqo1 with SMTP id qo1so1531456igc.0; Thu, 19 Mar 2015 13:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Q4YO5/ziNaPyrmJnDagdml9jVGL0KWCP5pPtPjHIb+w=; b=Xvn1N9v4HONWX8NBFkuLxDukQiDyCWVsyEqWGgIqPYmQdLcYNcp5rXC/eOpD6OYelC yoDKhtXpn/rCOS9rL5KVWSoiMqWp44MJefHjT2SIL8n5OncorsRoryJ0wBxSPtX67+TB y3/ijCqh5z2uhiYcfNVd5wAWYTqeTpYbIkbEIZYWrlAELF3EvKCm5TG74CGpSa462zXk KrZzVcp6PK3ZO0i1XUx+nhPBBc1iJOND3ySxa0ekJ0YgB7jerBs6Aln8jnx+o9glhn29 nXK39ht8QTlc+MMVPzEgvPM3dZWdzGDam9IMFAUl9qZGCRjqOrz4/Ut6zX5ORXOyp9dU J4cQ== X-Received: by 10.50.66.235 with SMTP id i11mr10710igt.40.1426798616615; Thu, 19 Mar 2015 13:56:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.55.167 with HTTP; Thu, 19 Mar 2015 13:56:35 -0700 (PDT) In-Reply-To: References: From: Miguel Clara Date: Thu, 19 Mar 2015 20:56:35 +0000 Message-ID: Subject: Re: ath0 performence issues "ar9300_Stub_GetCTSTimeout" "ar9300_Stub_GetCTSTimeout To: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2015 20:56:57 -0000 On Sun, Feb 15, 2015 at 8:32 PM, Miguel Clara wrote: > > > On Sun, Feb 15, 2015 at 8:25 PM, Adrian Chadd wrote: > >> I bet your environment is quite noisy and the ar9300 HAL is just not >> coping well. :( >> >> >> Could be, I have a laptop and a cell phone just close by and the TV is > also using wireless, but those are on 2.4Ghtz... and ... Oooh > I just noticed its connected to "PissnLove" and not "PissnLove5G". > > wpa_supplicant sometimes fails on selecting the on with higher priority. > > I'll force it back to the 5G and see if this goes away and if so I guess > you are correct :) > Been busy for the last weeks, I wanted to update/sync my src before posting more feedback on this. # uname -a FreeBSD r2d2 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r280238+2c4b57d(master): Thu Mar 19 03:09:58 WET 2015 root@r2d2:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 Note: the following test were done with only 2 wireless devices connect to the router and while doing the tests on the laptop in turned wifi off in the smartphone. Also the smartphone was even a little bit more distant from the router than the laptop (not much) The issue is clear not with the 5G/2.4G as I get about the same performance with boot see iperf results: ############################# iperf3 -c _server_ Connecting to host yoda, port 5201 [ 4] local 1.1.1.1 port 48073 connected to 1.1.1.2 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 1.67 MBytes 14.0 Mbits/sec [ 4] 1.00-2.00 sec 1.67 MBytes 14.0 Mbits/sec [ 4] 2.00-3.00 sec 1.35 MBytes 11.4 Mbits/sec [ 4] 3.00-4.00 sec 1.56 MBytes 13.1 Mbits/sec [ 4] 4.00-5.00 sec 1.35 MBytes 11.4 Mbits/sec [ 4] 5.00-6.00 sec 1.73 MBytes 14.5 Mbits/sec [ 4] 6.00-7.00 sec 1.93 MBytes 16.2 Mbits/sec [ 4] 7.00-8.00 sec 1.65 MBytes 13.8 Mbits/sec [ 4] 8.00-9.00 sec 1.15 MBytes 9.65 Mbits/sec [ 4] 9.00-10.00 sec 1.38 MBytes 11.6 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 15.4 MBytes 13.0 Mbits/sec sender [ 4] 0.00-10.00 sec 15.4 MBytes 12.9 Mbits/sec receiver ########################### That's to a local Wired (1Gbit) connected iperf3 server. In comparison I get 100+ Mpbs on my One Plus One device in an internet speedtest, proof here: http://www.speedtest.net/my-result/a/1207329176 And an iperf3 test on the same smartphone to the server: ############################# Connecting to host local_server, port 5201 [ 4] local 1.1.1.1 port 52337 connected to 1.1.1.2 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.01 sec 11.8 MBytes 98.4 Mbits/sec [ 4] 1.01-2.00 sec 13.4 MBytes 113 Mbits/sec [ 4] 2.00-3.00 sec 13.6 MBytes 114 Mbits/sec [ 4] 3.00-4.00 sec 13.3 MBytes 112 Mbits/sec [ 4] 4.00-5.00 sec 14.1 MBytes 117 Mbits/sec [ 4] 5.00-6.00 sec 13.6 MBytes 115 Mbits/sec [ 4] 6.00-7.00 sec 13.7 MBytes 115 Mbits/sec [ 4] 7.00-8.00 sec 13.4 MBytes 113 Mbits/sec [ 4] 8.00-9.00 sec 13.7 MBytes 115 Mbits/sec [ 4] 9.00-10.00 sec 13.2 MBytes 111 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 134 MBytes 112 Mbits/sec sender [ 4] 0.00-10.00 sec 134 MBytes 112 Mbits/sec receiver ################################ So it seems that the performance is indeed very low and only on the ath, and not due to to much clients in either 5g or 2.4g If important: ath0@pci0:2:0:0: class=0x028000 card=0xe052105b chip=0x0034168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR9462 Wireless Network Adapter' class = netw # cat /var/run/dmesg.boot | grep ath ath0: mem 0xc0400000-0xc047ffff irq 19 at device 0.0 on pci2 ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 stream STBC transmit enabled ath0: [HT] 2 RX streams; 2 TX streams ath0: AR9460 mac 640.2 RF5110 phy 0.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 Any more info I should add to help track this? thanks