slow performance on samba share from Win7

Our Win7 machines seem to have slow performance issue on our Samba server. There is always some delay when launch any MS office files from the share. Also the file transfer rate is significantly slower than from  Windows server. However, these problem do not exist on our XP machines. So this appear to be that there are some networking settings in Win7 that was causing the problem. The things that I did so far were disabling IPV6, adding the TCPackFrequency\TCPDelAckTicks reg.key and modifying the NTLM authentication settings in the local group policy, however, none of these can make any difference. Can someone advice what could the problem?

Thanks
Line OneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EshuunDaraCommented:
have you tried disabling auto-tuning on the Windows 7 machine?  Open an administrative command prompt and type in:

netsh interface tcp set global autotuning=disabled

reboot and then try again.
Line OneAuthor Commented:
tried it but didn't help
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
Please read my article on using Samba and Windows SMB 2.0 systems (Server 2008, Windows Vista & 7).

http://www.experts-exchange.com/A_3545.html

It should answer all of your questions (as well as warning you about lowering the NTLM settings.

The GIST is that you should be using Samba 3.5 or later, and there are 2 registry tweaks to use on the Windows CLIENT side -- thus, allowing you to utilize SMB 2.0 (instead of SMB, which dates all the way back to Win2k!)

Dan
IT4SOHO
Expert Spotlight: Joe Anderson (DatabaseMX)

We’ve posted a new Expert Spotlight!  Joe Anderson (DatabaseMX) has been on Experts Exchange since 2006. Learn more about this database architect, guitar aficionado, and Microsoft MVP.

Line OneAuthor Commented:
Thank you very much for the info. it4soho.

At the moment, I am not sure if we can simply upgrade our samba server due to the fact that the same server is also providing various critical applications to the organization and we don't want any interruption anytime soon. You mentioned in your note that there are 2 reg. key that can change win7 to be using smb1. What are those keys? It might just be a good temp. solution for the current situation.

Thanks
Line OneAuthor Commented:
I follow Daniel Petri's article about disabling smb 2 on one of the win7 machines but that didn't help the slow file access issue.

http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm

The commands that I used

sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc config mrxsmb20 start= disabled


Daniel McAllisterPresident, IT4SOHO, LLCCommented:
The registry keys to modify in the Win7 systems that enable SMB2 (and similarly, the joining of a Win 7 into a Samba Domain) are:

REG ADD "HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v
 "DomainCompatibilityMode" /t REG_DWORD /d "1" /f
REG ADD "HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v
 "DNSNameResolutionRequired" /t REG_DWORD /d "0" /f

NOTE: Unlike previous clients that would essentially use WINS while at the same time query SMB (which uses AD, and thus DNS, instead of WINS), newer clients (Like Vista & 7) use SMB and will only fall back to WINS in the case of SMB failure... another reason to make sure you've enabled port 445 (vs 137-139).

Another common mistake is to not unlock BOTH TCP and UDP ports (445T & 445U).

Finally, I've found in my experience, most Win7 / Samba slowness is caused by DNS errors.... make SURE that both systems are using the same DNS server (preferably the AD controller, or if on a samba domain, then the samba server itself).... remember: AD runs on top of DNS!

Good Luck!

Dan
IT4SOHO

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Line OneAuthor Commented:
Thanks, I will look into the Samba upgrade.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.