1

Does anyone know if there is a root cause and solution to the OS X 10.6 Samba issues? We are seeing very slow connects from 10.6.2 to Windows Server 2003 via samba.

(smbclient connects fast every time)

Any suggestions?

1

2 Answers 2

2

Mac OS X's TCP delayed ack implementation's default mode of operation seems to run afoul of some SMB servers on some networks. Do this:

$ sysctl net.inet.tcp.delayed_ack

...and see if it's set to 3 (the default, at least as of Mac OS X v10.6 "Snow Leopard"). If it is, try setting it to 0 (off):

$ sudo sysctl -w net.inet.tcp.delayed_ack=0

...and re-run your test. You may need to unmount any mounted SMB shares and re-mount them, so that you're creating new TCP connections to the server after changing your Delayed Ack setting.

If that solves the problem, you can make that change automatically take effect on every boot by creating a file:

/etc/sysctl.conf

and have it contain the line:

net.inet.tcp.delayed_ack=0
1
  • Didn't do anything to improve it for me, unfortunately. Still having the problem. Sep 17, 2010 at 15:28
0

Is OSX bound to the AD or running stand alone. If its part of the AD I would check your directory services logs (under Application->Utilities->Console). I have seen issues where OS X guest are waiting to a connection to a no longer present Domain Controller to timeout before they connect.

The Second thing to check is the DNS lookup. Samba can use both NetBIOS and DNS to find hosts to connect to, typically DNS is the quicker of the two. If it is a name resolution issue you should be able to get and idea of it by connecting directly via the IP address.

You must log in to answer this question.