Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 09:04:00 +0000 (UTC)
From:      Anton Yuzhaninov <citrin@citrin.ru>
To:        freebsd-questions@freebsd.org
Subject:   Re: premature ENOMEM
Message-ID:  <hm82q0$tf7$1@dough.gmane.org>
References:  <b89c3c271002252249s2ef1586ance42c6b85a01e5d7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 25 Feb 2010 22:49:22 -0800, Brad Penoff wrote:
BP> I have a 32-bit machine with 2 GB running FreeBSD 8.  I have a complex
BP> application that starts getting ENOMEM once the resident memory is
BP> about 200 MB.  I adjusted the appropriate /boot/loader.conf and
BP> /etc/login.conf settings resulting in an increase in the "limit"
BP> values to around 2 GB, but still the complex application gives me
BP> ENOMEM at 200 MB.  Including swap space, I should be able to handle 3
BP> GB in an application.  I need help understanding how I can enable this
BP> or why I cannot.

Don't forget that increase of kern.maxdsiz will decrease space for mmap.

And by default malloc in FreeBSD 8 uses mmap.

Try to set kern.maxdsiz to small value (may be 0 will be ok).

http://docs.freebsd.org/cgi/mid.cgi?200207291839.g6TIduVw055637

-- 
WBR,
 Anton Yuzhaninov




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hm82q0$tf7$1>