Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2000 13:33:32 -0500 (EST)
From:      Mike Squires <mikes@sir-alan.chem.indiana.edu>
To:        samba@samba.org
Cc:        ports@freebsd.org
Subject:   FreeBSD 3.4-RELEASE/samba 2.0.6 problems
Message-ID:  <200002091833.NAA61938@sir-alan.chem.indiana.edu>
In-Reply-To: <20000209131359Z13353823-24228%2B50426@samba.anu.edu.au> from "samba@samba.org" at "Feb 10, 2000 00:13:58 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Synopsis:	samba 2.0.6 running under FreeBSD 3.3-RELEASE is much faster
		than the same running under FreeBSD 3.4-RELEASE, even after
		replacing the 3.4-RELEASE kernel with the 3.4-STABLE kernel.

		(This has been reported to FreeBSD GNATS as "kern/16605")


I have 2.0.6 running under FreeBSD using the following smb.conf:

[global]

   workgroup = <NT Domain>
   server string = Samba Server
   load printers = yes
   log level = 3
   debug level = 3 
   log file = /var/log/log.%m
   max log size = 5000
   security = domain
   password server = <NT Domain PDC>
  encrypt passwords = yes
#per www.freibergnet.de (Martin Welk)
#  following is used under 3.3-RELEASE
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=262144 SO_RCVBUF=262144
#  following is used under 3.3-RELEASE
#  socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=132072 SO_RCVBUF=132072
   os level = 0
   wins server = 129.79.1.200
   dns proxy = no 
#============================ Share Definitions ==============================
   (rest deleted, not an issue)


System is a dual PPro200/512, Everex PO-6200/EVX-3, 64MB, 4 ST410800WD on
a Symbios wide diff controller, CD on Symbios SE narrow controller, Intel
Pro100B NIC.

For security reasons I'm moving the 3.4-RELEASE (beginning to think I should
finally learn CVS and run -STABLE).  The 3.4-RELEASE system is the same,
except the SCSI controllers are Adaptec 2944UW/2940U.


Problem 1:  With any combination of kernels compiled from 3.4-RELEASE sources
	    and 2.0.6 taken from the binary distribution, compiled from ports,
            compiled from sources directly, samba can't allocate buffers:


  ............, 0] lib/util_sock.c:set_socket_options(151)
  Failed to set socket option SO_SNDBUF (Error No buffer space available)
  ............, 0] lib/util_sock.c:set_socket_options(151)
  Failed to set socket option SO_RCVBUF (Error No buffer space available)

Fix:	    Get the 3.4-STABLE sources and compile a new kernel.


Problem 2:  After fixing the buffer problem throughput is usable, but
            slow.  The 3.3-RELEASE box holds a steady 2MB/sec for large
	    files (100Mbit connection to NT 4 workstation client) but the
	    3.4-RELEASE/STABLE system starts very high, 3-4 MB/sec, and
	    declines rapidly to a maximum of about 500K/sec.  The effect
	    of different buffer sizes is as follows:

	    Size			Speed in K/sec, 32MB file
	    of SO_[RCV,SND]BUF		Written by TESTNET, 500 65K blocks

	    16384			50K/sec (3.4-STABLE)
	    32768			97K/sec (3.4-STABLE)
	    65535			450K/sec (3.4-STABLE)
	    131072			410K/sec (3.4-STABLE)
	    262144			1980K/sec (3.3-RELEASE)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002091833.NAA61938>