Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
Hi Beat, I'm trying to use again mac driver (ath5k) instead of old madwifi driver for atheros cards. What version of madwifi do you use: vanilla source from svn repository or something like openwrt madwifi package? In january of 2012, we done a performance comparision of madwifi from openwrt against ath5k from compat-wireless and got the same result. Ath5k showed poor performance in access point mode and just lower performance in station mode. Some details about our testing: - ar5414 based cards - celeron 700 MHz based host boards - 4 address (WDS) mode enabled (traffic source and sink were located on external devices) - fixed at 54M bitrate - signal level -41...-39 dBm - Bursting and FF features are switched off -- BR, Sergey ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
On 09/18/2013 10:52 AM, Bob Copeland wrote: On Tue, Sep 17, 2013 at 04:33:34PM -0700, Adrian Chadd wrote: ... I think you should start doing some more in-depth system profiling to see where that CPU is actually being used. Saying ksoftirqd is only a little helpful. See if it's handling way too much interrupts, or whether there's lots of card error conditions, or the TX/RX queues are being too frequently checkeed, or ... What I have seen is that with madwifi driver the cpu is 90-100% cpu usage with ksoftirqd with mac80211 about 2% ... Could this be a kernel interrupt issue? Are there several policies which changed with kernel? Indeed I didn't understand at all the stats given above. I took it to mean that madwifi is using much more CPU in the kernel than ath5k, which would be an anti-feature unless ath5k is sleeping too much. At any rate - results of Yes this is what I have seen. If using madwifi driver, iperf is using 10% cpu and almost 80-90% cpu BUT throughput is nice: 13-15Mbps@24M bit rate fix where with ath5k iperf is using 3% cpu and interrupts nothing and throughput is only 5-7Mbps. Hostapd is used with wpa2-psk. perf record [do something wireless] + perf report for both scenarios could shed some light. What do you want to know? On machine where hostap is running: while true; do iperf -c ip_of_sta;done on this machine ksoftirqd/0 use no cpu with top, iperf 1% cpu if at5hk driver is used and 80-90% cpu for ksoftirqd/0 and about 10% for iperf if madwifi is used. On machine were wpa_supplicant is running iperf -s top shows about 2-5% cpu of iperf and nothing about ksoftirqd/0 nevertheless if ath5k or madwifi is used. and visa vers on machine where hostap is running: iperf -s top shows about 2-5% cpu of iperf and nothing about ksoftirqd/0 nevertheless if ath5k or madwifi is used. on machine were wpa_supplicant is running while true; do iperf -c ip_of_masterdone on this machine ksoftirqd/0 use no cpu with top, iperf 1% cpu if at5hk driver is used and 80-90% cpu for ksoftirqd/0 and about 10% for iperf if madwifi is used. Nevertheles if machine were wpa_supplicant is running is using madwifi or ath5k driver throughput is 13-15Mbps IF machine where hostap is running use madwifi driver If machine where hostap is running use ath5k driver throughput is 5-7Mbps nevertheles if machine were wpa_supplicant is running is using madwifi or ath5k driver. Other problem what I see is that the signal is normaly -60 and drops out short time to -78 with ath5k with madwifi not ... Is that what you want to known? BTW: I'm now compiling the kernel with debug support for ath5k drivers ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
On Thu, Sep 19, 2013 at 08:30:54AM -0300, Beat Meier wrote: perf record [do something wireless] + perf report for both scenarios could shed some light. What do you want to know? The output of perf (recorded while running iperf) for starters :) (Just to allay any confusion, perf is a CPU profiler, while you know what iperf is already.) -- Bob Copeland %% www.bobcopeland.com ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
On Tue, Sep 17, 2013 at 04:33:34PM -0700, Adrian Chadd wrote: ... I think you should start doing some more in-depth system profiling to see where that CPU is actually being used. Saying ksoftirqd is only a little helpful. See if it's handling way too much interrupts, or whether there's lots of card error conditions, or the TX/RX queues are being too frequently checkeed, or ... What I have seen is that with madwifi driver the cpu is 90-100% cpu usage with ksoftirqd with mac80211 about 2% ... Could this be a kernel interrupt issue? Are there several policies which changed with kernel? Indeed I didn't understand at all the stats given above. I took it to mean that madwifi is using much more CPU in the kernel than ath5k, which would be an anti-feature unless ath5k is sleeping too much. At any rate - results of perf record [do something wireless] + perf report for both scenarios could shed some light. -- Bob Copeland %% www.bobcopeland.com ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
What is the rate control algorithm used by your mac80211? Try use minstrel perhaps. On Sep 17, 2013 7:52 AM, Bob Copeland m...@bobcopeland.com wrote: On Tue, Sep 17, 2013 at 11:27:13AM -0300, Beat Meier wrote: Anyone having same issue? I realy have to switch to this driver because madwifi not anymore supported and I have serveral bad issues but with this throughput impossible to use for me How can I help to debug the problem? I don't see anything like this, but I can't recall the last time I had madwifi working either. A capture of both scenarios would help. -- Bob Copeland %% www.bobcopeland.com ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
It seems that I'm using already minstrel. I have found the following in the kernel configuration file CONFIG_MAC80211=m CONFIG_MAC80211_HAS_RC=y CONFIG_MAC80211_RC_PID=y CONFIG_MAC80211_RC_MINSTREL=y CONFIG_MAC80211_RC_MINSTREL_HT=y # CONFIG_MAC80211_RC_DEFAULT_PID is not set CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y CONFIG_MAC80211_RC_DEFAULT=minstrel_ht CONFIG_MAC80211_MESH=y CONFIG_MAC80211_LEDS=y # CONFIG_MAC80211_DEBUGFS is not set # CONFIG_MAC80211_MESSAGE_TRACING is not set # CONFIG_MAC80211_DEBUG_MENU is not set I have not found in the wireless documentation how to enable other algo? Is there a module parameter for MAC80211 ? On 09/17/2013 12:32 PM, Yeoh Chun-Yeow wrote: What is the rate control algorithm used by your mac80211? Try use minstrel perhaps. On Sep 17, 2013 7:52 AM, Bob Copeland m...@bobcopeland.com mailto:m...@bobcopeland.com wrote: On Tue, Sep 17, 2013 at 11:27:13AM -0300, Beat Meier wrote: Anyone having same issue? I realy have to switch to this driver because madwifi not anymore supported and I have serveral bad issues but with this throughput impossible to use for me How can I help to debug the problem? I don't see anything like this, but I can't recall the last time I had madwifi working either. A capture of both scenarios would help. -- Bob Copeland %% www.bobcopeland.com http://www.bobcopeland.com ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org mailto:ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel
Re: [ath5k-devel] mac80211 and kernel 3.8.13 1/2 speed as with madwifi and kernel 2.6.23 and bad respons time
... I think you should start doing some more in-depth system profiling to see where that CPU is actually being used. Saying ksoftirqd is only a little helpful. See if it's handling way too much interrupts, or whether there's lots of card error conditions, or the TX/RX queues are being too frequently checkeed, or ... -adiran ___ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel