mlockall() on freebsd 7.2 + amd64 returns EAGAIN

Konstantin Belousov kostikbel at gmail.com
Thu Apr 19 12:45:51 UTC 2012


On Wed, Apr 18, 2012 at 04:37:45PM -0700, Sushanth Rai wrote:
> Wiring entire address space seems to have interesting side effect. The
> libc memory allocator calls madvise() to free the dirty unused pages,
> which does nothing when the pages are wired. The allocator unmaps only
> when entire chunk is free (default size of 1MB). That leaves lots for
> free pages which cannot reclaimed even when the system is under memory
> pressure.
>

Yes, and I would argue that this is the proper interpretation of the
wire request.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120419/f89f06c0/attachment.pgp


More information about the freebsd-hackers mailing list