[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenBSD and Apache




This is due to the way OpenBSD allocates vnodes. There is a number in the
kernel called desiredvnodes, which is the number of vnodes that you can
have open simultaneously.

For the default configuration, desiredvnodes = 1000. The quantity is determined
in /usr/src/sys/arch/<arch>/compile/<build>/param.c.

OpenBSD will allocate up to 2*desiredvnodes (or 2000) before it signals that
it's vnode table is full.

Recompile the kernel, raising desiredvnodes or figure out why you have
1000 files open simultaneously and try to reduce that.

-Costa
csapuntz@mit.edu

Justin Grudzien <mailer@shaggy.xsite.net> writes:

> I am currently running OpenBSD 2.1 with apache 1.2 and am getting a weird
> error.
> 
> [Wed Dec  3 11:39:16 1997] access to\
> /usr/ns-home/docs/literary-liaisons.com/cgi-bin/contact.cgi failed for\
> bryan.alphachannel.com, reason: couldn't spawn child process
> 
> Now there are over 2000 file descriptors open as reported to me by fstat
> so I am wondering if I have hit some kind of limit. Now this happens
> everytime a cgi-script is run. If I reboot the file descriptor count goes
> down to like 1000 for an hour. Now I have submitted this to the apache
> people but I wanted to see if anyone here could answer some questions and
> give me some ideas.
> 
> This is what I have done. I have recompiled the kernel a dozen time
> changing the maxusers setting and the various other setting that have to
> do with maxusers. I do not speciffically see a # of file descriptors
> limit, but if it has anything to do with maxusers, like FreeBSD then I
> have changed all I can. 
> 
> ANy info would be appreciated because I would hate to have to swich from
> OpenBSD to some other lame unix.
> 	Justin
> 
> ********************************************************
> * Justin Grudzien 		grudzien@razer.org     *
> * Alpha Channel LLC	  Phone:(312)803-7000 ext.238  *
> * Systems Administrator	    Fax:(312)803-7050	       *
> ********************************************************
s