clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 5:44 am

Yesterday my new Raspberry Pi 4 4GB version arrived and quickly setup and tested. I am subscribe to 1Gbps internet speed at home and tested I always got 900+Gbps with speedtest, I quickly tested my new Raspberry Pi 4 as based from the specs it is using a true Giga port, to my surprise I only get
less than 100Mbps like the same as Pi3, I am using the latest Debian Buster, also noticed that when you switched from one port hdmi to another hdmi port, you have to shutdown connect the cable then reboot.

Any help to achieved 1GB?

Thanks and best regards

epoch1970
Posts: 3872
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 8:19 am

Get your units right or someday it will come and... bite you.

If a gigabit Ethernet device (1000mbps) is connected to a “fast” Ethernet (100mbps) device they will communicate at 100mbps only.
If the Ethernet cable you’re using between the devices is not marked “cat 5e”, “cat 6” or above, the devices will communicate at the fastest speed allowed by the cable, usually 100mbps.

Also, speedcli tests how fast your ISP connects you to the internet. It has nothing to do with the speed of your local network. On the Pi, run “ethtool eth0”, it will show how your Ethernet adapter is actually setup.

If none of the above applies and ethtool says the adapter is set to 100mbps only, describe how the Pi is connected and the make/model of the switch(es) and router involved in the network.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
rpdom
Posts: 15584
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 8:44 am

Also, there apparently is a bug in the speedetest-cli in Buster that shows lower speeds than is available. There are later versions available through something called pip (wasn't that something on CP/M?) that fixed that bug.

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 9:28 am

Thanks for all your reply. I am using Speedtest.net to test the speed of both my Mac Mini with 10Gbps Ethernet port using cat7e flat cable while my new RPi4 using cat6e. Both connected to a router then to fiber point to local ISP. Both tested using local ISP server. Mac mini getting 985Mbps more or less while RPi is getting less than 100Mbps the most 94Mbps. 8 bits is 1 byte.

Regards

epoch1970
Posts: 3872
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 10:20 am

clemzky wrote:
Sun Aug 18, 2019 9:28 am
8 bits is 1 byte.
You can make that 10 with tcp/ip (to account for frames headers), it’s easier and not really more inaccurate than 8.
Do check out what ethtool says on the Pi.
Perhaps if possible see if swapping cables between the Mac and the Pi changes anything.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 2:48 pm

RPI4.jpeg
RPi4
RPI4.jpeg (175.78 KiB) Viewed 1016 times
MacMini.jpeg
McMini
MacMini.jpeg (168.02 KiB) Viewed 1016 times
Just got home from work and quickly swapped the Cat7e from MacMini into RPi4 and Cat6e from RPi4 into MacMini. Results are attached inline. What can we say about this simple test for a normal user, is RPi4 really having 1Gbps Ethernet port? Or should I ask for replacement since I got it for only 2 days? Any thoughts would be highly appreciated.

Regards

bls
Posts: 286
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Sun Aug 18, 2019 2:52 pm

rpdom wrote:
Sun Aug 18, 2019 8:44 am
There are later versions available through something called pip (wasn't that something on CP/M?) that fixed that bug.
I haven't checked to see whether the apt version is updated yet, buti It appears that the correct speedtest-cli is available via 'sudo pip3 install speedtest-cli'.

As for PIP, not sure about CP/M, but we dinosaurs can confirm it was definitely on RSX-11M and early versions of VAX/VMS :lol:

clemzky
Posts: 5
Joined: Sat Jan 04, 2014 3:12 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 3:05 pm

[email protected]:~ $ speedtest-cli
Retrieving speedtest.net configuration...
Testing from StarHub Cable Vision (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by StarHub Mobile Pte Ltd (Singapore) [11.95 km]: 5.309 ms
Testing download speed................................................................................
Download: 385.50 Mbit/s
Testing upload speed......................................................................................................
Upload: 307.90 Mbit/s
[email protected]:~ $

This is what I get and still not up to what it should be

jerrm
Posts: 200
Joined: Wed May 02, 2018 7:35 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 4:35 pm

Have you opened up a terminal and ran htop during the test? The overhead of the test itself may be the problem.

My Pi4 is on wireless right now, so that my limiting factor (at 48mbps) , but based cpu usage, it looks like cpu would be maxed out running speedtest-cli long before it could hit 1gbps (if it scales anywhere close to linearly).

I don't have a GUI on my Pi4 currently, so can't comment on the Chromium based tests.

I have tested lan performance, and know my pi4 will hit a full 1gbps wired using iperf or in a straight http download.
Last edited by jerrm on Wed Aug 21, 2019 9:38 pm, edited 1 time in total.

drgeoff
Posts: 9921
Joined: Wed Jan 25, 2012 6:39 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 6:11 pm

epoch1970 wrote:
Sun Aug 18, 2019 8:19 am
Get your units right or someday it will come and... bite you.

If a gigabit Ethernet device (1000mbps)....
@epoch1970. You are bitten. Pot, kettle, black. "m" is the standard abbreviation for milli, 1/1000.

Additionally, all ambiguity is avoided by using the recommended nomenclature ie bit and byte. For example 1 Gbit/s = 1000 Mbit/s = 125 Mbyte/s

epoch1970
Posts: 3872
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Wed Aug 21, 2019 6:55 pm

And so I am.
I was ready to quote the Wikipedia page but while they acknowledge the devolved “ps” form (instead of “/s”), they do write
megabit per second (symbol Mbit/s or Mb/s, often abbreviated "Mbps")
All these years I was sending millibits over the network, and nobody told me anything!
I shall try to use Mbps when not using the correct Mbit/s unit.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

gondoro
Posts: 2
Joined: Wed Jul 31, 2019 10:53 am

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 2:09 pm

Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!

jerrm
Posts: 200
Joined: Wed May 02, 2018 7:35 pm

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 8:28 pm

gondoro wrote:
Thu Aug 22, 2019 2:09 pm
Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!
To be more precise I see 941Mbits/s with a point to point cat6 ethernet connection to an 8year old i3 notebook. Results are pretty consistent as server or client +/- 2Mbits/s as either client or server. The Pi does have two cores at 95%+ when run as the server. As client it is usually well below 25%.

Nothing special on the settings iperf -s / iperf -c xx.xx.xx.xx.

Reporting 940 Mbit/s is pretty much the theoretical max. Reporting 1000Mbit/s is impossible. Might approach 950 playing with various IP settings/jumbo frames/etc, but realizing that in any sort of real world usage is unlikely.

Andyroo

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Thu Aug 22, 2019 10:01 pm

bls wrote:
Sun Aug 18, 2019 2:52 pm
...
As for PIP, not sure about CP/M, but we dinosaurs can confirm it was definitely on RSX-11M and early versions of VAX/VMS :lol:
Peripheral Interchange Program

Supposed to have been ‘copied’ from the PDP range by DEC and allowed for file to file, disk to disk, file to print, tape to file to tape and any other device that was supported.

gondoro
Posts: 2
Joined: Wed Jul 31, 2019 10:53 am

Re: RASPBERRY PI 4 GIGABIT PORT SPEED

Fri Aug 23, 2019 10:21 am

jerrm wrote:
Thu Aug 22, 2019 8:28 pm
gondoro wrote:
Thu Aug 22, 2019 2:09 pm
Hi people,

I try Iperf3 on RaspberryPi but the maximum speed is 891 Mbit/s on TCP or 958 Mbit/s on UDP, and the 2 of 4 cores was on 100% on htop
Can anyone give advice for better performance I need to be 950 Mbit/s on TCP, Jerrm can you share how you get 1 Gbit/s on ethernet port.

Thank in advance!
To be more precise I see 941Mbits/s with a point to point cat6 ethernet connection to an 8year old i3 notebook. Results are pretty consistent as server or client +/- 2Mbits/s as either client or server. The Pi does have two cores at 95%+ when run as the server. As client it is usually well below 25%.

Nothing special on the settings iperf -s / iperf -c xx.xx.xx.xx.

Reporting 940 Mbit/s is pretty much the theoretical max. Reporting 1000Mbit/s is impossible. Might approach 950 playing with various IP settings/jumbo frames/etc, but realizing that in any sort of real world usage is unlikely.
Thanks for the information!

Return to “Troubleshooting”