NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: mlockall() semantics
On Tue, Oct 12, 2010 at 03:55:51PM +0100, Sad Clouds wrote:
> I run a process that does the following:
>
> Call mlockall(MCL_FUTURE)
>
> Run a loop, calling malloc() for a large number of objects. Object vary
> is size, from 1K to 1MB. Total memory allocated is about 1GB.
>
> Looking at the output of 'top' command, it shows 'Wired' memory to be
> 666MB, which is much less than 1GB.
Your process may not have touched every page of the malloc()'d memory,
so they're not all mapped.
Dave
--
David Young OJC Technologies
dyoung%ojctech.com@localhost Urbana, IL * (217) 278-3933
Home |
Main Index |
Thread Index |
Old Index