Skip to content
Snippets Groups Projects
Commit 5f84fe51 authored by Trevor Woerner's avatar Trevor Woerner Committed by Bruce Ashfield
Browse files

features/zram: add


Add support for enabling zram in the kernel.

The zram module creates RAM-based block devices named /dev/zram<id> (<id>
= 0, 1, ...). Pages written to these disks are compressed and stored in
memory itself. These disks allow very fast I/O and compression provides
good amounts of memory savings. Some of the use cases include /tmp storage,
use as swap disks, various caches under /var and maybe many more.

Different compression algorithms can be selected which give trade-offs between
speed and compression.

Signed-off-by: default avatarTrevor Woerner <twoerner@gmail.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent b655ad62
No related branches found
No related tags found
No related merge requests found
# SPDX-License-Identifier: MIT
CONFIG_ZSMALLOC=y
# CONFIG_ZSMALLOC_STAT is not set
CONFIG_ZRAM=y
CONFIG_ZRAM_DEF_COMP_LZORLE=y
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
# CONFIG_ZRAM_DEF_COMP_LZO is not set
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
# CONFIG_ZRAM_DEF_COMP_842 is not set
CONFIG_ZRAM_DEF_COMP="lzo-rle"
# CONFIG_ZRAM_WRITEBACK is not set
# CONFIG_ZRAM_MEMORY_TRACKING is not set
CONFIG_CRYPTO_LZO=y
CONFIG_CRYPTO_842=y
CONFIG_CRYPTO_LZ4=y
CONFIG_CRYPTO_LZ4HC=y
CONFIG_CRYPTO_ZSTD=y
CONFIG_842_COMPRESS=y
CONFIG_842_DECOMPRESS=y
CONFIG_LZ4_COMPRESS=y
CONFIG_LZ4HC_COMPRESS=y
CONFIG_ZSTD_COMPRESS=y
# SPDX-License-Identifier: MIT
define KFEATURE_DESCRIPTION "Compressed RAM block device support"
define KFEATURE_COMPATIBILITY all
kconf non-hardware zram.cfg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment