Skip to content

Commit 5de0c37

Browse files
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 <[email protected]>
1 parent ae68cf4 commit 5de0c37

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/go1.12.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,9 @@ <h2 id="runtime">Runtime</h2>
314314
</p>
315315

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

323322
<p><!-- CL 149578 -->

0 commit comments

Comments
 (0)