Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
fwiessner | f0b03b48d4 | |
Florian Wiessner | d6a4185d17 |
|
@ -0,0 +1,25 @@
|
||||||
|
From 6129da83523dc7c55398ab0ba927094695c51784 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Florian Wiessner <ich@netz-guru.de>
|
||||||
|
Date: Mon, 5 Jul 2021 14:21:23 +0200
|
||||||
|
Subject: [PATCH] lower limit for oom killer from 8 to 4mb for 64mb devices
|
||||||
|
|
||||||
|
---
|
||||||
|
package/base-files/files/etc/init.d/sysctl | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl
|
||||||
|
index 4db56444c7..2bd026d82e 100755
|
||||||
|
--- a/package/base-files/files/etc/init.d/sysctl
|
||||||
|
+++ b/package/base-files/files/etc/init.d/sysctl
|
||||||
|
@@ -10,7 +10,7 @@ apply_defaults() {
|
||||||
|
if [ "$mem" -gt 65536 ]; then # 128M
|
||||||
|
min_free=16384
|
||||||
|
elif [ "$mem" -gt 32768 ]; then # 64M
|
||||||
|
- min_free=8192
|
||||||
|
+ min_free=4096
|
||||||
|
else
|
||||||
|
min_free=1024
|
||||||
|
frag_low_thresh=393216
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
From 6f10f5ddf152e9e37be321acd614f67cfa8bc729 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Florian Wiessner <ich@netz-guru.de>
|
||||||
|
Date: Mon, 5 Jul 2021 14:34:06 +0200
|
||||||
|
Subject: [PATCH] make reboot default on oom
|
||||||
|
|
||||||
|
---
|
||||||
|
package/base-files/files/etc/sysctl.d/20-oom_reboot.conf | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
create mode 100644 package/base-files/files/etc/sysctl.d/20-oom_reboot.conf
|
||||||
|
|
||||||
|
diff --git a/package/base-files/files/etc/sysctl.d/20-oom_reboot.conf b/package/base-files/files/etc/sysctl.d/20-oom_reboot.conf
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000000..6c161611c8
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/package/base-files/files/etc/sysctl.d/20-oom_reboot.conf
|
||||||
|
@@ -0,0 +1,2 @@
|
||||||
|
+vm.panic_on_oom = 1
|
||||||
|
+kernel.panic = 10
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
Loading…
Reference in New Issue