Nitin Gupta | 16a4bfb | 2010-06-01 13:31:24 +0530 | [diff] [blame] | 1 | config ZRAM |
| 2 | tristate "Compressed RAM block device support" |
Seth Jennings | 6e23617 | 2012-06-25 11:14:36 -0500 | [diff] [blame] | 3 | depends on BLOCK && SYSFS && ZSMALLOC |
Nitin Gupta | 16a4bfb | 2010-06-01 13:31:24 +0530 | [diff] [blame] | 4 | select LZO_COMPRESS |
| 5 | select LZO_DECOMPRESS |
| 6 | default n |
| 7 | help |
| 8 | Creates virtual block devices called /dev/zramX (X = 0, 1, ...). |
| 9 | Pages written to these disks are compressed and stored in memory |
| 10 | itself. These disks allow very fast I/O and compression provides |
| 11 | good amounts of memory savings. |
| 12 | |
| 13 | It has several use cases, for example: /tmp storage, use as swap |
| 14 | disks and maybe many more. |
| 15 | |
| 16 | See zram.txt for more information. |
Robert Jennings | b1f5b81 | 2011-01-28 08:59:26 -0600 | [diff] [blame] | 17 | |
Sergey Senozhatsky | 6e76668 | 2014-04-07 15:38:18 -0700 | [diff] [blame] | 18 | config ZRAM_LZ4_COMPRESS |
| 19 | bool "Enable LZ4 algorithm support" |
| 20 | depends on ZRAM |
| 21 | select LZ4_COMPRESS |
| 22 | select LZ4_DECOMPRESS |
| 23 | default n |
| 24 | help |
| 25 | This option enables LZ4 compression algorithm support. Compression |
Marcin Jabrzyk | 9e65bf6 | 2015-06-25 14:59:55 -0700 | [diff] [blame] | 26 | algorithm can be changed using `comp_algorithm' device attribute. |