From owner-freebsd-arch Sat Dec 8 14:57: 8 2001 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id D9C5337B405; Sat, 8 Dec 2001 14:57:03 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id fB8MuwL19001; Sat, 8 Dec 2001 14:56:58 -0800 (PST) (envelope-from dillon) Date: Sat, 8 Dec 2001 14:56:58 -0800 (PST) From: Matthew Dillon Message-Id: <200112082256.fB8MuwL19001@apollo.backplane.com> To: Kirk McKusick Cc: Robert Watson , arch@FreeBSD.ORG Subject: Re: Default value for maxusers References: <200112071957.fB7Jvef29774@beastie.mckusick.com> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :I believe that we should do what BSD/OS did years ago. They default :maxusers to 0 which tells the system to size it at boot time based :on the amount of memory available on the system. Small memory machines :end up with a small value of maxusers and large memory machines ends :up with a large value of maxusers. In the rare case where the default :is wrong, the system administrator can set it to some non-zero value :which the kernel then uses. OK, how about this. Right now in GENERIC maxusers is set to 32. Lets make this the minimum. For a maximum (for the auto-sizing) I recommend a maxusers value of 512 @ 512M of physical ram. e.g. set maxusers to physical ram / one-megabyte, capped at 512 and never less then 32. The auto-maxusers would only apply if maxusers is set to 0 in the config. That's about 60 seconds worth of work in -stable and -current. Any objections? No?... Ok, I'll commit it today w/ a 1-week MFC :-) -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message