Config-kernel.in 13 KB

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