From owner-freebsd-ports Mon Sep 10 12: 6:58 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pc1-cove4-0-cust214.bir.cable.ntl.com (pc1-cove4-0-cust214.bir.cable.ntl.com [213.105.93.214]) by hub.freebsd.org (Postfix) with ESMTP id 7AAF237B406 for ; Mon, 10 Sep 2001 12:06:51 -0700 (PDT) Received: from ntlworld.com (alpha.private [192.168.0.2]) (authenticated) by pc1-cove4-0-cust214.bir.cable.ntl.com (8.11.3/8.11.3) with ESMTP id f8AJ6l415015 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO) for ; Mon, 10 Sep 2001 20:06:49 +0100 (BST) (envelope-from ianjhart@ntlworld.com) Message-ID: <3B9D0F47.7F15113A@ntlworld.com> Date: Mon, 10 Sep 2001 20:06:47 +0100 From: ian j hart X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: ports@FreeBSD.ORG Subject: samba PDC / kernel tuning Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Can anyone running samba (PDC) with more than a token number of users help me? Something is limiting network connections/open files/ number of processes/size of processes/something else I didn't think of. The result is that any more than a dozen or so logins at the same time causes the connections to fail. Clients hang at the login batch script, or when reading shares. I assume I'm hitting one of the kernel limits, but which one? I have 512Mb RAM, maxusers 256. I've tried adding 10000 to both kern.maxfiles and kern.maxfilesperproc just in case, even though I seem to be short of the limits (8232). kern.ipc.nmbufs is 18432. I also tried MAXDSIZ and DFLDSIZ set to 512*1024*1024, no joy. I revoked this as it didn't fix and ran slower. I've been looking for tools to help and the best I could come up with is fstat | wc -l netstat -m lsof doesn't seem any better than fstat in this case. Nothing in the logs either (log level 10). (I was getting file table full, but that was with 32 users). I did have every smbd process core, but that was when I stopped samba (oops) - so I don't think that indicates any problem with the program. There is something like 380Mb free so it looks to me like samba cannot 'grow' to accommodate all the connections Please, please, please somebody help me. If I cannot fix this soon (tomorrow!) I'll be forced to install NT . IIRC 4.4-RC from Thursday, samba 2.2.1a_1 -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message