Slow-ish speeds over SMB

  • Hey guys,


    I run OMV on my RPi4 (4GB) and no matter what I do my file transfers wont get faster than 35-37 MB/s. I tested the network via iperf and it is fully capable of Gigabit speeds. Tested the external hard drive and got well over 100MB/s. The external drive is formatted as ext4. Tested via FTP and I am getting roughly 110MB/s. CPU is at around 40% and temps are at around 49C, so no thermal throttling. Everything is patched to the latest versions


    Currently I am running the following config:


    Code
    socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
    read raw = yes
    write raw = yes
    max xmit = 65535
    getwd cache = yes
    max protocol = SMB2
    min protocol = SMB2


    As I said: Speeds are stuck at around 35-37 MB/s, even slower if I go to SMB3. If I transfer files from a Linux laptop to the NAS it gets slightly better, but still not above 50MB/s


    Anybody got any ideas why my smb speeds seem to be so slow?


    Cheers and thanks for the help!

  • you are not revealing hardware details of HDD and how you connect the HDD.

    The quoted post mentions the commands to get these details

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • Sorry, didn't see that. I think you mean the lsusb results right? Looks like this on my machine:


    Code
    /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
        |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
    /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
        |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
  • the HDD enclosure /Sata to USB adapter is to blame for the low performance.

    This is indicated by

    Driver=usb-storage

    a good enclosure / adapter would be supported by Driver=uas

    I'm recommending enclosure / adapter with ASMedia chipsets.

    Reasons can be found in https://github.com/openmediava…diavault/debian/changelog

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • Thanks for the reply. Unfortunately I just bought this 4 bay enclosure, so replacing it isn't really an option for me. I guess that means I am stuck with this for the time being

  • bassti

    Added the Label resolved
  • Unfortunately I just bought this 4 bay enclosure

    please mention the brand & model, so at least others that read blog posts before they buy will benefit from your bad experience.

    Usually dealers accept a return of sold good due to technical issues. Have you engaged their support?

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • The model is the Fantec QB-35US3-6G. There is also the Fantec QB-35U31 available that allegedly has support for UASP


    I contacted the seller and since I haven't done anything but peeled of the plastic, so I hope he will accept a return, even though I am over the 14-day return period that is mandatory in my country

  • Update: I upgraded to the model with UASP, but still no better results. With the new model the lsusb looks like this:


    Code
    /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
        |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
            |__ Port 1: Dev 6, If 0, Class=Mass Storage, Driver=uas, 5000M
            |__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M
            |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
            |__ Port 4: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
    /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
        |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/5p, 480M
                |__ Port 5: Dev 4, If 0, Class=, Driver=, 480M

    Only two drives are currently populated in the enclosure. Still get speeds around 30-35 Mbit/s

  • are the SMB Extra options set to the recommended settings in the refenced posting?

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • Please post the detailed results of CrystalDiskMark and all details of your network hardware & Windows drivers versions

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • one thing before you collect all the details.

    I've noticed that Fantec supplies a "USB 3.1 USB-C to USB-C cable" but the RPI has a USB-A (adhering to USB 3.1 specs ) connector only.

    Did you make sure that you have a cable that supports the USB 3.1 specification ?

    These cables are relatively expensive!

    Note: The cheap USB-C to A adapter/converters (intended for mobile phone charging) reduce the speed to what you report

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

    Edited once, last by mi-hol ().

  • The might be the prime suspect. Indeed I grabbed a USB-C cable I had lying around, but I don't know what it is from and how good the quality is. So I guess I'm gonna order another quality one and see what happens

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!