UnKwicks Posted September 18, 2020 Share Posted September 18, 2020 (edited) Hi guys I read a lot topics here about slow read/write performance with SMB but I did not find something like mine or any solution there helped me. So I start this thread. I switched recently from QNAP to my new unraid build. and I am testing performance right now. First some facts: - I use macOS 10.15.5 as client OS - I have a 12 TB Parity and a 12 TB Array Disk (WD red) - I have SSD cache but not enabled for this share / this test - I use unraid 6.8.3 - I test to copy a 2.5 GB image file. - QNAP NAS and unraid server are connected with a 1 GB ethernet. - My SMB config: veto files = /._*/.DS_Store/ #unassigned_devices_start #Unassigned devices share includes include = /tmp/unassigned.devices/smb-settings.conf #unassigned_devices_end #disable SMB1 for security reasons [global] min protocol = SMB2 Write speed: UNRAID: Copying the file to my unraid Server takes about 55 seconds QNAP: Copying the file to my QNAP NAS takes about 65 seconds So no problems here. Read speed: First I had poor performance for directory listing when browsing the share. so I set "Enhanced macOS interoperability = yes" and this helped a lot. UNRAID: Reading the file from my unraid server takes 2 min 48 sec. QNAP: Reading the file from my QNAP NAS takes 58 sec So reading performance from my unraid server is pretty poor in comparison to my old QNAP. What am I missing here? Some ideas why reading is so slow while writing is fast? Thanks! Edited September 20, 2020 by UnKwicks not SMB related so I put SMB out of thread title Quote Link to comment
UnKwicks Posted September 19, 2020 Author Share Posted September 19, 2020 (edited) I did another measure: Activity Monitor in Mac OS shows me a max. of: 14 MB / sec when reading a file from my unraid SMB share. 130 MB / sec when writing a file to my unraid SMB share. Any idea why reading is so slow is appreciated. It seems not to be an issue with my Mac because reading and writing to my QNAP NAS is fast (see first post) Edit: I did some more tests with iperf. Mac as client --> Unraid as server [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 597 MBytes 501 Mbits/sec sender [ 4] 0.00-10.00 sec 596 MBytes 500 Mbits/sec receiver Unraid as client --> Mac as server [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 164 MBytes 137 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 162 MBytes 136 Mbits/sec receiver Edited September 19, 2020 by UnKwicks added iperf results Quote Link to comment
Vr2Io Posted September 19, 2020 Share Posted September 19, 2020 (edited) IPERF result abnormal, it usually network issue, pls ensure both end NIC MTU setting are match. Does using WiFi in one end ? For SMB, pls try 'Disable SMB Signing on OS X' https://kb.promise.com/thread/disable-smb-signing-on-os-x-10-11-5-10-12-x/ Pls also search post for how to tweak for increaee MAC OS SMB performance with Unraid. Edited September 19, 2020 by Benson Quote Link to comment
UnKwicks Posted September 20, 2020 Author Share Posted September 20, 2020 (edited) Thanks a lot for you help. 7 hours ago, Benson said: it usually network issue, pls ensure both end NIC MTU setting are match MTU is set to default 1500. 7 hours ago, Benson said: Does using WiFi in one end ? Yes the Mac is on Wifi but for my connection to the QNAP NAS as well. Reading from unraid is about 3x slower in this scenario than reading from QNAP. 7 hours ago, Benson said: For SMB, pls try 'Disable SMB Signing on OS X' I use macOS 10.15.5. SMB signing is disabled by default on 10.13.4 and higher. 7 hours ago, Benson said: Pls also search post for how to tweak for increaee MAC OS SMB performance with Unraid. I read through each post in this forum I found and googled for several hours. Sadly most posts are 2 years old or older and describe slow speeds in general. I have slow speeds only for reading. As stated in my first post I set "Enhanced macOS interoperability = yes" and this helped a lot. But still having this bad reading speed for a file transfer (dir listing speed is ok now) Is there a special tweak or thread you are talking about? Edited September 20, 2020 by UnKwicks Quote Link to comment
UnKwicks Posted September 20, 2020 Author Share Posted September 20, 2020 (edited) Ok, I guess my issue is not SMB related as I thought before. I did some more iperf testing. Let me add the following before I post the results: Using LAN read and write speed is good Issue seems only to appear using wifi on client but then only with unraid. So I did iperf having my MacBook connected via Wifi and Unraid as well as QNAP via LAN. QNAP (LAN) iperf client --> MacBook (Wifi) iperf server: [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 556 MBytes 466 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 555 MBytes 466 Mbits/sec receiver Unraid (LAN iperf client --> MacBook (Wifi) iperf server: [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 125 MBytes 104 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 123 MBytes 103 Mbits/sec receiver MacBook (Wifi) iperf client --> QNAP (LAN) iperf server: [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 518 MBytes 434 Mbits/sec sender [ 4] 0.00-10.00 sec 517 MBytes 433 Mbits/sec receiver MacBook (Wifi) iperf client --> Unraid (LAN) iperf server: [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 493 MBytes 413 Mbits/sec sender [ 4] 0.00-10.00 sec 492 MBytes 412 Mbits/sec receiver So only sending from Unraid to my MacBook is slow! MTU on all devices is 1500. I attached my diagnostics zip if this helps. TOWER-diagnostics-20200920-1654 2.zip Edited September 20, 2020 by UnKwicks Quote Link to comment
compund_soil Posted March 11, 2021 Share Posted March 11, 2021 Same issue with a MBP running 10.15. I saturate a 2.5 Gbe connection when writing to the array (cache drive), but READING from it to my MBP NVME drive will only give me 300 Mb/s (LAN on both sides running through a 10Gbe SFP+ switch). I've done most of the same troubleshooting as you have. Just here to say you're not alone. I will post here if I find my answer. Quote Link to comment
UnKwicks Posted March 12, 2021 Author Share Posted March 12, 2021 I never found a solution for that. I did a lot of research but never found out where this really comes from. i hope you have more luck. Thanks for letting me know 👍 Quote Link to comment
Ralph456 Posted April 10, 2021 Share Posted April 10, 2021 HI, Can anyone here help us out. Writing to the unraid raid array is super fast, 2.5g but reading from it is abysmal, like 20-30 mb/s How can I overcome this? what can I do to make reading from the array as fast as the drive speed which should be 120mb/s Thanks a ton Quote Link to comment
JorgeB Posted April 10, 2021 Share Posted April 10, 2021 47 minutes ago, Ralph456 said: How can I overcome this? Start by running a single stream iperf test. Quote Link to comment
UnKwicks Posted April 10, 2021 Author Share Posted April 10, 2021 36 minutes ago, JorgeB said: Start by running a single stream iperf test. As you can see in my previous posts we already did several tests with iperf. Quote Link to comment
JorgeB Posted April 10, 2021 Share Posted April 10, 2021 27 minutes ago, UnKwicks said: As you can see in my previous posts we already did several tests with iperf. I wasn't replying to you. Quote Link to comment
JorgeB Posted April 10, 2021 Share Posted April 10, 2021 31 minutes ago, UnKwicks said: we already did several tests with iperf. Also iperf confirms the problem for you is the network, it might do the same for the other user. Quote Link to comment
UnKwicks Posted April 10, 2021 Author Share Posted April 10, 2021 1 hour ago, JorgeB said: Also iperf confirms the problem for you is the network, it might do the same for the other user. What tells you that in my case its the network? It seems like we are all in the same boat here. Quote Link to comment
JorgeB Posted April 10, 2021 Share Posted April 10, 2021 1 minute ago, UnKwicks said: What tells you that in my case its the network? Iperf only tests the network bandwidth, if iperf results are low any transfer in the same direction will also be slow. Quote Link to comment
JorgeB Posted April 10, 2021 Share Posted April 10, 2021 Note that slow iperf results can also be caused by some OS issue with the source computer, basically you need to test all the things involved in the network one at a time, NICs, cables, switch, source computer until you find the culprit, also in your case it's with WiFi, that's notoriously unreliable for consistent speeds, first thing to try is cabled connection. Quote Link to comment
Ralph456 Posted April 15, 2021 Share Posted April 15, 2021 (edited) On 4/10/2021 at 3:55 AM, JorgeB said: Start by running a single stream iperf test. I did, I should say this, So my server has a 10gb nic connected to a 10gbe switch which my mac is currently connected to. Now, the mac is on a 2.5gb nic ( it will soon be upgraded to a 10bge nic )(waiting on parts to arrive) running iperf from the mac to the server is 2.65gbs (which I can live with) translating this to aja or blackmagic speed test to 120-140MB write (which im ok with for now) running iperf from the server to the mac the speed is 232 mbs which translate to 20MB read from the server which I dont get why I already set mtu to 9000 and nothing, ive tried about all the smb tweaks I can think of (except for link aggregation) Edited April 15, 2021 by Ralph456 Quote Link to comment
JorgeB Posted April 15, 2021 Share Posted April 15, 2021 4 hours ago, Ralph456 said: running iperf from the server to the mac the speed is 232 mbs which translate to 20MB read from the server which I dont get why It confirms it's a network related issue. Quote Link to comment
Recommended Posts
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.