From owner-freebsd-stable Sat Oct 4 11:19:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA29016 for stable-outgoing; Sat, 4 Oct 1997 11:19:46 -0700 (PDT) Received: from bsd3.nyct.net (myj@bsd3.nyct.net [204.141.86.7]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA29011 for ; Sat, 4 Oct 1997 11:19:44 -0700 (PDT) Received: from localhost (myj@localhost) by bsd3.nyct.net (8.8.7/8.8.5) with SMTP id OAA04960; Sat, 4 Oct 1997 14:19:19 -0400 (EDT) X-Authentication-Warning: bsd3.nyct.net: myj owned process doing -bs Date: Sat, 4 Oct 1997 14:19:19 -0400 (EDT) From: Paul Sandys To: Bob Willcox cc: stable list Subject: Re: fork errors - resource temporarily unavailable In-Reply-To: <19971003100413.33095@pmr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 3 Oct 1997, Bob Willcox wrote: > Date: Fri, 3 Oct 1997 10:04:13 -0500 > From: Bob Willcox > Reply-To: Bob Willcox > To: stable list > Subject: fork errors - resource temporarily unavailable > > Every since I upgraded my system to 2.2-STABLE a couple of months ago I > have been having this temporary but re-occuring problem with procmail > getting EAGAIN errors when trying to fork one or more of the programs > that I have specified in my .procmailrc file. I believe my limits are > sufficiently high: > > Resource limits (current): > cputime infinity secs > filesize infinity kb > datasize-cur 32768 kb > stacksize 8192 kb > coredumpsize 8192 kb > memoryuse-cur 32768 kb > memorylocked 10240 kb > maxprocesses 512 > openfiles-cur 512 I had same problem here. I tracked it down to sendmail being started from /etc/rc scripts with limits of 32 processes or so. My theory is, that at the moment procmail changes UID to yours, it still checks against limits from startup. I cured this by unlimiting all resources in my /etc/rc. Starting sendmail from unlimited shell also fixes the problem. This also brings the question about default limits processing. These are limits on my RELENG_2_2 machine during boot: Resource limits (current): cputime infinity secs filesize 65536 kb datasize-cur 16384 kb stacksize-cur 8192 kb coredumpsize 0 kb memoryuse-cur 65536 kb memorylocked-cur 65536 kb maxprocesses 32 openfiles-cur 64 At the same time, I've got following lines in my kernel config file: options "CHILD_MAX=1024" options "OPEN_MAX=1024" options "FD_SETSIZE=1024" I believed, that above will raise my default limits, but it doesn't seem to be happening. > > as I never have more than about 150 or so processes running on my > system, yet procmail (and only procmail!) intermittantly has this > problem. > > Note that I have upgraded my system a few times since I first started > seeing this problem (right now I'm running 2.2-stable as of about 5 days > ago), yet the problem persists. > > Any help or advice will be greatly appreciated. > > Thanks, > -- > Bob Willcox Deliberation, n.: The act of examining one's bread > bob@luke.pmr.com to determine which side it is buttered on. > Austin, TX -- Ambrose Bierce, "The Devil's Dictionary" > P. <-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-> < myj@nyct.net Paul Sandys | New York Connect http://www.nyct.net > < network operations manager | Total Solution provider > <-------------------------------------------------------------------------> < " BRINGING NEW YORK THE INTERNET SERVICES IT DESERVES " > <-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_->