Skip to content

Commit 3c9218e

Browse files
committed
linux-qcom-next: enable ZRAM
ZRAM, when configured by userspace, can provide a compressed swapspace backed by regular RAM. This generally increases the amount of available memory, avoiding the need for disk-backed swap. When it isn't configured by userspace, this does nothing. Signed-off-by: Koen Kooi <[email protected]>
1 parent 16294da commit 3c9218e

File tree

1 file changed

+21
-0
lines changed
  • recipes-kernel/linux/linux-qcom-next/configs

1 file changed

+21
-0
lines changed

recipes-kernel/linux/linux-qcom-next/configs/qcom.cfg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,24 @@ CONFIG_NFT_TPROXY=m
307307
CONFIG_NFT_TUNNEL=m
308308
CONFIG_PACKET_DIAG=y
309309
CONFIG_VETH=m
310+
311+
# ZRAM
312+
CONFIG_ZRAM=y
313+
CONFIG_ZRAM_BACKEND_LZ4=y
314+
CONFIG_ZRAM_BACKEND_LZ4HC=y
315+
CONFIG_ZRAM_BACKEND_ZSTD=y
316+
CONFIG_ZRAM_BACKEND_DEFLATE=y
317+
CONFIG_ZRAM_BACKEND_842=y
318+
CONFIG_ZRAM_BACKEND_LZO=y
319+
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
320+
CONFIG_ZRAM_DEF_COMP_LZO=y
321+
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
322+
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
323+
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
324+
# CONFIG_ZRAM_DEF_COMP_DEFLATE is not set
325+
# CONFIG_ZRAM_DEF_COMP_842 is not set
326+
CONFIG_ZRAM_DEF_COMP="lzo"
327+
CONFIG_ZRAM_WRITEBACK=y
328+
CONFIG_ZRAM_TRACK_ENTRY_ACTIME=y
329+
CONFIG_ZRAM_MEMORY_TRACKING=y
330+
CONFIG_ZRAM_MULTI_COMP=y

0 commit comments

Comments
 (0)