From owner-freebsd-wireless@FreeBSD.ORG Tue Dec 3 15:54:10 2013 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 421192F5 for ; Tue, 3 Dec 2013 15:54:10 +0000 (UTC) Received: from starfish.geekisp.com (starfish.geekisp.com [216.168.135.166]) by mx1.freebsd.org (Postfix) with SMTP id D191B1DD1 for ; Tue, 3 Dec 2013 15:54:09 +0000 (UTC) Received: (qmail 9923 invoked by uid 1003); 3 Dec 2013 15:54:08 -0000 Received: from unknown (HELO kiwi.coupleofllamas.com) (tyler@monkeypox.org@173.239.70.2) by mail.geekisp.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 3 Dec 2013 15:54:08 -0000 Date: Tue, 3 Dec 2013 07:54:04 -0800 From: "R. Tyler Croy" To: Adrian Chadd Subject: Re: iwn(4) driver showing poor performance, variable media selection on 10.0-BETA3 Message-ID: <20131203155404.GG14900@kiwi.coupleofllamas.com> References: <20131203074749.GE14900@kiwi.coupleofllamas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yZnyZsPjQYjG7xG7" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 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: Tue, 03 Dec 2013 15:54:10 -0000 --yZnyZsPjQYjG7xG7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 03 Dec 2013, Adrian Chadd wrote: > What's the pci id string? Pciconf -lv iwn0@pci0:3:0:0: class=3D0x028000 card=3D0x12118086 chip=3D0x42378086 re= v=3D0x00 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'PRO/Wireless 5100 AGN [Shiloh] Network Connection' class =3D network > On Dec 2, 2013 11:48 PM, "R. Tyler Croy" wrote: >=20 > > I recently installed FreeBSD 10.0-BETA3 onto my Thinkpad X200, everythi= ng > > is > > largely running fine except the wireless performance leaves a lot to be > > desired. > > > > I've got an older Thinkpad T43 running -CURRENT next to the X200 in the > > same > > exact room, same distance from the AP, but with an iwi(4) card in it. > > > > The T43 will download large files between 100-200KB/s, and the "media" > > mode for > > wlan0 is "OFDM/48Mbps" which seems non-crazy. > > > > The X200 however will get between 20-90KB/s on the same files, and the > > "media" > > mode will oscillate *dramatically* during the transfer. I've watched it= go > > from > > OFDM/54Mbps, down to 48Mbps, to 16Mbps, to DS/1Mbps which is where it > > seems to > > idle. > > > > I've started looking at the output of wlanstats(1) and nothing jumps out > > at me, > > then again, I'm a noob so what do I know: > > > > [23:35:28] tyler:~ $ wlanstats > > 8 rx frame too short > > 30 rx from wrong bssid > > 802156 rx discard 'cuz dup > > 4 rx discard 'cuz mcast echo > > 172272 rx beacon frames > > 175177 rx element unknown > > 996 rx frame chan mismatch > > 61 rx seq# violation (TKIP) > > 42 active scans started > > 41 background scans started > > 1072961 tkip crypto done in s/w > > 405918 tkip tx MIC done in s/w > > 667043 tkip rx MIC done in s/w > > 173976 rx management frames > > 667045 total data frames received > > 663976 unicast data frames received > > 3069 multicast data frames received > > 406278 total data frames transmit > > 405920 unicast data frames sent > > 1M current transmit rate > > 22 current rssi > > -86 current noise floor (dBm) > > -64 current signal (dBm) > > > > The only thing that looks removely suspicious is the "rx discard" segme= nt, > > but > > again, I plead noob. - R. Tyler Croy ------------------ Code: https://github.com/rtyler Chatter: https://twitter.com/agentdero rtyler@jabber.org --yZnyZsPjQYjG7xG7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlKd/poACgkQFCbH3D9R4W8QEwCeJbFXCp9xipgEmAcV3Cy+ruaz UMoAoIVJ5r6nEBEGhY4T1rpJBJLQaViB =fJ0O -----END PGP SIGNATURE----- --yZnyZsPjQYjG7xG7--