Commit 9d4717d5 authored by Mark Pulford's avatar Mark Pulford Committed by Brad Fitzpatrick

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/+/210299Reviewed-by: default avatarAustin Clements <austin@google.com>
parent f6774bc9
...@@ -68,7 +68,7 @@ func mlockGsignal(gsignal *g) { ...@@ -68,7 +68,7 @@ func mlockGsignal(gsignal *g) {
if err == -_ENOMEM { if err == -_ENOMEM {
println("runtime: increase the mlock limit (ulimit -l) or") 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") throw("mlock failed")
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment