Kconfig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # SPDX-License-Identifier: GPL-2.0
  2. config ZRAM
  3. tristate "Compressed RAM block device support"
  4. depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO
  5. select CRYPTO_LZO
  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. It has several use cases, for example: /tmp storage, use as swap
  13. disks and maybe many more.
  14. See Documentation/blockdev/zram.txt for more information.
  15. config ZRAM_WRITEBACK
  16. bool "Write back incompressible page to backing device"
  17. depends on ZRAM
  18. default n
  19. help
  20. With incompressible page, there is no memory saving to keep it
  21. in memory. Instead, write it out to backing device.
  22. For this feature, admin should set up backing device via
  23. /sys/block/zramX/backing_dev.
  24. See Documentation/blockdev/zram.txt for more information.
  25. config ZRAM_MEMORY_TRACKING
  26. bool "Track zRam block status"
  27. depends on ZRAM && DEBUG_FS
  28. help
  29. With this feature, admin can track the state of allocated blocks
  30. of zRAM. Admin could see the information via
  31. /sys/kernel/debug/zram/zramX/block_state.
  32. See Documentation/blockdev/zram.txt for more information.