peter.schuller at infidyne.com
Wed Jan 9 10:22:46 PST 2008
> Actually, malloc(3) can use madvise(2) to notify the kernel that
> arbitrary pages in the arena are unused and can be discarded. The
> current implementation will do so if the H option is specified.
Ah, interesting. I was not aware of that.
However, in this context it will likely only help partially since you still
need a full page to be free (and with a lot of programs many allocations will
be significantly smaller than that, and I have to assume no real-life malloc
will align all allocations to pages, or the overhead would be extreme).
/ Peter Schuller
PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey at scode.org
E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080109/c0211a83/attachment.pgp
More information about the freebsd-current