From owner-freebsd-wireless@freebsd.org Mon Apr 17 09:08:10 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88118D41B72 for ; Mon, 17 Apr 2017 09:08:10 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4E7BC15F for ; Mon, 17 Apr 2017 09:08:09 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.124.34] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1d02di-0001TQ-DU; Mon, 17 Apr 2017 11:08:06 +0200 Received: from localhost.my.domain (c720-r314251 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v3H985dV003597 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 17 Apr 2017 11:08:05 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v3H9859N003596; Mon, 17 Apr 2017 11:08:05 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 17 Apr 2017 11:08:05 +0200 From: Matthias Apitz To: Adrian Chadd Cc: "freebsd-wireless@freebsd.org" Subject: Re: poor WLAN throughput in only one direction Message-ID: <20170417090805.GA3532@c720-r314251> Reply-To: Matthias Apitz References: <20170416174731.GA5470@c720-r314251> <20170416194740.GB2459@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.124.34 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 17 Apr 2017 09:08:10 -0000 El día domingo, abril 16, 2017 a las 01:11:51p. m. -0700, Adrian Chadd escribió: > hi, sorry, was on my phone > > * recompile with IEEE80211_DEBUG Hello, It seems that the option is already enabled in the CURRENT kernel: [root@e6330-r314251 /usr/src]# grep IEEE80211_DEBUG ./sys/amd64/conf/GENERIC options IEEE80211_DEBUG # enable debug msgs > * then compile src/tools/tools/net80211, (cd in there, type 'make') > and it'll build wlanstats. Then run that. :) I made the tool and run it parralel to the SCP (from the rtwn0 to the ath0) which is going dowm from around 2MB/s to some 100KB/s; see below; > > wlanstats +rate will log rate control statistics, which hopefully for > rtwn will tell us what's going on. # /usr/src/tools/tools/net80211/wlanstats/wlanstats -i wlan0 +rate input mgmt output rxkid ascan bgscn bmiss rssi noise rate 7036 7458 13354 0 1 0 0 22.5 -95 6.0M 0 10 0 0 0 0 0 23.0 -95 6.0M 0 9 0 0 0 0 0 23.0 -95 6.0M 11 10 12 0 0 0 0 25.5 -95 9.0M 82 8 179 0 0 0 0 25.5 -95 9.0M 98 9 199 0 0 0 0 26.5 -95 9.0M 122 10 250 0 0 0 0 26.0 -95 9.0M 88 8 177 0 0 0 0 26.0 -95 9.0M 89 7 178 0 0 0 0 26.5 -95 9.0M 95 10 191 0 0 0 0 26.5 -95 11.0M 98 10 198 0 0 0 0 26.5 -95 11.0M 125 9 250 0 0 0 0 26.0 -95 11.0M 123 9 246 0 0 0 0 26.0 -95 6.0M 86 9 172 0 0 0 0 26.0 -95 6.0M 99 7 198 0 0 0 0 26.0 -95 5.5M 54 8 110 0 0 0 0 26.0 -95 2.0M 48 10 94 0 0 0 0 25.5 -95 5.5M 64 7 131 0 0 0 0 25.5 -95 1.0M 21 9 42 0 0 0 0 25.0 -95 1.0M 31 10 63 0 0 0 0 24.5 -95 1.0M 36 9 69 0 0 0 0 25.0 -95 1.0M input mgmt output rxkid ascan bgscn bmiss rssi noise rate 8430 7645 16159 0 1 0 0 25.0 -95 1.0M 32 8 65 0 0 0 0 25.0 -95 1.0M 22 9 43 0 0 0 0 25.0 -95 2.0M 60 10 121 0 0 0 0 25.0 -95 2.0M 37 10 73 0 0 0 0 25.0 -95 2.0M 36 8 72 0 0 0 0 25.0 -95 2.0M 75 9 151 0 0 0 0 24.5 -95 5.5M 69 7 136 0 0 0 0 26.0 -95 5.5M 80 9 159 0 0 0 0 25.5 -95 5.5M 75 7 151 0 0 0 0 26.0 -95 5.5M 65 8 128 0 0 0 0 25.0 -95 2.0M 52 9 107 0 0 0 0 25.5 -95 5.5M 61 8 121 0 0 0 0 26.0 -95 2.0M 44 7 88 0 0 0 0 26.0 -95 2.0M 54 8 107 0 0 0 0 26.0 -95 2.0M 40 10 80 0 0 0 0 25.5 -95 2.0M 50 9 100 0 0 0 0 25.5 -95 2.0M 52 9 103 0 0 0 0 25.5 -95 2.0M 69 9 120 0 0 0 0 26.0 -95 2.0M 24 9 24 0 0 0 0 25.0 -95 2.0M 0 10 0 0 0 0 0 24.0 -95 2.0M Anything else? matthias -- Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045