From owner-freebsd-questions Sun Sep 17 10:59:42 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA20982 for questions-outgoing; Sun, 17 Sep 1995 10:59:42 -0700 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA20952 for ; Sun, 17 Sep 1995 10:59:38 -0700 Received: from iaehv.IAEhv.nl (iaehv.IAEhv.nl [192.87.208.2]) by who.cdrom.com (8.6.11/8.6.11) with ESMTP id HAA21437 for ; Sun, 17 Sep 1995 07:42:42 -0700 Received: by iaehv.IAEhv.nl (8.6.12/1.63) id QAA02123; Sun, 17 Sep 1995 16:42:57 +0200 From: guido@IAEhv.nl (Guido van Rooij) Message-Id: <199509171442.QAA02123@iaehv.IAEhv.nl> X-Disclaimer: iaehv.nl is a public access UNIX system and cannot be held responsible for the opinions of its individual users. Subject: Re: "limit maxprocs" vs. "sysctl kern.maxprocperuid" To: tom@uniserve.com (Tom Samplonius) Date: Sun, 17 Sep 1995 16:42:56 +0200 (MET DST) Cc: guido@gvr.win.tue.nl, questions@FreeBSD.org In-Reply-To: from "Tom Samplonius" at Sep 16, 95 12:40:34 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1386 Sender: owner-questions@FreeBSD.org Precedence: bulk Tom Samplonius wrote: > > > On Sat, 16 Sep 1995, Guido van Rooij wrote: > > > Tom Samplonius wrote: > > > > > > What is the exact relationship between csh's "limit maxproc" and > > > "sysctl kern.maxprocperuid"? > > > > Limit maxproc is valid only for the current process and all of its children. > > > > The other one is global and effective immediately for *all* uids. > > I tested the effects of "limit maxproc X", and it is most definitely > affects other processes. For example, I logged in twice to two different Hmm.. Now I am starting to doubt. I just checked, and now I remember why I implemented it. The limit a user can set is bounded by maxproc, the max number of processes on the machine. I thought this was too high. I want both a bound on the number of processes on the machine, as well as a bound on the max procs a signle user can have. The same was done for the number of filedescripters. I did this in order to get rid of some silly denial of service attack. > virtual consoles, then I proceeded to run my limit (default is 40) of > processes (for testing I used 'sleep 40') on one console. After that, I > could not run any processes on the second console, until some processes > running on the first console ended. > > How does one set the default "limit maxproc" value for all users? limit -u? (I think it depends on the shell). -Guido