From: Danny Wood Date: Tue, 7 Jun 2022 14:13:19 +0000 (+0100) Subject: universal7580: mount zram with discard flag X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;ds=sidebyside;p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git universal7580: mount zram with discard flag Change-Id: Id89a8c27749f6caca31a524504d68bf0f80cb98a --- diff --git a/ramdisk/etc/fstab.samsungexynos7580 b/ramdisk/etc/fstab.samsungexynos7580 index f0b0000..cad9759 100644 --- a/ramdisk/etc/fstab.samsungexynos7580 +++ b/ramdisk/etc/fstab.samsungexynos7580 @@ -21,4 +21,4 @@ /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 diff --git a/ramdisk/etc/init.samsungexynos7580.rc b/ramdisk/etc/init.samsungexynos7580.rc index 246e2dd..d63cf38 100644 --- a/ramdisk/etc/init.samsungexynos7580.rc +++ b/ramdisk/etc/init.samsungexynos7580.rc @@ -9,7 +9,7 @@ on early-init 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