a3xelte: ramdisk: copy the sswap tunables from stock (A310FXXU4CRG2)
authorDanny Wood <danwood76@gmail.com>
Fri, 14 Dec 2018 08:05:03 +0000 (08:05 +0000)
committerJan Altensen <info@stricted.net>
Mon, 12 Aug 2019 14:28:38 +0000 (16:28 +0200)
Change-Id: I423cdc8018a6e2f0acf72a1df76b4f0a274d195f

ramdisk/etc/init.target.rc

index 98850e7afa88717431696035f6fbe116061b846e..660b32cdc863608fb71cf2ae21f444e60d0fdb64 100644 (file)
@@ -17,6 +17,9 @@ on boot
     # Set min_free_kbytes to keep larger VM chuncks lying around
     write /proc/sys/vm/min_free_kbytes 32768
 
+    # Tune SSWAP
+    write /proc/sys/vm/swappiness 160
+
 on fs
        # Permissions for LCD
     chown system system /sys/class/lcd/panel/lux