From: Brad Fitzpatrick
Date: Wed, 2 Jan 2019 18:22:42 +0000 (+0000)
Subject: doc/go1.12: mention Conn.SetDeadline improvements, GODEBUG=madvdontneed=1
X-Git-Tag: go1.12beta2~39
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d15ffca108b81f15e9042993b80e8b91c56968c4;p=gostls13.git
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
Reviewed-by: Ian Lance Taylor
Reviewed-by: Dmitri Shuralyov
---
diff --git a/doc/go1.12.html b/doc/go1.12.html
index 527a7c73d4..975550fea4 100644
--- a/doc/go1.12.html
+++ b/doc/go1.12.html
@@ -313,10 +313,18 @@ for {
can't reuse existing heap space.
+
+ The Go runtime's timer and deadline code is faster and scales better
+ with higher numbers of CPUs. In particular, this improves the
+ performance of manipulating network connection deadlines.
+
+
- On Linux, the runtime now uses MADV_FREE to release unused
+ 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.
+ To revert to the Go 1.11 behavior (MADV_DONTNEED
), set the
+ environment variable GODEBUG=madvdontneed=1
.