From owner-freebsd-stable Sat Sep 5 10:20:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17819 for freebsd-stable-outgoing; Sat, 5 Sep 1998 10:20:35 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from pop.uniserve.com (pop.uniserve.com [204.244.156.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA17792 for ; Sat, 5 Sep 1998 10:20:31 -0700 (PDT) (envelope-from tom@uniserve.com) Received: from shell.uniserve.ca [204.244.186.218] by pop.uniserve.com with smtp (Exim 1.82 #4) id 0zFLzJ-0007Lj-00; Sat, 5 Sep 1998 10:19:01 -0700 Date: Sat, 5 Sep 1998 10:18:59 -0700 (PDT) From: Tom X-Sender: tom@shell.uniserve.ca To: Andrew McNaughton cc: The Hermit Hacker , Bob K , The Lab , freebsd-stable@FreeBSD.ORG Subject: Re: too many open files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 6 Sep 1998, Andrew McNaughton wrote: > On Fri, 4 Sep 1998, Tom wrote: > > > > One requires a rebuild/reboot of the system...one doesn't. IN a > > > production environment, /etc/login.conf is about the only choice... > > > > Except you are talking about two different things. MAXUSERS controls > > the system wide file table. /etc/login.conf controls per-user file > > limits. You can increase the limits in /etc/login.conf all you want, but > > if the system wide table is full, you will still get "too many open files" > > errors. > > > > Tom > > between sysctl and login.conf, either can be set without a rebuild. > references to MAXUSERS seem to suggest that it affects a whole range of > values. Some of it can be overridden via sysctl. Can anyone clarify what Yes. > if anything can't? sysctl and ulimit have sorted out my recent problems, Number of mbufs (netstat -m), but the mbufs can be increased outside MAXUSERS too. > with numbers of processes and files, but perhaps there's other reasons > why I should increase MAXUSERS? > > I'm currently running a busy webserver with MAXUSERS=64. Apache docs > suggest MAXUSERS=256. > > Andrew McNaughton Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message