From owner-freebsd-ports Wed Sep 12 14:52:45 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 08E4137B40A for ; Wed, 12 Sep 2001 14:52:40 -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 f8CLqY421252 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO) for ; Wed, 12 Sep 2001 22:52:38 +0100 (BST) (envelope-from ianjhart@ntlworld.com) Message-ID: <3B9FD922.2203878C@ntlworld.com> Date: Wed, 12 Sep 2001 22:52:34 +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: Re: samba PDC / kernel tuning References: <3B9D0F47.7F15113A@ntlworld.com> 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 Replies to self - how sad. ian j hart wrote: > > 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. It looks like it _was_ the MAXDSIZ, DFLDSIZ options, which default to 128Mb. I guess I didn't load the server hard enough when I tested this. Now I have a different problem - see separate post. > > 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 -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message