From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 14:42:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14555106564A for ; Thu, 27 Nov 2008 14:42:56 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id DFC1F8FC08 for ; Thu, 27 Nov 2008 14:42:55 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6433 invoked from network); 27 Nov 2008 14:42:55 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 27 Nov 2008 14:42:55 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 9892D50822; Thu, 27 Nov 2008 09:42:51 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 7DFAB1D008; Thu, 27 Nov 2008 09:42:50 -0500 (EST) To: "Davenport\, Steve M" References: From: Lowell Gilbert Date: Thu, 27 Nov 2008 09:42:50 -0500 In-Reply-To: (Steve M. Davenport's message of "Tue\, 25 Nov 2008 12\:01\:26 -0500") Message-ID: <44zljl9qmt.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: SNMPD Consuming Swap Space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 14:42:56 -0000 "Davenport, Steve M" writes: > Hello, > > I am running snmpd 5.4.1.2 built from a port on 7-Release, hardware is > Sun V100, 512Mb total memory, 381Mb free. The daemon starts fine. When a > snmpwalk is done from another system all is well until the interface > table and then I see: > > interfaces.ifTable.ifEntry.ifSpeed.1 : Gauge32: 10000000 > interfaces.ifTable.ifEntry.ifSpeed.2 : Gauge32: 0 > interfaces.ifTable.ifEntry.ifSpeed.3 : Gauge32: 0 > snmpwalk: No response arrived before timeout. > > After the timeout happens, looking at "swapinfo -k" shows that swap > space is continually consumed until empty at which point the snmpd > daemon is stopped: > > fbsdh# swap_pager: out of swap space > swap_pager_getswapspace(16): failed > Nov 25 11:44:08 fbsdh kernel: pid 84674 (snmpd), uid 0, was killed: out > of swap space > > Now the swap space is freeded: > fbsdh# swapinfo -k > Device 1K-blocks Used Avail Capacity > /dev/ad0b 2099160 26456 2072704 1% > > Has anyone seen this issue or know of a solution. Since you're running the SNMP daemon from a port, not the one from the base system, you may need developers' assistance for this sort of bug. Problems like this are often caused by wraparound bugs or infinite loops in my experience, although there are lots of other possibilities. If you can get a stack traceback when it crashes, that will is quite likely to give a solid clue. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/