From f6e6adf80c3db1593fdafe4bcaa9670f1e32f4ad Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Fri, 17 May 2019 08:40:35 +0100 Subject: [PATCH] a7xelte: ramdisk: tune VM parameters to fix issues with MTP Change-Id: I5fc5deeb15594cb81d8200157f86a99394f5d017 --- ramdisk/etc/init.target.rc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ramdisk/etc/init.target.rc b/ramdisk/etc/init.target.rc index 854c1be..2dce079 100644 --- a/ramdisk/etc/init.target.rc +++ b/ramdisk/etc/init.target.rc @@ -4,6 +4,13 @@ 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 + + # Tune virtual memory + write /proc/sys/vm/swappiness 160 + write /proc/sys/vm/vfs_cache_pressure 50 + on fs # Permissions for LCD chown system system /sys/class/lcd/panel/ldu_correction -- 2.20.1