From a9ed27ed0fe7d41d60cf5f1a5ee8d4ae51d6d223 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Fri, 14 Dec 2018 08:03:38 +0000 Subject: [PATCH] a3xelte: ramdisk: set '/proc/sys/vm/min_free_kbytes' on boot to keep more large VM cunks free and fix MTP allocation Change-Id: Ibbe6976e3dee46565aff203d4a2fe23c68e19441 --- ramdisk/etc/init.target.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ramdisk/etc/init.target.rc b/ramdisk/etc/init.target.rc index 322871b..98850e7 100644 --- a/ramdisk/etc/init.target.rc +++ b/ramdisk/etc/init.target.rc @@ -14,6 +14,9 @@ on boot write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152 + # Set min_free_kbytes to keep larger VM chuncks lying around + write /proc/sys/vm/min_free_kbytes 32768 + on fs # Permissions for LCD chown system system /sys/class/lcd/panel/lux -- 2.20.1