Date: Sat, 8 Dec 2001 14:56:58 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Kirk McKusick <mckusick@mckusick.com> Cc: Robert Watson <rwatson@FreeBSD.ORG>, arch@FreeBSD.ORG Subject: Re: Default value for maxusers Message-ID: <200112082256.fB8MuwL19001@apollo.backplane.com> References: <200112071957.fB7Jvef29774@beastie.mckusick.com>
next in thread | previous in thread | raw e-mail | index | archive | help
: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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112082256.fB8MuwL19001>