config: enable CONFIG_ZRAM
ZRAM is a memory compression method that used for anon swap out/in, it could help system reclaim more free memory when the applications have consumed too much memory. So we introduce the ZRAM by kernel modules, user could insmod it as needed. Signed-off-by: Bin Lai <robinlai@tencent.com> Reviewed-by: Bauerchen <bauerchen@tencent.com>
This commit is contained in:
parent
9213a425b3
commit
f7a1152e55
|
|
@ -2029,7 +2029,9 @@ CONFIG_BLK_DEV=y
|
|||
# CONFIG_BLK_DEV_NULL_BLK is not set
|
||||
CONFIG_CDROM=m
|
||||
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
|
||||
# CONFIG_ZRAM is not set
|
||||
CONFIG_ZRAM=y
|
||||
# CONFIG_ZRAM_WRITEBACK is not set
|
||||
# CONFIG_ZRAM_MEMORY_TRACKING is not set
|
||||
# CONFIG_BLK_DEV_UMEM is not set
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
|
||||
|
|
|
|||
|
|
@ -953,7 +953,8 @@ CONFIG_TRANSPARENT_HUGE_PAGECACHE=y
|
|||
# CONFIG_CMA is not set
|
||||
# CONFIG_ZPOOL is not set
|
||||
# CONFIG_ZBUD is not set
|
||||
# CONFIG_ZSMALLOC is not set
|
||||
CONFIG_ZSMALLOC=y
|
||||
# CONFIG_ZSMALLOC_STAT is not set
|
||||
CONFIG_GENERIC_EARLY_IOREMAP=y
|
||||
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set
|
||||
# CONFIG_IDLE_PAGE_TRACKING is not set
|
||||
|
|
@ -1765,6 +1766,9 @@ CONFIG_BLK_DEV_NULL_BLK=m
|
|||
CONFIG_BLK_DEV_FD=m
|
||||
CONFIG_CDROM=m
|
||||
CONFIG_BLK_DEV_PCIESSD_MTIP32XX=y
|
||||
CONFIG_ZRAM=m
|
||||
# CONFIG_ZRAM_WRITEBACK is not set
|
||||
# CONFIG_ZRAM_MEMORY_TRACKING is not set
|
||||
# CONFIG_BLK_DEV_UMEM is not set
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
|
||||
|
|
@ -4676,6 +4680,7 @@ CONFIG_CRYPTO_TWOFISH_AVX_X86_64=m
|
|||
CONFIG_CRYPTO_DEFLATE=m
|
||||
CONFIG_CRYPTO_LZO=y
|
||||
# CONFIG_CRYPTO_842 is not set
|
||||
CONFIG_CRYPTO_LZ4=m
|
||||
# CONFIG_CRYPTO_LZ4 is not set
|
||||
# CONFIG_CRYPTO_LZ4HC is not set
|
||||
# CONFIG_CRYPTO_ZSTD is not set
|
||||
|
|
@ -4772,6 +4777,7 @@ CONFIG_ZLIB_INFLATE=y
|
|||
CONFIG_ZLIB_DEFLATE=y
|
||||
CONFIG_LZO_COMPRESS=y
|
||||
CONFIG_LZO_DECOMPRESS=y
|
||||
CONFIG_LZ4_COMPRESS=m
|
||||
CONFIG_LZ4_DECOMPRESS=y
|
||||
CONFIG_ZSTD_COMPRESS=m
|
||||
CONFIG_ZSTD_DECOMPRESS=m
|
||||
|
|
|
|||
Loading…
Reference in New Issue