Slow Network Speeds on HC1

Post Reply
Chriz
Posts: 2
Joined: Mon Sep 13, 2021 9:10 pm
languages_spoken: english; german
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Slow Network Speeds on HC1

Post by Chriz »

Hi!

I am using an HC1 with OMV and SMB since several months so far.
As I used the WiFi of my notebook so far, I was limited to a network speed of ~30 MB/s (due to the WiFi connection).
Now I changed my network setup a bit and connected the notebook directly to my 1 GBit network.
I expected an increase up to 100 MB/s but I stucked at 30-40 MB/s.
Meanwhile I changed to the newest available kernel (5.4.142) to see if there are any changes, but now the network performance decreased to 20 MB/s.
Now it does not matter which kernel I use, the speed does not changes at all.
Also the 5.13.14 Kernel made no difference.

Are there some parameters available to reset the network settings somewhere?

Is there another Kernel which should be used instead?

The HC1 is connected to a 7590 Fritzbox so here is no bottleneck.
I use a 5TB Seagate HDD, connected with SATA, not with USB.

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

How do you test the network speed? Are you sure it's not you HDD speed that hold you back?
HDDs on both ends, of course.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Chriz
Posts: 2
Joined: Mon Sep 13, 2021 9:10 pm
languages_spoken: english; german
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: Slow Network Speeds on HC1

Post by Chriz »

The HDDs are OK. I copied large files from one HDDs to another connected on my notebook and had the expected speed of 90-110 MB/s.
Only via network the speed is "limited" and slow.

User avatar
mad_ady
Posts: 9681
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 609 times
Been thanked: 721 times
Contact:

Re: Slow Network Speeds on HC1

Post by mad_ady »

What filesystem is your hdd? If it's NTFS, make sure to mount it with the big_writes option.

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

I find is suspicious that kernel update decreased your network speed and changing it back didn't help. Maybe the applicable kernel module stayed updated? Or firmware?

Maybe check your journalctl -xe for some NetworkManager / networkd complaints.

But I still think that you ought to do some sort of benchmark independent from HDDs on both sides. Mind you, SATA and Ethernet are both connected to USB internally (AFAIK)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9681
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 609 times
Been thanked: 721 times
Contact:

Re: Slow Network Speeds on HC1

Post by mad_ady »

They are connected to different usb busses, so they shouldn't interfere with each other.

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

Hopefully this is the case in the Notebook as well.

I wonder, what IS the most elegant way to benchmark network without involving HDDs?
I used speedtest-cli when diagnosing my 0.2Mbps WiFi, but that is not applicable in this case.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9681
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 609 times
Been thanked: 721 times
Contact:

Re: Slow Network Speeds on HC1

Post by mad_ady »

Iperf3 for raw network performance in a LAN environment, or wget -O /dev/null http://linux.mirror/distro.iso for benchmarking WAN.
These users thanked the author mad_ady for the post:
mctom (Tue Sep 14, 2021 8:15 pm)

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

What an awesome toy! :D

Code: Select all

mctom@Tomusiomat-ARM:~$ iperf3 -c pi0
Connecting to host pi0, port 5201
[  5] local 192.168.0.110 port 36290 connected to 192.168.0.150 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  19.5 MBytes   163 Mbits/sec  363    585 KBytes       
[  5]   1.00-2.00   sec  15.0 MBytes   126 Mbits/sec    9    205 KBytes       
[  5]   2.00-3.00   sec  15.0 MBytes   126 Mbits/sec   14    291 KBytes       
[  5]   3.00-4.00   sec  16.2 MBytes   136 Mbits/sec   64    346 KBytes       
[  5]   4.00-5.00   sec  16.2 MBytes   136 Mbits/sec   60    127 KBytes       
[  5]   5.00-6.00   sec  16.2 MBytes   136 Mbits/sec    0    247 KBytes       
[  5]   6.00-7.00   sec  15.0 MBytes   126 Mbits/sec    9    197 KBytes       
[  5]   7.00-8.00   sec  15.0 MBytes   126 Mbits/sec    7    218 KBytes       
[  5]   8.00-9.00   sec  18.8 MBytes   157 Mbits/sec   37    181 KBytes       
[  5]   9.00-10.00  sec  16.2 MBytes   136 Mbits/sec    0    283 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   163 MBytes   137 Mbits/sec  563             sender
[  5]   0.00-10.02  sec   160 MBytes   134 Mbits/sec                  receiver

iperf Done.
mctom@Tomusiomat-ARM:~$ iperf3 -c pi0 -R
Connecting to host pi0, port 5201
Reverse mode, remote host pi0 is sending
[  5] local 192.168.0.110 port 36294 connected to 192.168.0.150 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  17.8 MBytes   149 Mbits/sec                  
[  5]   1.00-2.00   sec  16.4 MBytes   137 Mbits/sec                  
[  5]   2.00-3.00   sec  17.3 MBytes   145 Mbits/sec                  
[  5]   3.00-4.00   sec  17.5 MBytes   147 Mbits/sec                  
[  5]   4.00-5.00   sec  13.8 MBytes   115 Mbits/sec                  
[  5]   5.00-6.00   sec  18.3 MBytes   154 Mbits/sec                  
[  5]   6.00-7.00   sec  17.9 MBytes   150 Mbits/sec                  
[  5]   7.00-8.00   sec  18.6 MBytes   156 Mbits/sec                  
[  5]   8.00-9.00   sec  16.1 MBytes   135 Mbits/sec                  
[  5]   9.00-10.00  sec  17.9 MBytes   150 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   172 MBytes   144 Mbits/sec  1643             sender
[  5]   0.00-10.00  sec   171 MBytes   144 Mbits/sec                  receiver
Does 'retr' mean"retries"? Damn there's something very wrong with my network.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9681
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 609 times
Been thanked: 721 times
Contact:

Re: Slow Network Speeds on HC1

Post by mad_ady »

Retr is retransmissions at TCP level. Note that some TCP retransmits are normal - as part of its bandwidth scaling/windowing algorithms (it relies on dropping packets to see if it needs to increase transmission rate or not). If these are speeds over wifi, they're not half bad...
These users thanked the author mad_ady for the post:
mctom (Wed Sep 15, 2021 6:21 pm)

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

This is bonded 100Mbps wired + 5Ghz Wifi to my Pi. Well I expected 500Mbps or something. ;P
I'll play with it later, see what is the pure Wifi transfer maybe.

I did a test to Xu4 over 100Mbps LAN and I got rock solid 94.1Mbps with zero retrs. That's why I was so alarmed. ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 9681
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 609 times
Been thanked: 721 times
Contact:

Re: Slow Network Speeds on HC1

Post by mad_ady »

You know, cheap 1Gbps unmanaged switches cost only ~10 euro these days ;)

User avatar
mctom
Posts: 438
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 48 times
Been thanked: 41 times
Contact:

Re: Slow Network Speeds on HC1

Post by mctom »

No way, I already paid 2.5 euros for this one! :D
I got a better idea - just use longer cable and plug it to gateway directly. Hah!

EDIT:
2m Ethernet patchcord does miracles.

Code: Select all

mctom@Tomusiomat-ARM:~$ iperf3 -c pi0
Connecting to host pi0, port 5201
[  5] local 192.168.0.110 port 36300 connected to 192.168.0.150 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   108 MBytes   907 Mbits/sec    0   2.01 MBytes       
[  5]   1.00-2.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   2.00-3.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   3.00-4.00   sec   105 MBytes   881 Mbits/sec    0   2.01 MBytes       
[  5]   4.00-5.00   sec   104 MBytes   871 Mbits/sec    0   2.01 MBytes       
[  5]   5.00-6.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   6.00-7.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   7.00-8.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   8.00-9.00   sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
[  5]   9.00-10.00  sec   104 MBytes   870 Mbits/sec    0   2.01 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.02 GBytes   875 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.01 GBytes   870 Mbits/sec                  receiver

iperf Done.
mctom@Tomusiomat-ARM:~$ iperf3 -c pi0 -R
Connecting to host pi0, port 5201
Reverse mode, remote host pi0 is sending
[  5] local 192.168.0.110 port 36304 connected to 192.168.0.150 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   112 MBytes   939 Mbits/sec                  
[  5]   1.00-2.00   sec   112 MBytes   936 Mbits/sec                  
[  5]   2.00-3.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   3.00-4.00   sec   112 MBytes   941 Mbits/sec                  
[  5]   4.00-5.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   5.00-6.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   6.00-7.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   7.00-8.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   8.00-9.00   sec   112 MBytes   940 Mbits/sec                  
[  5]   9.00-10.00  sec   112 MBytes   940 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   942 Mbits/sec    1             sender
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec                  receiver

iperf Done.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 3 guests