Config-kernel.in 12 KB

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