From owner-freebsd-questions Sat Nov 25 4:38:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mgw1.MEIway.com (mgw1.meiway.com [212.73.210.75]) by hub.freebsd.org (Postfix) with ESMTP id 212D937B4E5 for ; Sat, 25 Nov 2000 04:38:14 -0800 (PST) Received: from sv.Go2France.com (sv.meiway.com [212.73.210.79]) by mgw1.MEIway.com (Postfix Relay Hub) with ESMTP id 4F1946A907 for ; Sat, 25 Nov 2000 13:38:07 +0100 (CET) Message-Id: <5.0.2.1.0.20001125133034.02ae9580@mail.Go2France.com> X-Sender: lconrad%Go2France.com@mail.Go2France.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sat, 25 Nov 2000 13:37:04 +0100 To: freebsd-questions@freebsd.org From: Len Conrad Subject: Re: max files per process and system? In-Reply-To: <3A1FA054.CA427648@chat.ru> References: <20001121180434.1A4CF8C4A@kendra.ne.mediaone.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Drew Derbyshire wrote: > > > What's the max files (TCP connections) one can configure per > > (non-root) user and per system? > > > > I'm not looking for the defaults, I'm looking for the upper limits. > > > > Does it require a kernel rebuilt? > > > >Yes. That needs kernel recompiled. >In reality max socket connections (tcp or unix no matter) per process >and per system are usually the same number and depend on maxusers >variable in the kernel configuration. I was having trouble with FreeBSD 4.1.1 and a postfix gateway/hub complaining with "Fatal: too many files open ..." and the customer didn't want to do a custom kernel because he had not installed kernel sources. By using "sysctl -w" and the default kernel only, were able to increase to kern.maxfiles: 8192 kern.maxfilesperproc: 4096 and we eliminated the postfix complaints. The customer also added 128 megs RAM (378 total) because postfix was sometimes running 200+ SMTP processes and 70+ SMTPD processes. Len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message