Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 1998 12:49:08 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: file descriptors
Message-ID:  <19981014124908.A23594@scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.3.96.981014071421.28396F-100000@finland.ispro.net.tr>
References:  <Pine.BSF.3.96.981014071421.28396F-100000@finland.ispro.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981014124908.A23594>