This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/19845] New: Add MADV_FREE support for new linux kernels.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 18 Mar 2016 14:35:50 +0000
- Subject: [Bug malloc/19845] New: Add MADV_FREE support for new linux kernels.
- Auto-submitted: auto-generated
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.