Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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_LZO
  102. bool "Include support for LZO compressed file systems"
  103. depends on SQUASHFS
  104. select LZO_DECOMPRESS
  105. help
  106. Saying Y here includes support for reading Squashfs file systems
  107. compressed with LZO compression. LZO compression is mainly
  108. aimed at embedded systems with slower CPUs where the overheads
  109. of zlib are too high.
  110. LZO 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_XZ
  114. bool "Include support for XZ compressed file systems"
  115. depends on SQUASHFS
  116. select XZ_DEC
  117. help
  118. Saying Y here includes support for reading Squashfs file systems
  119. compressed with XZ compression. XZ gives better compression than
  120. the default zlib compression, at the expense of greater CPU and
  121. memory overhead.
  122. XZ 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_4K_DEVBLK_SIZE
  126. bool "Use 4K device block size?"
  127. depends on SQUASHFS
  128. help
  129. By default Squashfs sets the dev block size (sb_min_blocksize)
  130. to 1K or the smallest block size supported by the block device
  131. (if larger). This, because blocks are packed together and
  132. unaligned in Squashfs, should reduce latency.
  133. This, however, gives poor performance on MTD NAND devices where
  134. the optimal I/O size is 4K (even though the devices can support
  135. smaller block sizes).
  136. Using a 4K device block size may also improve overall I/O
  137. performance for some file access patterns (e.g. sequential
  138. accesses of files in filesystem order) on all media.
  139. Setting this option will force Squashfs to use a 4K device block
  140. size by default.
  141. If unsure, say N.
  142. config SQUASHFS_EMBEDDED
  143. bool "Additional option for memory-constrained systems"
  144. depends on SQUASHFS
  145. help
  146. Saying Y here allows you to specify cache size.
  147. If unsure, say N.
  148. config SQUASHFS_FRAGMENT_CACHE_SIZE
  149. int "Number of fragments cached" if SQUASHFS_EMBEDDED
  150. depends on SQUASHFS
  151. default "3"
  152. help
  153. By default SquashFS caches the last 3 fragments read from
  154. the filesystem. Increasing this amount may mean SquashFS
  155. has to re-read fragments less often from disk, at the expense
  156. of extra system memory. Decreasing this amount will mean
  157. SquashFS uses less memory at the expense of extra reads from disk.
  158. Note there must be at least one cached fragment. Anything
  159. much more than three will probably not make much difference.