Kconfig 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. config SQUASHFS
  2. tristate "SquashFS 4.0 - Squashed file system support"
  3. depends on BLOCK
  4. help
  5. Saying Y here includes support for SquashFS 4.0 (a Compressed
  6. Read-Only File System). Squashfs is a highly compressed read-only
  7. filesystem for Linux. It uses zlib, lzo or xz compression to
  8. compress both files, inodes and directories. Inodes in the system
  9. are very small and all blocks are packed to minimise data overhead.
  10. Block sizes greater than 4K are supported up to a maximum of 1 Mbytes
  11. (default block size 128K). SquashFS 4.0 supports 64 bit filesystems
  12. and files (larger than 4GB), full uid/gid information, hard links and
  13. timestamps.
  14. Squashfs is intended for general read-only filesystem use, for
  15. archival use (i.e. in cases where a .tar.gz file may be used), and in
  16. embedded systems where low overhead is needed. Further information
  17. and tools are available from http://squashfs.sourceforge.net.
  18. If you want to compile this as a module ( = code which can be
  19. inserted in and removed from the running kernel whenever you want),
  20. say M here. The module will be called squashfs. Note that the root
  21. file system (the one containing the directory /) cannot be compiled
  22. as a module.
  23. If unsure, say N.
  24. choice
  25. prompt "File decompression options"
  26. depends on SQUASHFS
  27. help
  28. Squashfs now supports two options for decompressing file
  29. data. Traditionally Squashfs has decompressed into an
  30. intermediate buffer and then memcopied it into the page cache.
  31. Squashfs now supports the ability to decompress directly into
  32. the page cache.
  33. If unsure, select "Decompress file data into an intermediate buffer"
  34. config SQUASHFS_FILE_CACHE
  35. bool "Decompress file data into an intermediate buffer"
  36. help
  37. Decompress file data into an intermediate buffer and then
  38. memcopy it into the page cache.
  39. config SQUASHFS_FILE_DIRECT
  40. bool "Decompress files directly into the page cache"
  41. help
  42. Directly decompress file data into the page cache.
  43. Doing so can significantly improve performance because
  44. it eliminates a memcpy and it also removes the lock contention
  45. on the single buffer.
  46. endchoice
  47. choice
  48. prompt "Decompressor parallelisation options"
  49. depends on SQUASHFS
  50. help
  51. Squashfs now supports three parallelisation options for
  52. decompression. Each one exhibits various trade-offs between
  53. decompression performance and CPU and memory usage.
  54. If in doubt, select "Single threaded compression"
  55. config SQUASHFS_DECOMP_SINGLE
  56. bool "Single threaded compression"
  57. help
  58. Traditionally Squashfs has used single-threaded decompression.
  59. Only one block (data or metadata) can be decompressed at any
  60. one time. This limits CPU and memory usage to a minimum.
  61. config SQUASHFS_DECOMP_MULTI
  62. bool "Use multiple decompressors for parallel I/O"
  63. help
  64. By default Squashfs uses a single decompressor but it gives
  65. poor performance on parallel I/O workloads when using multiple CPU
  66. machines due to waiting on decompressor availability.
  67. If you have a parallel I/O workload and your system has enough memory,
  68. using this option may improve overall I/O performance.
  69. This decompressor implementation uses up to two parallel
  70. decompressors per core. It dynamically allocates decompressors
  71. on a demand basis.
  72. config SQUASHFS_DECOMP_MULTI_PERCPU
  73. bool "Use percpu multiple decompressors for parallel I/O"
  74. help
  75. By default Squashfs uses a single decompressor but it gives
  76. poor performance on parallel I/O workloads when using multiple CPU
  77. machines due to waiting on decompressor availability.
  78. This decompressor implementation uses a maximum of one
  79. decompressor per core. It uses percpu variables to ensure
  80. decompression is load-balanced across the cores.
  81. endchoice
  82. config SQUASHFS_XATTR
  83. bool "Squashfs XATTR support"
  84. depends on SQUASHFS
  85. help
  86. Saying Y here includes support for extended attributes (xattrs).
  87. Xattrs are name:value pairs associated with inodes by
  88. the kernel or by users (see the attr(5) manual page).
  89. If unsure, say N.
  90. config SQUASHFS_ZLIB
  91. bool "Include support for ZLIB compressed file systems"
  92. depends on SQUASHFS
  93. select ZLIB_INFLATE
  94. default y
  95. help
  96. ZLIB compression is the standard compression used by Squashfs
  97. file systems. It offers a good trade-off between compression
  98. achieved and the amount of CPU time and memory necessary to
  99. compress and decompress.
  100. If unsure, say Y.
  101. config SQUASHFS_LZ4
  102. bool "Include support for LZ4 compressed file systems"
  103. depends on SQUASHFS
  104. select LZ4_DECOMPRESS
  105. help
  106. Saying Y here includes support for reading Squashfs file systems
  107. compressed with LZ4 compression. LZ4 compression is mainly
  108. aimed at embedded systems with slower CPUs where the overheads
  109. of zlib are too high.
  110. LZ4 is not the standard compression used in Squashfs and so most
  111. file systems will be readable without selecting this option.
  112. If unsure, say N.
  113. config SQUASHFS_LZO
  114. bool "Include support for LZO compressed file systems"
  115. depends on SQUASHFS
  116. select LZO_DECOMPRESS
  117. help
  118. Saying Y here includes support for reading Squashfs file systems
  119. compressed with LZO compression. LZO compression is mainly
  120. aimed at embedded systems with slower CPUs where the overheads
  121. of zlib are too high.
  122. LZO is not the standard compression used in Squashfs and so most
  123. file systems will be readable without selecting this option.
  124. If unsure, say N.
  125. config SQUASHFS_XZ
  126. bool "Include support for XZ compressed file systems"
  127. depends on SQUASHFS
  128. select XZ_DEC
  129. help
  130. Saying Y here includes support for reading Squashfs file systems
  131. compressed with XZ compression. XZ gives better compression than
  132. the default zlib compression, at the expense of greater CPU and
  133. memory overhead.
  134. XZ is not the standard compression used in Squashfs and so most
  135. file systems will be readable without selecting this option.
  136. If unsure, say N.
  137. config SQUASHFS_ZSTD
  138. bool "Include support for ZSTD compressed file systems"
  139. depends on SQUASHFS
  140. select ZSTD_DECOMPRESS
  141. help
  142. Saying Y here includes support for reading Squashfs file systems
  143. compressed with ZSTD compression. ZSTD gives better compression than
  144. the default ZLIB compression, while using less CPU.
  145. ZSTD is not the standard compression used in Squashfs and so most
  146. file systems will be readable without selecting this option.
  147. If unsure, say N.
  148. config SQUASHFS_4K_DEVBLK_SIZE
  149. bool "Use 4K device block size?"
  150. depends on SQUASHFS
  151. help
  152. By default Squashfs sets the dev block size (sb_min_blocksize)
  153. to 1K or the smallest block size supported by the block device
  154. (if larger). This, because blocks are packed together and
  155. unaligned in Squashfs, should reduce latency.
  156. This, however, gives poor performance on MTD NAND devices where
  157. the optimal I/O size is 4K (even though the devices can support
  158. smaller block sizes).
  159. Using a 4K device block size may also improve overall I/O
  160. performance for some file access patterns (e.g. sequential
  161. accesses of files in filesystem order) on all media.
  162. Setting this option will force Squashfs to use a 4K device block
  163. size by default.
  164. If unsure, say N.
  165. config SQUASHFS_EMBEDDED
  166. bool "Additional option for memory-constrained systems"
  167. depends on SQUASHFS
  168. help
  169. Saying Y here allows you to specify cache size.
  170. If unsure, say N.
  171. config SQUASHFS_FRAGMENT_CACHE_SIZE
  172. int "Number of fragments cached" if SQUASHFS_EMBEDDED
  173. depends on SQUASHFS
  174. default "3"
  175. help
  176. By default SquashFS caches the last 3 fragments read from
  177. the filesystem. Increasing this amount may mean SquashFS
  178. has to re-read fragments less often from disk, at the expense
  179. of extra system memory. Decreasing this amount will mean
  180. SquashFS uses less memory at the expense of extra reads from disk.
  181. Note there must be at least one cached fragment. Anything
  182. much more than three will probably not make much difference.