Subject: Re: Flag MAP_NORESERVE for mmap() implemented in NetBSD 3.0?
To: None <current-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 11/15/2006 11:01:31
Sourath Roy wrote:
> Now any clues whether NetBSD does overcommit during memory allocations like
> Linux does?

I don't think it does. At least, I can mmap() 1 GiB with MAP_ANON|MAP_PRIVATE
without having that much RAM and swap being disabled. The program crashes
during memset() then. With swap enabled it doesn't crash.  So there's no
guarantee that the mapped memory is actually accesible or available.

-- 
Christian