Kconfig (917a59e81c342f47a45be8af7792dae64d317984) Kconfig (2152247c55b6bfc8d5178506787b1c38ea2679f1)
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
9 itself. These disks allow very fast I/O and compression provides
10 good amounts of memory savings.
11
12 It has several use cases, for example: /tmp storage, use as swap
13 disks and maybe many more.
14
15 See Documentation/admin-guide/blockdev/zram.rst for more information.
16
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
9 itself. These disks allow very fast I/O and compression provides
10 good amounts of memory savings.
11
12 It has several use cases, for example: /tmp storage, use as swap
13 disks and maybe many more.
14
15 See Documentation/admin-guide/blockdev/zram.rst for more information.
16
17config ZRAM_BACKEND_LZO
18 bool "lzo and lzo-rle compression support"
19 depends on ZRAM
20 select LZO_COMPRESS
21 select LZO_DECOMPRESS
22
23choice
24 prompt "Default zram compressor"
25 default ZRAM_DEF_COMP_LZORLE
26 depends on ZRAM
27
28config ZRAM_DEF_COMP_LZORLE
29 bool "lzo-rle"
30 depends on ZRAM_BACKEND_LZO
31
32config ZRAM_DEF_COMP_LZO
33 bool "lzo"
34 depends on ZRAM_BACKEND_LZO
35
36endchoice
37
17config ZRAM_DEF_COMP
18 string
38config ZRAM_DEF_COMP
39 string
40 default "lzo-rle" if ZRAM_DEF_COMP_LZORLE
41 default "lzo" if ZRAM_DEF_COMP_LZO
19 default "unset-value"
20
21config ZRAM_WRITEBACK
22 bool "Write back incompressible or idle page to backing device"
23 depends on ZRAM
24 help
25 This lets zram entries (incompressible or idle pages) be written
26 back to a backing device, helping save memory.

--- 35 unchanged lines hidden ---
42 default "unset-value"
43
44config ZRAM_WRITEBACK
45 bool "Write back incompressible or idle page to backing device"
46 depends on ZRAM
47 help
48 This lets zram entries (incompressible or idle pages) be written
49 back to a backing device, helping save memory.

--- 35 unchanged lines hidden ---