forked from freifunk-franken/firmware
26 lines
794 B
Diff
26 lines
794 B
Diff
|
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
|
||
|
|