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 "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
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" ???
hmm.. the setting is the same
On 3/26/07, "Petr "Qaxi" Klíma" qaxi@seznam.cz wrote:
Make sure you have all the proper ports open in your firewall as well. 137-139, and 445. If you don't have them all, samba will fall back to smb instead of cifs, and it'll be slower.
hmm.. the setting is the same
On Mon, 26 Mar 2007 07:28:26 -0400, Jim Perrin wrote:
Make sure you have all the proper ports open in your firewall as well. 137-139, and 445. If you don't have them all, samba will fall back to smb instead of cifs, and it'll be slower.
This is new(s) to me. Could you give me a pointer for this? Without realizing this, I closed some ports on certain samba servers to prevent annoying log entries.
Akemi
This is new(s) to me. Could you give me a pointer for this? Without realizing this, I closed some ports on certain samba servers to prevent annoying log entries.
Short of showing you the ports lists microsoft uses for filesharing, I don't have any doco on this. It was passed down to me a while back, and I have no authentic documentation about it. It could be wrong, and if it is, I'll happily take correction.
Jim Perrin wrote:
This is new(s) to me. Could you give me a pointer for this? Without realizing this, I closed some ports on certain samba servers to prevent annoying log entries.
Short of showing you the ports lists microsoft uses for filesharing, I don't have any doco on this. It was passed down to me a while back, and I have no authentic documentation about it. It could be wrong, and if it is, I'll happily take correction.
Starting with windows 2000, windows tries port 445 first and falls back to 138/139 for backwards compatibility. I'm not sure when samba changed to match.
On Mon, 26 Mar 2007 08:08:10 -0700, Akemi wrote:
This is new(s) to me. Could you give me a pointer for this?
GRC has great descriptions on various ports. You can start here:
* https://www.grc.com/port_445.htm
Miark
On Mon, 26 Mar 2007 16:01:20 -0400, Miark wrote:
On Mon, 26 Mar 2007 08:08:10 -0700, Akemi wrote:
This is new(s) to me. Could you give me a pointer for this?
GRC has great descriptions on various ports. You can start here:
Miark
Thanks for the link. Actually, my inquiry was with regard to the "fall back to smb instead of cifs, and it'll be slower" part. Sorry that I did not make it clear.
Akemi
Miark wrote:
On Mon, 26 Mar 2007 08:08:10 -0700, Akemi wrote:
This is new(s) to me. Could you give me a pointer for this?
GRC has great descriptions on various ports. You can start here:
www.grcsucks.com
John R Pierce wrote:
Miark wrote:
On Mon, 26 Mar 2007 08:08:10 -0700, Akemi wrote:
This is new(s) to me. Could you give me a pointer for this?
GRC has great descriptions on various ports. You can start here:
www.grcsucks.com
I don't like the tone of that place, I was taught to distrust coloured (subjective) language.
I can't confirm what GRC says, but my TCP port 445 is filtered (I checked with my own portscan), and not by me (I log then drop).
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org]On Behalf Of "Petr "Qaxi" Klíma" Sent: Monday, March 26, 2007 2:24 AM To: centos@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
You might have IO issues. Are you sure your disks are not the bottleneck?
J
On Mon, 2007-03-26 at 09:43 -0400, Fred Kienker wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org]On Behalf Of "Petr "Qaxi" Klíma" Sent: Monday, March 26, 2007 2:24 AM To: centos@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
____________________________ John Moylan john.moylan@rte.ie RTE Publishing Tel: 00 353 1 2083564 | www.rte.ie *********************************************************** The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please note that emails to, from and within RTÉ may be subject to the Freedom of Information Act 1997 and may be liable to disclosure. ************************************************************
Fred:
As another list companion has said (Akemi was, I think) you have a very good docs from SAMBA site: http://samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html
Chech every point discussed in this doc and you'll get a service improvement. Sure. You should be especially carefull with sockets options.
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
CFG
You 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)
No no it is file independenet, (jpgs, dvg , xls, doc, mp3 ...)
Rodrigo Barbosa napsal(a):
-----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----- _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, Mar 27, 2007 at 07:43:47AM +0200, "Petr "Qaxi" Klíma" wrote:
No no it is file independenet, (jpgs, dvg , xls, doc, mp3 ...)
Ok. I asked because there is a bug on CentOS 4.4 samba package that can cause this, but it is specific for .xls files (Office 2000 or newer, or was it 2002 ?).
Rodrigo Barbosa napsal(a):
-----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----- _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
--
Petr Klíma
e-mail: qaxi@seznam.cz
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
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.