From owner-freebsd-questions Wed Oct 14 05:04:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA15731 for freebsd-questions-outgoing; Wed, 14 Oct 1998 05:04:04 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA15703 for ; Wed, 14 Oct 1998 05:03:59 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.05 #3) id 0zTPQS-00069f-00; Wed, 14 Oct 1998 12:49:09 +0100 Date: Wed, 14 Oct 1998 12:49:08 +0100 From: Ben Smithurst To: Evren Yurtesen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: file descriptors Message-ID: <19981014124908.A23594@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.11i (FreeBSD 3.0-BETA i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Evren Yurtesen wrote: > if I increase the number of file descriptors > by increasing the maxusers and recompile the kernel, > would not it be slow because maxusers effects more than > just file descriptors? I am using squid NOVM on my freebsd > box and it sometimes needs so many file descriptors, > but I do not have lots of processes running (maybe 30) > is there any other way to increase file descriptor s? I don't know how much increasing MAXUSERS slows the system down, but anyway... Look in /sys/conf/param.c, I think: #define NPROC (20 + 16 * MAXUSERS) #define MAXFILES (NPROC*2) (where MAXUSERS is taken from your kernel config.) I can't see anything stopping you from hardcoding those, eg #define NPROC 100 #define MAXFILES 5000 or whatever you may want. Whether that's a good idea or not, someone else who knows more about FreeBSD than I do can comment if they wish. Whether it will even work I don't know ... :-) -- Ben Smithurst ben@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message