Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2003 14:16:10 -0800
From:      "Sam Leffler" <sam@errno.com>
To:        "Matt Haught" <haughtlists@hotmail.com>, <freebsd-current@FreeBSD.ORG>
Subject:   Re: new wi0 slowness
Message-ID:  <00b101c2c0d1$8a1ba2c0$52557f42@errno.com>
References:  <F124dGEhK1GhdB5VdAE00005cd2@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Alright, I have disabled IPSec and updated the firmware to read:
> wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9)
>
> sysctl kern.wi_txerate=0 gives: sysctl: unknown oid 'kern.wi_txerate'
>

Sigh, I screwed up the sysctl's--just fixed it.  This one is now located at
hw.wi.txerate and must be set to -1 to turn off the msgs.  I've done that
for the code in tree.

> I reran my test and I am still transfering at ~870Kb/s.  netstat -i -I wi0
> shows this after the transfers:
> Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs
> Coll
> wi0    1500 <Link#1>      00:05:5d:fa:0e:b0    29847     0    53331    59
> 557
> wi0    1500 192.168.168   wifi                    59     -    52085     -
>   -
>
> Here is something odd that I found: I set the mediaopt to adhoc in rc.conf
> and rebooted again, and here is what I found (I was not sure how to clear
> the counters that you wanted in netstat so I rebooted):
>
> The same files transfer at ~5600Kb/s, so its back where it was with the
old
> driver.  Here is netstat -i again after this run:
>
> Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs
> Coll
> wi0    1500 <Link#1>      00:05:5d:fa:0e:b0    27497     0    51230    13
> 452
> wi0    1500 192.168.168   wifi                    61     -    51200     -
>   -
>
> So there are 4 times more Oerrs in hostap mode (59 to 13), and just a few
> more collisions.
>
> I almost forgot, here are ifconfig wi0 outputs:
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.168.1 netmask 0xffffff00 broadcast 192.168.168.255
>         ether 00:05:5d:fa:0e:b0
>         media: IEEE 802.11 Wireless Ethernet autoselect <hostap> (DS/2Mbps
> <host
> ap>)
>         status: associated
>         ssid HaughtDom 1:HaughtDom
>         stationname "FreeBSD WaveLAN/IEEE node"
>         channel 3 authmode OPEN powersavemode OFF powersavesleep 100
>         wepmode OFF weptxkey 1
>
> and with adhoc:
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.168.1 netmask 0xffffff00 broadcast 192.168.168.255
>         ether 00:05:5d:fa:0e:b0
>         media: IEEE 802.11 Wireless Ethernet autoselect <adhoc> (DS/11Mbps
> <adho
> c>)
>         status: associated
>         ssid HaughtDom 1:HaughtDom
>         stationname "FreeBSD WaveLAN/IEEE node"
>         channel 3 authmode OPEN powersavemode OFF powersavesleep 100
>         wepmode OFF weptxkey 1
>
> I can also start a transfer test in hostap mode (~670Kb/s) and use
ifconfig
> to switch over to adhoc, and after a second or two while my laptop
switches
> over, it transfers at ~5600Kb/s.  I don't use wicontrol at all.  My
transfer
> test is just 67MB of mp3s off the fbsd machine.  If you need any more
info,
> just drop me a message.

I have no answer for you.  There's just not that much difference between
adhoc and hostap mode to explain this.  If you were using wep and it was
being offloaded to the host I could understand a noticeable difference in
performance.

    Sam


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00b101c2c0d1$8a1ba2c0$52557f42>