Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RTL8821AE - slow performance
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Fri May 27, 2016 10:09 pm    Post subject: RTL8821AE - slow performance Reply with quote

I can only really do tests on the 2.4 GHz bands, because my phone is the only hardware I have (other than the server itself) that has 5GHz hardware. It's working (mostly) but I'm getting timeouts and very poor performance of about 0.7mbps. This is my hostapd.conf. If it can be fixed with some conf changes great...if not I'm willing to consider other cards (this is a mini-pcie card and I can get replacements for around $25 so I'm not worried about that). It's really odd, because the 0.7mbps seems like it's an artificial cap. It only happens on download, upload goes as high as 5mbps (my max upload speed), though it is VERY jumpy with the speed going up and down constantly.

Code:
interface=wlan0
bridge=br0
country_code=US
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=x
hw_mode=g
channel=9
ieee80211d=1
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
wpa=2
wpa_passphrase=x
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
ieee80211n=1
#wmm_enabled=1
own_ip_addr=x
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat May 28, 2016 1:48 pm    Post subject: Reply with quote

Akaihiryuu ...

as I mentioned in my post to your other thread, this sounds very much like a lack of entropy, try running a entropy daemon, there are various to choose from:

sys-apps/haveged
sys-apps/audio-entropyd
sys-apps/timer_entropyd

best ... khay
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Sat May 28, 2016 2:51 pm    Post subject: Reply with quote

So just install that and then test wifi again? I don't understand how an external program like that could have anything to do with wifi speeds.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat May 28, 2016 3:16 pm    Post subject: Reply with quote

Akaihiryuu wrote:
So just install that and then test wifi again? I don't understand how an external program like that could have anything to do with wifi speeds.

Akaihiryuu ... the data (TCP/IP) is encapsulated, that encapsulation is encrypted and for hostapd to do this it needs entropy (something which is generally is short supply). An entropy generator can use some device (such as an audio card) to generate entropy and fill up the pool, thus making sure that hostapd doesn't need to wait some nanoseconds for it to be available. The issue you report is typical of entropy exhaustion, and as you would expect when more data transfered more entropy is required. I can't say for sure this is the cause, it may very well be the driver, but the symptoms suggest this may be the case.

best ... khay
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Sat May 28, 2016 10:18 pm    Post subject: Reply with quote

I tried that, it didn't make any difference. My download is always *exactly* 0.8mbps (it should be more like 50), and my upload fluctuates wildly between 3 and 5mbps (my cap). The upload is actually ok, it's just the download, which really confuses me. There's definitely something wrong, but it's probably the drivers. I've looked around and seen a LOT of reports of very bad performance with this chipset with the drivers included in the kernel. Apparently there are repositories that have better ones (at least for Ubuntu and Debian). I've seen them mentioned but haven't been able to actually find anything.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sun May 29, 2016 10:58 am    Post subject: Reply with quote

You have some log options you can set in hostapd.conf to read what hostapd think of what it's doing. It can help to find the cause of the slow download speed.

When I have set the channel number the first time, I had a look at the other Access Points in my network neighborhood. No one was using the channel 2. So I decide to use it to not interfere with other AP. I just come to check and I am the only one who use channel 2 unless an hiden network is using it too. So, are you alone to use channel 9? If not, try a channel number not in use.

In my Access Point tower (HP Compaq 6000 Pro MT PC ), I have disable all sorts of power saving, in the ath9k module, in the PCIe bus and I run the processor at the performance governor. For tests at least, I think it is a good idea.

Your problem can be the rtl8821ae module and/or the wireless card itself. More than one rtl modules are not working too good. You can try to set some parameters for the rtl8821ae module. A mini-pcie is not an ideal device to serve as an Access Point. It must be in a laptop. Have you check it's capabilities with the command iw list? I suppose it support AP mode. :-)

It's not impossible that the problem have it's source on the client side !

My Access Point wireless card is a Qualcomm Atheros AR9227 Wireless Network Adapter that I use in a PCIe extension slot. I am happy with it after a couple of years now. I always get my wire Internet maximum speed on all the machines of my private wireless lan.
_________________
Paul
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Sun May 29, 2016 5:01 pm    Post subject: Reply with quote

Yes, it supports AP mode. I ran an access point off of a mini-PCIe card for 4 years, but it was an ath9k card. That one still works great...but it only support 2.4GHz and 802.11n, I'm really wanting ac performance and 5GHz. As far as the access point, yes it is fully supported, and it works as an access point, I'm just getting a lot of dropped packets and awful performance. Performance is sufficient for light web browsing, but attempting to copy files will constantly time out. But yes, I've checked iw list and tinkered around with some parameters but nothing helps.

As far as running AP's, it doesn't matter whether it's a mini-PCIe card or not. Full sized PCIe wireless cards simply have the antenna assembly built into the card, while mini PCIe cards have the antennas attached with special cords. They work the same.

I've read several places that the 8821AE drivers are still not very good. I'll just wait, and use an external AP for now until the drivers either get better or I get a different card. I've always kind of wanted to have an external device that I can use as a router as a backup in an emergency though. So this will work fine for now.
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Mon Jun 06, 2016 12:47 am    Post subject: Reply with quote

Since I have working wifi right now via an external access point, I can tinker with this card without interrupting my network. So I've been playing around with it. I have noticed something unusual in the kernel logs:

rtlwifi: Firmware rtlwifi/rtl8821aefw.bin not available

That could very well be the source of my problems. Any idea where I can find this? I assume there will be a package for it, but I can't find anything that mentions realtek.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Mon Jun 06, 2016 3:40 am    Post subject: Reply with quote

well, the easy and best bet would be trying the linux-firmware package, as it generally tends to be the overall main package with all firmware
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum