From: Danny Wood Date: Fri, 17 May 2019 07:40:35 +0000 (+0100) Subject: a5xelte: ramdisk: tune VM parameters to fix issues with MTP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1c412bf3c023635fe7d323b1a6b890ab9f2fd07;p=GitHub%2FLineageOS%2Fandroid_device_samsung_a5xelte.git a5xelte: ramdisk: tune VM parameters to fix issues with MTP Change-Id: I5fc5deeb15594cb81d8200157f86a99394f5d017 --- 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