Config-kernel.in 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. config KERNEL_DEBUG_FS
  2. bool "Compile the kernel with Debug FileSystem enabled"
  3. default y
  4. help
  5. debugfs is a virtual file system that kernel developers use to put
  6. debugging files into. Enable this option to be able to read and
  7. write to these files.
  8. config KERNEL_PERF_EVENTS
  9. bool
  10. default n
  11. config KERNEL_PROFILING
  12. bool "Compile the kernel with profiling enabled"
  13. default n
  14. select KERNEL_PERF_EVENTS
  15. help
  16. Enable the extended profiling support mechanisms used by profilers such
  17. as OProfile.
  18. config KERNEL_KALLSYMS
  19. bool "Compile the kernel with symbol table information"
  20. default y
  21. help
  22. This will give you more information in stack traces from kernel oopses
  23. config KERNEL_FTRACE
  24. bool "Compile the kernel with tracing support"
  25. default n
  26. config KERNEL_FTRACE_SYSCALLS
  27. bool "Trace system calls"
  28. depends on KERNEL_FTRACE
  29. default n
  30. config KERNEL_ENABLE_DEFAULT_TRACERS
  31. bool "Trace process context switches and events"
  32. depends on KERNEL_FTRACE
  33. default n
  34. config KERNEL_DEBUG_KERNEL
  35. bool
  36. default n
  37. config KERNEL_DEBUG_INFO
  38. bool "Compile the kernel with debug information"
  39. default y
  40. select KERNEL_DEBUG_KERNEL
  41. help
  42. This will compile your kernel and modules with debug information.
  43. config KERNEL_DEBUG_LL_UART_NONE
  44. bool
  45. default n
  46. depends on arm
  47. config KERNEL_DEBUG_LL
  48. bool
  49. default n
  50. depends on arm
  51. select KERNEL_DEBUG_LL_UART_NONE
  52. help
  53. ARM low level debugging
  54. config KERNEL_EARLY_PRINTK
  55. bool "Compile the kernel with early printk"
  56. default n
  57. depends on arm
  58. select KERNEL_DEBUG_KERNEL
  59. select KERNEL_DEBUG_LL if arm
  60. help
  61. Compile the kernel with early printk support.
  62. This is only useful for debugging purposes to send messages
  63. over the serial console in early boot.
  64. Enable this to debug early boot problems.
  65. config KERNEL_AIO
  66. bool "Compile the kernel with asynchronous IO support"
  67. default n
  68. config KERNEL_DIRECT_IO
  69. bool "Compile the kernel with direct IO support"
  70. default n
  71. config KERNEL_MAGIC_SYSRQ
  72. bool "Compile the kernel with SysRq support"
  73. default y
  74. config KERNEL_COREDUMP
  75. bool
  76. config KERNEL_ELF_CORE
  77. bool "Enable process core dump support"
  78. select KERNEL_COREDUMP
  79. default y
  80. config KERNEL_PROVE_LOCKING
  81. bool "Enable kernel lock checking"
  82. select KERNEL_DEBUG_KERNEL
  83. default n
  84. config KERNEL_PRINTK_TIME
  85. bool "Enable printk timestamps"
  86. default y
  87. config KERNEL_RELAY
  88. bool
  89. config KERNEL_KEXEC
  90. bool "Enable kexec support"
  91. config USE_RFKILL
  92. bool "Enable rfkill support"
  93. default RFKILL_SUPPORT
  94. #
  95. # CGROUP support symbols
  96. #
  97. config KERNEL_CGROUPS
  98. bool "Enable kernel cgroups"
  99. default n
  100. if KERNEL_CGROUPS
  101. config KERNEL_CGROUP_DEBUG
  102. bool "Example debug cgroup subsystem"
  103. default n
  104. help
  105. This option enables a simple cgroup subsystem that
  106. exports useful debugging information about the cgroups
  107. framework.
  108. config KERNEL_FREEZER
  109. bool
  110. default y if KERNEL_CGROUP_FREEZER
  111. config KERNEL_CGROUP_FREEZER
  112. bool "Freezer cgroup subsystem"
  113. default n
  114. help
  115. Provides a way to freeze and unfreeze all tasks in a
  116. cgroup.
  117. config KERNEL_CGROUP_DEVICE
  118. bool "Device controller for cgroups"
  119. default y
  120. help
  121. Provides a cgroup implementing whitelists for devices which
  122. a process in the cgroup can mknod or open.
  123. config KERNEL_CPUSETS
  124. bool "Cpuset support"
  125. default n
  126. help
  127. This option will let you create and manage CPUSETs which
  128. allow dynamically partitioning a system into sets of CPUs and
  129. Memory Nodes and assigning tasks to run only within those sets.
  130. This is primarily useful on large SMP or NUMA systems.
  131. config KERNEL_PROC_PID_CPUSET
  132. bool "Include legacy /proc/<pid>/cpuset file"
  133. default n
  134. depends on KERNEL_CPUSETS
  135. config KERNEL_CGROUP_CPUACCT
  136. bool "Simple CPU accounting cgroup subsystem"
  137. default n
  138. help
  139. Provides a simple Resource Controller for monitoring the
  140. total CPU consumed by the tasks in a cgroup.
  141. config KERNEL_RESOURCE_COUNTERS
  142. bool "Resource counters"
  143. default n
  144. help
  145. This option enables controller independent resource accounting
  146. infrastructure that works with cgroups.
  147. config KERNEL_MM_OWNER
  148. bool
  149. default y if KERNEL_MEMCG
  150. config KERNEL_MEMCG
  151. bool "Memory Resource Controller for Control Groups"
  152. default n
  153. depends on KERNEL_RESOURCE_COUNTERS
  154. help
  155. Provides a memory resource controller that manages both anonymous
  156. memory and page cache. (See Documentation/cgroups/memory.txt)
  157. Note that setting this option increases fixed memory overhead
  158. associated with each page of memory in the system. By this,
  159. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  160. usage tracking struct at boot. Total amount of this is printed out
  161. at boot.
  162. Only enable when you're ok with these trade offs and really
  163. sure you need the memory resource controller. Even when you enable
  164. this, you can set "cgroup_disable=memory" at your boot option to
  165. disable memory resource controller and you can avoid overheads.
  166. (and lose benefits of memory resource controller)
  167. This config option also selects MM_OWNER config option, which
  168. could in turn add some fork/exit overhead.
  169. config KERNEL_MEMCG_SWAP
  170. bool "Memory Resource Controller Swap Extension"
  171. default n
  172. depends on KERNEL_MEMCG
  173. help
  174. Add swap management feature to memory resource controller. When you
  175. enable this, you can limit mem+swap usage per cgroup. In other words,
  176. when you disable this, memory resource controller has no cares to
  177. usage of swap...a process can exhaust all of the swap. This extension
  178. is useful when you want to avoid exhaustion swap but this itself
  179. adds more overheads and consumes memory for remembering information.
  180. Especially if you use 32bit system or small memory system, please
  181. be careful about enabling this. When memory resource controller
  182. is disabled by boot option, this will be automatically disabled and
  183. there will be no overhead from this. Even when you set this config=y,
  184. if boot option "swapaccount=0" is set, swap will not be accounted.
  185. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  186. size is 4096bytes, 512k per 1Gbytes of swap.
  187. config KERNEL_MEMCG_SWAP_ENABLED
  188. bool "Memory Resource Controller Swap Extension enabled by default"
  189. default n
  190. depends on KERNEL_MEMCG_SWAP
  191. help
  192. Memory Resource Controller Swap Extension comes with its price in
  193. a bigger memory consumption. General purpose distribution kernels
  194. which want to enable the feature but keep it disabled by default
  195. and let the user enable it by swapaccount boot command line
  196. parameter should have this option unselected.
  197. For those who want to have the feature enabled by default should
  198. select this option (if, for some reason, they need to disable it
  199. then swapaccount=0 does the trick).
  200. config KERNEL_MEMCG_KMEM
  201. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  202. default n
  203. depends on KERNEL_MEMCG
  204. help
  205. The Kernel Memory extension for Memory Resource Controller can limit
  206. the amount of memory used by kernel objects in the system. Those are
  207. fundamentally different from the entities handled by the standard
  208. Memory Controller, which are page-based, and can be swapped. Users of
  209. the kmem extension can use it to guarantee that no group of processes
  210. will ever exhaust kernel resources alone.
  211. config KERNEL_PERF_EVENTS
  212. bool
  213. default y if KERNEL_CGROUP_PERF
  214. config KERNEL_CGROUP_PERF
  215. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  216. default n
  217. help
  218. This option extends the per-cpu mode to restrict monitoring to
  219. threads which belong to the cgroup specified and run on the
  220. designated cpu.
  221. menuconfig KERNEL_CGROUP_SCHED
  222. bool "Group CPU scheduler"
  223. default n
  224. help
  225. This feature lets CPU scheduler recognize task groups and control CPU
  226. bandwidth allocation to such task groups. It uses cgroups to group
  227. tasks.
  228. if KERNEL_CGROUP_SCHED
  229. config KERNEL_FAIR_GROUP_SCHED
  230. bool "Group scheduling for SCHED_OTHER"
  231. default n
  232. config KERNEL_CFS_BANDWIDTH
  233. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  234. default n
  235. depends on KERNEL_FAIR_GROUP_SCHED
  236. help
  237. This option allows users to define CPU bandwidth rates (limits) for
  238. tasks running within the fair group scheduler. Groups with no limit
  239. set are considered to be unconstrained and will run with no
  240. restriction.
  241. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  242. config KERNEL_RT_GROUP_SCHED
  243. bool "Group scheduling for SCHED_RR/FIFO"
  244. default n
  245. help
  246. This feature lets you explicitly allocate real CPU bandwidth
  247. to task groups. If enabled, it will also make it impossible to
  248. schedule realtime tasks for non-root users until you allocate
  249. realtime bandwidth for them.
  250. endif
  251. config KERNEL_BLK_CGROUP
  252. bool "Block IO controller"
  253. default y
  254. help
  255. Generic block IO controller cgroup interface. This is the common
  256. cgroup interface which should be used by various IO controlling
  257. policies.
  258. Currently, CFQ IO scheduler uses it to recognize task groups and
  259. control disk bandwidth allocation (proportional time slice allocation)
  260. to such task groups. It is also used by bio throttling logic in
  261. block layer to implement upper limit in IO rates on a device.
  262. This option only enables generic Block IO controller infrastructure.
  263. One needs to also enable actual IO controlling logic/policy. For
  264. enabling proportional weight division of disk bandwidth in CFQ, set
  265. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  266. CONFIG_BLK_DEV_THROTTLING=y.
  267. config KERNEL_DEBUG_BLK_CGROUP
  268. bool "Enable Block IO controller debugging"
  269. default n
  270. depends on KERNEL_BLK_CGROUP
  271. help
  272. Enable some debugging help. Currently it exports additional stat
  273. files in a cgroup which can be useful for debugging.
  274. config KERNEL_NET_CLS_CGROUP
  275. bool "Control Group Classifier"
  276. default y
  277. config KERNEL_NETPRIO_CGROUP
  278. bool "Network priority cgroup"
  279. default y
  280. endif
  281. #
  282. # Namespace support symbols
  283. #
  284. config KERNEL_NAMESPACES
  285. bool "Enable kernel namespaces"
  286. default n
  287. if KERNEL_NAMESPACES
  288. config KERNEL_UTS_NS
  289. bool "UTS namespace"
  290. default y
  291. help
  292. In this namespace tasks see different info provided
  293. with the uname() system call
  294. config KERNEL_IPC_NS
  295. bool "IPC namespace"
  296. default y
  297. help
  298. In this namespace tasks work with IPC ids which correspond to
  299. different IPC objects in different namespaces.
  300. config KERNEL_USER_NS
  301. bool "User namespace (EXPERIMENTAL)"
  302. default y
  303. help
  304. This allows containers, i.e. vservers, to use user namespaces
  305. to provide different user info for different servers.
  306. config KERNEL_PID_NS
  307. bool "PID Namespaces"
  308. default y
  309. help
  310. Support process id namespaces. This allows having multiple
  311. processes with the same pid as long as they are in different
  312. pid namespaces. This is a building block of containers.
  313. config KERNEL_NET_NS
  314. bool "Network namespace"
  315. default y
  316. help
  317. Allow user space to create what appear to be multiple instances
  318. of the network stack.
  319. endif
  320. #
  321. # LXC related symbols
  322. #
  323. config KERNEL_LXC_MISC
  324. bool "Enable miscellaneous LXC related options"
  325. default n
  326. if KERNEL_LXC_MISC
  327. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  328. bool "Support multiple instances of devpts"
  329. default y
  330. help
  331. Enable support for multiple instances of devpts filesystem.
  332. If you want to have isolated PTY namespaces (eg: in containers),
  333. say Y here. Otherwise, say N. If enabled, each mount of devpts
  334. filesystem with the '-o newinstance' option will create an
  335. independent PTY namespace.
  336. config KERNEL_POSIX_MQUEUE
  337. bool "POSIX Message Queues"
  338. default n
  339. help
  340. POSIX variant of message queues is a part of IPC. In POSIX message
  341. queues every message has a priority which decides about succession
  342. of receiving it by a process. If you want to compile and run
  343. programs written e.g. for Solaris with use of its POSIX message
  344. queues (functions mq_*) say Y here.
  345. POSIX message queues are visible as a filesystem called 'mqueue'
  346. and can be mounted somewhere if you want to do filesystem
  347. operations on message queues.
  348. endif