From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: [PATCH 6/6] add MADV_FREE madvise command from linux v4.5
Date: Sat, 19 Mar 2016 13:37:37 +0100 [thread overview]
Message-ID: <9a4c4131e5086e59b7604b5bde6bda70a5f848b2.1458390390.git.nsz@port70.net> (raw)
In-Reply-To: <cover.1458390390.git.nsz@port70.net>
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
next prev parent reply other threads:[~2016-03-19 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-19 12:34 [PATCH 0/6] linux v4.5 updates Szabolcs Nagy
2016-03-19 12:35 ` [PATCH 1/6] mips64: add recent linux syscall numbers Szabolcs Nagy
2016-03-19 12:35 ` [PATCH 2/6] add copy_file_range syscall numbers from linux v4.5 Szabolcs Nagy
2016-03-19 12:36 ` [PATCH 3/6] add IPV6_HDRINCL socket option " Szabolcs Nagy
2016-03-19 12:36 ` [PATCH 4/6] add SO_ATTACH_REUSEPORT_[CE]BPF socket options " Szabolcs Nagy
2016-03-19 12:37 ` [PATCH 5/6] add EPOLLEXCLUSIVE epoll flag " Szabolcs Nagy
2016-03-19 12:37 ` Szabolcs Nagy [this message]
2016-03-19 15:33 ` [PATCH 0/6] linux v4.5 updates Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9a4c4131e5086e59b7604b5bde6bda70a5f848b2.1458390390.git.nsz@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).