From owner-freebsd-hackers Tue Feb 24 13:43:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16325 for freebsd-hackers-outgoing; Tue, 24 Feb 1998 13:43:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from amsoft.ru (amsoft.ru [194.87.86.241]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16198 for ; Tue, 24 Feb 1998 13:41:10 -0800 (PST) (envelope-from am@amsoft.ru) Received: (from am@localhost) by amsoft.ru (8.8.8/amsoft/1.0) id AAA01323 for freebsd-hackers@freebsd.org; Wed, 25 Feb 1998 00:36:10 +0300 (MSK) From: Andrew Maltsev Message-Id: <199802242136.AAA01323@amsoft.ru> Subject: simple way to alter maxproc/maxfiles To: freebsd-hackers@FreeBSD.ORG Date: Wed, 25 Feb 1998 00:36:07 +0300 (MSK) Organization: AM'soft X-Location: Oryol (http://www.oryol.ru/), Russia X-Phone: +7 086 229 9988 X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What about adding some options to /etc/rc.conf on a matter of subj? I think it would be useful.. It may be done as a set of #... # Maximum number of processes in system (number or NO) # kern_maxproc=NO #... or as a more general interface like # Kernel tuning. Place a list of flags to sysctl(8) you want to set here. # kernel_tune="maxproc maxfiles ip_forw" # kernel_tune_maxproc="kern.maxproc=800" kernel_tune_maxfiles="kern.maxfiles=2000" kernel_tune_ip_forw="net.inet.ip.forwarding=1" I like the first way more. Because it's simplier and it's not a problem to add whatever specific tuning required to some /usr/local/etc/rc.d/...sh for more advanced user anyway. For generic use a set of kern.{maxproc,maxfiles,maxfilesperproc} is enough IMHO. What do you think? Should I send my rc/rc.conf patches to be reviewed? Andrew. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message