I've been introducing a local company to the benefits of Linux and Samba, things have been going really well until I tried to provide some file sharing for 3 people on the Lan. Setup: RH 5.0 on a P5-133 running a small intranet with DHCP, file server, and local / remote mail services Samba 1.9.18 (not sure of patch level) I setup a directory accessible by only 3 users and copied a 2.4Meg .dbf file into the mapped directory, this only took a few seconds. I tried to open the .dbf file using Excel97 from a users PC, it took > 5 minutes Sharing a Win95 folder containing the same file, and opening it from another users PC took around 15 seconds........ The server load is very light, it's not swapping or disk thrashing and no other users were using Samba during these tests. Why do I have really poor performance using Samba??? Appreciate any thoughts or ideas Graham ------------------------------------------------------- Graham K Dodd Network Systems Analyst DSN: 480-5670 / 5233 Fax : 480-2332 Email: Graham.Dodd@ramstein.af.mil -------------------------------------------------------
hi all I'm having problems with the performance of my Samba server here @ work. I would like to switch all my users (say 20-25) to the Samba box as a centralised file server. However, the response time of the server is too slow for me to justify the switch at present. For example, opening an MS Word document from the server takes about 30-60 secs (for a very moderately sized document). I was hoping that someone might know why the server is so slow, and perhaps have some tips on how to improve its performance. I've included my smb.conf file for reference. Many thanks. ------------------------------------------------- # Samba config file created using SWAT # from [My Desktop Computer's IP] # Date: 2000/05/29 11:49:51 # Global parameters [global] coding system client code page = 850 workgroup = LAW netbios name = LAWPC34 netbios aliases netbios scope server string = %h server (Samba %v) interfaces = eth0 bind interfaces only = No security = DOMAIN encrypt passwords = Yes update encrypted = No allow trusted domains = Yes hosts equiv min password length = 5 map to guest = Never null passwords = Yes password server = [password server's IP is specified here] smb passwd file = /etc/samba/smbpasswd root directory = / passwd program = /bin/passwd passwd chat = *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n * passwd chat debug = Yes username map = /etc/samba/usermap password level = 0 username level = 0 unix password sync = Yes restrict anonymous = No use rhosts = No debug level = 1 syslog = 1 syslog only = No log file max log size = 5000 debug timestamp = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt acl support = Yes announce version = 4.2 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max disk size = 0 max open files = 10000 read prediction = No read size = 16384 shared mem size = 1048576 socket options = TCP_NODELAY stat cache size = 50 load printers = Yes printcap name = /etc/printcap printer driver file = /etc/samba/printers.def strip dot = No character set mangled stack = 50 stat cache = Yes domain groups domain admin group domain guest group domain admin users domain guest users machine password timeout = 604800 add user script delete user script logon script logon path = \\%N\%U\profile logon drive logon home = \\%N\%U domain logons = No os level = 20 lm announce = Auto lm interval = 60 preferred master = No local master = Yes domain master = No browse list = Yes dns proxy = Yes wins proxy = No wins server = [WINS server IP is specified] wins support = No wins hook kernel oplocks = Yes ole locking compatibility = Yes oplock break wait time = 10 smbrun = /usr/bin/smbrun config file auto services lock directory = /var/samba utmp directory wtmp directory utmp hostname = %m utmp consolidate = No default service message command dfree command valid chars remote announce remote browse sync socket address = 0.0.0.0 homedir map time offset = 0 unix realname = No NIS homedir = No source environment panic action comment path revalidate = No username guest account invalid users valid users admin users = mcrobert read list write list force user force group writeable = No create mask = 0744 force create mode = 00 security mask = -1 force security mode = -1 directory mask = 0755 force directory mode = 00 directory security mask = -1 force directory security mode = -1 inherit permissions = No guest only = No guest ok = No only user = No hosts allow hosts deny status = Yes max connections = 0 min print space = 0 strict sync = No sync always = No write cache size = 0 printable = No postscript = No printing = bsd print command = lpr -r -P%p %s lpq command = lpq -P%p lprm command = lprm -P%p %j lppause command lpresume command queuepause command queueresume command printer printer driver = NULL printer driver location default case = lower case sensitive = No preserve case = Yes short preserve case = Yes mangle case = No mangling char = ~ hide dot files = Yes delete veto files = No veto files hide files veto oplock files map system = No map hidden = No map archive = Yes mangled names = Yes mangled map browseable = Yes blocking locks = Yes fake oplocks = No locking = Yes utmp = No oplocks = Yes level2 oplocks = No oplock contention limit = 2 strict locking = No share modes = Yes copy include preexec preexec close = No postexec root preexec root preexec close = No root postexec available = Yes volume fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes dont descend magic script magic output delete readonly = No dos filetimes = No dos filetime resolution = No fake directory create times = No [users] comment = Law Staff Home Directories path = /sdb/users valid users = @lawstaff writeable = Yes ------------------------------------------------- Andrew McRobert LLB B.Sc(Comp. Sci) IT Officer, School of Law MURDOCH UNIVERSITY Ph: 9360 6479 Fax: 9310 6671 e-mail: mcrobert@central.murdoch.edu.au
hi David thanks for your reply. I think you're right, it is a network issue. I've tried running the tests from another computer (same ethernet), and the same documents open in under 3 secs (down from approx 45 secs). Andrew -----Original Message----- From: davecb@scot.Canada.Sun.COM [mailto:davecb@scot.Canada.Sun.COM]On Behalf Of David Collier-Brown Sent: Monday, May 29, 2000 8:35 PM To: Andrew McRobert Subject: Re: Performance problems You wrote: | opening an MS Word document from the server takes about 30-60 secs (for a | very moderately sized document). Something's badly broken! Try copying the sem file with ftp to and from the same machines: you should be within an order of magnitude. Feel free to send mail: I think you have a networking problem, and also have a look at http://www.oreilly.com/catalog/samba/chapter/book/appb_01.html for the simple stuff. -dave -- David Collier-Brown, | Always do right. This will gratify some people 185 Ellerslie Ave., | and astonish the rest. -- Mark Twain Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb@canada.sun.com
Hello, I am having performance issues with Samba version 2.0.6. Server is a FreeBSD 5.0-CURRENT, client is WindowsME. Both use Intel Express Pro 100+ NICs. Connection is 100BaseTX/full duplex, CAT5 crossover. I performed the following tests with a 687MB binary file. o FTP FreeBSD => Windows 190 seconds Windows => FreeBSD 257 seconds o SMB FreeBSD => Windows 225 seconds Windows => FreeBSD 30 minutes (*) This same problem occured while I ran Windows98 on the client side. My Samba has the following configuration related to performance: socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT read raw = yes write raw = yes max xmit = 65536 read size = 16384 shared mem size = 6291456 oplocks = true level2 oplocks = true read prediction = True FreeBSD kernel has the following options as well: options SHMMAX=(SHMMAXPGS*PAGE_SIZE+1) options SHMMAXPGS=2048 # 8192KB of shareable memory I believe this problem is not related to Windows tcp/ip stack, the driver or the cabling, but Samba. riso@daemon$ netstat -i -I fxp0 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll fxp0 1500 <Link#1> 00:a0:c9:d8:0c:30 1461435 0 1024210 0 0 fxp0 1500 10.254.254/30 daemon-lan-gw 1399198 0 991230 0 0 Thanks, Richard
Hi, I am trying to set up share folders on my linux slackware 8 with samba 2.2.0a. I was using two ethernet cards in 10 mb/s with the following configuration and I had no problem. But now, I am using two ethernet cards with 100mb/s connection and I get a lot of problems. I have well read/write access on my share folders ... I can well copy files from my linux server to my windows workstation ... but I have lot of problems by copying files from my windows workstation to my linux server. I always get buffers problems, "connection lost" problems. When I copy one little file, there is no problem and when I copy lot of files, problems are coming up. I tried to put in my config file "socket options = TCP_NODELAY" but it doesn't change anything. [global] workgroup = TEST encrypt passwords = yes [vincent] path = /home/vincent read only = no guest ok = yes Thanks for your help Vincent. -------------- next part -------------- HTML attachment scrubbed and removed
Probably not samba related. Maybe a problem with one of the network cards or with a driver. We have had problems with Accton cards at full duplex in the past. In the meanwhile, the new windows drivers solved the problems but with the old drivers we were forced to use 100/half duplex. Have you tried ftp ? How fast is the transfer with ftp ? -----Oorspronkelijk bericht----- Van: vincent blondel Verzonden: zo 21/04/2002 10:53 Aan: Samba ( List ) CC: Onderwerp: [Samba] performance problems Hi, I am trying to set up share folders on my linux slackware 8 with samba 2.2.0a. I was using two ethernet cards in 10 mb/s with the following configuration and I had no problem. But now, I am using two ethernet cards with 100mb/s connection and I get a lot of problems. I have well read/write access on my share folders ... I can well copy files from my linux server to my windows workstation ... but I have lot of problems by copying files from my windows workstation to my linux server. I always get buffers problems, "connection lost" problems. When I copy one little file, there is no problem and when I copy lot of files, problems are coming up. I tried to put in my config file "socket options TCP_NODELAY" but it doesn't change anything. [global] workgroup = TEST encrypt passwords = yes [vincent] path = /home/vincent read only = no guest ok = yes Thanks for your help Vincent. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 4770 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20020421/1e7fbd56/attachment.bin
Sounds like you have network problems; I'd run a cable tester on the 100Base-TX connections to the switch/hub to see what they look like. 100Base-TX full-duplex doesn't do as much in the way of packet validation as 10Base-T half-duplex. If you're using the same Cat-5 lines for the old 10Base-T and 100Base-TX, they may have been fine at the slower speed, but corrupting the data at the higher speed. Try running a ping test to another wkstn on the network to see if you get a bunch of bad packets-that might highlight which one (or both) of the nics has a bad line. Jim -----Original Message----- From: vincent blondel [mailto:vincent.blondel@chello.be] Sent: Sunday, April 21, 2002 1:54 AM To: Samba ( List ) Subject: [Samba] performance problems Hi, I am trying to set up share folders on my linux slackware 8 with samba 2.2.0a. I was using two ethernet cards in 10 mb/s with the following configuration and I had no problem. But now, I am using two ethernet cards with 100mb/s connection and I get a lot of problems. I have well read/write access on my share folders ... I can well copy files from my linux server to my windows workstation ... but I have lot of problems by copying files from my windows workstation to my linux server. I always get buffers problems, "connection lost" problems. When I copy one little file, there is no problem and when I copy lot of files, problems are coming up. I tried to put in my config file "socket options = TCP_NODELAY" but it doesn't change anything. [global] workgroup = TEST encrypt passwords = yes [vincent] path = /home/vincent read only = no guest ok = yes Thanks for your help Vincent.