mirror of
https://github.com/golang/go
synced 2024-11-23 04:20:03 -07:00
doc/go1.16: document switch to MADV_DONTNEED
Updates #42330. Change-Id: Ifda10a5c3dca30acf1258e9e0af202e9beffc68e Reviewed-on: https://go-review.googlesource.com/c/go/+/267137 Trust: Austin Clements <austin@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
d1efaed17a
commit
4fcb5068f6
@ -161,6 +161,18 @@ Do not send CLs removing the interior tags from such phrases.
|
|||||||
TODO
|
TODO
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p><!-- CL 267100 -->
|
||||||
|
On Linux, the runtime now defaults to releasing memory to the
|
||||||
|
operating system promptly (using <code>MADV_DONTNEED</code>), rather
|
||||||
|
than lazily when the operating system is under memory pressure
|
||||||
|
(using <code>MADV_FREE</code>). This means process-level memory
|
||||||
|
statistics like RSS will more accurately reflect the amount of
|
||||||
|
physical memory being used by Go processes. Systems that are
|
||||||
|
currently using <code>GODEBUG=madvdontneed=1</code> to improve
|
||||||
|
memory monitoring behavior no longer need to set this environment
|
||||||
|
variable.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2 id="compiler">Compiler</h2>
|
<h2 id="compiler">Compiler</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user