Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2002 05:52:06 -0700 (MST)
From:      Jason Barnes <jbarnes@c3po.lpl.arizona.edu>
To:        Erik Trulsson <ertr1013@student.uu.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: out of memory, but there's plenty left!
Message-ID:  <20020301055029.A11416-100000@c3po.lpl.arizona.edu>
In-Reply-To: <20020301120312.GA32070@student.uu.se>

next in thread | previous in thread | raw e-mail | index | archive | help

> > 	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020301055029.A11416-100000>