From owner-freebsd-hackers Tue Mar 30 0:32:39 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from citadel.cdsec.com (citadel.cdsec.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id D2D09159EF for ; Tue, 30 Mar 1999 00:32:35 -0800 (PST) (envelope-from gram@cdsec.com) Received: (from nobody@localhost) by citadel.cdsec.com (8.8.8/8.6.9) id KAA09329; Tue, 30 Mar 1999 10:31:37 +0200 (SAST) Received: by citadel via recvmail id 9273; Tue Mar 30 10:31:07 1999 Message-ID: <37008BE3.C4AC882B@cdsec.com> Date: Tue, 30 Mar 1999 10:31:31 +0200 From: Graham Wheeler X-Mailer: Mozilla 4.08 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: Mike Smith Cc: hackers@freebsd.org Subject: Re: Changing param.c for different environments References: <199903291953.LAA00452@dingo.cdrom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > FWIW, I am slowly pulling the items specified in param.c into such a > shape that they can be individually tuned (from the bootloader). > > This is, unfortunately, going to be a 3+ -ism only. Still, that's good news (we won't use 2.2.7 for ever). It would still be useful to have some real world examples from big sites. For example, the Walnut Creek FTP server itself... And does anyone know how these parameters are tuned in NetBSD and OpenBSD? Are they also statically predefined before kernel compilation, or tuneable at boot? And are they a function of MAXUSERS, or a more complex function of MAXUSERS, available RAM, etc? > > The param.c file in /usr/src/sys/conf specifies a few linear > > dependencies between the configured MAXUSERS and the amount > > of mbuf space, timer callout table sizes, etc. It seems to me > > that this may be fine in many cases, but not necessarily > > appropriate when one is (for example) putting together a > > big machine dedicated to being a web server (say). > > > > How about having a config file variable specifying the type of use > > that the machine is intended for - e.g. dedicated web/file server, > > multi-user machine for software development, multi-user machine > > for mail serving, etc, and using this variable to adjust the > > values in param.c? Also, wouldn't it be better to make some of the > > values dependent on the amount of RAM, rather than fixed? Is this > > possible by tweaking param.c in an elementary fashion? -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)423-6065/6/7 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Internet/Intranet Network Specialists Data Security Products WWW: http://www.cdsec.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message