Config-kernel.in 13 KB

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