LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-04-2011, 12:25 AM   #1
silent2k
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Rep: Reputation: 0
Question how to optimize samba performance?


Hello,

I have installed a linux server, centos gui server with Raid1, his role will be only a file server. I installed samba and configured it. The file system is EXT3. the server got 4 gigs of memory.
There is a program in windows that writes files to the share.

I searched and i found that there is some commands that you add and they boost the performance. This is what i added to smb.conf

refresh = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY
read raw = No
write raw = Yes
max xmit = 131072
use sendfile = Yes
dead time = 15
getwd cache = Yes
otlocks = No
strict allocate = yes



I got complains that the writes are not fast enough. Before me another IT guy configured the file server and it was faster, what he told my customer that he changed some command of cache but i dont know exactly what he did. I have been asked to find how to boost the performance.

Please give me more commands to try to boost the performance of Samba or tell me if i need to change anything..

Thanks A Lot.
 
Old 01-05-2011, 10:15 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

First you should Exactly define what your target is. There are dozens of reasons why performance is not as expected. Also you should define what "slow performance" means. Samba by itself is not the fastest protocol available.

It seems you did not consult man page or samba homepage.

First you should aware that there is no "run fast from now" option for all cases. You can play with size of send and receive buffers, both are fully explained on samba homepage. Take a look at Samba Performance Tuning Site.

Do not change more than one parameter at a time. Implement a perfomance measurement system which you use between all changes to find out if one option helps or not.
 
Old 01-09-2011, 01:08 AM   #3
silent2k
LQ Newbie
 
Registered: Aug 2008
Posts: 5

Original Poster
Rep: Reputation: 0
this is the results i got

[root@lm2000 ~]# hdparm -tT /dev/sda

/dev/sda:
Timing cached reads: 1900 MB in 2.00 seconds = 950.94 MB/sec
Timing buffered disk reads: 156 MB in 3.03 seconds = 51.52 MB/sec
[root@lm2000 ~]# hdparm -I /dev/sda | grep -i speed
* SATA-I signaling speed (1.5Gb/s)
* SATA-II signaling speed (3.0Gb/s)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Optimize filesystem performance on top of mdadm raid5 + LUKS wallbunny Linux - Software 0 11-22-2010 02:22 PM
how to optimize my computer performance? alekhidell Linux - Newbie 3 12-02-2009 09:21 AM
performance optimize these 4 lines of ruby hedpe Programming 1 12-28-2006 09:38 PM
Optimize vmware for 3d application performance? Thermodynamic Linux - Desktop 2 11-18-2006 02:50 PM
optimize performance , Suse 3.9 Tarekaz SUSE / openSUSE 28 12-15-2005 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:47 AM.

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