Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2002 13:03:12 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Jason Barnes <jbarnes@c3po.lpl.arizona.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: out of memory, but there's plenty left!
Message-ID:  <20020301120312.GA32070@student.uu.se>
In-Reply-To: <20020301035644.E11194-100000@c3po.lpl.arizona.edu>
References:  <20020301035644.E11194-100000@c3po.lpl.arizona.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

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?20020301120312.GA32070>