|
Message-ID: <9a4c4131e5086e59b7604b5bde6bda70a5f848b2.1458390390.git.nsz@port70.net> Date: Sat, 19 Mar 2016 13:37:37 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: [PATCH 6/6] add MADV_FREE madvise command from linux v4.5 allows the os to free the marked pages lazily on memory pressure. expected to increase malloc performance. new in linux commit 854e9ed09dedf0c19ac8640e91bcc74bc3f9e5c9 --- include/sys/mman.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/mman.h b/include/sys/mman.h index 596a03a..8a5149c 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -62,6 +62,7 @@ extern "C" { #define MADV_SEQUENTIAL 2 #define MADV_WILLNEED 3 #define MADV_DONTNEED 4 +#define MADV_FREE 8 #define MADV_REMOVE 9 #define MADV_DONTFORK 10 #define MADV_DOFORK 11 -- 2.7.2
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.