2011-09-08 02:23:50

by Larry Finger

[permalink] [raw]
Subject: Re: RTL8192SE and 802.11n problem

On 09/07/2011 03:05 PM, Stefan Zwanenburg wrote:
>

> * My NIC variant has the following ID: 10ec:8172. I suppose that means it's an
> RTL8192SEvA2. I did not know this at the time of writing however.
> * Kernel version: it's a vanilla kernel + gentoo patches (exact gentoo ebuild
> version: 3.0.4).
> * Driver: I'm using the one for the RTL8192SE that is currently in the kernel
> tree, so no compat-wireless.
> * Access point: 3Com 3CRWER300-73 with firmware version 1.12.06.
>

With kernel 3.0.4:

06:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8191SEvB
Wireless LAN Controller [10ec:8172] (rev 10)

TCP_MAERTS TX Test: 29.57 33.17 37.99 38.61 37.38 35.34 37.42 14.04 36.08 34.95
TCP_MAERTS RX Test: 30.52 39.50 37.88 30.90 38.60 31.86 47.55 32.86 41.98 41.46
Results: TX: max 38.61, min 14.04. Mean 33.45(6.95)
RX: max 47.55, min 30.52. Mean 37.31(5.36)


TCP_STREAM TX Test: 32.11 33.20 39.19 32.24 43.94 15.74 27.74 32.75 32.85 33.12
TCP_STREAM RX Test: 35.45 34.24 35.68 34.28 35.23 31.15 30.75 36.01 35.07 35.08
Results: TX: max 43.94, min 15.74. Mean 32.29(6.93)
RX: max 36.01, min 30.75. Mean 34.29(1.75)

TCP_SENDFILE TX Test: 26.69 30.01 29.32 29.21 29.27 29.87 30.06 29.69 29.25 20.21
TCP_SENDFILE RX Test: 33.72 29.56 36.87 32.65 34.46 33.71 37.67 38.28 36.20 30.50
Results: TX: max 30.06, min 20.21. Mean 28.36(2.87)
RX: max 38.28, min 29.56. Mean 34.36(2.79)

finger@larrylap:~> iwconfig wlan0

wlan0 IEEE 802.11bgn ESSID:"lwfdjf-n"
Mode:Managed Frequency:2.422 GHz Access Point: C0:3F:0E:BE:2B:44
Bit Rate=135 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


With kernel wireless-testing 3.1-rc4:

TCP_MAERTS TX Test: 23.34 48.86 52.67 44.96 50.42112.86 41.24 46.60 50.81 45.24
TCP_MAERTS RX Test: 67.77 75.84 35.60 57.84 55.06 61.65 55.46 59.58 59.65 61.81
Results: TX: max 112.86, min 23.34. Mean 51.70(21.86)
RX: max 75.84, min 35.60. Mean 59.03(9.76)

TCP_STREAM TX Test: 61.92 61.14 57.27 62.02 58.43 61.41 61.34 62.39 61.45 59.49
TCP_STREAM RX Test: 23.95 39.50 32.49 53.00 44.30 43.82 48.37 45.50 50.54 50.27
Results: TX: max 62.39, min 57.27. Mean 60.69(1.62)
RX: max 53.00, min 23.95. Mean 43.17(8.56)

TCP_SENDFILE TX Test: 62.51 58.05 58.21 51.26 58.60 57.32 58.36 59.02 51.30 54.72
TCP_SENDFILE RX Test: 45.35 39.31 34.46 31.14 28.40 35.71 40.78 44.67 39.14 36.66
Results: TX: max 62.51, min 51.26. Mean 56.94(3.35)
RX: max 45.35, min 28.40. Mean 37.56(5.16)
finger@larrylap:~> iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan8 IEEE 802.11bgn ESSID:"lwfdjf-n"
Mode:Managed Frequency:2.422 GHz Access Point: C0:3F:0E:BE:2B:44
Bit Rate=135 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

It turns out the performance is quite a bit higher with 3.1-rc4 (actually 3.2
wireless) than it is with 3.0.4.

If possible, could you please try the latest compat-wireless, either as a
package or as downloaded source? In the meantine, I will bisect between the
current wireless-testing and 3.0, and test the 3.1-rc4 aminline kernel.

Larry


2011-09-08 03:24:29

by Stefan Zwanenburg

[permalink] [raw]
Subject: Re: RTL8192SE and 802.11n problem

On 09/08/2011 04:50 AM, Larry Finger wrote:
> Stefan,
>
> I did finish the complete set of tests with my RTL8191SEvB Wireless
> LAN Controller [10ec:8172] (rev 10). The results for the tests are as
> follows:
>
> TCP_MAERTS:
>
> kernel 3.0.4:
>
> Results: TX: max 38.61, min 14.04. Mean 33.45(6.95)
> RX: max 47.55, min 30.52. Mean 37.31(5.36)
>
> 3.1-rc4 - Mainline:
>
> Results: TX: max 57.70, min 42.90. Mean 52.79(3.92)
> RX: max 68.77, min 47.29. Mean 60.38(5.28)
>
> 3.1-rc4 - wireless-testing:
>
> Results: TX: max 112.86, min 23.34. Mean 51.70(21.86)
> RX: max 75.84, min 35.60. Mean 59.03(9.76)
>
> TCP_STREAM:
>
> Kernel 3.0.4:
>
> Results: TX: max 43.94, min 15.74. Mean 32.29(6.93)
> RX: max 36.01, min 30.75. Mean 34.29(1.75)
>
> Kernel 3.1-rc4 from mainline:
>
> Results: TX: max 59.73, min 23.48. Mean 47.59(12.33)
> RX: max 49.89, min 25.14. Mean 38.26(7.32)
>
> Kernel 3.1-rc4 from wireless-testing:
>
> Results: TX: max 62.39, min 57.27. Mean 60.69(1.62)
> RX: max 53.00, min 23.95. Mean 43.17(8.56)
>
> TCP_SENDFILE:
>
> Kernel 3.0.4:
>
> Results: TX: max 30.06, min 20.21. Mean 28.36(2.87)
> RX: max 38.28, min 29.56. Mean 34.36(2.79)
>
> Kernel 3.1-rc4 from mainline:
>
> Results: TX: max 70.25, min 2.64. Mean 42.59(18.30)
> RX: max 44.85, min 33.12. Mean 40.83(4.04)
>
> Kernel 3.1-rc4 from wireless-testing:
>
> Results: TX: max 62.51, min 51.26. Mean 56.94(3.35)
> RX: max 45.35, min 28.40. Mean 37.56(5.16)
>
> It seems that kernel 3.1-rc4 from mainline is quite a bit faster than
> 3.0.4, but I don't know why. The 3.1-rc4 driver from wireless-testing
> may be a bit quicker, but the difference is not that great.
>
> My next step will be to bisect the mainline tree to see if I can find
> a commit that has a big effect. Please open a bug at
> bugzilla.kernel.org on this issue, if you have not already done so,
> and send me the bug number.
>
> Larry
Before you continue down this path, I have to ask you something: do you
think the rate of my connection would increase if I stress it enough? By
this I mean: initially, it appears I have a (theoretical maximum)
bitrate of 54Mbps upon connecting to my AP; will the bitrate increase
when running something like netperf for long enough? If not, I'm not
sure you understood my problem. I don't mind the bitrate so much if it
weren't for the fact that I should be associating with my AP over an
802.11n link (since both my NIC and AP should be capable of this), which
I cannot. The AP itself (which can display a list of its wireless
clients including MAC addresses and link type) reports that I'm
connected over an 802.11g link.
I'd hate for you to put more time into this if we have indeed
misunderstood one another.

Anyway, I'm more than willing to try out the 3.1-rc4 mainline kernel if
that would be of any help. However, it will have to wait until tomorrow,
since it's pretty much the end of the night in my timezone, and I have a
busy day tomorrow. I'll also file a bug report tomorrow, if I haven't
heard back from you regarding our possible misunderstanding.

2011-09-08 02:50:20

by Larry Finger

[permalink] [raw]
Subject: Re: RTL8192SE and 802.11n problem

Stefan,

I did finish the complete set of tests with my RTL8191SEvB Wireless LAN
Controller [10ec:8172] (rev 10). The results for the tests are as follows:

TCP_MAERTS:

kernel 3.0.4:

Results: TX: max 38.61, min 14.04. Mean 33.45(6.95)
RX: max 47.55, min 30.52. Mean 37.31(5.36)

3.1-rc4 - Mainline:

Results: TX: max 57.70, min 42.90. Mean 52.79(3.92)
RX: max 68.77, min 47.29. Mean 60.38(5.28)

3.1-rc4 - wireless-testing:

Results: TX: max 112.86, min 23.34. Mean 51.70(21.86)
RX: max 75.84, min 35.60. Mean 59.03(9.76)

TCP_STREAM:

Kernel 3.0.4:

Results: TX: max 43.94, min 15.74. Mean 32.29(6.93)
RX: max 36.01, min 30.75. Mean 34.29(1.75)

Kernel 3.1-rc4 from mainline:

Results: TX: max 59.73, min 23.48. Mean 47.59(12.33)
RX: max 49.89, min 25.14. Mean 38.26(7.32)

Kernel 3.1-rc4 from wireless-testing:

Results: TX: max 62.39, min 57.27. Mean 60.69(1.62)
RX: max 53.00, min 23.95. Mean 43.17(8.56)

TCP_SENDFILE:

Kernel 3.0.4:

Results: TX: max 30.06, min 20.21. Mean 28.36(2.87)
RX: max 38.28, min 29.56. Mean 34.36(2.79)

Kernel 3.1-rc4 from mainline:

Results: TX: max 70.25, min 2.64. Mean 42.59(18.30)
RX: max 44.85, min 33.12. Mean 40.83(4.04)

Kernel 3.1-rc4 from wireless-testing:

Results: TX: max 62.51, min 51.26. Mean 56.94(3.35)
RX: max 45.35, min 28.40. Mean 37.56(5.16)

It seems that kernel 3.1-rc4 from mainline is quite a bit faster than 3.0.4, but
I don't know why. The 3.1-rc4 driver from wireless-testing may be a bit quicker,
but the difference is not that great.

My next step will be to bisect the mainline tree to see if I can find a commit
that has a big effect. Please open a bug at bugzilla.kernel.org on this issue,
if you have not already done so, and send me the bug number.

Larry

2011-09-08 03:48:02

by Larry Finger

[permalink] [raw]
Subject: Re: RTL8192SE and 802.11n problem

On 09/07/2011 10:23 PM, Stefan Zwanenburg wrote:
> I cannot. The AP itself (which can display a list of its wireless
> clients including MAC addresses and link type) reports that I'm
> connected over an 802.11g link.
> I'd hate for you to put more time into this if we have indeed
> misunderstood one another.

It is not a matter of "training". If the AP says it is a G connection, then the
rate will never be more than 54 Mbps.

> Anyway, I'm more than willing to try out the 3.1-rc4 mainline kernel if
> that would be of any help. However, it will have to wait until tomorrow,
> since it's pretty much the end of the night in my timezone, and I have a
> busy day tomorrow. I'll also file a bug report tomorrow, if I haven't
> heard back from you regarding our possible misunderstanding.

I think it may be an incompatibility with that AP, but I will wait for Chaoming
to check that.

In any case, I would like to know what change increases the rate, thus I'll do
the bisection.

Larry