Skip to content

Commit d15ffca

Browse files
committed
doc/go1.12: mention Conn.SetDeadline improvements, GODEBUG=madvdontneed=1
Fixes #29439 Updates #28466 Change-Id: Ifa0779a089a969f99f1a47127e23565f31eec24f Reviewed-on: https://go-review.googlesource.com/c/155929 Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 23c22ca commit d15ffca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/go1.12.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,18 @@ <h2 id="runtime">Runtime</h2>
313313
can't reuse existing heap space.
314314
</p>
315315

316+
<p><!-- CL 146342, CL 146340, CL 146345, CL 146339, CL 146343, CL 146337, CL 146341, CL 146338 -->
317+
The Go runtime's timer and deadline code is faster and scales better
318+
with higher numbers of CPUs. In particular, this improves the
319+
performance of manipulating network connection deadlines.
320+
</p>
321+
316322
<p><!-- CL 135395 -->
317-
On Linux, the runtime now uses MADV_FREE to release unused
323+
On Linux, the runtime now uses <code>MADV_FREE</code> to release unused
318324
memory. This is more efficient but may result in higher reported
319325
RSS. The kernel will reclaim the unused data when it is needed.
326+
To revert to the Go 1.11 behavior (<code>MADV_DONTNEED</code>), set the
327+
environment variable <code>GODEBUG=madvdontneed=1</code>.
320328
</p>
321329

322330
<p><!-- CL 149578 -->

0 commit comments

Comments
 (0)