diff options
author | Mark Pulford <mark@kyne.com.au> | 2019-12-07 09:50:17 +1100 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-12-09 15:40:12 +0000 |
commit | 9d4717d5f1d9b8a16c52c46d2a670c230dc72cbc (patch) | |
tree | 3ac12f5e5786349b82291e54b3d9422dbf176202 | |
parent | f6774bc91b3037d8bcdec96c855320eb4932b4c2 (diff) | |
download | go-9d4717d5f1d9b8a16c52c46d2a670c230dc72cbc.tar.gz go-9d4717d5f1d9b8a16c52c46d2a670c230dc72cbc.zip |
runtime: suggest more kernel options for mlock failure
Some Linux distributions will continue to provide 5.3.x kernels for a
while rather than 5.4.x.
Updates #35777
Change-Id: I493ef8338d94475f4fb1402ffb9040152832b0fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/210299
Reviewed-by: Austin Clements <austin@google.com>
-rw-r--r-- | src/runtime/os_linux_x86.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os_linux_x86.go b/src/runtime/os_linux_x86.go index 61c51f2327..0e1c9185b1 100644 --- a/src/runtime/os_linux_x86.go +++ b/src/runtime/os_linux_x86.go @@ -68,7 +68,7 @@ func mlockGsignal(gsignal *g) { if err == -_ENOMEM { println("runtime: increase the mlock limit (ulimit -l) or") } - println("runtime: update your kernel to 5.4.2 or later") + println("runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+") throw("mlock failed") } } |