LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2013, 04:18 AM   #1
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Accelerating Samba? 3.5.4-68.el6 about 4 times slower than a Windows fileserver?


Hi guys

I have Centos 6 with Samba 3.5.4-68.el6 set up as a file server and PDC.

I have a Windows Server 2008 machine also setup as a file server.

If I run .exe files from a Windows 7 desktop machine on my network (a member of the domain) from the Samba share, they load at least 4 times slower than the same .exe file on the Windows server.

Also, files copy about 4 times slower from the Samba fileserver, vs. the Windows Server 2008.

E. g. copying a certain file, for argument's sake, takes 8 seconds if copied to Windows 7 from the Windows machine, but 32 seconds if copied from the Samba machine, for the exact same file.

Both servers and test workstation are on the same Class B network segment in the same mask in the same building, about 6 meters apart. No routing or anything else is done that could slow down or delay the network. Both the Samba server and the Windows server are built on the exact same hardware, motherboard, NIC, and CPU.

It seems Windows has some protocol magic it does to be able to communicate to Windows clients several times faster than Samba does?

I've already tried the "socket options" option in the smb.conf like this:

Code:
socket_options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE
I have tried various values for the 8192, trying 2048, 4096, 16384 and 32768. Generally, around 32768, the Samba file shares become again double as slow as before. However, dropping the buffer size to, for example, 1024 has no effect. The Samba server seems to perform best at around 2048, but that is where it is still more or less four times SLOWER than the Windows Server machine in serving the same test files to the same test Windows 7 workstation, as served from the Windows server.

Subjectively, and as far as I can determine, the NIC in both servers is at the same speed, full duplex, not having overruns or dropped packets.

Anybody else experienced and solved this?

Where can I look besides NICs and socket options, on the Samba side, to try and improve performance and at least get to the same level of speed the Windows server provides?

Or is it a given that due to the Windows filesharing protocol having been reverse engineered, a Samba server will always be many times slower than an equivalent Windows server when serving files? (Some protocol feature or acceleration method could not be reverse engineered?)

Any replies appreciated!

Thank you,

Last edited by rylan76; 04-23-2013 at 04:25 AM.
 
Old 04-24-2013, 07:54 PM   #2
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
I'd comment out the socket options entirely, they are not needed, and can actually slow things down.

I'd also look into whether there's an issue with the NIC or wiring. Switch the cables around and see if anything happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Simple Java loop runs 6 times slower on Ubuntu 11.10 than Windows Vista ags1 Programming 4 05-03-2012 12:39 AM
EL 5.x v.s. EL6.x | BIND Root Hint Referral Reponse List - DifferenceEl 5.x v.s. EL6. harmandeep Linux - Server 0 10-06-2011 06:20 AM
Internet speed is 50 times slower on Linux than on Windows callum85 Linux - Networking 2 10-05-2006 02:02 PM
Samba - one windows box cant see my Linux fileserver crm Linux - Networking 2 11-08-2004 02:37 PM
Internet 10 times slower in linux than in windows samx123 Linux - Wireless Networking 5 03-08-2004 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration