*BSD News Article 49577


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!lll-winken.llnl.gov!noc.near.net!news.mathworks.com!gatech!newsfeed.internetmci.com!news.sprintlink.net!in1.uu.net!nctuccca.edu.tw!news.cc.nctu.edu.tw!news.sinica!taob
From: taob@gate.sinica.edu.tw (Brian Tao)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Limit to max no processes per user?
Date: 23 Aug 1995 00:51:59 GMT
Organization: Institute of Biomedical Sciences, Academia Sinica
Lines: 19
Message-ID: <41du3f$g12@gate.sinica.edu.tw>
References: <DDIBu9.9J0@seeware.DIALix.oz.au> <416jal$khn@gate.sinica.edu.tw> <419ng1$qeq@bonnie.tcd-dresden.de> <41bojq$r4v@oscar.cc.gatech.edu>
NNTP-Posting-Host: 140.109.40.248

In article <41bojq$r4v@oscar.cc.gatech.edu>, Brent Paulson <paulson@cc.gatech.edu> wrote:
>
>     It's a kernel thing.  It's located in /usr/src/sys/conf/param.c
>
>excerpt from param.c:
>
>#define NPROC (20 + 16 * MAXUSERS)
>int     maxproc = NPROC;                  /* maximum # of processes */
>int     maxprocperuid = NPROC-1;          /* maximum # of processes per user */
>int     maxfiles = NPROC*2;              /* system wide open files limit */

    This is the absolute process limit though.  When I start up tcsh,
I am given 40 processes by default.  When I do an "unlimit", then I
get 179 processes (20+16*10-1).  I was wondering about the default
limit, which sounds like a shell thing (although I only see a single
setrlimit() in the csh code).
-- 
Brian ("Though this be madness, yet there is method in't") Tao
taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org