Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help diagnosing slow copy from mounted smb share into array.

Featured Replies

I am migrating about 40TB+ from a Synology NAS to Unraid. I have the mounted the Synology on Unraid with unassigned devices.
However the transfer speed averages around 30MB/s no matter what I tried. I think it might be a problem with SMB or networking.

All devices are connected to a single managed switch.

 

Things that I have tried:

1. I have tried both with cache enabled and cache disabled on the target user share.

2. I have also tried to transfer to a cache-only folder (appdata folder) but speed also remains the same (ave 30MB/s).

3. I ran iperf3 between Unraid, Synology NAS, Router (pfsense), as well as my computer. All tests achieve 950+ MB/s. So it's not a network problem.

4. Tested array with DiskSpeed container. Slowest drive average 138 MB/s and fastest drive average 286 MB/s with a simultaneous max throughput of 1.52 GB/s. Therefore it is not a drive or the controller problem.

5. Tried copying with Krusader, Double Commander, as well as Dynamix File Manager. No difference in speed. 
6. In Tips and Tweaks, I have tried (one at a time) disbling NIC Flow Control and NIC Offload. I have also increased Rx and Tx buffer to 1024. Still no changes to transfer speed. 
7. Previously I had this Samba extra configuration:

#server multi channel support = no
server min protocol = SMB3_02
client ipc min protocol = SMB3_11
client NTLMv2 auth = yes
restrict anonymous = 2
null passwords = no
raw NTLMv2 auth = no

#vfs_fruit compatibility for Apple SMB
[global]
vfs objects = catia fruit streams_xattr
fruit:nfs_aces = no
fruit:zero_file_id = yes
fruit:encoding = native
spotlight backend = tracker

fruit:metadata = stream
fruit:posix_rename = yes
readdir_attr:aapl_max_access = no
readdir_attr:aapl_finder_info = no
readdir_attr:aapl_rsize = no

but now I have also removed all of it and Samba extra configuration is empty.
8. I have tried toggling Tunable (enable Direct IO) and reconstruct write.
9. I have also tried removing parity drive and writing directly to the unprotected array. It made no difference to the transfer speed. So I have now rebuilt parity and chose to do the migration with parity protection.

10. I also tried mounting the Unraid share in Synology and doing the transfer on Synology. But the speed was even worse at around 20MB/s.

11. Tried mounting the Synology share using NFS instead of SMB but it made no difference. 
12. Doing a transfer speed test from my Mac to Unraid using Blackmagic Disk Speed Test always give random results. Sometimes it achieve full 100MB/s but most other times it is way less around 10-20 MB/s. The same test to Synology share always gets 100MB/s.
 

The only thing I am hesitant to try is modifying docker network setting as it would require changing all of my container network settings to match. Currently I have macvlan + host access to custom network enabled.  

 

I am out of ideas of what to do. Please give me some suggestions on what else to try as 40TB+ transfer at 30MB/s would take a couple weeks instead of days. 

tower-diagnostics-20240906-1019.zip

Edited by Sak

Solved by Sak

  • Community Expert

Disk1 is SMR, try transferring to disk2, without parity or with turbo write enabled.

  • Author
29 minutes ago, JorgeB said:

Disk1 is SMR, try transferring to disk2, without parity or with turbo write enabled.


I use disk 1 for seeding torrents only. It is excluded from the share that I am moving files into. 
 

I have also tried removing parity and turbo write as well. Made no difference.
 

Screenshot2024-09-06at4_27.14intheafternoon.thumb.png.5b36034905012b387e7f55f070e09c10.png

Have you actually set the shares to have Exclusive Access?

 

image.thumb.png.8442f6fed94b54fc0a179c162fd40dfc.png

 

I'm trying to think back to my Synology migration to Unraid...I think I went for rsync via ssh rather than using a Samba or NFS share mounted in either direction.  Anyway I noticed a Samba performance increase post migration after setting the above.

 

https://unraid.net/blog/6-12-0-stable

image.thumb.png.e83e4957d4c7e2eb24b77f6890a475d8.png

  • Author
5 minutes ago, KillerK said:

Have you actually set the shares to have Exclusive Access?

 

image.thumb.png.8442f6fed94b54fc0a179c162fd40dfc.png

 

I'm trying to think back to my Synology migration to Unraid...I think I went for rsync via ssh rather than using a Samba or NFS share mounted in either direction.  Anyway I noticed a Samba performance increase post migration after setting the above.

 

https://unraid.net/blog/6-12-0-stable

image.thumb.png.e83e4957d4c7e2eb24b77f6890a475d8.png

 

I'm transferring to a "Media" share spread over 4 drives (disk2 to disk5). Since it is spread over 4 drives it does not have exclusive access. The share has cache enabled but I am transferring to /mnt/user0 to bypass cache. 

However, when I tested copying a file to "appdata" share that is cache-only and have exclusive access, the transfer speed still hovers around 30MB/s which is puzzling to me as it is writing directly to the ssd cache pool. 

I did not know you could rsync over ssh, thanks for the suggestion, I will have to try that. Since iperf between the Synology and Unraid was full gigabit, I think I will see a speed improvement with rysnc.

29 minutes ago, Sak said:

 

I'm transferring to a "Media" share spread over 4 drives (disk2 to disk5). Since it is spread over 4 drives it does not have exclusive access. The share has cache enabled but I am transferring to /mnt/user0 to bypass cache. 

FWIW I've 4 disks in a zpool with a samba share built ontop and this has exclusive access no issues.

  • Author
24 minutes ago, KillerK said:

FWIW I've 4 disks in a zpool with a samba share built ontop and this has exclusive access no issues.

 

I just tried disabling cache on the share again and it does not have exclusive access. I think it's because you use zpool so you have a single unified pool similar to how Synology handles the volumes. I just use the regular xfs as I want to mix and match the disk as well as to spin down the disk when not in use. 

  • Community Expert
36 minutes ago, KillerK said:

FWIW I've 4 disks in a zpool with a samba share built ontop and this has exclusive access no issues.

This is because it is a pool with a single file system.   When in the array each disk is a separate file system.

  • Author

I just tried rsync, I get around 20MB/s

1 hour ago, Sak said:

I just tried rsync, I get around 20MB/s

ouch, can you test a zpool to get an exclusive access share to prove/disprove its your disk and share layout?

Edited by KillerK

  • Community Expert

You mentioned running  iperf, please post the actual results of a single stream test in both directions.

  • Author
2 hours ago, JorgeB said:

You mentioned running  iperf, please post the actual results of a single stream test in both directions.

 

iperf test to Synology NAS

Screenshot2024-09-06at11_24.01atnight.thumb.png.3a94005a7c5bcd5e9a0b52aaab8b262d.png

 

copy direct to /mnt/cache of "ephemeral" – a cache-only share 

Screenshot2024-09-06at11_31.20atnight.thumb.png.06ecd8123349c8f21e6214026266c25b.png

 

copy direct to /mnt/cache of "Media" – the target folder

Screenshot2024-09-06at11_32.17atnight.thumb.png.f014134e3f1b392f4b4dc62baf498543.png

 

copy to /mnt/user 

Screenshot2024-09-06at11_33.03atnight.thumb.png.f3ea8190a2f3687b4a82a1776d58293b.png

 

copy to /mnt/user0 (I think this is FUSE but bypass cache) which is my intended way of copying all the files.

Screenshot2024-09-06at11_33.48atnight.thumb.png.ed89ab1e091e145f63e0dc04d4ae9956.png

 

Same as above but using double commander. Better speed here.

Screenshot2024-09-06at11_34.45atnight.thumb.png.4d6a2ac86c370335f1bca420c053e52c.png

 

Lastly a copy using double commander directly to /mnt/cache/Media 

Screenshot2024-09-06at11_46.24atnight.thumb.png.f16d4a1bf9cd2246505d225e0e12fb83.png

 

  • Author

Drives and Controller benchmark

 

controller-benchmark.thumb.jpeg.6ec3f877b80f82c14aed604f1d01d873.jpegbenchmark-speeds.thumb.jpeg.2f1723bf5ab17cbf00189eae0727bb3b.jpeg

Could the issue be the transmit end on your Syno? Any kind of DPI on the egress?

  • Author
3 minutes ago, KillerK said:

Could the issue be the transmit end on your Syno? Any kind of DPI on the egress?

I do have DPI on the router, but since all the devices are connected on a single switch, LAN traffic does not pass through the pfsense router. 

 

Running a speed test from my Mac to the Synology also shows no problem on the Synology side. 

Screenshot2024-09-07at12_40.41inthemorning.thumb.png.7f0d4c9945108a5b12412292cbd593ef.png

  • Community Expert

Try this and post the results, in the Unraid CLI type:

 

pv /mnt/remotes/path/to/large/file > /dev/null

 

  • Author
29 minutes ago, JorgeB said:

Try this and post the results, in the Unraid CLI type:

 

pv /mnt/remotes/path/to/large/file > /dev/null

 

Screenshot2024-09-07at1_31.18inthemorning.thumb.png.48aa67f00e2cc16a2ac972877dc83105.png

  • Community Expert

To me that confirms the source is the problem, do you have a PC that you could use to make an SMB transfer to Unraid?

  • Author
10 hours ago, JorgeB said:

To me that confirms the source is the problem, do you have a PC that you could use to make an SMB transfer to Unraid?

 

Tested with a spare windows laptop. Seems like the issue is writing into Unraid. No problem with reading or with the Synology NAS.

 

From Unraid to Desktop:
FromUnraid.thumb.png.2ec19174d210b4f111bb61d6d305d119.png

From Desktop to Unraid. Copying to "Media" share – a share with Cache as primary and Array as secondary. 
ToUnraid.thumb.png.a4c2aea2b30531f55450a463e84a574a.png

From Synology to Desktop
FromSynology.thumb.png.d29e9419cbeeee53eb3cc7d7bb40d3b1.png

From Desktop to Synology

ToSynology.thumb.png.31a1d257826cdad10510e9f47d3f57b9.png

Edited by Sak

  • Community Expert
4 hours ago, Sak said:

Seems like the issue is writing into Unraid.

The test with pv confirmed the problem was not writing to Unraid, since it was sending the data to /dev/null and it was still slow, but if it's also slow with the laptop, it suggests a network issue, despite the good iperf results, do you have a different NIC you could test with? I also would try a direct connection from the laptop to Unraid, to rule out cable/switch issues.

  • Author
1 hour ago, JorgeB said:

The test with pv confirmed the problem was not writing to Unraid, since it was sending the data to /dev/null and it was still slow, but if it's also slow with the laptop, it suggests a network issue, despite the good iperf results, do you have a different NIC you could test with? I also would try a direct connection from the laptop to Unraid, to rule out cable/switch issues.

 

I think you're right that it's a network issue. Looking at the Errors Info, I'm seeing a lot of drops and overruns for receive counters.Screenshot2024-09-07at3_23.53intheafternoon.thumb.png.f47c7a830417f05fe90db53dee19a34b.png

 

It seems like flow control was enabled for Rx but not for Tx.

Screenshot2024-09-07at3_24.43intheafternoon.png.0aca4aad2f80b4ccccf1ed5c492cd87b.png

 

In tips and tweaks, Flow Control is enabled by default.

Screenshot2024-09-07at3_25.03intheafternoon.thumb.png.e16f078197b851cc3982e6e7a5a1a411.png

 

Do you recommend to enable or disable flow control for both Rx and Tx?

Edited by Sak

Comparison for you...

 

~# ethtool -a eth0
Pause parameters for eth0:
Autonegotiate:  on
RX:             on
TX:             on

image.thumb.png.ade14a0166dad53f0c8fd56d0151c389.png

  • Author
12 hours ago, KillerK said:

Comparison for you...

 

~# ethtool -a eth0
Pause parameters for eth0:
Autonegotiate:  on
RX:             on
TX:             on

image.thumb.png.ade14a0166dad53f0c8fd56d0151c389.png

 

Thanks for the help so far. After switching out cables and testing all network equipments, it is definitely an issue with the Ethernet controller: Intel Corporation Ethernet Controller I226-V (rev 06) on my motherboard. 
 

Another user had a problem with this NIC as well. 

 

Screenshot2024-09-07at9_44.58atnight.thumb.png.4d7f522eff3764fe583d6ce647374657.png

Officially VLANs are not supported on this ethernet controller. However my setup had a vlan enabled in network settings. I thought that might be the cause of the issue but even after I deleted all the VLANs, the issue still persists. 

Another odd thing I noticed is that flow control for Tx cannot be turned on. I have tried enable/disable through both "Tips and Tweaks" as well as using the ethtool -A commands. Flow control for Autonegotiate and Rx can be turned on and off, however Tx always remains off. 
In addition, I noticed that when I have turned off flow control for this NIC, sometimes Rx would be on by itself:
 

Autonegotiate:	off
Rx:		on
Tx:		off

 

Screenshot2024-09-08at1_51.01intheafternoon.png.a788bed399f7fe23a23e53fcf969e7d5.png

 

I also did a direct connection from my Mac to Unraid and did multiple iperf test. The Unraid to Mac test always get full speed but the Mac to Unraid was not consistent. About half the time it gets full speed, and the rest of the time was unstable with around 300Mbps. 

 

 

For now I am using a USB ethernet adapter plugging directly into the second port of the Synology. I am able to get full transfer speed with this method. 

 

Screenshot2024-09-08at1_52.16intheafternoon.thumb.png.5fb97688c967ced7891abe27c28f520f.png

 

is it possible to install our own driver for the I226V? https://www.intel.com/content/www/us/en/download/15084/intel-ethernet-adapter-complete-driver-pack.html

The USB Ethernet adapter is not an ideal permanent solution. 

  • Community Expert
3 hours ago, Sak said:

is it possible to install our own driver for the I226V?

Not that I know of.

  • Author
2 hours ago, JorgeB said:

Not that I know of.

 

A quick google search seems to reveal a lot of stability issues with i225 and i226. Hopefully it is fixed soon through the IGC driver updates. 
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.