Mac slow to Synology NAS clears following eject and reconnect

I have recently upgraded to a MAC studio M2 running Ventura 13.4. I'm experiencing performance problems after the MAC wakes from sleep. The issue can be cleared with an eject of the network drive in finder. When the drive reconnects the performance is normal and very good again. Wondering if there is a setting that can eliminate this?

Mac Studio (2023)

Posted on Aug 4, 2023 08:43 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 14, 2023 07:53 AM

I am so glad I found this authors post, I thought I was losing my mind.


I am have the same performance issues with a MacStudio running Ventura and connecting to a Synology NAS with a 10gbe card through a 10gbe switch all with SMB no standard 1500 jumbo frames. Switching to 9000 makes no difference for me.


Same pattern, wake from sleep, slow performance of the NAS. Restart the switch, router, and Mac, and I can get read/write speeds at almost full saturation....see image.


So, does anyone know if this is an Apple OS issue or a Synology issue? I wonder if Apple is aware of this problem. Given AFP is essentially dead, you would think they would be working on fixing this sleep issue with SMB.


Thank you!



Similar questions

10 replies
Question marked as Top-ranking reply

Dec 14, 2023 07:53 AM in response to MOC24

I am so glad I found this authors post, I thought I was losing my mind.


I am have the same performance issues with a MacStudio running Ventura and connecting to a Synology NAS with a 10gbe card through a 10gbe switch all with SMB no standard 1500 jumbo frames. Switching to 9000 makes no difference for me.


Same pattern, wake from sleep, slow performance of the NAS. Restart the switch, router, and Mac, and I can get read/write speeds at almost full saturation....see image.


So, does anyone know if this is an Apple OS issue or a Synology issue? I wonder if Apple is aware of this problem. Given AFP is essentially dead, you would think they would be working on fixing this sleep issue with SMB.


Thank you!



Nov 14, 2023 01:42 PM in response to MOC24

I can confirm this. Disabling Wifi helps as after coming back from the sleep mode the connection to the Synology NAS is running over WLAN instead of Ethernet. Unmounting and mounting the NAS share helps that connection is made via Ethernet again, although this is cumbersome. I need to have WiFi activated on my Mac Studion as I use the Apple watch to unlock my Mac Studio. I have now configured my Wifi that it connects to a different WLAN network (different network from the network my NAS is running on) and with that I can work as intended. Obviously Apple should still fix this issue and make sure that connection is always running on the preferred network (Ethernet in that case).

Nov 18, 2023 07:56 AM in response to MOC24

Creating a persistent route.


Unfortunately I don't see any way to specify a static route to an interface using networksetup. If you find a way update this thread please.


I see the network service order is set as follows.


To set the Mac OS network service order:

  1. On your Mac, choose Apple menu > System Settings, then click Network in the sidebar. (You may need to scroll down.)
  2. Click the Action pop-up menu on the right, then choose Set Service Order.
  3. Drag services into the order you want.
  4. Click OK.


If the network service order works as advertised I'm left wondering why the route to my NAS ever switched to WIFI in the first place.


My wired and WIFI networks occupy the same IPv4 /24 subnet and this may be creating routing issues on return from the NAS to the host, so separating these two media to different VLANS and Nets is worth looking into.




Aug 8, 2023 07:43 AM in response to MOC24

Getting closer to working through a reasonable solution. I've migrated from a 2016 iMac also on some version of Ventura to a Mac Studio M2 Max running Ventura 13.4.


I had used AFP to mount drives on the iMac from a Synology NAS running current OS and it worked well for years.

When things break, you learn and AFP was not working for me on the Studio. I learned that it is proprietary Apple and supported but it is being depreciated. It looks like Apple didn't debug the migration to Apple Silicon very well if at all. So time to move away from AFP.


I moved to using SMB for the network drive mounting protocol.

During the configuration of SMB I chose to Enable durable handles and deactivate encryption since this is a home lan with one switch in between the Mac and my NAS. Good luck getting in the middle of my LAN connection.

SMB version limits are: MAC SMB use SMB4 max and min SMB2 + Jumbo frame (still using 1500mtu for now anyway)


Restarted everything.


Results:

Writing photos from XD card to NAS transferred at over 40MBytes/sec over the 1Gbps link (320 Mbps for us networkers).

Previous on Mac Studio was with AFP was max 5 MBytes and generally slower in KB range. Nice result!


The next morning upon wake up, from my notes.

"disk exhibits poor performance this morning upon first use."

Transfers stuck in KB range, Quicktime test shows poor video performance from HD MP4 on NAS and lack of audio sync.


I noticed that I still had WIFI on and it was connected, so I turned off WIFI. Immediately the performance was very good again! So I'm leaving WIFI off for now since I have no essential need for it on a Mac Studio. If I need it I'll mess with the default route interface, but moving on.


The system performed like a champ all day!


This morning I log in and the mount points to the NAS are gone!

I used finder and the Go -> Connect to Server to bring the mount up again. Performance rocks once again, but now I need to address why the mount point is not persistent.


Any ideas? (I read something about a Synology script for keeping mounts active)















Oct 15, 2023 03:29 PM in response to MOC24

Hi,


Did you find a solution for this? I have exactly the same issue (Mac Studio M2) with Synology NAS. SMB speed drops significantly after Mac is coming back from sleep mode. Disabling the sleep mode helps but is not my preferred solution. Unmounting the SMB share and mounting again after sleep mode helps but is cumbersome as well. I haven't found a final solution so far just the two mentioned "work arounds".


Thanks for your answer.


Best regards,

Tom

Nov 18, 2023 06:44 AM in response to cybertom_ch

I've set a host specific route to my NAS and turned on my WIFI.

A host route in network terms is VERY specific it's a /32 specific to one IPv4 address and since routing will prefer a more specific route, it can't get any better than that in IPv4.

My NAS is on the same net as my Mac and has the address 192.168.1.4.

To show the current route to that address:

sudo route get 192.168.1.4


Or to show the routing tables:

netstat -rn


To set a host route: My Ethernet interface is en0, wifi on my system is en1

sudo route add 192.168.1.4 -interface en0 255.255.255.255


show the route and the tables to verify correctness.


Now I need to look into making the route survive reboot.

Nov 14, 2023 06:22 AM in response to cybertom_ch

After turning off AFP and switching to SMB I logged in the next morning and had poor performance AGAIN!

Turned out to be that the connection was made over WIFI instead of my 1GE port to switch connection. I turned off WIFI on the Mac Studio and haven't had performance issues since then. If you need wifi on the Studio there must be a way to force the connection over the GE port but I haven't looked into it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac slow to Synology NAS clears following eject and reconnect

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.