Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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 "Decompressor parallelisation options"
  26. depends on SQUASHFS
  27. help
  28. Squashfs now supports three parallelisation options for
  29. decompression. Each one exhibits various trade-offs between
  30. decompression performance and CPU and memory usage.
  31. If in doubt, select "Single threaded compression"
  32. config SQUASHFS_DECOMP_SINGLE
  33. bool "Single threaded compression"
  34. help
  35. Traditionally Squashfs has used single-threaded decompression.
  36. Only one block (data or metadata) can be decompressed at any
  37. one time. This limits CPU and memory usage to a minimum.
  38. config SQUASHFS_DECOMP_MULTI
  39. bool "Use multiple decompressors for parallel I/O"
  40. help
  41. By default Squashfs uses a single decompressor but it gives
  42. poor performance on parallel I/O workloads when using multiple CPU
  43. machines due to waiting on decompressor availability.
  44. If you have a parallel I/O workload and your system has enough memory,
  45. using this option may improve overall I/O performance.
  46. This decompressor implementation uses up to two parallel
  47. decompressors per core. It dynamically allocates decompressors
  48. on a demand basis.
  49. config SQUASHFS_DECOMP_MULTI_PERCPU
  50. bool "Use percpu multiple decompressors for parallel I/O"
  51. help
  52. By default Squashfs uses a single decompressor but it gives
  53. poor performance on parallel I/O workloads when using multiple CPU
  54. machines due to waiting on decompressor availability.
  55. This decompressor implementation uses a maximum of one
  56. decompressor per core. It uses percpu variables to ensure
  57. decompression is load-balanced across the cores.
  58. endchoice
  59. config SQUASHFS_XATTR
  60. bool "Squashfs XATTR support"
  61. depends on SQUASHFS
  62. help
  63. Saying Y here includes support for extended attributes (xattrs).
  64. Xattrs are name:value pairs associated with inodes by
  65. the kernel or by users (see the attr(5) manual page).
  66. If unsure, say N.
  67. config SQUASHFS_ZLIB
  68. bool "Include support for ZLIB compressed file systems"
  69. depends on SQUASHFS
  70. select ZLIB_INFLATE
  71. default y
  72. help
  73. ZLIB compression is the standard compression used by Squashfs
  74. file systems. It offers a good trade-off between compression
  75. achieved and the amount of CPU time and memory necessary to
  76. compress and decompress.
  77. If unsure, say Y.
  78. config SQUASHFS_LZ4
  79. bool "Include support for LZ4 compressed file systems"
  80. depends on SQUASHFS
  81. select LZ4_DECOMPRESS
  82. help
  83. Saying Y here includes support for reading Squashfs file systems
  84. compressed with LZ4 compression. LZ4 compression is mainly
  85. aimed at embedded systems with slower CPUs where the overheads
  86. of zlib are too high.
  87. LZ4 is not the standard compression used in Squashfs and so most
  88. file systems will be readable without selecting this option.
  89. If unsure, say N.
  90. config SQUASHFS_LZO
  91. bool "Include support for LZO compressed file systems"
  92. depends on SQUASHFS
  93. select LZO_DECOMPRESS
  94. help
  95. Saying Y here includes support for reading Squashfs file systems
  96. compressed with LZO compression. LZO compression is mainly
  97. aimed at embedded systems with slower CPUs where the overheads
  98. of zlib are too high.
  99. LZO is not the standard compression used in Squashfs and so most
  100. file systems will be readable without selecting this option.
  101. If unsure, say N.
  102. config SQUASHFS_XZ
  103. bool "Include support for XZ compressed file systems"
  104. depends on SQUASHFS
  105. select XZ_DEC
  106. help
  107. Saying Y here includes support for reading Squashfs file systems
  108. compressed with XZ compression. XZ gives better compression than
  109. the default zlib compression, at the expense of greater CPU and
  110. memory overhead.
  111. XZ is not the standard compression used in Squashfs and so most
  112. file systems will be readable without selecting this option.
  113. If unsure, say N.
  114. config SQUASHFS_4K_DEVBLK_SIZE
  115. bool "Use 4K device block size?"
  116. depends on SQUASHFS
  117. help
  118. By default Squashfs sets the dev block size (sb_min_blocksize)
  119. to 1K or the smallest block size supported by the block device
  120. (if larger). This, because blocks are packed together and
  121. unaligned in Squashfs, should reduce latency.
  122. This, however, gives poor performance on MTD NAND devices where
  123. the optimal I/O size is 4K (even though the devices can support
  124. smaller block sizes).
  125. Using a 4K device block size may also improve overall I/O
  126. performance for some file access patterns (e.g. sequential
  127. accesses of files in filesystem order) on all media.
  128. Setting this option will force Squashfs to use a 4K device block
  129. size by default.
  130. If unsure, say N.
  131. config SQUASHFS_EMBEDDED
  132. bool "Additional option for memory-constrained systems"
  133. depends on SQUASHFS
  134. help
  135. Saying Y here allows you to specify cache size.
  136. If unsure, say N.
  137. config SQUASHFS_FRAGMENT_CACHE_SIZE
  138. int "Number of fragments cached" if SQUASHFS_EMBEDDED
  139. depends on SQUASHFS
  140. default "3"
  141. help
  142. By default SquashFS caches the last 3 fragments read from
  143. the filesystem. Increasing this amount may mean SquashFS
  144. has to re-read fragments less often from disk, at the expense
  145. of extra system memory. Decreasing this amount will mean
  146. SquashFS uses less memory at the expense of extra reads from disk.
  147. Note there must be at least one cached fragment. Anything
  148. much more than three will probably not make much difference.