Mac Thread, Mac OSX 10.6.7 slow to read smb file shares in Technical; We have integrated a hundred Macs into our network. When ever a Mac tries to read a directory on a ...
20th April 2011, 01:02 PM #1
- Rep Power
Mac OSX 10.6.7 slow to read smb file shares
We have integrated a hundred Macs into our network. When ever a Mac tries to read a directory on a Windows 2003 R2 file share or Windows 2008, it takes an inordinate amount of time. Even listing a simple sub-directory with just 3 1K files in it can take upwards of a minute.
Now we installed an afp file share and speed is dramatically faster under exact same testing conditions.
But of course we are a Windows and Linux shop running AD. And even if we bought three or four Mac Pros and set up afp file shares, we'd have no way to manage them.
This problem of slow smb directory and file listing is driving us crazy. We have tested for months, replaced a core switch, tested and replaced cables, new N AP. All work perfectly with Windows client. No delays etc. Even simultaneously with Macs and Windows laptops, Windows machines are fine.
Any suggestions, we are going crazy?
20th April 2011, 07:40 PM #2
I had this exact situation and switched to using AFP shares on a Mac Pro a few weeks ago as the situation got so bad. If you search online for issues there are tens of different things you can try adjusting. A few of the top of my head:
Tweak TCP/IP stack settings to modify delayed_ack value from 3 to 0 or 1 (this stops delayed transmission of packets to piggyback data and use less packets, try 0 for wireless clients and 1 for wired)
Tweak TCP/IP stack settings to modify newreno value from 0 to 1 (this turns on a enhanced algorithm which came make a difference of some wireless networks)
Check reverse DNS (this was definitely causing us some problems but I only sorted this after the switch to AFP, the Apple AD and Centrify Direct Control will, by default, send dynamic DNS updates which were clashing with the updates provided by the DHCP server).
Make sure everything is set to use NTP so kerberos tickets will remain consistently valid.
Disable spotlight indexing (home folders will get indexed as you log in which can cause performance issues).
Disable Bonjour advertisements (On 10.6 don't disable Bonjour as it also now handles the unicast DNS as well, just stop advertisements)
I think it's likely that if reverse DNS isn't perfect then the system will fallback to using mDNS lookups through Bonjour and this will introduce the delay although I've yet to re-test. My situation sounds identical to yours though, no apparently bottlenecks or problems with any of computers, but Apple systems were slow in accessing it (and unstable because of it).
Interesting Apple are using their own SMB client in 10.7 instead of SAMBA components so this may rectify any issues or potentially make it all worse. I'm currently trying to get Kerberos working with Netatalk so we can store the shares on Linux on actual server hardware and have something that can actually scale, still playing with it at the moment though but the speed is good.
26th April 2011, 05:27 PM #3
- Rep Power
We had this problem too, and found that 10.6.7 is honoring IPTOS. Try setting IPTOS_LOWDELAY for a socket option on the samba server -- this solved our problem
Thanks to bcodding from:
AngryTechnician (26th April 2011)
5th May 2011, 06:56 AM #4
5th May 2011, 08:53 AM #5
I went through everything list on that page and still couldn't get it to work properly, the fileserver I was using was 2008R2 though so maybe some fixes only apply to older Windows products or Samba shares.
6th May 2011, 01:46 PM #6
I've read somewhere that Windows 7 uses a newer version of cifs/smb for their file sharing. Apple have decided to build their own smb client to access these shares as SAMBA doesn't work properly with this newer type. How true it is I don't know. I'll see if I can find a link to it.
6th May 2011, 01:48 PM #7
6th May 2011, 01:54 PM #8
Not sure how much use this pdf guide is to anyone but something I put together a while back in my previous position to disable smb signing on windows 7
Thanks to mac_shinobi from:
6th May 2011, 02:15 PM #9
Windows 6.0 (Vista/2008) supports SMB 2.0, while Windows 6.1 (7/2008 R2) support SMB 2.1. Both are a huge improvement over the original SMB in terms of performance.
Originally Posted by HodgeHi
By Leeoakley in forum Mac
Last Post: 10th June 2009, 09:04 PM
Last Post: 22nd May 2009, 04:19 PM
Last Post: 17th August 2008, 09:09 AM
By thegrassisgreener in forum Mac
Last Post: 18th January 2008, 08:50 AM
Last Post: 12th December 2006, 05:33 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread