From 5de0c37ecf49b986f6231a9cf5273861101b634b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 20 Dec 2018 15:30:31 -0800 Subject: [PATCH] doc: go1.12: clarify use of MADV_FREE Fixes #29337 Change-Id: I1d632d19058c63dac8e25d2a5ad55555c1aec9d4 Reviewed-on: https://go-review.googlesource.com/c/155438 Reviewed-by: Brad Fitzpatrick --- doc/go1.12.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/go1.12.html b/doc/go1.12.html index 1a0127d88f..527a7c73d4 100644 --- a/doc/go1.12.html +++ b/doc/go1.12.html @@ -314,10 +314,9 @@ for {

- On Linux, the Go runtime now releases memory back to the operating - system only when the OS is under memory pressure. This is more - efficient, but means a process's RSS (resident set size) won't - decrease unless the OS is running out of memory. + On Linux, the runtime now uses MADV_FREE to release unused + memory. This is more efficient but may result in higher reported + RSS. The kernel will reclaim the unused data when it is needed.