[source] base-files: reduce vm.min_free_kbytes for devices with 32M RAM

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 16 07:44:52 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/25dab5d217715300dc609df07b56e5b73cefdfc1

commit 25dab5d217715300dc609df07b56e5b73cefdfc1
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Sep 16 16:44:28 2016 +0200

    base-files: reduce vm.min_free_kbytes for devices with 32M RAM
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 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 a0daec0..3a497fb 100755
--- a/package/base-files/files/etc/init.d/sysctl
+++ b/package/base-files/files/etc/init.d/sysctl
@@ -10,7 +10,7 @@ set_vm_min_free() {
 	elif [ "$mem" -gt 32768 ]; then # 64M
 		val=8192
 	elif [ "$mem" -gt 16384 ]; then # 32M
-		val=4096
+		val=1024
 	else
 		return
 	fi



More information about the lede-commits mailing list