Skip to content

Commit 3a9b16a

Browse files
committed
linux-yocto-dev: 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 3c9218e commit 3a9b16a

File tree

1 file changed

+21
-0
lines changed
  • recipes-kernel/linux/linux-yocto-dev/configs

1 file changed

+21
-0
lines changed

recipes-kernel/linux/linux-yocto-dev/configs/qcom.cfg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ CONFIG_USB_XHCI_PCI_RENESAS=m
1616
CONFIG_DMABUF_HEAPS=y
1717
CONFIG_DMABUF_HEAPS_SYSTEM=y
1818
CONFIG_DMABUF_HEAPS_CMA=y
19+
20+
# ZRAM
21+
CONFIG_ZRAM=y
22+
CONFIG_ZRAM_BACKEND_LZ4=y
23+
CONFIG_ZRAM_BACKEND_LZ4HC=y
24+
CONFIG_ZRAM_BACKEND_ZSTD=y
25+
CONFIG_ZRAM_BACKEND_DEFLATE=y
26+
CONFIG_ZRAM_BACKEND_842=y
27+
CONFIG_ZRAM_BACKEND_LZO=y
28+
# CONFIG_ZRAM_DEF_COMP_LZORLE is not set
29+
CONFIG_ZRAM_DEF_COMP_LZO=y
30+
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
31+
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
32+
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
33+
# CONFIG_ZRAM_DEF_COMP_DEFLATE is not set
34+
# CONFIG_ZRAM_DEF_COMP_842 is not set
35+
CONFIG_ZRAM_DEF_COMP="lzo"
36+
CONFIG_ZRAM_WRITEBACK=y
37+
CONFIG_ZRAM_TRACK_ENTRY_ACTIME=y
38+
CONFIG_ZRAM_MEMORY_TRACKING=y
39+
CONFIG_ZRAM_MULTI_COMP=y

0 commit comments

Comments
 (0)