Date: Fri, 27 Nov 2009 14:59:22 -0800 From: Jason Evans <jasone@FreeBSD.org> To: Maxim Sobolev <sobomax@sippysoft.com> Cc: FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: heap limits: mmap(2) vs. break(2) on i386 Message-ID: <4B1059CA.6040605@FreeBSD.org> In-Reply-To: <4B1041EB.9020109@sippysoft.com> References: <4B1041EB.9020109@sippysoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Sobolev wrote: > I am trying to figure out why java fails to start with 1024MB of heap on > i386 with 4GB of RAM and 4GB of swap. Both MAXDSIZ and DFLDSIZ are set > to 2GB. Some memory (1GiB?) is reserved for kernel address space, and you reserved 2GiB for DSS. That leaves less than 1GiB available after shared libraries and whatnot are mapped. If there is more than 1GiB available, mmap can still fail due to the memory being non-contiguous. Jason
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1059CA.6040605>