From owner-freebsd-questions Fri Mar 1 4: 3:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (Postfix) with ESMTP id AE53837B41B for ; Fri, 1 Mar 2002 04:03:16 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailb.telia.com (8.11.6/8.11.6) with ESMTP id g21C3FD01474 for ; Fri, 1 Mar 2002 13:03:15 +0100 (CET) Received: from falcon.midgard.homeip.net (h217n1fls20o913.telia.com [212.181.162.217]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id NAA27098 for ; Fri, 1 Mar 2002 13:03:14 +0100 (CET) Received: (qmail 32112 invoked by uid 1001); 1 Mar 2002 12:03:12 -0000 Date: Fri, 1 Mar 2002 13:03:12 +0100 From: Erik Trulsson To: Jason Barnes Cc: freebsd-questions@freebsd.org Subject: Re: out of memory, but there's plenty left! Message-ID: <20020301120312.GA32070@student.uu.se> Mail-Followup-To: Jason Barnes , freebsd-questions@freebsd.org References: <20020301035644.E11194-100000@c3po.lpl.arizona.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020301035644.E11194-100000@c3po.lpl.arizona.edu> User-Agent: Mutt/1.3.27i 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 On Fri, Mar 01, 2002 at 04:03:01AM -0700, Jason Barnes wrote: > > I'm running into a problem with my g++ code running out of memory > that might or might not be FreeBSD's fault. The program says, "out of > memory" and dumps core when it gets to about 512MB in size, but there is > plenty of RAM and swap space left. Here is the output from 'top' just > before it crashes: A single process is, by default, limited to a maximum of 512MB of data. It is almost certainly this limit you are running into. You can check the current limits with 'ulimit -a' To modify the limit you can recompile the kernel with MAXDSIZ set to the desired limit. Check LINT for details. There might also be some sysctl or loader tunable to change this but I am not sure. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message