]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: suggest more kernel options for mlock failure
authorMark Pulford <mark@kyne.com.au>
Fri, 6 Dec 2019 22:50:17 +0000 (09:50 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 Dec 2019 15:40:12 +0000 (15:40 +0000)
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>
src/runtime/os_linux_x86.go

index 61c51f23274d7be25f8b716ab7cb30d4a948389b..0e1c9185b1cfa5525e0d1c07d89fb3e0d5d1b511 100644 (file)
@@ -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")
        }
 }