Kconfig (73e7d81abbc80b04595cc7da09dcaa05a3a92602) | Kconfig (84112e314f69e1f86d532cee0ef6ea579aeea26d) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2config ZRAM 3 tristate "Compressed RAM block device support" 4 depends on BLOCK && SYSFS && MMU 5 select ZSMALLOC 6 help 7 Creates virtual block devices called /dev/zramX (X = 0, 1, ...). 8 Pages written to these disks are compressed and stored in memory --- 24 unchanged lines hidden (view full) --- 33 select LZ4_DECOMPRESS 34 35config ZRAM_BACKEND_ZSTD 36 bool "zstd compression support" 37 depends on ZRAM 38 select ZSTD_COMPRESS 39 select ZSTD_DECOMPRESS 40 | 1# SPDX-License-Identifier: GPL-2.0 2config ZRAM 3 tristate "Compressed RAM block device support" 4 depends on BLOCK && SYSFS && MMU 5 select ZSMALLOC 6 help 7 Creates virtual block devices called /dev/zramX (X = 0, 1, ...). 8 Pages written to these disks are compressed and stored in memory --- 24 unchanged lines hidden (view full) --- 33 select LZ4_DECOMPRESS 34 35config ZRAM_BACKEND_ZSTD 36 bool "zstd compression support" 37 depends on ZRAM 38 select ZSTD_COMPRESS 39 select ZSTD_DECOMPRESS 40 |
41config ZRAM_BACKEND_DEFLATE 42 bool "deflate compression support" 43 depends on ZRAM 44 select ZLIB_DEFLATE 45 select ZLIB_INFLATE 46 |
|
41choice 42 prompt "Default zram compressor" 43 default ZRAM_DEF_COMP_LZORLE 44 depends on ZRAM 45 46config ZRAM_DEF_COMP_LZORLE 47 bool "lzo-rle" 48 depends on ZRAM_BACKEND_LZO --- 9 unchanged lines hidden (view full) --- 58config ZRAM_DEF_COMP_LZ4HC 59 bool "lz4hc" 60 depends on ZRAM_BACKEND_LZ4HC 61 62config ZRAM_DEF_COMP_ZSTD 63 bool "zstd" 64 depends on ZRAM_BACKEND_ZSTD 65 | 47choice 48 prompt "Default zram compressor" 49 default ZRAM_DEF_COMP_LZORLE 50 depends on ZRAM 51 52config ZRAM_DEF_COMP_LZORLE 53 bool "lzo-rle" 54 depends on ZRAM_BACKEND_LZO --- 9 unchanged lines hidden (view full) --- 64config ZRAM_DEF_COMP_LZ4HC 65 bool "lz4hc" 66 depends on ZRAM_BACKEND_LZ4HC 67 68config ZRAM_DEF_COMP_ZSTD 69 bool "zstd" 70 depends on ZRAM_BACKEND_ZSTD 71 |
72config ZRAM_DEF_COMP_DEFLATE 73 bool "deflate" 74 depends on ZRAM_BACKEND_DEFLATE 75 |
|
66endchoice 67 68config ZRAM_DEF_COMP 69 string 70 default "lzo-rle" if ZRAM_DEF_COMP_LZORLE 71 default "lzo" if ZRAM_DEF_COMP_LZO 72 default "lz4" if ZRAM_DEF_COMP_LZ4 73 default "lz4hc" if ZRAM_DEF_COMP_LZ4HC 74 default "zstd" if ZRAM_DEF_COMP_ZSTD | 76endchoice 77 78config ZRAM_DEF_COMP 79 string 80 default "lzo-rle" if ZRAM_DEF_COMP_LZORLE 81 default "lzo" if ZRAM_DEF_COMP_LZO 82 default "lz4" if ZRAM_DEF_COMP_LZ4 83 default "lz4hc" if ZRAM_DEF_COMP_LZ4HC 84 default "zstd" if ZRAM_DEF_COMP_ZSTD |
85 default "deflate" if ZRAM_DEF_COMP_DEFLATE |
|
75 default "unset-value" 76 77config ZRAM_WRITEBACK 78 bool "Write back incompressible or idle page to backing device" 79 depends on ZRAM 80 help 81 This lets zram entries (incompressible or idle pages) be written 82 back to a backing device, helping save memory. --- 35 unchanged lines hidden --- | 86 default "unset-value" 87 88config ZRAM_WRITEBACK 89 bool "Write back incompressible or idle page to backing device" 90 depends on ZRAM 91 help 92 This lets zram entries (incompressible or idle pages) be written 93 back to a backing device, helping save memory. --- 35 unchanged lines hidden --- |