From owner-freebsd-questions Mon Jan 15 14:27:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id EE2CB37B400 for ; Mon, 15 Jan 2001 14:27:31 -0800 (PST) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id XAA58248 for ; Mon, 15 Jan 2001 23:27:31 +0100 (CET) (envelope-from roelof@nisser.com) Message-ID: <3A637953.F55908FB@nisser.com> Date: Mon, 15 Jan 2001 23:27:31 +0100 From: Roelof Osinga Organization: Nisser - Nr. 1 in Veiligheid X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: Re: increasing max openfiles References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Rick Jansen wrote: > > How do i compile my kernel with an increased limit of open files? > I found FD_SETSIZE, but i don't know whether this is what i need, or how to > use it. Probably "options FD_SETSIZE=x", but i don't know. > 1024 openfiles isn't enough :/ Well, I've done the following adjustments in the NISSER kernel I'm building: maxusers 512 # bumping the undocumented feature: options NMBCLUSTERS=8192 # was 1024 # default and maximum segment sizes options MAXDSIZ="(256*1024*1024)" options DFLDSIZ="(128*1024*1024)" # was also 256 and various others of course . All in all, resulting in: nl:/usr/X11R6# sysctl -a | grep maxfiles kern.maxfiles: 16424 kern.maxfilesperproc: 16424 Would that do the trick? Roelof -- Home is where the (@) http://eboa.com/ is. Nisser home -- http://www.Nisser.com/ Beveiligingsverwijzingen -- http://Nisser.com/links.htm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message