[Bug malloc/19845] New: Add MADV_FREE support for new linux kernels.
carlos at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Mar 18 20:06:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=19845
Bug ID: 19845
Summary: Add MADV_FREE support for new linux kernels.
Product: glibc
Version: 2.24
Status: NEW
Severity: normal
Priority: P2
Component: malloc
Assignee: unassigned at sourceware dot org
Reporter: carlos at redhat dot com
Target Milestone: ---
Malloc uses MADV_DONTNEED on Linux to mark pages as not needed. The semantics
of MADV_DONTNEED don't make it optimal for allocators to use.
Instead MADV_FREE has been added to address the issues faced by allocators.
MADV_FREE is a truly destructive operation as opposed to the more costly
MADV_DONTNEED.
The MADV_FREE call is officialy supported as of linux 4.5.
The malloc implementation should be adjusted to test for MADV_FREE availability
and use that in preference to MADV_DONTNEED.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list