Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jan 2000 21:34:26 -0500
From:      Laurence Berland <stuyman@confusion.net>
Cc:        Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>, freebsd-questions@FreeBSD.ORG
Subject:   Re: max user processes
Message-ID:  <3873FF32.7F57B290@confusion.net>
References:  <84uuml$vuk$1@atlantis.rz.tu-clausthal.de> <200001051630.RAA36713@dorifer.heim3.tu-clausthal.de> <20000105214440.B14126@strontium.scientia.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
What's the best way to set up per user limits on this sort of thing
other than the default (maxproc-1)?

Ben Smithurst wrote:
> 
> Oliver Fromme wrote:
> 
> > Alexey N. Dokuchaev <danfe@inet.ssc.nsu.ru> wrote in list.freebsd-questions:
> >  > Now, I issue 'sysctl kern.maxproc', which yields 'kern.maxproc: 276'
> >  > Cool so far.
> >  > But when I do 'ulimit -a|grep proc' gives me 'max user processes 275'
> >  >
> >  > Any comments?
> >
> > ``ulimit'' is a builtin command of your shell.  You didn't say
> > which shell you're using, so I can only guess that it reserves
> > one process for some reason (maybe for itself?).  Maybe having
> > a look at the source code might be enlightening.
> 
> I think it's more likely getting the kern.maxprocperuid sysctl involved
> somehow.
> 
> ben@magnesium:~$ sysctl -a | grep maxproc
> kern.maxproc: 532
> kern.maxprocperuid: 531
> ben@magnesium:~$ grep maxproc /sys/conf/param.c
> int     maxproc = NPROC;                        /* maximum # of processes */
> int     maxprocperuid = NPROC-1;                /* maximum # of processes per user */
> 
> --
> Ben Smithurst            | PGP: 0x99392F7D
> ben@scientia.demon.co.uk |   key available from keyservers and
>                          |   ben+pgp@scientia.demon.co.uk
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Laurence Berland, Stuyvesant HS Debate
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Windows 98: n.
        useless extension to a minor patch release for 
        32-bit extensions and a graphical shell for a 
        16-bit patch to an 8-bit operating system 
        originally coded for a 4-bit microprocessor, 
        written by a 2-bit company that can't stand for
        1 bit of competition.
http://stuy.debate.net
icq #7434346                    aol imer E1101
The above email Copyright (C) 1999 Laurence Berland
All rights reserved


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3873FF32.7F57B290>