From owner-freebsd-questions Wed Aug 21 23:38:54 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 2207A37B400 for ; Wed, 21 Aug 2002 23:38:51 -0700 (PDT) Received: from tomts6-srv.bellnexxia.net (tomts6.bellnexxia.net [209.226.175.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58B7643E4A for ; Wed, 21 Aug 2002 23:38:50 -0700 (PDT) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.177.86]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20020822032500.OEJT1576.tomts6-srv.bellnexxia.net@xena.gsicomp.on.ca>; Wed, 21 Aug 2002 23:25:00 -0400 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id g7M2BpX54832; Wed, 21 Aug 2002 22:11:51 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001b01c2498b$9779f830$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Chris Linstruth" Cc: References: Subject: Re: Open files and Swap Space Errors (fwd) Date: Wed, 21 Aug 2002 23:25:39 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 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 > ---------- 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 you a clue as to what occurs when the system starts heading south. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message