universal7580: mount zram with discard flag lineage-18.1
authorDanny Wood <danwood76@gmail.com>
Tue, 7 Jun 2022 14:13:19 +0000 (15:13 +0100)
committerDanny Wood <danwood76@gmail.com>
Fri, 5 Aug 2022 09:59:15 +0000 (11:59 +0200)
Change-Id: Id89a8c27749f6caca31a524504d68bf0f80cb98a

ramdisk/etc/fstab.samsungexynos7580
ramdisk/etc/init.samsungexynos7580.rc

index f0b0000c2073b2ced2e0d9d61f69dfc43ab6aac2..cad97597604f21631026155680bb0026eef11bd6 100644 (file)
@@ -21,4 +21,4 @@
 /devices/13520000.usb/usb*                              auto        auto    defaults                                                                        voldmanaged=usb:auto
 
 # ZRAM
 /devices/13520000.usb/usb*                              auto        auto    defaults                                                                        voldmanaged=usb:auto
 
 # ZRAM
-/dev/block/zram0                                        none        swap    defaults                                                                        zramsize=75%,max_comp_streams=8
+/dev/block/zram0                                        none        swap    defaults,discard                                                                zramsize=75%,max_comp_streams=4,swapprio=10,notrim
index 246e2dd4d493b19759761648737b37b59070a65c..d63cf38c1b02c31b7ee47e57b619ff0759876a6a 100644 (file)
@@ -9,7 +9,7 @@ on early-init
     mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
 
     # ZRAM setup
     mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
 
     # ZRAM setup
-    write /sys/block/zram0/comp_algorithm lz4
+    write /sys/block/zram0/comp_algorithm lzo
     write /proc/sys/vm/page-cluster 0
 
 on init
     write /proc/sys/vm/page-cluster 0
 
 on init