premature ENOMEM
Anton Yuzhaninov
citrin at citrin.ru
Fri Feb 26 09:04:17 UTC 2010
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
More information about the freebsd-questions
mailing list