soteris84
Posts: 4
Joined: Sun Jul 14, 2019 7:36 pm

Raspberry Pi 4 4GB slow transfer speeds

Sun Jul 14, 2019 8:16 pm

I had a RPi 2 acting as a file server. After fully upgrading to Raspbian Buster (also rpi-update) I inserted my sd card to my new RPi4. Everything work great, except my transfer speeds are actually slower that with the RPi2. To give you more information on my setup, I have the PRi 4 connected to my mikrotik router which is gigabit ethernet, and I have an external 3.5 in usb 3 HDD connected to one of the usb 3 ports. I am thinking this might be a driver issue, so my actual speeds are usb 2 and not usb 3. Below are some output. Any ideas welcomed.

Code: Select all

pi@rpi-fserver:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
You have new mail in /var/mail/pi
pi@rpi-fserver:~ $

Code: Select all

pi@rpi-fserver:~ $ cat /sys/class/net/eth0/speed
1000
pi@rpi-fserver:~ $

Code: Select all

pi@rpi-fserver:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
pi@rpi-fserver:~ $

wh7qq
Posts: 1328
Joined: Thu Oct 09, 2014 2:50 am

Re: Raspberry Pi 4 4GB slow transfer speeds

Tue Jul 16, 2019 1:03 am

Did you do a fresh burn to a uSD card with the current Raspbian_latest on the RPi4 itself or just try to upgrade your prior installation or use the RPi2 for the burn?

I believe I saw information on this forum to the effect that software burned on prior models was not forward compatible to the 4 due to hardware changes. I do not own a model 4 yet so I can't verify this easily but the bits that effect transfer speed are exactly the bits that were changed on the 4. Also, it is always a good idea to do a fresh burn for a new Raspbian version. Major incompatibilities may exist between versions although upgrades within a version are usually ok.

christopholous
Posts: 14
Joined: Sat Jul 06, 2019 1:51 am

Re: Raspberry Pi 4 4GB slow transfer speeds

Tue Jul 16, 2019 3:11 am

Is the external drive formatted to ext4?
Your mother is so fat, the recursive function computing her mass causes a stack overflow.

soteris84
Posts: 4
Joined: Sun Jul 14, 2019 7:36 pm

Re: Raspberry Pi 4 4GB slow transfer speeds

Wed Jul 17, 2019 9:16 pm

Hi and thank you for your reply. No, the external drive is formatted as NTFS.

Code: Select all

pi@rpi-fserver:~ $ df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4      7.2G  4.6G  2.3G  67% /
devtmpfs       devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs          tmpfs     2.0G     0  2.0G   0% /dev/shm
tmpfs          tmpfs     2.0G   18M  2.0G   1% /run
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/mmcblk0p1 vfat       60M   41M   20M  68% /boot
/dev/sda1      fuseblk   3.7T  1.3T  2.4T  36% /media/NASDRIVE
tmpfs          tmpfs     396M     0  396M   0% /run/user/1000
pi@rpi-fserver:~ $ lsblk -f
NAME        FSTYPE LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda
└─sda1      ntfs   INTENSO 3AA28A42A28A031D                        2.4T    35% /media/NASDRIVE
mmcblk0
├─mmcblk0p1 vfat   boot    35ED-46FE                              19.7M    67% /boot
└─mmcblk0p2 ext4           443559ba-b80f-4fb6-99d9-ddbcd6138fbd    2.3G    63% /
pi@rpi-fserver:~ $
It's /dev/sda1

bobbydriver
Posts: 70
Joined: Thu Oct 18, 2012 9:06 am

Re: Raspberry Pi 4 4GB slow transfer speeds

Thu Jul 18, 2019 3:37 pm

I'm experiencing the same - file transfer times seem no different to the Pi 2 that I replaced

I have the USB 3.0 drive connected to a USB 3 port, but it occurs to me that it's going through a USB hub for it's power. I note that you can get "usb 3.0" powered hubs and the one I have does not mention usb 3.0 in it's spec. I assumed it was just doing pass-thru and that it wouldn't affect transfer speeds, but am I wrong and I need a USB 3.0 specific powered hub to get USB 3.0 transfer speeds?

[EDIT]
Ok, so I increased the USB power in the boot/config.txt and attached the USB 3.0 drive directly without a powered hub and it's now performing as fast as I expected
Last edited by bobbydriver on Thu Jul 18, 2019 4:16 pm, edited 1 time in total.

andrum99
Posts: 823
Joined: Fri Jul 20, 2012 2:41 pm

Re: Raspberry Pi 4 4GB slow transfer speeds

Thu Jul 18, 2019 4:05 pm

bobbydriver wrote:
Thu Jul 18, 2019 3:37 pm
I'm experiencing the same - file transfer times seem no different to the Pi 2 that I replaced

I have the USB 3.0 drive connected to a USB 3 port, but it occurs to me that it's going through a USB hub for it's power. I note that you can get "usb 3.0" powered hubs and the one I have does not mention usb 3.0 in it's spec. I assumed it was just doing pass-thru and that it wouldn't affect transfer speeds, but am I wrong and I need a USB 3.0 specific powered hub to get USB 3.0 transfer speeds?

If the hub supports USB 3.0 then you will get USB 3.0 speeds (called 'superspeed'). If the hub does not support USB 3.0 then you will get a maximum of USB 2.0 speeds (called 'high speed'). In other words, connecting a USB 3.0 device to a USB 2.0 hub will limit the device to USB 2.0 speeds. This is entirely expected, and is how it is supposed to work.

bobbydriver
Posts: 70
Joined: Thu Oct 18, 2012 9:06 am

Re: Raspberry Pi 4 4GB slow transfer speeds

Thu Jul 18, 2019 4:16 pm

andrum99 wrote:
Thu Jul 18, 2019 4:05 pm
bobbydriver wrote:
Thu Jul 18, 2019 3:37 pm
I'm experiencing the same - file transfer times seem no different to the Pi 2 that I replaced

I have the USB 3.0 drive connected to a USB 3 port, but it occurs to me that it's going through a USB hub for it's power. I note that you can get "usb 3.0" powered hubs and the one I have does not mention usb 3.0 in it's spec. I assumed it was just doing pass-thru and that it wouldn't affect transfer speeds, but am I wrong and I need a USB 3.0 specific powered hub to get USB 3.0 transfer speeds?

If the hub supports USB 3.0 then you will get USB 3.0 speeds (called 'superspeed'). If the hub does not support USB 3.0 then you will get a maximum of USB 2.0 speeds (called 'high speed'). In other words, connecting a USB 3.0 device to a USB 2.0 hub will limit the device to USB 2.0 speeds. This is entirely expected, and is how it is supposed to work.
Yep - got it - thanks (see my edit above)

andrum99
Posts: 823
Joined: Fri Jul 20, 2012 2:41 pm

Re: Raspberry Pi 4 4GB slow transfer speeds

Thu Jul 18, 2019 6:39 pm

bobbydriver wrote:
Thu Jul 18, 2019 3:37 pm
I'm experiencing the same - file transfer times seem no different to the Pi 2 that I replaced

I have the USB 3.0 drive connected to a USB 3 port, but it occurs to me that it's going through a USB hub for it's power. I note that you can get "usb 3.0" powered hubs and the one I have does not mention usb 3.0 in it's spec. I assumed it was just doing pass-thru and that it wouldn't affect transfer speeds, but am I wrong and I need a USB 3.0 specific powered hub to get USB 3.0 transfer speeds?

[EDIT]
Ok, so I increased the USB power in the boot/config.txt and attached the USB 3.0 drive directly without a powered hub and it's now performing as fast as I expected

There is no setting for the Pi 4 that would affect the amount of power available through the USB ports. The only thing that would affect the amount of power available through the USB ports would be your choice of power supply, and obviously any other USB devices attached to the ports at the same time.

Return to “General discussion”