meshdna / meshdna-build

Spindle build environment for MeshDNA Raspberry Pi Image
Other
0 stars 0 forks source link

performance not as nice as expected #13

Open cmdrk opened 10 years ago

cmdrk commented 10 years ago

iperf from 2 raspis with ath9k_htc drivers:

root@raspberrypi:~# iperf -s -V
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34664
[  5] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34665
[  6] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34666
[  7] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34667
[  8] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34669
[ 11] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34668
[ 10] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34671
[  9] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 34670
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.3 sec  4.25 MBytes  3.46 Mbits/sec
[  5]  0.0-10.4 sec  4.25 MBytes  3.43 Mbits/sec
[  8]  0.0-10.5 sec  4.75 MBytes  3.81 Mbits/sec
[ 11]  0.0-10.4 sec  4.50 MBytes  3.61 Mbits/sec
[  7]  0.0-10.5 sec  4.50 MBytes  3.59 Mbits/sec
[ 10]  0.0-10.5 sec  4.38 MBytes  3.49 Mbits/sec
[  6]  0.0-10.5 sec  5.00 MBytes  3.98 Mbits/sec
[  9]  0.0-10.5 sec  4.75 MBytes  3.78 Mbits/sec
[SUM]  0.0-10.5 sec  36.4 MBytes  28.9 Mbits/sec

after i set nohwcrypt to true:

root@raspberrypi:~# iperf -s -V
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56572
[  7] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56575
[  8] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56576
[  6] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56574
[  5] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56573
[  9] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56577
[ 10] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56578
[ 11] local fe80::12fe:edff:fe24:a406 port 5001 connected with fe80::12fe:edff:fe24:7845 port 56579
[ ID] Interval       Transfer     Bandwidth
[ 11]  0.0-10.9 sec  3.12 MBytes  2.40 Mbits/sec
[  7]  0.0-11.0 sec  3.00 MBytes  2.28 Mbits/sec
[ 10]  0.0-11.1 sec  3.12 MBytes  2.37 Mbits/sec
[  6]  0.0-11.1 sec  3.12 MBytes  2.36 Mbits/sec
[  9]  0.0-11.1 sec  3.25 MBytes  2.45 Mbits/sec
[  4]  0.0-11.2 sec  2.75 MBytes  2.07 Mbits/sec
[  5]  0.0-11.1 sec  3.50 MBytes  2.63 Mbits/sec
[  8]  0.0-11.2 sec  3.25 MBytes  2.44 Mbits/sec
[SUM]  0.0-11.2 sec  25.1 MBytes  18.9 Mbits/sec

some station params:

root@raspberrypi:~# iw wlan0 station dump
Station 10:fe:ed:24:a4:06 (on wlan0)
    inactive time:  30 ms
    rx bytes:   2647720
    rx packets: 26542
    tx bytes:   63327850
    tx packets: 41583
    tx retries: 0
    tx failed:  1
    signal:     -28 dBm
    signal avg: -28 dBm
    tx bitrate: 15.0 MBit/s MCS 0 40Mhz short GI
    authorized: yes
    authenticated:  yes
    preamble:   long
    WMM/WME:    yes
    MFP:        no
    TDLS peer:      no
cmdrk commented 10 years ago

2 issues:

rt2800usb

https://bugzilla.kernel.org/show_bug.cgi?id=62781

ath9k

?? cant set mcs

cmdrk commented 10 years ago

more testing with ath9k:

# for i in {0..7}; do iw dev wlan0 set bitrates mcs-2.4 $i; iw dev wlan0 station dump | grep "tx bitrate"; done
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI
    tx bitrate: 7.2 MBit/s MCS 0 short GI

no change

cmdrk commented 10 years ago

8192cu

completely worthless piece of shit :cry: -- doesn't support nl80211, making it impossibru to set channel bandwidth afaik

cmdrk commented 10 years ago

ath9k

More info: http://marc.info/?l=linux-wireless&m=125433750130009