Search Linux Wireless

Re: poor performance with ath5k; reverting to ath_pci

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/1/22 Glenn Burkhardt <gbburkhardt@xxxxxxxxxxx>:
> On Friday 16 January 2009 10:33:13 Bob Copeland wrote:
>> On Thu, Jan 15, 2009 at 5:34 PM, Glenn Burkhardt
>>
>> <gbburkhardt@xxxxxxxxxxx> wrote:
>> > ath5k_pci 0000:00:07.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
>> > ath5k_pci 0000:00:07.0: registered as 'phy0'
>> > phy0: Selected rate control algorithm 'pid'
>>
>> Can you change the rate control algorithm to minstrel and retry?
>
> I'll have to say that performance is worse with minstrel than pid rate
> control.  I used Channel 2 on the router, and:
>
> ath_pci:
> DepotRd:/home/gbb-suse/wireless # ping 192.168.2.1
> PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
> 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=5.82 ms
> 64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=1.32 ms
> 64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=0.967 ms
> 64 bytes from 192.168.2.1: icmp_seq=4 ttl=64 time=0.954 ms
> 64 bytes from 192.168.2.1: icmp_seq=5 ttl=64 time=0.970 ms
> 64 bytes from 192.168.2.1: icmp_seq=6 ttl=64 time=1.14 ms
> 64 bytes from 192.168.2.1: icmp_seq=7 ttl=64 time=1.32 ms
> 64 bytes from 192.168.2.1: icmp_seq=8 ttl=64 time=0.981 ms
> 64 bytes from 192.168.2.1: icmp_seq=9 ttl=64 time=0.961 ms
> 64 bytes from 192.168.2.1: icmp_seq=10 ttl=64 time=3.88 ms
> 64 bytes from 192.168.2.1: icmp_seq=11 ttl=64 time=0.962 ms
> 64 bytes from 192.168.2.1: icmp_seq=12 ttl=64 time=0.894 ms
> 64 bytes from 192.168.2.1: icmp_seq=13 ttl=64 time=0.991 ms
> 64 bytes from 192.168.2.1: icmp_seq=14 ttl=64 time=0.968 ms
> 64 bytes from 192.168.2.1: icmp_seq=15 ttl=64 time=0.978 ms
> 64 bytes from 192.168.2.1: icmp_seq=16 ttl=64 time=1.10 ms
> 64 bytes from 192.168.2.1: icmp_seq=17 ttl=64 time=0.999 ms
> 64 bytes from 192.168.2.1: icmp_seq=18 ttl=64 time=0.998 ms
> DepotRd:/home/gbb-suse/wireless # iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wifi0     no wireless extensions.
>
> ath0      IEEE 802.11g  ESSID:"Belkin_N_Wireless_A99331"
>          Mode:Managed  Frequency:2.417 GHz  Access Point: 00:1C:DF:A9:93:31
>          Bit Rate:36 Mb/s   Tx-Power:15 dBm   Sensitivity=1/1
>          Retry:off   RTS thr:off   Fragment thr:off
>          Encryption key:FA2D-087E-61EF-D860-2E7D-46C9-AF65-CA4C   Security
> mode:restricted
>          Power Management:off
>          Link Quality=37/70  Signal level=-59 dBm  Noise level=-96 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
>
> ath5k with pid:
>
> DepotRd:/home/gbb-suse/linux-2.6.28.1 # ping 192.168.2.1
> PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
> 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=1729 ms
> 64 bytes from 192.168.2.1: icmp_seq=5 ttl=64 time=2320 ms
> 64 bytes from 192.168.2.1: icmp_seq=6 ttl=64 time=2050 ms
> 64 bytes from 192.168.2.1: icmp_seq=8 ttl=64 time=1402 ms
> 64 bytes from 192.168.2.1: icmp_seq=9 ttl=64 time=1323 ms
> 64 bytes from 192.168.2.1: icmp_seq=11 ttl=64 time=1151 ms
> 64 bytes from 192.168.2.1: icmp_seq=13 ttl=64 time=608 ms
> 64 bytes from 192.168.2.1: icmp_seq=14 ttl=64 time=1134 ms
> 64 bytes from 192.168.2.1: icmp_seq=15 ttl=64 time=1100 ms
> 64 bytes from 192.168.2.1: icmp_seq=16 ttl=64 time=356 ms
> 64 bytes from 192.168.2.1: icmp_seq=17 ttl=64 time=164 ms
> 64 bytes from 192.168.2.1: icmp_seq=18 ttl=64 time=423 ms
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=20 ttl=64 time=407 ms
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=23 ttl=64 time=1086 ms
> 64 bytes from 192.168.2.1: icmp_seq=24 ttl=64 time=1442 ms
> DepotRd:~ # iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wmaster0  no wireless extensions.
>
> wlan0     IEEE 802.11bg  ESSID:"Belkin_N_Wireless_A99331"
>          Mode:Managed  Frequency:2.417 GHz  Access Point: 00:1C:DF:A9:93:31
>          Bit Rate=54 Mb/s   Tx-Power=27 dBm
>          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
>          Encryption key:E854-5075-1208-1225-D46B-46E6-CB2C-B627-DA3D-788E-
> F50E-7351-DDE0-C111-E9A5-1FB7 [2]   Security mode:open
>          Power Management:off
>          Link Quality=53/100  Signal level:-69 dBm  Noise level=-103 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
>
>
> ath5k with minstrel
>
> dmesg | egrep 'ath|phy'
> BIOS-provided physical RAM map:
>  Setting physnode_map array to node 0 for pfns:
> ath5k_pci 0000:00:07.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
> ath5k_pci 0000:00:07.0: registered as 'phy0'
> phy0: Selected rate control algorithm 'minstrel'
> ath5k phy0: Atheros AR5213A chip found (MAC: 0x59, PHY: 0x43)
> ath5k phy0: RF2112B 2GHz radio found (0x46)
>
> DepotRd:# ping 192.168.2.1
> PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=13159 ms
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=8 ttl=64 time=40968 ms
> 64 bytes from 192.168.2.1: icmp_seq=10 ttl=64 time=42986 ms
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=15 ttl=64 time=41983 ms
> ping: sendmsg: Network is unreachable
> 64 bytes from 192.168.2.1: icmp_seq=16 ttl=64 time=42860 ms
> DepotRd:~ # iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wmaster0  no wireless extensions.
>
> wlan0     IEEE 802.11bg  ESSID:"Belkin_N_Wireless_A99331"
>          Mode:Managed  Frequency:2.417 GHz  Access Point: 00:1C:DF:A9:93:31
>          Bit Rate=54 Mb/s   Tx-Power=27 dBm
>          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
>          Encryption key:1193-9C46-9CB0-B2EE-99CA-EA37-7EB4-1B62-9475-B834-
> AE70-AA4F-B4A5-B303-3D51-4244 [2]   Security mode:open
>          Power Management:off
>          Link Quality=56/100  Signal level:-67 dBm  Noise level=-103 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
>

O.K. so both algorithms have overestimated the rate, madwifi with
minstrel sets it to 36M and both pid an minstrel on ath5k/mac80211 set
it to 54M. This results packet corruption and packet loss. Please try
locking the rate to 18M - 36M and check the performance again (also an
iperf udp test would be very usefull) to see if this is only a problem
with the algorithm or a more generic problem.

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux