From 1a9704712d8c7f9938ada30da91e5287af1bfa8d Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Tue, 7 Jun 2022 15:13:19 +0100 Subject: [PATCH] universal7580: mount zram with discard flag Change-Id: Id89a8c27749f6caca31a524504d68bf0f80cb98a --- ramdisk/etc/fstab.samsungexynos7580 | 2 +- ramdisk/etc/init.samsungexynos7580.rc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1