From 4077cab5b3fdb8b48210253e89e09d8089b2eb4a Mon Sep 17 00:00:00 2001 From: CY Fan Date: Tue, 31 May 2022 11:08:07 +0800 Subject: [PATCH] init 1G zram in boot Signed-off-by: CY Fan --- services/etc/init.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/etc/init.cfg b/services/etc/init.cfg index 8b18193d..33e62f65 100755 --- a/services/etc/init.cfg +++ b/services/etc/init.cfg @@ -198,6 +198,9 @@ }, { "name" : "boot", "cmds" : [ + "write /sys/block/zram0/disksize 1024M", + "mkswap /dev/block/zram0", + "swapon /dev/block/zram0", "write /proc/sys/net/core/xfrm_acq_expires 3600", "write /proc/sys/vm/overcommit_memory 1", "write /proc/sys/vm/min_free_order_shift 4", -- GitLab