*BSD News Article 62811


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!news.u.washington.edu!raindrop!unger
From: unger@raindrop.seaslug.org (Thomas Unger)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Help:  Can't fork
Date: Sun, 3 Mar 1996 18:02:08 GMT
Organization: Wet Weather Consulting
Lines: 24
Message-ID: <DnpE3K.Dz.0.rainfall.seaslug.org@raindrop.seaslug.org>
NNTP-Posting-Host: cs106-4.u.washington.edu

So, I've installed freeBSD and configured the X server, and everythings is
working well except for one thing...

I'm limited to about 25 processes running under my user id.  At that point
I start getting "Can't fork, resource temporarily unavailable".  Looks like
a per user limit because I can continue to create more processes under
other user IDs.

I looked at the code for fork().  It returns EAGAIN when the proc
table is full or the user proc limit is reached.  sysclt shows both of
these to be quite a bit higher than 25:

  kern.maxproc = 260
  kern.maxprocperuid = 259

max files is also quite high:

  kern.maxfilesperproc = 520

So, what limit am I running into and how to I increase it?

Thanks,

Tom.