https://bugzilla.novell.com/show_bug.cgi?id=721674
https://bugzilla.novell.com/show_bug.cgi?id=721674#c0
Summary: Very Slow Samba reads from Linux based clients Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i586 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: s91066@yahoo.gr QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: ---
User-Agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.9.168 Version/11.50
LAN: 100Mbit full duplex on all nodes. Switch: Unmanaged 100Mbit.
File server with Kernel 2.6.37.6-0.5-default Samba 3.5.7:
samba-client-3.5.7-3.5.1.i586 samba-winbind-3.5.7-3.5.1.i586 samba-doc-3.5.7-3.5.1.noarch samba-krb-printing-3.5.7-3.5.1.i586 samba-3.5.7-3.5.1.i586 yast2-samba-client-2.20.2-3.1.noarch yast2-samba-server-2.20.2-3.1.noarch
[global] dos charset = CP737 workgroup = HOME netbios name = Server realm = HOME map to guest = Bad User username map = /etc/samba/smbusers client NTLMv2 auth = Yes log level = 1 syslog = 0 name resolve order = bcast host lmhosts wins time server = Yes deadtime = 15 # socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=32768 SO_KEEPALIVE # socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 socket options = TCP_NODELAY printcap name = cups add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ logon path = \%L\profiles.msprofiles%a logon drive = P: logon home = \%L%U.msprofiles\9x domain logons = Yes os level = 64 preferred master = Yes local master = yes domain master = Yes wins support = Yes cups options = raw level2 oplocks = No
Clients: Windows XP SP3 (not a member of the domain), ATA 5, 5400rpm disk openSUSE 11.1, 2.6.27.56-0.1-default, 64bit, SATA I disks, 7200rpm openSUSE 11.4, 2.6.37.6-0.5-default, 32bit, ATA 5, 5400 disks BusyBox v1.1.3, kernel: Linux Venus 2.6.12.6-VENUS, mips (E-Great Eg1-R1), USB 2, external HDD.
All Linux clients use cifs and mounts to /mnt/smb directory, except of the busybox, which mounts the SMB shares on another directory. All openSUSE mounts from fstab with options:
Share 1: rw,auto,credentials=/etc/samba/crdrs,iocharset=utf8,rsize=130048 Share 2: rw,auto,credentials=/etc/samba/crdrs,iocharset=utf8
Write TO server is acceptable (7.5MB/s, with a max of 8Mb/sec). It is slower than the theoretical performance of the 100Mbit network, but still it's OK.
With Linux clients I have a max of 2Mb/s (Megabytes/seconds) On WinXP, I don't know the speed, but it is definately faster, much faster (copy of a 700MB iso in about 2mins).
In order to ensure that I do not use disk cache, I have the same iso copies 14 times in the HD. (01-14).
It's not a LAN issue, because: * iperf reports from 90mbps to 95mbps (bi-directionally) * reads from shares via fish/scp are acceptable (7,0Mb/sec and 7.5Mb/s respectively).
Increasing smb log level, resulted to no helpful messages.
I was sure that the server was performing better, much better actually (7.5-8Mb/s), when I used the openSUSE 11.3.
So, at first I downgraded kernel. No change. Speeds were slow (1,5Mb/sec) Then, I disabled the ipv6 (from boot options). Again, speeds were slow (1,5Mb/s)
Then, I restored the original 11.4 samba packages:
Kernel: Linux 2.6.37.1-1.2-default Samba: samba-3.5.7-1.17.1.i586 samba-client-3.5.7-1.17.1.i586 samba-doc-3.5.7-3.5.1.noarch samba-krb-printing-3.5.7-3.5.1.i586 yast2-samba-client-2.20.2-3.1.noarch yast2-samba-server-2.20.2-3.1.noarch samba-winbind-3.5.7-1.17.1.i586
Now, I have a read speed of 5Mb/s. Slower, but at least I can work, somehow.
Reproducible: Always
Steps to Reproduce: 1. Install openSUSE 11.4 as a file server with the attached smb.conf file 2. Install the kernel and samba versions mentioned. Share a directory with large files (eg isos) and guest permissions. 3. Use a Windows XP client and any openSUSE client.
Expected Results: Samba should read/write at the same speed.
https://bugzilla.novell.com/show_bug.cgi?id=721674
https://bugzilla.novell.com/show_bug.cgi?id=721674#c1
David Disseldorp ddiss@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |ddiss@suse.com InfoProvider| |s91066@yahoo.gr
--- Comment #1 from David Disseldorp ddiss@suse.com 2011-11-30 15:14:57 UTC --- To ensure oplocks are not responsible here, could you please retest with only a single client connected to the share. Remove the "level2 oplocks = No" smb.conf option.
Also, make sure the Samba version is the only variable between test runs. i.e. base OS, client, server, network and disk topologies are identical.
https://bugzilla.novell.com/show_bug.cgi?id=721674
https://bugzilla.novell.com/show_bug.cgi?id=721674#c2
David Disseldorp ddiss@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|s91066@yahoo.gr | Resolution| |NORESPONSE
--- Comment #2 from David Disseldorp ddiss@suse.com 2012-01-02 10:53:58 UTC --- Closing, please reopen if a clear test case exists with oplocks disabled.