"Petr \"Qaxi\" KlĂma"
2007-Mar-26 06:24 UTC
[CentOS] Performance problem with CentOs 4.4 Samba
Hello
I experience performance problem with CentOs 4.4 Samba 3.0
Reading files from Samba (1 client WinXP) is 3 times slower than writing
to samba.
What should I look at?
OS je CentOS 4.4 (RHEL 4 U4)
# smbd --version
Version 3.0.10-1.4E.11
CFG
=================================================================# cat
/etc/samba/smb.conf
[global]
workgroup = GROUP
netbios name = SERVER
server string = Samba Server
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n
*Password*changed*
passwd chat debug = no
pam password change = yes
unix password sync = yes
username map = /etc/samba/smbusers
log level = 1
syslog = 0
interfaces = eth0, lo
bind interfaces only = yes
name resolve order = wins host bcast
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -g users -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -a -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody
'%u'
logon script = scripts\login.bat
logon path logon drive = H:
domain logons = Yes
preferred master = Yes
wins support = Yes
printing = CUPS
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[public]
comment = Public Store
path = /data/public
only guest = yes
writable = yes
create mask = 0770
directory mask = 0770
[GRP1]
comment = Accounting Files
path = /data/ucetni
#valid users = %G
valid users = @GRP1
read only = No
create mask = 0770
directory mask = 0770
=================================================================
# rpm -qa | grep samba
samba-common-3.0.10-1.4E.11
samba-client-3.0.10-1.4E.11
samba-3.0.10-1.4E.11
--
Petr Kl?ma
e-mail: qaxi at seznam.cz
Petr "Qaxi" Kl?ma a ?crit :> Hello > > I experience performance problem with CentOs 4.4 Samba 3.0 > > Reading files from Samba (1 client WinXP) is 3 times slower than > writing to samba. > > What should I look at? > > OS je CentOS 4.4 (RHEL 4 U4)Look at your ethernet config: maybe your switch is in "forced 100Mb Full duplex" and your server in "auto" ??? check the mii-tool command (in net-tools rpm) Regards js. ps: both your swith and your serveur "should be" in auto for ethernet config.> > # smbd --version > Version 3.0.10-1.4E.11 > > CFG > =================================================================> # cat /etc/samba/smb.conf > [global] > workgroup = GROUP > netbios name = SERVER > server string = Samba Server > passwd program = /usr/bin/passwd %u > passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n > *Password*changed* > passwd chat debug = no > > pam password change = yes > unix password sync = yes > username map = /etc/samba/smbusers > > log level = 1 > syslog = 0 > interfaces = eth0, lo > bind interfaces only = yes > name resolve order = wins host bcast > printcap name = CUPS > show add printer wizard = No > add user script = /usr/sbin/useradd -g users -m '%u' > delete user script = /usr/sbin/userdel -r '%u' > add group script = /usr/sbin/groupadd '%g' > delete group script = /usr/sbin/groupdel '%g' > add user to group script = /usr/sbin/usermod -a -G '%g' '%u' > add machine script = /usr/sbin/useradd -s /bin/false -d > /var/lib/nobody '%u' > logon script = scripts\login.bat > logon path > logon drive = H: > domain logons = Yes > preferred master = Yes > wins support = Yes > printing = CUPS > > [homes] > comment = Home Directories > valid users = %S > read only = No > browseable = No > > [public] > comment = Public Store > path = /data/public > only guest = yes > writable = yes > create mask = 0770 > directory mask = 0770 > > [GRP1] > comment = Accounting Files > path = /data/ucetni > #valid users = %G > valid users = @GRP1 > read only = No > create mask = 0770 > directory mask = 0770 > > =================================================================> > > > # rpm -qa | grep samba > samba-common-3.0.10-1.4E.11 > samba-client-3.0.10-1.4E.11 > samba-3.0.10-1.4E.11 >
-----Original Message-----
From: centos-bounces at centos.org [mailto:centos-bounces at centos.org]On
Behalf Of "Petr \"Qaxi\" Kl?ma"
Sent: Monday, March 26, 2007 2:24 AM
To: centos at centos.org
Subject: [CentOS] Performance problem with CentOs 4.4 Samba
Hello
I experience performance problem with CentOs 4.4 Samba 3.0
Reading files from Samba (1 client WinXP) is 3 times slower than writing
to samba.
What should I look at?
OS je CentOS 4.4 (RHEL 4 U4)
# smbd --version
Version 3.0.10-1.4E.11
CFG
=================================================================# cat
/etc/samba/smb.conf
[global]
workgroup = GROUP
netbios name = SERVER
server string = Samba Server
passwd program = /usr/bin/passwd %u
passwd chat = *New*Password* %n\n*Re-enter*new*password* %n\n
*Password*changed*
passwd chat debug = no
pam password change = yes
unix password sync = yes
username map = /etc/samba/smbusers
log level = 1
syslog = 0
interfaces = eth0, lo
bind interfaces only = yes
name resolve order = wins host bcast
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -g users -m '%u'
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -a -G '%g' '%u'
add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody
'%u'
logon script = scripts\login.bat
logon path logon drive = H:
domain logons = Yes
preferred master = Yes
wins support = Yes
printing = CUPS
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[public]
comment = Public Store
path = /data/public
only guest = yes
writable = yes
create mask = 0770
directory mask = 0770
[GRP1]
comment = Accounting Files
path = /data/ucetni
#valid users = %G
valid users = @GRP1
read only = No
create mask = 0770
directory mask = 0770
=================================================================
# rpm -qa | grep samba
samba-common-3.0.10-1.4E.11
samba-client-3.0.10-1.4E.11
samba-3.0.10-1.4E.11
--
Petr Kl?ma
e-mail: qaxi at seznam.cz
=================================================================
Try adding:
socket options = TCP_NODELAY
to the [gloabal] section.
============================================
Fred Kienker
AT4B
5261 Sunset Trail
Marietta, GA 30068
Fred at at4b.com <<mailto:Fred at at4b.com>>
770.518.6166 Phone
770.518.6992 Fax
"Advanced Technologies For Business"
============================================
This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying, distribution,
or use of the information contained herein (including any reliance thereon) is
STRICTLY PROHIBITED. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety, whether
in electronic or hard copy format. Thank you.
On Mon, 26 Mar 2007 08:24:24 +0200, Petr "Qaxi" Kl?ma wrote:> Hello > > I experience performance problem with CentOs 4.4 Samba 3.0 > > Reading files from Samba (1 client WinXP) is 3 times slower than writing > to samba. > > What should I look at? > > OS je CentOS 4.4 (RHEL 4 U4) > > # smbd --version > Version 3.0.10-1.4E.11 > > CFGYou might find this performance guide useful: http://samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html Akemi
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Mar 26, 2007 at 08:24:24AM +0200, "Petr \"Qaxi\" Kl?ma" wrote:> Hello > > I experience performance problem with CentOs 4.4 Samba 3.0 > > Reading files from Samba (1 client WinXP) is 3 times slower than writing > to samba. > > What should I look at?Would that by any change be an .XLS file ? []s - -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFGB+f3pdyWzQ5b5ckRAjGiAKCNnUMdVhBdINwTIRlL5PI6umPEfwCfUxaD /heBYWi6IT5jmzMuZ8879i0=ogKO -----END PGP SIGNATURE-----
Petr "Qaxi" Kl?ma wrote:> Hello > > I experience performance problem with CentOs 4.4 Samba 3.0 > > Reading files from Samba (1 client WinXP) is 3 times slower than > writing to samba. > > What should I look at?- see if files that are read only get read faster. if so, it's a locking issue. - did you migrate from another samba server? if so, reuse its name. office documents looking for shared templates will still try looking at the old machine ;-p Lesson: never use samba shared templates.