From owner-freebsd-questions Fri Mar 1 4:52:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from c3po.lpl.arizona.edu (c3po.LPL.Arizona.EDU [128.196.64.189]) by hub.freebsd.org (Postfix) with ESMTP id 6741837B400 for ; Fri, 1 Mar 2002 04:52:14 -0800 (PST) Received: from localhost (jbarnes@localhost) by c3po.lpl.arizona.edu (8.11.6/8.11.6) with ESMTP id g21Cq7j11421; Fri, 1 Mar 2002 05:52:07 -0700 (MST) (envelope-from jbarnes@c3po.lpl.arizona.edu) Date: Fri, 1 Mar 2002 05:52:06 -0700 (MST) From: Jason Barnes To: Erik Trulsson Cc: freebsd-questions@freebsd.org Subject: Re: out of memory, but there's plenty left! In-Reply-To: <20020301120312.GA32070@student.uu.se> Message-ID: <20020301055029.A11416-100000@c3po.lpl.arizona.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > > 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. I recompiled the kernel with these new lines: options MAXDSIZ="(2048*1024*1024)" options MAXSSIZ="(2048*1024*1024)" options DFLDSIZ="(2048*1024*1024)" and now everything works without any prolems! Awesome! Thank you very much for your help! - Jason Barnes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message