tokenize
Posts: 8
Joined: Tue Jun 18, 2019 2:55 pm

Cannot get 1Gbps on RPI4

Sun Nov 10, 2019 11:24 pm

Hello,

I've recently acquired a RPi4 2GB version and I must say I'm very pleased with the results.
The only thing that keeps bugging me is that I cannot get the full 1Gbps throughput I was hoping for in the ethernet connection, not even close.

I ran some iperf tests between the RPI and my desktop and the results are the following (both are connected to the router using Cat 6 ethernet cables)
- RPI as server, desktop as client: ~330Mbps average
- Desktop as server, RPI as client: ~430Mbps average

I'm using the most recent eeprom and firmware on the latest version of Arch Linux. Is there anyone with a clue on what could it be? Are there any tweaks that I can apply?

Best

fruitoftheloom
Posts: 20909
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 7:47 am

tokenize wrote:
Sun Nov 10, 2019 11:24 pm
Hello,

I've recently acquired a RPi4 2GB version and I must say I'm very pleased with the results.
The only thing that keeps bugging me is that I cannot get the full 1Gbps throughput I was hoping for in the ethernet connection, not even close.

I ran some iperf tests between the RPI and my desktop and the results are the following (both are connected to the router using Cat 6 ethernet cables)
- RPI as server, desktop as client: ~330Mbps average
- Desktop as server, RPI as client: ~430Mbps average

I'm using the most recent eeprom and firmware on the latest version of Arch Linux. Is there anyone with a clue on what could it be? Are there any tweaks that I can apply?

Best

What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
Retired disgracefully.....

User avatar
RaTTuS
Posts: 10491
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 9:02 am

and how are you testing
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
B.Goode
Posts: 8864
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot get 1Gbps on RPI4

Mon Nov 11, 2019 10:54 am

RaTTuS wrote:
Mon Nov 11, 2019 9:02 am
and how are you testing

@tokenise wrote
I ran some iperf tests between the RPI and my desktop
A couple of comments -
1. A lot of people now use iperf3 for network performance testing.
2. For diagnostic/troubleshooting purposes is it possible to test a direct point-to-point connection between RPi and Desktop?

tokenize
Posts: 8
Joined: Tue Jun 18, 2019 2:55 pm

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 4:22 pm

fruitoftheloom wrote:
Mon Nov 11, 2019 7:47 am
What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
I haven't tested that option yet. I've always used Arch and I've seen reports of people being able to achieve 1Gbps with it. I will consider this route as a last resort only.
RaTTuS wrote:
Mon Nov 11, 2019 9:02 am
and how are you testing
As I mentioned, I'm running iperf to perform the tests, with the pi and desktop connected to the router via a cat6 ethernet cable.
B.Goode wrote:
Mon Nov 11, 2019 10:54 am
A couple of comments -
1. A lot of people now use iperf3 for network performance testing.
2. For diagnostic/troubleshooting purposes is it possible to test a direct point-to-point connection between RPi and Desktop?
I should have mentioned that I'm using iperf3 as well sorry.
I will try your suggestion of connecting the PI directly to the desktop and see. It could be the router's fault.

trejan
Posts: 733
Joined: Tue Jul 02, 2019 2:28 pm

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 4:58 pm

Works fine here with iperf and iperf3 between a Pi 4 running Raspbian and a x64 PC. I've tried transferring a file using NFS + Samba and speeds are what they should be.

Code: Select all

$ iperf -c 192.168.1.50 
------------------------------------------------------------
Client connecting to 192.168.1.50, TCP port 5001
TCP window size:  400 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.52 port 50794 connected with 192.168.1.50 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.09 GBytes   940 Mbits/sec

Code: Select all

$ iperf3 -c 192.168.1.50
Connecting to host 192.168.1.50, port 5201
[  5] local 192.168.1.52 port 54108 connected to 192.168.1.50 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   944 Mbits/sec    0    380 KBytes       
[  5]   1.00-2.00   sec   110 MBytes   923 Mbits/sec    0    380 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   928 Mbits/sec    0    380 KBytes       
[  5]   3.00-4.00   sec   110 MBytes   924 Mbits/sec    0    380 KBytes       
[  5]   4.00-5.00   sec   109 MBytes   912 Mbits/sec    0    416 KBytes       
[  5]   5.00-6.00   sec   110 MBytes   926 Mbits/sec    0    416 KBytes       
[  5]   6.00-7.00   sec   112 MBytes   937 Mbits/sec    0    416 KBytes       
[  5]   7.00-8.00   sec   110 MBytes   926 Mbits/sec    0    416 KBytes       
[  5]   8.00-9.00   sec   106 MBytes   887 Mbits/sec    0    416 KBytes       
[  5]   9.00-10.00  sec   106 MBytes   892 Mbits/sec    0    416 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.07 GBytes   920 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.07 GBytes   918 Mbits/sec                  receiver

User avatar
B.Goode
Posts: 8864
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Cannot get 1Gbps on RPI4

Tue Nov 12, 2019 5:32 pm

tokenize wrote:
Tue Nov 12, 2019 4:22 pm
fruitoftheloom wrote:
Mon Nov 11, 2019 7:47 am
What results do you achieve when running the RPF / RPT fully supported Raspbian Buster Operating System ??
I haven't tested that option yet. I've always used Arch and I've seen reports of people being able to achieve 1Gbps with it. I will consider this route as a last resort only.

For the purposes of troubleshooting and diagnostics it seems an obvious step to compare your implementation with the Operating System recommended and supported by Raspberry Pi themselves. You don't have to relinquish the OS you have always used: it is simply an information-gathering exercise. Odd to regard that as a 'last resort only.' No-one will know you have been unfaithful!

Return to “Networking and servers”