Subject: Re: /bin/sh returns Out of file descriptors
To: Jeremy C. Reed <reed@reedmedia.net>
From: GuRU <guru@nubisci.net>
List: current-users
Date: 08/21/2002 14:38:53
Out of da blue Jeremy C. Reed aka (reed@reedmedia.net) said:
> On Wed, 21 Aug 2002, GuRU wrote:
> 
> > ganja:root# /etc/rc.d/named reload
> > .: Out of file descriptors
> >
> > I'm curious as to what would cause this, as all scripts run fine on boot up.
> 
> How many file descriptors does your system have?
> 
>  fstat | wc -l
ganja:guru% fstat|wc -l
     571

> 
>  pstat -T
ganja:guru% pstat -T
211/8192 files
   4398 vnodes
   0M/384M swap space

> 
>  sysctl kern.maxfiles
ganja:guru% sysctl kern.maxfiles
kern.maxfiles = 8192

and kern.maxfiles was the first thing i changed when i encountered the problem

> 
>    Jeremy C. Reed
>    http://bsd.reedmedia.net/
> 
> p.s. Why does fstat and pstat have different amounts?
> 
>  $ echo $(($(fstat | wc -l)-1))
>  609
>  $ pstat -T | head -1
>  318/1772 files

#;@0
-- 
GuRU <guru@nubisci.net>               (,.)
http://www.nubisci.net/             \\\00 )
Driven by NetBSD                      \= )
                                      cc_|\_,^