aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Johnston <markjdb@gmail.com>2021-05-15 05:24:13 -0400
committerGitHub <noreply@github.com>2021-05-15 11:24:13 +0200
commit93f844de48fff3f13271ec9e3fc2f5abf7692424 (patch)
tree6b6b2480e2a16b222783e236ab4090d4291818c3
parent8bdd5343e64460868dd1318257a39f1e7fd89471 (diff)
pkg/build: configure vm.panic_on_oom on FreeBSD (#2587)
OOM kills are a source of "lost connection to test machine" and "no output from test machine reports". At the point where we start getting OOM kills, we might as well give up, and turning them into a panic gives us some extra debugging info as well as a way to distinguish OOM kills from other causes of these reports.
-rw-r--r--pkg/build/freebsd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/build/freebsd.go b/pkg/build/freebsd.go
index 0b938a1af..5c3dac7fd 100644
--- a/pkg/build/freebsd.go
+++ b/pkg/build/freebsd.go
@@ -92,6 +92,7 @@ cc_htcp_load="YES"
cc_vegas_load="YES"
kern.ipc.tls.enable="1"
+vm.panic_on_oom="1"
__EOF__
cat | sudo tee -a ${tmpdir}/etc/sysctl.conf <<__EOF__