From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 20 03:20:15 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E80E460F for ; Fri, 20 Mar 2015 03:20:15 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (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 9CACA6E4 for ; Fri, 20 Mar 2015 03:20:15 +0000 (UTC) Received: by ignm3 with SMTP id m3so22525921ign.0 for ; Thu, 19 Mar 2015 20:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=5RdZncveB6ARGHM8ygMWE3pUs9fqprSEW4svdHIjV9Q=; b=fFfWswnY3ILxXtA8KaeLmo701I1NI5HJGE7DyCUgU+Mect2NUR1Av2clgdQUAG2AZe 8Q6xaoz7J0DIxzZ2muH0O6gjTPjGscNpniVv+lHKsVE1p0h0KmrrLAzwNvjy3QGebNJU NY32vKtTZHqJ0ebQZkcOkVEObM1zvULlVm2EqfC0SPFlEzWEN3OWoP3i+Jvx3haeWvTU dxSonDHkW3p/2pjX77MF48FbiJTvnVESyhXypilN9lwHbmipCxekocpE7Ay6JP5J1q/V c3+whVFo/P9hp0M6zU1ajiH+Pq8VmPRI2CpzSLHc7r42hYbVZHPgS5rSUzy9feGoutGr a2Eg== MIME-Version: 1.0 X-Received: by 10.50.36.65 with SMTP id o1mr21837207igj.32.1426821615065; Thu, 19 Mar 2015 20:20:15 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Thu, 19 Mar 2015 20:20:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Mar 2015 20:20:14 -0700 X-Google-Sender-Auth: vQeytpf9M57oP6UTg04ZuszK1cA Message-ID: Subject: Re: ath0 performence issues "ar9300_Stub_GetCTSTimeout" "ar9300_Stub_GetCTSTimeout From: Adrian Chadd To: Miguel Clara Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" 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: Fri, 20 Mar 2015 03:20:16 -0000 What's the output of ifconfig -v wlan0 ? and run athstats 1 for a while whilst doing traffic, say speedtest, and paste the results from there. -a On 19 March 2015 at 20:17, Adrian Chadd wrote: > Ah, add ATH_DEBUG, AH_DEBUG and AH_DIAGAPI to your kernel and recompile! > > > -a > > > On 19 March 2015 at 19:32, Miguel Clara wrote: >> >> On Fri, Mar 20, 2015 at 2:11 AM, Miguel Clara >> wrote: >>> >>> >>> On Fri, Mar 20, 2015 at 1:55 AM, Miguel Clara >>> wrote: >>>> >>>> >>>> On Fri, Mar 20, 2015 at 1:18 AM, Miguel Clara >>>> wrote: >>>>> >>>>> >>>>> On Thu, Mar 19, 2015 at 9:49 PM, Adrian Chadd >>>>> wrote: >>>>>> >>>>>> Whilst running this, can you run 'athstats 1' on the freebsd box? >>>>>> >>>>>> i wonder what the signal level and retransmit rates are. >>>>> >>>>> >>>>> Not sure hwo to do that... do I need ath_debug? >>>>> >>>>> I did found '/usr/src/tools/tools/ath/athstats' and tried to "make" >>>>> >>>>> clang -O2 -pipe -DATH_DEFAULT='"ath0"' >>>>> -I/usr/src/tools/tools/ath/athstats >>>>> -I/usr/src/tools/tools/ath/athstats/../common >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath/ath_hal >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/contrib/dev/ath/ath_hal >>>>> -I/usr/src/tools/tools/ath/athstats -DATH_SUPPORT_ANI -DATH_SUPPORT_TDMA >>>>> -DATH_DEFAULT='"ath0"' -I/usr/src/tools/tools/ath/athstats >>>>> -I/usr/src/tools/tools/ath/athstats/../common >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/dev/ath/ath_hal >>>>> -I/usr/src/tools/tools/ath/athstats/../../../../sys/contrib/dev/ath/ath_hal >>>>> -I/usr/src/tools/tools/ath/athstats -std=gnu99 -fstack-protector >>>>> -fbracket-depth=512 -Qunused-arguments -rpath /usr/lib/private -o athstats >>>>> main.o athstats.o -L/usr/src/lib/libbsdstat -lbsdstat >>>>> /usr/bin/ld: cannot find -lbsdstat >>>>> clang: error: linker command failed with exit code 1 (use -v to see >>>>> invocation) >>>>> *** Error code 1 >>>>> >>>>> Stop. >>>>> make: stopped in /usr/src/tools/tools/ath/athstats >>>>> >>>>> I installed bsdstats but after make clean;make I still get the same. >>>> >>>> >>>> Oh wait: >>>> -L/usr/src/lib/libbsdstat -lbsdstat >>>> >>>> /usr/bin/ld: cannot find -lbsdstat >>>> >>>> Should it look in /usr/private? >>>> >>>> Or maybe not... I saw this: >>>> ###################### >>>> commit 050d4409aa855fa1f82f6ca0dbb7e0c865c05e32 >>>> Author: bapt >>>> Date: Tue Nov 25 22:37:27 2014 +0000 >>>> >>>> Convert to LIBADD >>>> >>>> Notes: >>>> svn path=/head/; revision=275084 >>>> >>>> diff --git a/tools/tools/ath/athstats/Makefile >>>> b/tools/tools/ath/athstats/Makefile >>>> index 8d1bfa6..a7ff43b 100644 >>>> --- a/tools/tools/ath/athstats/Makefile >>>> +++ b/tools/tools/ath/athstats/Makefile >>>> @@ -23,9 +23,7 @@ CFLAGS+=-DATH_SUPPORT_TDMA >>>> >>>> CFLAGS.clang+= -fbracket-depth=512 >>>> >>>> -USEPRIVATELIB= bsdstat >>>> - >>>> -LDADD= ${LDBSDSTAT} >>>> +LIBADD= bsdstat >>>> >>>> opt_ah.h: >>>> echo "#define AH_DEBUG 1" > opt_ah.h >>>> ################# >>>> >>>> reverting gives me this: >>>> >>>> [...]ib/private -rpath /usr/lib/private -o athstats main.o athstats.o >>>> athstats.o: In function `athstats_new': >>>> athstats.c:(.text+0x3e): undefined reference to `bsdstat_init' >>>> clang: error: linker command failed with exit code 1 (use -v to see >>>> invocation) >>>> >>>> If I can get around this I'd love to post those stats >>>> >>> >>> Sadly I'm no C expert... I'm not even a coder but "bsdstat_init" defiantly >>> exists and the include bsdstat.h is in athstats.h... >>> makes no sense (to me) :| >>> >> >> In the mean time I checked out a version before bsdstat and I was able to >> complie, output follows >> % sudo athstats >> athstats: ioctl: ath0: Invalid argument <------------------ Is this >> expected? >> athstats: ioctl: ath0: Invalid argument >> 990785 data frames received >> 559194 data frames transmit >> 7602 tx frames with an alternate rate >> 27634 short on-chip tx retries >> 100075 long on-chip tx retries >> 374 tx failed 'cuz too many retries >> 24 mib overflow interrupts >> 3 tx linearized to cluster >> MCS3 current transmit rate >> 17 beacon miss interrupts >> 31173 rx failed 'cuz of bad CRC >> 114 rx failed 'cuz of PHY err >> 5 OFDM restart >> 109 CCK restart >> 247 periodic calibrations >> -0/+0 TDMA slot adjust (usecs, smoothed) >> 28 rssi of last ack >> 40 avg recv rssi >> -96 rx noise floor >> 614 tx frames through raw api >> 601749 A-MPDU sub-frames received >> 187766 Half-GI frames received >> 443941 40MHz frames received >> 12776 CRC errors for non-last A-MPDU subframes >> 198 CRC errors for last subframe in an A-MPDU >> 558554 Frames transmitted with HT Protection >> 169 TX Timeout >> Antenna profile: >> [0] tx 558817 rx 36629 >> [1] tx 0 rx 772652 >> [2] tx 0 rx 26737 >> [3] tx 0 rx 30276 >> [4] tx 0 rx 28833 >> [5] tx 0 rx 25606 >> [6] tx 0 rx 30300 >> [7] tx 0 rx 39752 >> >> >> >>> >>> >>>> >>>>> >>>>>> Thanks, >>>>>> >>>>>> >>>>>> -a >>>>> >>>>> >>>> >>> >>