*BSD News Article 67913


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!agate!howland.reston.ans.net!tank.news.pipex.net!pipex!usenet.eel.ufl.edu!news.mathworks.com!fu-berlin.de!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Lack of processes?
Date: 7 May 1996 20:40:35 GMT
Organization: Private BSD site, Dresden
Lines: 32
Message-ID: <4mocg3$aut@uriah.heep.sax.de>
References: <4mj9kc$a2a@tatooine.vader.org>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

chris@vader.org (Chris Dabrowski) wrote:

> Does anyone know what could be causing these error messages:
> 
> May  5 05:31:09 tatooine innd: ME cant spawn /news/bin/control/newgroup
> for control/newgroup/17509 Resource temporarily unavailable
> May  5 05:31:09 tatooine innd: ME cant fork /news/bin/control/newgroup
> Resource temporarily unavailable
> May  5 05:31:09 tatooine innd: ME cant spawn /news/bin/control/newgroup
> for control/newgroup/17510 Resource temporarily unavailable
> May  5 05:31:09 tatooine innd: ME cant fork /news/bin/control/newgroup
> Resource temporarily unavailable

Your default resource limits are unsufficient.  Normally, one would
adjust them in the login shell.  For daemons, it's slightly more
complicated.  If this is a newer (newer than 2.1R) system, /bin/sh has
a ``ulimit'' builtin where you can set ``ulimit -S -u <number>'' in
order to bump it, e.g. in your /etc/rc.local shell script.  (The value
is inherited to the spawned children.)

For an earlier system, you could either wrap your daemon startup with
a csh wrapper, and use csh's ``limit'' builtin, or i think there used
to be some knob that can be tuned in the system config file.... ah.
<sys/syslimits.h> #define's CHILD_MAX to 40.  It's protected by an
#ifndef, so you can override it from your config file.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)