Slow SMB transfer NAS->PC - fast to PC->NAS - Win11Pro

  • Hello,


    ive got this situation. I have small server with AMD Ryzen 3550H with 16GB RAM 1TB SSD + 4 TB HDD SATA.


    Right now i have connection thru LAN 1Gbit.


    And my problem i have looks like this:

    1. SENDING FILE TO OMV - is very quick - full 1gbit
    2. DOWNOLAD SMALL FILES <1GB FROM OMV - is also very qucik (if file is small)
    3. DOWNLOAD BIG FILES >1GB FROM OMV - is very slow (more-less half of 1Gbit).


    Ive add another NIC (ASUS USB C2500 2,5Gbit) to my server - and situation is the same.

    1. UPLOAD: 288MB/s
    2. DOWNOLAD THE SAME FILE: 288MB/s
    3. DOWNLOAD OTHER FILE: ~50MB/s


    Ive tried almost every tip from the forum and it still not getting me even closer to the solution :(


    Maybe someone could help me please?

    It looks like there is come "cache" or something like that - but i dont know where to find it and how it works :(


    Maybe i should update USB 2.5gbit NIC drivers... but how?


    ADD INFO:

    • There are few dockers from OMV-EXTRAS (radar,sonad,qbit, adguard home) - but shutting them doesnt give any effect.
    • iperf3 shows me that i have faster connection OMV->PC than PC->OMV - but my transfers shows me completly diffent results
    • my HDD on NAS is 80% full - that could be the cause?
    • Whole system is in actual versions (apt-get update && apt-get upgrade).


    Thanks for your help.

  • Ive tried almost every tip from the forum

    Listing the tips would make a great starting point as nothing about networking infrastructure (cables, router, switch) and clients is mentioned

    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

  • Listing the tips would make a great starting point as nothing about networking infrastructure (cables, router, switch) and clients is mentioned

    Ok so my network looks like this:

    > DSL

    -> ROUTER (TP LINK 1042 N)

    ---> SWITCH TP-LINK 1gbit
    ------> NAS OMV

    ------> PC1

    ------> PC2

    ------> PC3

    ------> AP

    ------> TV

    ------> XBOX

    ------> PHONE1

    ------> PHONE2


    Im using cables Cat 5e.


    I wanted to add 2.5gbit NIC (over USB) but everything slows down :(

  • -> ROUTER (TP LINK 1042 N)

    ---> SWITCH TP-LINK 1gbit

    1. I'm unable to find specification for the router model provided, only for model TL-WR1043ND

    2. What benefit would a 2.5gBit NIC offer when all other components are limited to 1gBit?

    3. from above info I would understand that all 9 client devices are wired to SWITCH TP-LINK 1gbit, is this correct?

    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

    2 Mal editiert, zuletzt von mi-hol ()

  • 1. I'm unable to find specification for this router only TL-WR1043ND

    2. What benefit would a 2.5gBit NIC offer when all other components are limited to 1gBit?

    3. from above info I would understand that all 9 client devices are wired to SWITCH TP-LINK 1gbit, is this correct?

    1: https://www.tp-link.com/ar/hom…/wifi-router/tl-wr1043nd/ = use 1GB LAN Ports

  • 1. I'm unable to find specification for the router model provided, only for model TL-WR1043ND

    My router and switch uses 1Gbit right now. But ive attached additional 2.5Gbit NIC (USB) direct to my serwer and PC which both have 2.5gbit. When im sending to NAS - i have 2.35Gbit real transfer (iperf3) - but when i try do the same FROM NAS TO PC - it shows me only 1.35Gbit - and data transfer dropped to ~50MB/s (less than half of 1Gbit).

    2. What benefit would a 2.5gBit NIC offer when all other components are limited to 1gBit?

    Cause if this scenario work i will change whole SWTICH to 2.5gbit and connect my PC to switch - not to NAS directly.

    3. from above info I would understand that all 9 client devices are wired to SWITCH TP-LINK 1gbit, is this correct?

    All clients yes - but my personal PC is connected directly to NAS thru 2.5gbit NIC (USB).


    Right now my PC is connected to NAS thru 2.5gbit NIC directly (not to 1Gbit SWITCH). And iperf3 shows me that this connection is working.


    But i dont know why the transfers are so weird (288MB/s UPLOAD to NAS - ~50MB/s DOWNLOAD from NAS).

  • Your router is 300Mbps = 0.0375 GBit

    Linux Mint (Edge) EndeavourOS Arch Linux

    OMV7 NAS, bond0 LACP, Fractal Design Define R5 Case, Kodi "Omega", FreeBSD pfSense Plus firewall/router

  • I think you're getting the units a little mixed up.

    You have a download speed of 288 MB/s. Do you really mean MB=MegaByte or is it MB=MegaBit. According to my understanding it would be MegaByte.

    In principle, copying many small files to the NAS takes much longer than copying one large file. And in the beginning the file operations are always written to the cache, you don't have the file on the disk yet, hence these abstrusively high speeds. The speed that happens with a large file after the cache is filled is your network speed.

    Your network hardware and speed level is shown in the CLI by the command

    inxi -Fz

  • I think you're getting the units a little mixed up.

    You have a download speed of 288 MB/s. Do you really mean MB=MegaByte or is it MB=MegaBit. According to my understanding it would be MegaByte.


    I mean MEGABYTES for sure. Thats why its so weird.

    Uploading from PC -> NAS 1GB file is transferred with 288 megabytes/s.
    Downloading the same file is also with 288 megabytes/s (which is max of 2.5gbit connection).
    But when i find some "older" file on NAS (same ~1GB size) the download speed drops to 50-60 megabytes/s.


    In principle, copying many small files to the NAS takes much longer than copying one large file. And in the beginning the file operations are always written to the cache, you don't have the file on the disk yet, hence these abstrusively high speeds. The speed that happens with a large file after the cache is filled is your network speed.

    Your network hardware and speed level is shown in the CLI by the command

    inxi -Fz


    Is this cache is depending on NAS RAM?

    Thanks - i will try this.

  • But ive attached additional 2.5Gbit NIC (USB) direct to my serwer and PC which both have 2.5gbit

    this would mean that previous information regarding network topology

    was incorrect. Back to asking more question in order to understand the setup :(


    1. Is there a cable or wireless connection from NAS to switch and/or router?
    2. Is there a cable or wireless connection from PC1 to switch and/or router?

    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

  • On CLI OMV NAS this command gives me only an error :(

    the tool has to be installed . see https://www.tecmint.com/inxi-c…linux-system-information/

    Code
    sudo apt-get install inxi

    then run the proposed command

    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

  • this would mean that previous information regarding network topology

    was incorrect. Back to asking more question in order to understand the setup :(


    1. Is there a cable or wireless connection from NAS to switch and/or router?
    2. Is there a cable or wireless connection from PC1 to switch and/or router?

    Sorry for misleading :(

    One more time with little update


    ->DSL

    -----> ROUTER

    --- 1Gbit ---> SWITCH

    ------ 1Gbit ------> PC1

    ------ 1Gbit ------> PC2

    ------ 1Gbit ------> PC3

    ------ 1Gbit ------> NAS (NIC1)

    NAS (NIC2) >--------- 2,5Gbit ---------> PC4


    i have 2 NIC's on my NAS

    ---> 1gbit (to SWITCH)

    ---> 2.5gbit (direct connect to my PC4)


    event if i cut off the 1Gbit connection from SWITCH and leave only direct connection NAS>---2.5gbit---<PC i have similar problems with real life transfers.

  • event if i cut off the 1Gbit connection from SWITCH and leave only direct connection NAS>---2.5gbit---<PC i have similar problems with real life transfers.

    in this exact setup output of inxi -Nni  on both devices (NAS & PC4) would help to find the root cause

    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

  • in this exact setup output of inxi -Nni  on both devices (NAS & PC4) would help to find the root cause

    THIS IS FROM NAS POINT OF VIEW
    :Network: Device-1: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge driver: piix4_smbus

    Device-2: Red Hat Virtio network driver: virtio-pci

    IF: ens18 state: up speed: -1 duplex: unknown mac: 5a:d0:50:13:44:b0

    IP v4: 192.168.1.118/24 scope: global

    IF-ID-1: br-0e9b81674364 state: down mac: 02:42:21:3d:48:a2

    IP v4: 172.22.0.1/16 scope: global

    IF-ID-2: br-4cf1b01faf45 state: up speed: 10000 Mbps duplex: unknown mac: 02:42:72:f3:ca:3f

    IP v4: 172.19.0.1/16 scope: global

    IP v6: fe80::42:72ff:fef3:ca3f/64 scope: link

    IF-ID-3: br-6954491a158d state: up speed: 10000 Mbps duplex: unknown mac: 02:42:0f:c9:27:04

    IP v4: 172.21.0.1/16 scope: global

    IP v6: fe80::42:fff:fec9:2704/64 scope: link

    IF-ID-4: br-86e765d1cc2a state: up speed: 10000 Mbps duplex: unknown mac: 02:42:bb:0b:5d:95

    IP v4: 172.20.0.1/16 scope: global

    IP v6: fe80::42:bbff:fe0b:5d95/64 scope: link

    IF-ID-5: br-99f59a7f18e2 state: up speed: 10000 Mbps duplex: unknown mac: 02:42:d9:ec:06:7b

    IP v4: 172.18.0.1/16 scope: global

    IP v6: fe80::42:d9ff:feec:67b/64 scope: link

    IF-ID-6: br-da22d9ffe1f1 state: up speed: 10000 Mbps duplex: unknown mac: 02:42:fc:06:cc:28

    IP v4: 192.168.160.1/20 scope: global

    IP v6: fe80::42:fcff:fe06:cc28/64 scope: link

    IF-ID-7: docker0 state: up speed: 10000 Mbps duplex: unknown mac: 02:42:86:9c:2c:70

    IP v4: 172.17.0.1/16 scope: global

    IP v6: fe80::42:86ff:fe9c:2c70/64 scope: link

    IF-ID-8: veth66dbd66 state: up speed: 10000 Mbps duplex: full mac: 42:0c:b4:49:6e:ee

    IF-ID-9: veth8e6fda7 state: up speed: 10000 Mbps duplex: full mac: 42:2f:c3:9a:bc:f0

    IF-ID-10: vethb7304a7 state: up speed: 10000 Mbps duplex: full mac: 9a:3c:39:ba:2c:98

    IF-ID-11: vethbea2a7d state: up speed: 10000 Mbps duplex: full mac: ce:53:25:9f:39:03

    IF-ID-12: vethf1cff4f state: up speed: 10000 Mbps duplex: full mac: 92:0d:2f:9d:b3:1e

    IF-ID-13: vethfe6fb10 state: up speed: 10000 Mbps duplex: full mac: fa:e2:ff:8e:bc:93

    WAN IP: 94.232.39.186

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!