Kconfig 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. config ZRAM
  2. tristate "Compressed RAM block device support"
  3. depends on BLOCK && SYSFS && ZSMALLOC
  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. It has several use cases, for example: /tmp storage, use as swap
  13. disks and maybe many more.
  14. See zram.txt for more information.
  15. config ZRAM_LZ4_COMPRESS
  16. bool "Enable LZ4 algorithm support"
  17. depends on ZRAM
  18. select LZ4_COMPRESS
  19. select LZ4_DECOMPRESS
  20. default n
  21. help
  22. This option enables LZ4 compression algorithm support. Compression
  23. algorithm can be changed using `comp_algorithm' device attribute.
  24. config ZRAM_LZ4K_COMPRESS
  25. bool "Enable LZ4K algorithm support"
  26. depends on ZRAM
  27. select LZ4K
  28. default n
  29. help
  30. This option enables Mediatek's LZ4K compression algorithm support.
  31. Compression algorithm can be changed using `comp_algorithm' device
  32. attribute.
  33. config ZRAM_DEBUG
  34. bool "Compressed RAM block device debug support"
  35. depends on ZRAM
  36. default n
  37. help
  38. This option adds additional debugging code to the compressed
  39. RAM block device driver.
  40. config ZSM
  41. bool "ZRAM same page finding and merging"
  42. depends on ZRAM
  43. default n
  44. help
  45. This feature will find same page in zram and merge these same pages
  46. in order to save memory