Windows – It takes too long to open mounted network drive from Samba on Windows 7

sambawindows

The config:

Clients: Windows 7 64-bit,
Server: Samba 3.0.37

Samba socket options: TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

One samba share is mapped to Windows computers as a network drive. From time to time it takes too long to open the mapped drive (15-20 seconds), in Windows explorer as well as in the console. I believe Windows loses a connection to the network share and tries to restore it from scratch.

So the question is – how to keep the connection alive or to speed up the connection process?

Best Answer

Low-tech approach - ping it or run a directory listing across it on a reoccurring interval (via a scheduled task from the target system).