Subject: Re: 127MB limits NetBSD memory allocation?
To: Ezequiel Reyes <ezequiel.reyes@newhotel.co.cu>
From: Denis Lagno <dlagno@rambler.ru>
List: netbsd-users
Date: 07/13/2005 01:49:45
On Tue, Jul 12, 2005 at 09:01:11AM -0700, Ezequiel Reyes scribed:
> Hi, I've been trying to compile a program for NetBSD that uses mmap() to map
> 128MB to memory. But the function gives me a not enogh memory error (can't
> remember the man constant right now), I then tried 127 and it work ok. I
> then used malloc() to try getting 128, but it can't allocate as much either,
> only 127 again. Is this a limitation of NetBSD? I can allocate 128 on other
> platforms with no problem using either mmap or malloc.

you may want to set

options	DFLDSIZ="(1024*1024*1024)"

in your kernel config..