From 407626c4e67b1614874002f1f7ddf6cd15ed3a4a Mon Sep 17 00:00:00 2001 From: programminghoch10 Date: Wed, 16 Nov 2022 17:07:09 +0100 Subject: [PATCH] FP3: Enable ZRAM Change-Id: Idfcc493e6eb93e27d490df708403c4018c59c193 --- rootdir/etc/fstab.qcom | 3 ++- rootdir/etc/init.qcom.rc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom index 53d2ea94..8d0a23bd 100644 --- a/rootdir/etc/fstab.qcom +++ b/rootdir/etc/fstab.qcom @@ -14,5 +14,6 @@ /dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait,slotselect /dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait -/devices/platform/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd +/devices/platform/soc/7864900.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd /devices/platform/soc/7000000.ssusb/7000000.dwc3/xhci-hcd.0.auto* /storage/usbotg vfat nosuid,nodev wait,voldmanaged=usbotg:auto +/dev/block/zram0 none swap defaults zramsize=60% diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 98fd78e8..0ff87e92 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -408,6 +408,7 @@ on post-fs-data #Create SWAP related dirs mkdir /data/vendor/swap 0770 root system chmod 2770 /data/vendor/swap + swapon_all /vendor/etc/fstab.qcom # set aggressive read ahead for dm-0 and dm-1 during boot up write /sys/block/dm-0/queue/read_ahead_kb 2048 -- GitLab