]> Cypherpunks repositories - gostls13.git/commitdiff
doc: go1.12: clarify use of MADV_FREE
authorIan Lance Taylor <iant@golang.org>
Thu, 20 Dec 2018 23:30:31 +0000 (15:30 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Jan 2019 04:13:59 +0000 (04:13 +0000)
Fixes #29337

Change-Id: I1d632d19058c63dac8e25d2a5ad55555c1aec9d4
Reviewed-on: https://go-review.googlesource.com/c/155438
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.12.html

index 1a0127d88f5fd90740954336870c652390b2f633..527a7c73d459e045488f094f6e5e85ed033bd9f7 100644 (file)
@@ -314,10 +314,9 @@ for {
 </p>
 
 <p><!-- CL 135395 -->
-  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.
 </p>
 
 <p><!-- CL 149578 -->