Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Mar 1996 09:08:57 +0000
From:      Neil Brendan Clark <nbc@vulture.dmem.strath.ac.uk>
To:        Christian Kratzer <ck@toplink.net>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Limti of processes per user 
Message-ID:  <199603050909.JAA11394@vulture.dmem.strath.ac.uk>
In-Reply-To: Your message of "Tue, 05 Mar 1996 08:35:27 %2B0100." <199603050735.IAA07584@toplink1.toplink.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

Christian Kratzer writes:
>
>is there a hardcoded limit on the number of simultaneous processes
>or shells for a user.  I often run into "cannot fork" errors when I 
>work with several xterms on multiple desktops on FreeBSD 2.0r and 2.1r.

I found a similar problem - if you are using csh or tcsh, it's easy to
resolve. It seems that the default maximum number of processes allowed
by csh is 40 - type "limit" and see the csh man page for more details.
Something along the lines of "limit maxproc 100" in your or the system wide
.cshrc should solve your woes.

>Do I have to recompile the kernel to raise the limit or is there some
>other way (perhaps on a per user basis) ?

The above should work, but if you have a heavily loaded system you may still
run into problems. In this case, increase the value of "maxusers" in the kernel
config file and you'll be sorted. Check out the FreeBSD handbook to see the
exact effect this has on the number of allowed processes (I can't remember
the formula).

--------
Neil Clark
Transparent Telepresence Group
http://telepresence.dmem.strath.ac.uk/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603050909.JAA11394>