Config-kernel.in 13 KB

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