This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/19845] New: Add MADV_FREE support for new linux kernels.


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]