Diagnosing slow network shares in OSX Mavericks.
NAS 1513+
- Two RAID1 volmes, 1 plain disk.
- DSM 4.3-3810 U4
- LACP on 2 1GB ports
2009 Mac Pro
- 2.66Ghz, 32GB RAM, SSD boot drive (1TB)
- OSX 10.9.1
- LACP on 2 1GB ports
- Mount the RAID1 volumes via AFP
- Mount the 1 plain disk via AFP for time capsule.
No updates are currently available for either.
Since upgrading to 10.9, like others I at times get HORRIBLE network attached storage performance, but it is not constant, nor have I found the trigger for it. I have symptoms on both SMB2 -OR- AFP links, not just one or the other. Sometimes I can remedy it by merely booting mounted user from the Synology control panel and then reconnecting to the volume.
Here is an example, copying a 3.85GB file from local disk (SSD) to an AFP NAS volume...it basically was lagging my user interface, but this seems to be because finder/launcherd has some thread blocking issues when the network seems to hiccup.
Traceroute ping against the NAS unit from the MAC, you can see when I attempted to start to copy the file. For note, MAC is 192.168.1.2, NAS is 192.168.1.5, this is a 1024-byte ping:
1032 bytes from 192.168.1.5: icmp_seq=88 ttl=64 time=0.317 ms
1032 bytes from 192.168.1.5: icmp_seq=89 ttl=64 time=0.300 ms
1032 bytes from 192.168.1.5: icmp_seq=90 ttl=64 time=0.368 ms
1032 bytes from 192.168.1.5: icmp_seq=91 ttl=64 time=0.351 ms
1032 bytes from 192.168.1.5: icmp_seq=92 ttl=64 time=0.290 ms
1032 bytes from 192.168.1.5: icmp_seq=93 ttl=64 time=589.964 ms
1032 bytes from 192.168.1.5: icmp_seq=94 ttl=64 time=206.975 ms
1032 bytes from 192.168.1.5: icmp_seq=95 ttl=64 time=325.690 ms
1032 bytes from 192.168.1.5: icmp_seq=96 ttl=64 time=146.775 ms
1032 bytes from 192.168.1.5: icmp_seq=97 ttl=64 time=630.380 ms
1032 bytes from 192.168.1.5: icmp_seq=98 ttl=64 time=2325.074 ms
1032 bytes from 192.168.1.5: icmp_seq=99 ttl=64 time=1323.902 ms
1032 bytes from 192.168.1.5: icmp_seq=100 ttl=64 time=323.091 ms
1032 bytes from 192.168.1.5: icmp_seq=101 ttl=64 time=69.879 ms
1032 bytes from 192.168.1.5: icmp_seq=102 ttl=64 time=190.796 ms
1032 bytes from 192.168.1.5: icmp_seq=103 ttl=64 time=712.165 ms
1032 bytes from 192.168.1.5: icmp_seq=104 ttl=64 time=3.779 ms
1032 bytes from 192.168.1.5: icmp_seq=105 ttl=64 time=229.078 ms
1032 bytes from 192.168.1.5: icmp_seq=106 ttl=64 time=1037.666 ms
I kicked off the mounted user through the interface I had open (once I could get it open, the first to connects timed out) via Firefox on the Synology. I then remounted the volume and copied the same file and it worked fine and fast, here you can see the ping go from .3 to 2.X or so during the copy:
1032 bytes from 192.168.1.5: icmp_seq=0 ttl=64 time=0.312 ms
1032 bytes from 192.168.1.5: icmp_seq=1 ttl=64 time=9.421 ms
1032 bytes from 192.168.1.5: icmp_seq=2 ttl=64 time=0.272 ms
1032 bytes from 192.168.1.5: icmp_seq=3 ttl=64 time=0.293 ms
1032 bytes from 192.168.1.5: icmp_seq=4 ttl=64 time=0.266 ms
1032 bytes from 192.168.1.5: icmp_seq=5 ttl=64 time=2.626 ms
1032 bytes from 192.168.1.5: icmp_seq=6 ttl=64 time=17.977 ms
1032 bytes from 192.168.1.5: icmp_seq=7 ttl=64 time=5.908 ms
1032 bytes from 192.168.1.5: icmp_seq=8 ttl=64 time=2.226 ms
1032 bytes from 192.168.1.5: icmp_seq=9 ttl=64 time=2.511 ms
1032 bytes from 192.168.1.5: icmp_seq=10 ttl=64 time=0.347 ms
1032 bytes from 192.168.1.5: icmp_seq=11 ttl=64 time=0.336 ms
1032 bytes from 192.168.1.5: icmp_seq=12 ttl=64 time=0.297 ms
1032 bytes from 192.168.1.5: icmp_seq=13 ttl=64 time=0.680 ms
1032 bytes from 192.168.1.5: icmp_seq=14 ttl=64 time=2.641 ms
1032 bytes from 192.168.1.5: icmp_seq=15 ttl=64 time=0.347 ms
1032 bytes from 192.168.1.5: icmp_seq=16 ttl=64 time=2.576 ms
Something gets very broken and starts blocking on the network stack. Whatever breaks in the connected volume does NOT fix itself without disconnected the user and reconnecting the volume. During this time, I was able to ping my router from the MAC with no issues.
--- 192.168.1.5 ping statistics ---
30 packets transmitted, 29 packets received, 3.3% packet loss
round-trip min/avg/max/stddev = 14.590/456.075/1846.661/463.270 ms
Tron:~ daniel$ ping -s 1024 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 1024 data bytes
1032 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.720 ms
1032 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.632 ms
1032 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.630 ms
1032 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.602 ms
1032 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.588 ms
1032 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.571 ms
No errors are present in any console logs on the Mac or the NAS unit.
Mac Pro (Early 2009), Mac OS X (10.6)