Subject: Re: Flag MAP_NORESERVE for mmap() implemented in NetBSD 3.0?
To: None <current-users@NetBSD.org>
From: Christian Biere <firstname.lastname@example.org>
Date: 11/15/2006 12:42:18
SODA Noriyuki wrote:
> >>>>> On Wed, 15 Nov 2006 11:01:31 +0100,
> Christian Biere <email@example.com> said:
> >> Now any clues whether NetBSD does overcommit during memory allocations like
> >> Linux does?
> > I don't think it does.
> Well, the following behavior is called "overcommitting".
> i.e. NetBSD (and all Mach derived VMs) does overcommit for now.
Ok, then I had its meaning backwards. You can map a read-writeable file with
MAP_SHARED, so that the file is used as backing store. If the memory guarantee
is more important than the performance hit, this might be an option.