Re: running out of file descriptors on freebsd

From: James Porter <webmaster@dont-contact.us>
Date: Wed, 22 Sep 1999 23:36:17 -0400

>squid-2.2.STABLE3
>FreeBSD 3.2
>maxusers = 64
>

I'm running 3.2, 2.2-STABLE3, 384 megs of RAM, P233MMX, UW SCSI's for drives.

You got to change

/sys/types.h

#define FD_SETSIZE 256

to

#define FD_SETSIZE 1024

First. Before doing your kernel recompile. Now that by the way is the MAX
as they have hard coded a comparison that wont let you do more without
crashing.
I would also take your kernel maxusers to 256. I run 512 myself because I
wanted as much MBUF space as possible. With my settings you get 16,384
file descriptors and 8704 MBUFs.
Received on Wed Sep 22 1999 - 21:45:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:32 MST