[SOLVED] Ethernet performance issue

Locked
tamarind
Posts: 2
Joined: Mon May 27, 2019 11:33 am
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

[SOLVED] Ethernet performance issue

Unread post by tamarind » Mon May 27, 2019 12:39 pm

I flashed my new N2 with this image: "ubuntu-18.04.2-4.9-minimal-odroid-n2-20190329.img" and playing with it in the last few days. My first notice was the transfer rate over network was very slow.

Output of kernel log doesn't tell any suspicion and output of "ethtool" looks OK as well:

Code: Select all

root@odroid:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Full 
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                             100baseT/Half 100baseT/Full 
                                             1000baseT/Full 
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
The result of "iperf" to another linux laptop on the same subnet, wasn't bad either:

Code: Select all

root@odroid:~# iperf -c 192.168.1.10
------------------------------------------------------------
Client connecting to 192.168.1.10, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.70 port 58200 connected with 192.168.1.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   945 MBytes   793 Mbits/sec
However the real transfer rates when using applications such as: "apt", "scp", "wget" were extremely slow.
Initially, it was briefly reasonable (1-3 MB/s) but quickly dropped to just about 10KB/s. Nothing shown in kernel.log during that
time. Sample result of "apt-get":

Code: Select all

Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libsmbclient arm64 2:4.7.6+dfsg~ubuntu-0ubuntu2.10 [45.7 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 smbclient arm64 2:4.7.6+dfsg~ubuntu-0ubuntu2.10 [308 kB]                                                                  
Fetched 354 kB in 43s (8,320 B/s)
and "wget":

Code: Select all

Length: 23571002 (22M) [application/octet-stream]
Saving to: ‘seafile-server_6.2.5_stable_pi.tar.gz.2’

       seafile-server_   0%[                             ]  58.55K  8.00KB/s    eta 47m 50s^

It wouldn't be a cable or network problem because when I use an USB-3.0 to Gb Ethernet adaptor instead the built-in NIC,
things work as expected:

Code: Select all

root@odroid:~# lsusb 
Bus 002 Device 003: ID 2357:0601  
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@odroid:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 5000M
        |__ Port 1: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
root@odroid:~# 

Code: Select all

root@odroid:~# iperf -c 192.168.1.10                                                                                                                                                           
------------------------------------------------------------
Client connecting to 192.168.1.10, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.68 port 55904 connected with 192.168.1.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   938 MBytes   786 Mbits/sec
and the transfer rate:

Code: Select all

Length: 23571002 (22M) [application/octet-stream]
Saving to: ‘seafile-server_6.2.5_stable_pi.tar.gz’

seafile-server_6.2.5_s 100%[============================>]  22.48M  3.44MB/s    in 8.3s    

2019-05-27 11:14:52 (2.71 MB/s) - ‘seafile-server_6.2.5_stable_pi.tar.gz’ saved [23571002/23571002]
Is it a hardware problem or anything else should I look into?

Thanks & regards.

User avatar
tobetter
Posts: 3699
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Ethernet performance issue

Unread post by tobetter » Mon May 27, 2019 12:53 pm

@tamarind, thank you for the detail. Would you update your U-boot with the latest one first and run if your NIC runs slow?
https://github.com/hardkernel/u-boot/re ... droidn2-25
https://wiki.odroid.com/odroid-n2/softw ... stallation
These users thanked the author tobetter for the post:
tamarind (Mon May 27, 2019 4:01 pm)

tamarind
Posts: 2
Joined: Mon May 27, 2019 11:33 am
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Ethernet performance issue

Unread post by tamarind » Mon May 27, 2019 4:00 pm

Thanks a lot @tobetter! the problem looks like gone after updating U-boot.

I can also reproduce the issue of copying big files across 2 USB-3.0 drives as described in viewtopic.php?f=181&t=35031 and viewtopic.php?f=181&t=34849. Hopefully, it'll be fixed soon. Again many thanks for your prompt response.

User avatar
tobetter
Posts: 3699
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: Ethernet performance issue

Unread post by tobetter » Mon May 27, 2019 4:10 pm

@tamarind, good to know the problem is resolved. The USB issue is being tested here by someone else and having updates. We will update the status if we have something promising. :)

User avatar
odroid
Site Admin
Posts: 31387
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 54 times
Been thanked: 186 times
Contact:

Re: [SOLVED] Ethernet performance issue

Unread post by odroid » Tue May 28, 2019 1:40 pm

This topic is locked to avoid various hijacking.

Locked

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests