From owner-freebsd-questions Mon Dec 31 6:17:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.inoc.net (mx1.inoc.net [64.246.131.30]) by hub.freebsd.org (Postfix) with ESMTP id 4878B37B423 for ; Mon, 31 Dec 2001 06:17:50 -0800 (PST) Received: from nimbus (devnull.z1.inoc.net [10.1.0.111]) by mx1.inoc.net (Vircom SMTPRS 5.1.202) with ESMTP id for ; Mon, 31 Dec 2001 09:13:05 -0500 Reply-To: From: "Robert Blayzor" To: Subject: Samba on FreeBSD 4.4+ Date: Mon, 31 Dec 2001 09:17:49 -0500 Organization: INOC, LLC Message-ID: <006b01c19205$ed6bc7c0$6f00000a@z0.inoc.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm running into a problem with Samba and memory allocation. I have a box that is running FreeBSD-4.5PRE, 2 CPU's and a Gig of RAM. The box is nothing more than a SMB and NFS file server. I have the following kernel options set: maxusers 256 options SYSVSHM #SYSV-style shared memory options NMBCLUSTERS=16384 options QUOTA options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O I am contemplating adding: options MAXDSIZ="(256*1024*1024)" # Is the maximum limit options DFLDSIZ="(256*1024*1024)" # Is the default value for the limit But I don't think that is the problem since the actual SMB processes never reach over 4MB in size. I installed the port for Samba 2.2.2 (from ports-stable) and I'm seeing the smb logs littered with the following, and then the processes eventually coring out. Whe this happenes the box has TONs of free memory available (>500M)... I read BUGS.txt and found nothing. [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] passdb/passdb.c:pdb_init_sam(115) pdb_init_sam: error while allocating memory [2001/12/31 05:20:11, 0] lib/util.c:Realloc(654) Memory allocation error: failed to expand to 4096 bytes [2001/12/31 05:20:11, 0] lib/fault.c:fault_report(40) =============================================================== [2001/12/31 05:20:11, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 99496 (2.2.2) Please read the file BUGS.txt in the distribution [2001/12/31 05:20:11, 0] lib/fault.c:fault_report(43) =============================================================== [2001/12/31 05:20:11, 0] lib/util.c:smb_panic(1055) PANIC: internal error -- Robert Blayzor, BOFH INOC, LLC rblayzor@inoc.net Memory dump: Amnesia... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message