From owner-freebsd-questions Wed Sep 13 18:12:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom2-094.telepath.com [216.14.2.94]) by hub.freebsd.org (Postfix) with SMTP id 9452637B422 for ; Wed, 13 Sep 2000 18:12:08 -0700 (PDT) Received: (qmail 47925 invoked by uid 100); 14 Sep 2000 01:11:32 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14784.9668.347042.816744@guru.mired.org> Date: Wed, 13 Sep 2000 20:11:32 -0500 (CDT) To: Cove Schneider Cc: questions@freebsd.org Subject: Re: Unable to use all swap? (How to up proc. memory limits?) In-Reply-To: <76321544@toto.iv> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cove Schneider writes: > Hi All, > > For some reason malloc(3) fails with an out of memory error even > though the machine has ~500MB swap left. Am I missing something > here? I'm guessing there is some setting in the config file that > I don't know about... Try runniing "limits" from the shell before you run the process. > Here is a snapshot done at 1/sec intervals of what happens to the > swap space when I run the program. It maxes out at %42 and then > dies (the process is then around 500MB or so). The %35 there is > the kernel freeing of the swap space after malloc(3) failed and > the test program exited. My default userid & root both have datasize limits aroud 524M.