N2 Slow Network with apt upgrade

Post Reply
Mark1250
Posts: 19
Joined: Fri Jan 09, 2015 1:26 am
languages_spoken: english
ODROIDs: U3, XU4, C1+
Has thanked: 0
Been thanked: 0
Contact:

N2 Slow Network with apt upgrade

Unread post by Mark1250 » Mon Mar 23, 2020 11:34 am

I have 2 N2's running Ubuntu 18.04 that I am using as samba4 AD DC's (self-compiled samba 4.10.13) one of them has slow download speed when using apt to upgrade the installed packages. The issue is the same as this forum topic: viewtopic.php?f=181&t=35151

I have a couple of questions.

1. I have u-boot package version 20200218-5bed4de-11 arm64 ODROID-N2 U-Boot 2015.01 installed. When this package is updated, does it write a new version of u-boot to my EMMC?

2. The link to an updated u-boot in the forum topic https://github.com/hardkernel/u-boot/re ... droidn2-25 has a date of Apr 25, 2019. If the u-boot package updated the u-boot.bin then if I write this u-boot.bin from github, I will be downgrading u-boot.bin.

3. Can I write the u-boot.bin to a running system without issue?

root@fddc10:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:1e:06:42:10:6b brd ff:ff:ff:ff:ff:ff
inet 172.20.10.70/24 brd 172.20.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::21e:6ff:fe42:106b/64 scope link
valid_lft forever preferred_lft forever

root@fddc10:~# 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: No
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

And iperf shows good speeds:

root@fddc10:~# iperf -c 172.20.10.71
------------------------------------------------------------
Client connecting to 172.20.10.71, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.20.10.70 port 39938 connected with 172.20.10.71 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.10 GBytes 943 Mbits/sec
root@fddc10:~# iperf -c 172.20.10.71
------------------------------------------------------------
Client connecting to 172.20.10.71, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.20.10.70 port 39940 connected with 172.20.10.71 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.10 GBytes 941 Mbits/sec

And the opposite direction:

root@fddc11:~# iperf -c 172.20.10.70
------------------------------------------------------------
Client connecting to 172.20.10.70, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.20.10.71 port 38680 connected with 172.20.10.70 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.08 GBytes 930 Mbits/sec
root@fddc11:~# iperf -c 172.20.10.70
------------------------------------------------------------
Client connecting to 172.20.10.70, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.20.10.71 port 38682 connected with 172.20.10.70 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.10 GBytes 940 Mbits/sec

Thanks for any assistance.

Mark

phaseshifter
Posts: 3520
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 41 times
Been thanked: 43 times
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by phaseshifter » Wed Mar 25, 2020 9:46 pm

i`d be checking your routers and network cables..if you isp is slow as well ...
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

phaseshifter
Posts: 3520
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 41 times
Been thanked: 43 times
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by phaseshifter » Wed Mar 25, 2020 9:51 pm

if the torrents are really heavy with traffic it can slow the speeds from their servers,,sozz forgot to add this
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

User avatar
tobetter
Posts: 4674
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: 89 times
Been thanked: 338 times
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by tobetter » Wed Mar 25, 2020 10:02 pm

@Mark1250, do you N2's runs the same OS image and show the same U-boot version?
You can update U-boot on the running system if you run the script properly, but I do not recommend to update U-boot with the version earlier than Aug/2019.

Mark1250
Posts: 19
Joined: Fri Jan 09, 2015 1:26 am
languages_spoken: english
ODROIDs: U3, XU4, C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by Mark1250 » Fri Mar 27, 2020 1:25 pm

@tobetter, Thanks for the response. Yes both are running ubuntu 18.04.4 and both have the same version of u-boot 20200218-5bed4de-11. Both have static ip address using systemd-networkd. See The info listed below. - I just realized that there are many newer versions of u-boot @ https://github.com/hardkernel/u-boot/releases. I'll dd the latest version of u-boot onto the EMMC, reboot, and see if it improves.

root@fddc10:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@fddc10:~# apt-cache show u-boot
Package: u-boot
Installed-Size: 860
Maintainer: mauro.ribeiro@hardkernel.com
Architecture: arm64
root@fddc11:~# apt-cache show u-boot
Package: u-boot
Installed-Size: 860
Maintainer: mauro.ribeiro@hardkernel.com
Architecture: arm64
Version: 20200218-5bed4de-11
Provides: u-boot
Priority: extra
Section: kernel
Filename: pool/main/u/u-boot/u-boot_20200218-5bed4de-11_arm64.deb
Size: 480760
SHA256: cbd7f69494936669b38eaf8184edf1969d299e5e0dcaff8baad303c70b96a694
SHA1: 08407c0a5e7628325e1d3efa27cd430f41a8264b
MD5sum: f1432c150a56690f36470aec0cf931c6
Description: ODROID-N2 U-Boot 2015.01
Description-md5: a4ef694202ddd7f1110b79aaaff608ee
Provides: u-boot
Priority: extra
Section: kernel
Filename: pool/main/u/u-boot/u-boot_20200218-5bed4de-11_arm64.deb
Size: 480760
SHA256: cbd7f69494936669b38eaf8184edf1969d299e5e0dcaff8baad303c70b96a694
SHA1: 08407c0a5e7628325e1d3efa27cd430f41a8264b
MD5sum: f1432c150a56690f36470aec0cf931c6
Description: ODROID-N2 U-Boot 2015.01
Description-md5: a4ef694202ddd7f1110b79aaaff608ee

root@fddc10:~# cat /etc/systemd/network/50-static.network
# /etc/systemd/network/50-static.network
[Match]
Name=eth0

[Network]
Gateway=172.20.10.1

DSNSECNegativeTrustAnchors=lan

[Address]
Address=172.20.10.70/24

[Address]
Address=172.20.20.70/24

***********************************************************************************************

root@fddc11:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

root@fddc11:~# apt-cache show u-boot
Package: u-boot
Installed-Size: 860
Maintainer: mauro.ribeiro@hardkernel.com
Architecture: arm64
Version: 20200218-5bed4de-11
Provides: u-boot
Priority: extra
Section: kernel
Filename: pool/main/u/u-boot/u-boot_20200218-5bed4de-11_arm64.deb
Size: 480760
SHA256: cbd7f69494936669b38eaf8184edf1969d299e5e0dcaff8baad303c70b96a694
SHA1: 08407c0a5e7628325e1d3efa27cd430f41a8264b
MD5sum: f1432c150a56690f36470aec0cf931c6
Description: ODROID-N2 U-Boot 2015.01
Description-md5: a4ef694202ddd7f1110b79aaaff608ee

root@fddc11:~# cat /etc/systemd/network/50-static.network
# /etc/systemd/network/50-static.network
[Match]
Name=eth0

[Network]
Gateway=172.20.10.1

DSNSECNegativeTrustAnchors=lan

[Address]
Address=172.20.10.71/24

[Address]
Address=172.20.20.71/24

User avatar
tobetter
Posts: 4674
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: 89 times
Been thanked: 338 times
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by tobetter » Fri Mar 27, 2020 1:43 pm

U-boot is not often updated, but U-boot image is deployed whenever the branch has an update. Please try the last version and let me know how it goes, hope it's not a hardware problem.

Mark1250
Posts: 19
Joined: Fri Jan 09, 2015 1:26 am
languages_spoken: english
ODROIDs: U3, XU4, C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 Slow Network with apt upgrade

Unread post by Mark1250 » Sat Mar 28, 2020 8:23 am

So I downloaded version 103 from github and installed it:
dd if=u-boot.bin of=/dev/mmcblk0 conv=fsync,notrunc bs=512 seek=1 and rebooted.

I performed and apt update / apt upgrade unfortunately the download speed did not improve. Speeds were between 159 - 139 KB/S. I apt update/upraded the other N2 i have shortly after and it had a sustained download speed of 1096 KB/S. Not sure why this only happens when using apt.

I've had these 2 N2's since May of 2019 and I noticed that slow network speed using apt shortly after installation, but I didn't have time to do this troubleshooting.

@tobetter Thanks for your assistance.

Mark

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 6 guests