Skip to contentSkip to conversation

madvise.2: MADV_FREE clarify swapless behavior

PATCH In review [email protected] 2 participants 2 messages Nov 29, 2018 – Dec 1, 2018 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 madvise.2: MADV_FREE clarify swapless behavior

From: Michal Hocko <[email protected]>

Since 93e06c7a6453 ("mm: enable MADV_FREE for swapless system") we handle MADV_FREE on a swapless system the same way as with the swap available. Clarify that fact in the man page.

---
 man2/madvise.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/madvise.2 +1 -1
index eb82a57a1cf5..d9135a05a1c2 100644
@@ -403,7 +403,7 @@ The
 operation
 can be applied only to private anonymous pages (see
 .BR mmap (2)).
-On a swapless system, freeing pages in a given range happens instantly,
+Prior to 4.12 on a swapless system, freeing pages in a given range happens instantly,
 regardless of memory pressure.
 .TP
 .BR MADV_WIPEONFORK " (since Linux 4.14)"
Signature · 1 line
2.19.1
#1 lore raw
Quoted 5 lines · On 11/29/18 7:10 PM, [email protected] wrote:

From: Michal Hocko <[email protected]>

Since 93e06c7a6453 ("mm: enable MADV_FREE for swapless system") we handle MADV_FREE on a swapless system the same way as with the swap available. Clarify that fact in the man page.

Thanks, Michal (and Niklas). Patch applied.

Cheers,

Michael

Quoted 19 lines
---
 man2/madvise.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man2/madvise.2 +1 -1
index eb82a57a1cf5..d9135a05a1c2 100644
@@ -403,7 +403,7 @@ The
 operation
 can be applied only to private anonymous pages (see
 .BR mmap (2)).
-On a swapless system, freeing pages in a given range happens instantly,
+Prior to 4.12 on a swapless system, freeing pages in a given range happens instantly,
 regardless of memory pressure.
 .TP
 .BR MADV_WIPEONFORK " (since Linux 4.14)"
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/