From 9d4717d5f1d9b8a16c52c46d2a670c230dc72cbc Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Sat, 7 Dec 2019 09:50:17 +1100 Subject: [PATCH] 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 --- src/runtime/os_linux_x86.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") } } -- 2.48.1