Howto test and tune Gigabit Networking (1000M)
#10
OK guys, here to come something for you all to think about:

Could not stop thinking about longsleeps success to have about full GbE speed with my board while i'm not capable to do this.

So i used my laptop to boot via my PXE-server and start a actual linux session with it, not Win10.

ubuntu-gnome@ubuntu-gnome:~$ uname -a
Linux ubuntu-gnome 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Here i could also use a iperf and an iperf3 server for the pine64 and connect as iperf and iperf3 client also. Something interesting:


Code:
ubuntu-gnome@ubuntu-gnome:~$ iperf -c pine64.home.lan -P 4
------------------------------------------------------------
Client connecting to pine64.home.lan, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  6] local 192.168.178.200 port 33622 connected with 192.168.178.63 port 5001
[  3] local 192.168.178.200 port 33616 connected with 192.168.178.63 port 5001
[  4] local 192.168.178.200 port 33618 connected with 192.168.178.63 port 5001
[  5] local 192.168.178.200 port 33620 connected with 192.168.178.63 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   251 MBytes   210 Mbits/sec
[  6]  0.0-10.0 sec   248 MBytes   208 Mbits/sec
[  4]  0.0-10.0 sec   240 MBytes   201 Mbits/sec
[  5]  0.0-10.0 sec   216 MBytes   181 Mbits/sec
[SUM]  0.0-10.0 sec   956 MBytes   801 Mbits/sec

But running iperf3:

ubuntu-gnome@ubuntu-gnome:~$ iperf3 -c pine64.home.lan -P 4
Connecting to host pine64.home.lan, port 5201
[  4] local 192.168.178.200 port 54036 connected to 192.168.178.63 port 5201
[  6] local 192.168.178.200 port 54038 connected to 192.168.178.63 port 5201
[  8] local 192.168.178.200 port 54040 connected to 192.168.178.63 port 5201
[ 10] local 192.168.178.200 port 54042 connected to 192.168.178.63 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   161 KBytes  1.32 Mbits/sec   17   2.83 KBytes       
[  6]   0.00-1.00   sec   174 KBytes  1.42 Mbits/sec   26   2.83 KBytes       
[  8]   0.00-1.00   sec   157 KBytes  1.29 Mbits/sec   23   2.83 KBytes       
[ 10]   0.00-1.00   sec   215 KBytes  1.76 Mbits/sec   29   2.83 KBytes       
[SUM]   0.00-1.00   sec   707 KBytes  5.79 Mbits/sec   95             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   1.00-2.00   sec   107 KBytes   880 Kbits/sec   21   1.41 KBytes       
[  6]   1.00-2.00   sec   318 KBytes  2.61 Mbits/sec   51   5.66 KBytes       
[  8]   1.00-2.00   sec   146 KBytes  1.19 Mbits/sec   25   2.83 KBytes       
[ 10]   1.00-2.00   sec   106 KBytes   869 Kbits/sec   16   2.83 KBytes       
[SUM]   1.00-2.00   sec   677 KBytes  5.55 Mbits/sec  113             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   2.00-3.00   sec  69.3 KBytes   568 Kbits/sec   10   2.83 KBytes       
[  6]   2.00-3.00   sec   206 KBytes  1.69 Mbits/sec   34   2.83 KBytes       
[  8]   2.00-3.00   sec   204 KBytes  1.67 Mbits/sec   23   2.83 KBytes       
[ 10]   2.00-3.00   sec   109 KBytes   892 Kbits/sec   20   2.83 KBytes       
[SUM]   2.00-3.00   sec   588 KBytes  4.82 Mbits/sec   87             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   3.00-4.00   sec   188 KBytes  1.54 Mbits/sec   21   2.83 KBytes       
[  6]   3.00-4.00   sec   191 KBytes  1.56 Mbits/sec   24   1.41 KBytes       
[  8]   3.00-4.00   sec  91.9 KBytes   753 Kbits/sec   18   2.83 KBytes       
[ 10]   3.00-4.00   sec   334 KBytes  2.73 Mbits/sec   42   2.83 KBytes       
[SUM]   3.00-4.00   sec   805 KBytes  6.59 Mbits/sec  105             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   4.00-5.00   sec  60.8 KBytes   498 Kbits/sec   11   2.83 KBytes       
[  6]   4.00-5.00   sec  63.6 KBytes   521 Kbits/sec   14   1.41 KBytes       
[  8]   4.00-5.00   sec   129 KBytes  1.05 Mbits/sec   18   1.41 KBytes       
[ 10]   4.00-5.00   sec   144 KBytes  1.18 Mbits/sec   22   2.83 KBytes       
[SUM]   4.00-5.00   sec   397 KBytes  3.25 Mbits/sec   65             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   5.00-6.00   sec  70.7 KBytes   579 Kbits/sec   21   2.83 KBytes       
[  6]   5.00-6.00   sec   127 KBytes  1.04 Mbits/sec   20   1.41 KBytes       
[  8]   5.00-6.00   sec   127 KBytes  1.04 Mbits/sec   25   1.41 KBytes       
[ 10]   5.00-6.00   sec  63.6 KBytes   521 Kbits/sec    9   1.41 KBytes       
[SUM]   5.00-6.00   sec   389 KBytes  3.19 Mbits/sec   75             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   6.00-7.00   sec   212 KBytes  1.74 Mbits/sec   39   7.07 KBytes       
[  6]   6.00-7.00   sec   127 KBytes  1.04 Mbits/sec   17   2.83 KBytes       
[  8]   6.00-7.00   sec  63.6 KBytes   521 Kbits/sec   14   1.41 KBytes       
[ 10]   6.00-7.00   sec  63.6 KBytes   521 Kbits/sec   14   2.83 KBytes       
[SUM]   6.00-7.00   sec   467 KBytes  3.82 Mbits/sec   84             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   7.00-8.00   sec   156 KBytes  1.27 Mbits/sec   31   2.83 KBytes       
[  6]   7.00-8.00   sec  63.6 KBytes   521 Kbits/sec   12   1.41 KBytes       
[  8]   7.00-8.00   sec   141 KBytes  1.16 Mbits/sec   23   2.83 KBytes       
[ 10]   7.00-8.00   sec  76.4 KBytes   626 Kbits/sec   26   5.66 KBytes       
[SUM]   7.00-8.00   sec   437 KBytes  3.58 Mbits/sec   92             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   8.00-9.00   sec   150 KBytes  1.23 Mbits/sec   29   2.83 KBytes       
[  6]   8.00-9.00   sec  63.6 KBytes   521 Kbits/sec   13   1.41 KBytes       
[  8]   8.00-9.00   sec  67.9 KBytes   556 Kbits/sec   18   5.66 KBytes       
[ 10]   8.00-9.00   sec   257 KBytes  2.11 Mbits/sec   39   2.83 KBytes       
[SUM]   8.00-9.00   sec   539 KBytes  4.41 Mbits/sec   99             
- - - - - - - - - - - - - - - - - - - - - - - - -
[  4]   9.00-10.00  sec  66.5 KBytes   545 Kbits/sec   14   1.41 KBytes       
[  6]   9.00-10.00  sec   338 KBytes  2.77 Mbits/sec   36   4.24 KBytes       
[  8]   9.00-10.00  sec   150 KBytes  1.23 Mbits/sec   38   4.24 KBytes       
[ 10]   9.00-10.00  sec  63.6 KBytes   521 Kbits/sec   12   1.41 KBytes       
[SUM]   9.00-10.00  sec   618 KBytes  5.06 Mbits/sec  100             
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.21 MBytes  1.02 Mbits/sec  214             sender
[  4]   0.00-10.00  sec  1.15 MBytes   964 Kbits/sec                  receiver
[  6]   0.00-10.00  sec  1.63 MBytes  1.37 Mbits/sec  247             sender
[  6]   0.00-10.00  sec  1.42 MBytes  1.19 Mbits/sec                  receiver
[  8]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  225             sender
[  8]   0.00-10.00  sec  1.18 MBytes   988 Kbits/sec                  receiver
[ 10]   0.00-10.00  sec  1.40 MBytes  1.17 Mbits/sec  229             sender
[ 10]   0.00-10.00  sec  1.33 MBytes  1.11 Mbits/sec                  receiver
[SUM]   0.00-10.00  sec  5.49 MBytes  4.61 Mbits/sec  915             sender
[SUM]   0.00-10.00  sec  5.07 MBytes  4.25 Mbits/sec                  receiver

Of course the pine also was set up as server in iperf resp. iperf3 mode (iperf[3] -s).

So while longsleep also only checked my board with iperf only (see http://forum.pine64.org/showthread.php?t...8#pid11838), i wonder whether he assumed the 'good' speed it shows with iperf to be fine and didn't try iperf3? @longsleep: Can you remember?

So maybe this also is part of the problem, iperf shows perfect speed and iperf3 not!

Can not test the real speed other than via iperf(3), because of the PXE-server there is no real disk on the host to copy to with the Pine as server (PXE-server is only a 100mbs machine), but at least the file (1.2GB from a samba share on the pine) copied with about 10.5MB/s, so about 100mbits, thats at least full speed for the PXE-host...

Trying to copy 3 samba-share files from the Pine to an also GbE network drive had about 13MB/s speed, so more than 100mbs, writing them back to the pine only had about 200kb/s,  seems also very slow, but the disc at the pine is a SD-card, so the speed of this samba file test mainly depends on the reading/writing speed of the card!

Maybe this also helps to figure something out? Maybe the problem is caused by Win10 as client/server also? Can anybody also try to check his speeds with iperf and iperf3?
Still a linux newbie with several EEE-PCs, PI's, LattePanda and some Desktops/Laptops running Win10. Now also proudly using Pine64+ 2GB and gigabit LAN
  Reply


Messages In This Thread
RE: Howto test and tune Gigabit Networking (1000M) - by androsch - 08-25-2016, 03:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Howto use MAC address as printed on the label on the back longsleep 3 6,690 08-21-2016, 07:31 AM
Last Post: MarkHaysHarris777

Forum Jump:


Users browsing this thread: 17 Guest(s)