FezVrasta
Posts: 3
Joined: Sat May 19, 2018 6:12 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Mon May 21, 2018 8:01 am

Oh that sucks... I applied this update and limited the freq_sdram to 500 and the situation got better, now I can watch a movie just fine, if it gets stuck a restart is enough to have it run for several hours.

But yeah... I bought the B+ just because of the faster ethernet and this is pretty disappointing :-(

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Mon May 21, 2018 9:12 am

billybangleballs wrote:
Sun May 20, 2018 3:21 pm
FezVrasta wrote:
Sat May 19, 2018 6:15 pm
Hi guys, I came here because I'm having SMB problems as well.

All the tests I did (iperf, speedtest-cli, manual tests) all run smoothly, the problem is when I try to play a video from the mounted hard drive of my RPi3 B+ from a device connected to it via SMB.

Is there any workaround (even if it may mean to give up on the gigabit speed) to get the SMB work properly while I wait for a proper fix from the maintainers?

Thanks!
I went back to using a plain 3B, the 3B+ is just not right in the networking, and it was the faster networking that I bought it for. Hopefully there will be a fix sometime in the future.
There will be, once we figure out all the issues.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

fedekrum
Posts: 3
Joined: Sat Jun 02, 2018 2:38 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Jun 02, 2018 2:40 pm

To the RBPi team. Is there any news on this issue?
Thanks

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 7:38 am

Same issue here with my new Pi 3 B+. Any news on this? Already did a kernel update today.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 8:22 am

bergkuh wrote:
Tue Jun 05, 2018 7:38 am
Same issue here with my new Pi 3 B+. Any news on this? Already did a kernel update today.
First thing to check is whether you have flow control enabled on your router, if not this can cause problems.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 9:01 am

jamesh wrote:
Tue Jun 05, 2018 8:22 am
First thing to check is whether you have flow control enabled on your router, if not this can cause problems.
My FritzBox 6490 is set to Power Mode (1 Gbit/s) on each port, my D-Link DGS-1005D has IEEE 802.3x Flow Control enabled by default.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 9:11 am

bergkuh wrote:
Tue Jun 05, 2018 9:01 am
jamesh wrote:
Tue Jun 05, 2018 8:22 am
First thing to check is whether you have flow control enabled on your router, if not this can cause problems.
My FritzBox 6490 is set to Power Mode (1 Gbit/s) on each port, my D-Link DGS-1005D has IEEE 802.3x Flow Control enabled by default.
Without flow control you get a lot of transmissions which can badly affect speed. This is due to the limited speed we can get data off the ethernet chip via the USB interface - it cannot cope with full gigabit rates, so unless flow control is turned on will be swamped, which causes retransmits.

But it appears this is not your issue. What sort of data rates are you getting? I would expect about 200-250Mbits/s.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 9:24 am

I think there's a problem in general.

Code: Select all

~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from Vodafone Kabel Deutschland...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by wilhelm.tel (Norderstedt) [17.40 km]: 15.795 ms
Testing download speed................................................................................
Download: 66.68 Mbit/s
Testing upload speed................................................................................................
Upload: 26.29 Mbit/s
Same Host tested on my PC (Win 10, same switch) with the following result:
Image

Code: Select all

~# ethtool -i eth0
driver: lan78xx
version: 1.0.6
firmware-version:
expansion-rom-version:
bus-info: usb-3f980000.usb-1.1.1
supports-statistics: yes
supports-test: no
supports-eeprom-access: yes
supports-register-dump: no
supports-priv-flags: no
I've tried to transfer a 5GB .ts file (IPTV recorded movie) from the Pi to my PC. The Pi seems seems to "freeze" and CPU/RAM is maxed out. After a while the process (I guess samba) stopped without transferring any byte.

EDIT: Using a CAT 6 cable on both devices. Using DietPi on the Pi B+ with Pi Hole, OpenVPN, Tvheadend installed.
Last edited by bergkuh on Tue Jun 05, 2018 11:52 am, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 10:05 am

There is a suspected issue with Samba (and perhaps other network sharing mechanisms) that we haven't got to the bottom of yet, that may be unrelated.

The speedtest-cli result look exactly like flow control is not working effectively.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 11:53 am

jamesh wrote:
Tue Jun 05, 2018 10:05 am
The speedtest-cli result look exactly like flow control is not working effectively.
Pi is directly attached to my FritzBox 6490:

Code: Select all

~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from Vodafone Kabel Deutschland...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by wilhelm.tel (Norderstedt) [17.40 km]: 17.61 ms
Testing download speed................................................................................
Download: 64.57 Mbit/s
Testing upload speed................................................................................................
Upload: 25.59 Mbit/s
Result from my PC:

Image

So I can't see any Flow Control related settings in my FritzBox, the Port is set to Power Mode.

Another try:

Code: Select all

~# apt install --reinstall raspberrypi-kernel
~# ethtool -s eth0 speed 100 duplex full
~# speedtest-cli
Retrieving speedtest.net configuration...
Testing from Vodafone Kabel Deutschland...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by wilhelm.tel (Norderstedt) [17.40 km]: 15.865 ms
Testing download speed................................................................................
Download: 91.88 Mbit/s
Testing upload speed................................................................................................
Upload: 27.61 Mbit/s

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 12:24 pm

I'm currently doing some testing, via Samba, simply doing an rsync from the mounted drive to the SD card. Seen no issues so far after about 25GB transferred. Currently giving 24.68MB/s, which is 197MBits/s, about what I would expect.

According to ifconfig, no dropped packets on eth0. Can you try ifconfig and see if you are dropping?

Edit: flow control might be referred to as pause control or some variant.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 12:40 pm

jamesh wrote:
Tue Jun 05, 2018 12:24 pm
According to ifconfig, no dropped packets on eth0. Can you try ifconfig and see if you are dropping?
Copied a 6 GB file from my Pi (Cat 6, directly attached to FritzBox) to my Windows 7 (Cat 6, attached over Switch) working PC.

Code: Select all

~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        xxx
        ether xxx  txqueuelen 1000  (Ethernet)
        RX packets 475152  bytes 499772618 (476.6 MiB)
        RX errors 0  dropped 939  overruns 0  frame 0
        TX packets 348063  bytes 1013243430 (966.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Windows told me the average upload/download speed was about 6.5 MB/s. So atm Samba is'nt freezing anymore.
Last edited by bergkuh on Tue Jun 05, 2018 3:07 pm, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 1:49 pm

Now tried in the same direction as your test, (Pi to samba) and whilst the speed was slightly lower, it was still 21.7MB/s (173Mbits/s) with no drops in either direction after 3GB or so.

If you are seeing dropped packets then that sort of implies a dodgy ethernet link - either flow control is off or something else is going awry,

speedtest-cli does show speeds of 80-90Mbits/s (5 tests), however, we have an shared office link of only 100Mbit/s anyway, so therefor the results are not useful.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 2:58 pm

There is a comment in another thread concerning samba problem, which has apparently been fixed by doing the following

Code: Select all

ethtool --offload eth0 rx off tx off
Might be worth trying to see if it makes any difference.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

bergkuh
Posts: 17
Joined: Tue Mar 03, 2015 10:19 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 3:09 pm

Thanks for your help. I'll checkout my network overall and you suggested "samba fix". Keep up the good work, will report back with my results.

mikerr
Posts: 2768
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: RPi 3B+ gigabit ethernet bad download speeds.

Tue Jun 05, 2018 3:21 pm

I posted my results over here:
viewtopic.php?f=36&t=13695&start=150#p1323794

but 38meg/sec over samba via pi RAMdisk is pretty close to practical USB2 maximums.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

helmar74
Posts: 2
Joined: Sat Jun 09, 2018 7:27 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Jun 09, 2018 7:29 am

Hi,

I set sudo ethtool --offload eth0 rx off tx off

And now network performance is fine.
... but after reboot offload is turned on again.

How can I persist the setting, so that it is also set after reboot?

Thanks a lot

helmar

simplerick
Posts: 1
Joined: Mon Jun 11, 2018 1:18 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Mon Jun 11, 2018 1:23 am

Hi

I had done the following and seen a marginal improvement in download speeds.

sudo apt-get update
sudo apt-get dist-upgrade

Would my sd card where raspbian is installed have any effect on speedtest-cli performance? (would speedtest be caching its downloaded data to memory or sd card?)

I have the standard Sandisk 32gb Class 4 card, nothing fancy.

Thanks

CharlyDelta
Posts: 119
Joined: Thu Jul 18, 2013 4:04 am
Location: Montreal

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Jun 28, 2018 8:41 pm

Not too bad here...

Code: Select all

speedtest-cli
Retrieving speedtest.net configuration...
Testing from Bell Canada (76.69.193.60)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Openface Internet (Montreal, QC) [31.97 km]: 7.291 ms
Testing download speed................................................................................
Download: 216.49 Mbit/s
Testing upload speed....................................................................................................
Upload: 216.17 Mbit/s

magore
Posts: 1
Joined: Wed Jun 03, 2015 4:36 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Jul 07, 2018 2:46 am

I found the following settings help transfer speeds for the Ethernet port
Run as root

Code: Select all

sysctl -w net.core.rmem_max=8388608
sysctl -w net.core.wmem_max=8388608
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'
sysctl -w net.ipv4.route.flush=1

ejolson
Posts: 3072
Joined: Tue Mar 18, 2014 11:47 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sat Jul 07, 2018 6:13 pm

magore wrote:
Sat Jul 07, 2018 2:46 am
I found the following settings help transfer speeds for the Ethernet port
Run as root

Code: Select all

sysctl -w net.core.rmem_max=8388608
sysctl -w net.core.wmem_max=8388608
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'
sysctl -w net.ipv4.route.flush=1
Thanks for sharing. It looks like you are changing the TCP window size. Would you like to explain in more detail what each setting means, how you determined the settings and the before versus after speed differences. I tried some similar settings last month, but couldn't figure out how to actually increase performance.

User avatar
RPIgoodSBC
Posts: 91
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Jul 12, 2018 3:20 pm

Rasp-berry good test on ethernet gigabit on Linux raspberrypi 4.14.52-v7+ ...Rpi3B+...

My ISP is 200Down/20Up and I am running de pi with /boot/config.txt...

arm_freq=1200
sdram_freq=450

I like less performance and stable than more fast and not stable.
On 1080p youtube videos Rpi3B+ is no more than 60C and my old Rpi3B go up to 70-80C.
Very good thermal managament on Rpi3B+.

Here the screenshoot...
2018-07-12-gigabit-ethernet-test-rpi3b-plus.png
2018-07-12-gigabit-ethernet-test-rpi3b-plus.png (227.63 KiB) Viewed 2467 times

joostman
Posts: 4
Joined: Wed Jul 04, 2018 6:07 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sun Jul 15, 2018 5:05 pm

magore wrote:
Sat Jul 07, 2018 2:46 am
I found the following settings help transfer speeds for the Ethernet port
Run as root

Code: Select all

sysctl -w net.core.rmem_max=8388608
sysctl -w net.core.wmem_max=8388608
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'
sysctl -w net.ipv4.route.flush=1
If I change this value, it looks like it worked, but checking afterwards, does not seem to have changed it.

Code: Select all

[email protected]:/$ sudo sysctl -w net.core.wmem_default=65536
net.core.wmem_default = 65536
[email protected]:/$ sudo sysctl -a | grep core.rmem
net.core.rmem_default = 163840
I was very enthusiastic and hoping this would fix it, but forgot to check what the default values were... :(
The speedtest did not change anything for me.

I also have 200 Mbit down / 20 up, but never get these figures from the download.
Only if I connect the Pi to my Ziggo (provider) router direct, it give me figures around the 200.
Now I have behind my provider router a Ubiquiti router and switch and the speeds are 1/4th of normal.
This is only the case for my Pi, a NAS, also on the same switch, does get the normal Internet speeds :-/

Code: Select all

[email protected]:~# speedtest-cli --server 3587 --secure --no-upload
Retrieving speedtest.net configuration...
Testing from Ziggo (xx.xx.xx.xx)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by LeaseWeb (Haarlem) [26.84 km]: 904.579 ms
Testing download speed................................................................................
Download: 57.82 Mbit/s
Skipping upload test
[email protected]:~# 

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22728
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPi 3B+ gigabit ethernet bad download speeds.

Sun Jul 15, 2018 7:34 pm

Sounds like flow control is not turned on on your router, that will cause these results.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
RPIgoodSBC
Posts: 91
Joined: Tue Mar 20, 2018 11:37 am

Re: RPi 3B+ gigabit ethernet bad download speeds.

Thu Jul 19, 2018 4:57 pm

Performance test overclocked ram=550 and gpu=450 raspberrypi 3B+ and results on gigabit ethernet youtube [email protected] fullscreen video and downloads speeds gigabit ethernet.

Linux raspberrypi 4.14.52-v7+ #1123 SMP Wed Jun 27 17:35:49 BST 2018 armv7l GNU/Linux

Raspberry pi3B+ official power supply and semi-open case plastic acrylic bottom and top.
Little heatsinks on cpu, ethernet and ram chips.
Booting from usb using Sandisk Extreme 32Gb usb 3.0.
Flow control enabled on router, 200/20 connection ISP and adjusted to 192/19,2 -4% from default ISP.

/boot/config.txt have this parameters added...

arm_freq=1400
sdram_freq=550
gpu_freq=450
temp_soft_limit=70
gpu_mem=256

Screenshots...at the end of the post...

You can stress cpu and test temperature with this command line...

Code: Select all

openssl speed -multi 4 rsa2048 ; openssl speed -multi 4 rsa2048 ; openssl speed -multi 4 rsa2048 ; openssl speed -multi 4 rsa2048
You can test write speeds SD or usb host system with this command line...you need at least 2GB free space...

Code: Select all

sudo dd if=/dev/zero of=/testfile bs=16M count=128 oflag=direct && sync ; sudo rm -f /testfile

With this settings youtube video in fullscreen is very smooth audio and video with temp up to 66C on my pi3B+.

For better youtube chromium fullscreen [email protected] performance you can add this to /etc/chromium-browser/default

Code: Select all

sudo leafpad /etc/chromium-browser/default
CHROMIUM_FLAGS="$CHROMIUM_FLAGS --enable-native-gpu-memory-buffers --enable-gpu-rasterization"

Save and exit restart chromium and on chromium address bar type... chrome://gpu/ and you see two new lines accelerated...

Graphics Feature Status...

Multiple Raster Threads: Enabled

Native GpuMemoryBuffers: Hardware accelerated
Rasterization: Hardware accelerated

You can test performance with this [email protected] video www.youtube.com/watch?v=HiZXABMNCUY or www.youtube.com/watch?v=bMJ7KwqiO8c
The sweet point on fullscreen youtube fullscreen videos seems to be [email protected]

iperf3 test from my big PC sending and my pi3B+ receiving...
2018-07-19-rpi3B-plus-ram-550-gpu-450-iperf3-test.png
2018-07-19-rpi3B-plus-ram-550-gpu-450-iperf3-test.png (225.34 KiB) Viewed 2216 times
Last edited by RPIgoodSBC on Thu Jul 19, 2018 7:41 pm, edited 3 times in total.

Return to “General discussion”