From a5ad4a9b00d27819d178cd1e1c6960be6c372952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Thu, 30 Dec 2021 15:50:18 +0100 Subject: [PATCH] fff-config: Set panic on OOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OOM killer does not make much sense on a router, because regardless of which process is killed, most of the time some essential core functionality is affected. Set the panic on OOM sysctl, so every OOM leads to a kernel panic and results in a reboot of the router, which restores a clean state. Fixes: #131 Signed-off-by: Fabian Bläse Reviewed-by: Johannes Kimmel --- src/packages/fff/fff-config/files/etc/sysctl.d/20-oom-panic.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/packages/fff/fff-config/files/etc/sysctl.d/20-oom-panic.conf diff --git a/src/packages/fff/fff-config/files/etc/sysctl.d/20-oom-panic.conf b/src/packages/fff/fff-config/files/etc/sysctl.d/20-oom-panic.conf new file mode 100644 index 0000000..12d569a --- /dev/null +++ b/src/packages/fff/fff-config/files/etc/sysctl.d/20-oom-panic.conf @@ -0,0 +1 @@ +vm.panic_on_oom=1