From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 20 15:30:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17AE116B3FA for ; Tue, 20 Feb 2007 15:25:08 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id E05FF13C4A8 for ; Tue, 20 Feb 2007 15:25:07 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l1KFP6qv022256; Tue, 20 Feb 2007 09:25:07 -0600 (CST) (envelope-from anderson@freebsd.org) Message-ID: <45DB12D6.30002@freebsd.org> Date: Tue, 20 Feb 2007 09:25:10 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5.0.9 (X11/20070204) MIME-Version: 1.0 To: Arone Silimantia References: <75194.58855.qm@web58602.mail.re3.yahoo.com> In-Reply-To: <75194.58855.qm@web58602.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/2612/Tue Feb 20 06:28:34 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: freebsd-hackers@freebsd.org Subject: Re: beefy system exhausted by MRTG port install (Cannot allocate memory) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2007 15:30:30 -0000 On 02/19/07 22:20, Arone Silimantia wrote: > New, modern, p4-xeon based system. > > 4 GB physical RAM: > > # dmesg|grep emory > real memory = 3489071104 (3327 MB) > avail memory = 3418656768 (3260 MB) > > 4 GB swap: > > # swapinfo > Device 1K-blocks Used Avail Capacity > /dev/da0s1b 4194304 40 4194264 0% > > And because it has a multi-TB filesystem attached, it even has a big number here: > > # cat /boot/loader.conf > kern.maxdsiz="3072000000" > > So imagine my surprise when I: > > # cd /usr/ports/net-mgmt/mrtg ; make install > > (snip, snip) > > ===> Patching for png-1.2.12_1 > ===> Applying FreeBSD patches for png-1.2.12_1 > ===> Configuring for png-1.2.12_1 > ===> Building for png-1.2.12_1 > cc -O2 -fno-strict-aliasing -pipe -c png.c > cc -O2 -fno-strict-aliasing -pipe -c pngset.c > cc -O2 -fno-strict-aliasing -pipe -c pngget.c > cc -O2 -fno-strict-aliasing -pipe -c pngrutil.c > cc -O2 -fno-strict-aliasing -pipe -c pngtrans.c > cc -O2 -fno-strict-aliasing -pipe -c pngwutil.c > cc -O2 -fno-strict-aliasing -pipe -c pngread.c > cc -O2 -fno-strict-aliasing -pipe -c pngrio.c > cc -O2 -fno-strict-aliasing -pipe -c pngwio.c > cc -O2 -fno-strict-aliasing -pipe -c pngwrite.c > cc -O2 -fno-strict-aliasing -pipe -c pngrtran.c > virtual memory exhausted: Cannot allocate memory > *** Error code 1 > > > after this attempt, swapinfo still shows zero swap in use. > > What does this mean ? > > Is my system now in an unstable state ? Should I reboot ? Did you try reducing your maxdsiz to something a few hundred mb's less? Eric