From owner-freebsd-questions Mon Aug 26 9:50:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6414037B400 for ; Mon, 26 Aug 2002 09:50:33 -0700 (PDT) Received: from mx-a.qnet.com (mx-a.qnet.com [209.221.198.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3DA843E8A for ; Mon, 26 Aug 2002 09:50:32 -0700 (PDT) (envelope-from cjl@QNET.COM) Received: from cello.qnet.com (root@cello.qnet.com [209.221.198.10]) by mx-a.qnet.com (8.12.3/8.12.3) with ESMTP id g7QGoUA1059241 for ; Mon, 26 Aug 2002 09:50:30 -0700 (PDT) (envelope-from cjl@QNET.COM) Received: from cello.qnet.com (cello.qnet.com [209.221.198.10]) by cello.qnet.com (8.9.3/8.9.1) with ESMTP id JAA11511 for ; Mon, 26 Aug 2002 09:50:26 -0700 (PDT) Date: Mon, 26 Aug 2002 09:50:26 -0700 (PDT) From: Chris Linstruth To: Subject: Re: Open files and Swap Space Errors (fwd) In-Reply-To: <20020822170023.X7929-100000@squirm.dsto.defence.gov.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I just realized that my 'sysctl -a' command is showing me the various message buffers which contain errors that occurred at some time in the past and isn't showing me current errors. Could have saved the list some traffic if that simple fact had been pointed out. Sometimes it's the simple things. Thanks for the help. -- Chris Linstruth On Thu, 22 Aug 2002, Wilkinson,Alex wrote: > ran out of inodes ? > > - aW > > > > > Actually, I readily get the errors from systat -a. The system > isn't grinding to a halt, it's just reporting swap errors and file > table full when pstat -s and sysctl show, plainly, that they're > not even close to their maximums. > > -- > Chris Linstruth > QNET > 1529 East Palmdale Blvd Suite 200 > Palmdale, CA 93550 > (661) 538-2028 > > > On Wed, 21 Aug 2002, Matthew Emmerton wrote: > > > > ---------- Forwarded message ---------- > > > Date: Wed, 21 Aug 2002 12:26:37 -0700 (PDT) > > > From: Chris Linstruth > > > To: freebsd-questions@freebsd.org > > > Subject: Open files and Swap Space Errors > > > > > > I have a sendmail server giving me resource allocation errors but > > > it looks to me like plenty of file handles and swap space are > > > available.... Any thoughts? > > > > > > FreeBSD x.x.x 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT > > 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 > > > > > > # pstat -s > > > Device 1K-blocks Used Avail Capacity Type > > > /dev/da0s1b 262016 9856 252160 4% Interleaved > > > > > > # sysctl -a | grep files > > > kern.maxfiles: 8080 > > > kern.maxfilesperproc: 3636 > > > kern.openfiles: 383 > > > p1003_1b.mapped_files: 0 > > > > > > # limits > > > Resource limits (current): > > > cputime infinity secs > > > filesize infinity kb > > > datasize 524288 kb > > > stacksize 65536 kb > > > coredumpsize infinity kb > > > memoryuse infinity kb > > > memorylocked infinity kb > > > maxprocesses 1818 > > > openfiles 3636 > > > sbsize infinity bytes > > > > > > Running sysctl -a reports too many of these to post here: > > > > > > swap_pager_getswapspace: failed > > > swap_pager_getswapspace: failed > > > swap_pager_getswapspace: failed > > > swap_pager_getswapspace: failed > > > > > > and > > > > > > <3>file: table is full > > > <3>file: table is full > > > <3>file: table is full > > > <3>file: table is full > > > <3>file: table is full > > > > > > And a few like this: > > > <3>pid 29289 (sendmail), uid 0, was killed: out of swap space > > > > > > Any thoughts appreciated. > > > -- > > > Chris Linstruth > > > > Well, somehow you are running out of swap space. Even though 'pstat -a' > > shows that you've got tons free, that isn't useful since it (presumably) > > wasn't taken at the same time your system was grinding to a halt. > > > > Off the top of my head, there's two things that could cause sendmail to spin > > wildly out of control: > > 1) misconfigured majordomo which causes bounces to be sent back to the list > > (which bounce, and get sent back to the list, ...) > > 2) some sort of mail bombing DoS > > > > If you're running with a high-enough LogLevel in your sendmail.cf, you > > should see sender/recipient data in your sendmail logs, and this may give > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message