Kconfig 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278
  1. config ARCH
  2. string
  3. option env="ARCH"
  4. config KERNELVERSION
  5. string
  6. option env="KERNELVERSION"
  7. config DEFCONFIG_LIST
  8. string
  9. depends on !UML
  10. option defconfig_list
  11. default "/lib/modules/$UNAME_RELEASE/.config"
  12. default "/etc/kernel-config"
  13. default "/boot/config-$UNAME_RELEASE"
  14. default "$ARCH_DEFCONFIG"
  15. default "arch/$ARCH/defconfig"
  16. config CONSTRUCTORS
  17. bool
  18. depends on !UML
  19. default y
  20. menu "General setup"
  21. config EXPERIMENTAL
  22. bool "Prompt for development and/or incomplete code/drivers"
  23. ---help---
  24. Some of the various things that Linux supports (such as network
  25. drivers, file systems, network protocols, etc.) can be in a state
  26. of development where the functionality, stability, or the level of
  27. testing is not yet high enough for general use. This is usually
  28. known as the "alpha-test" phase among developers. If a feature is
  29. currently in alpha-test, then the developers usually discourage
  30. uninformed widespread use of this feature by the general public to
  31. avoid "Why doesn't this work?" type mail messages. However, active
  32. testing and use of these systems is welcomed. Just be aware that it
  33. may not meet the normal level of reliability or it may fail to work
  34. in some special cases. Detailed bug reports from people familiar
  35. with the kernel internals are usually welcomed by the developers
  36. (before submitting bug reports, please read the documents
  37. <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
  38. <file:Documentation/BUG-HUNTING>, and
  39. <file:Documentation/oops-tracing.txt> in the kernel source).
  40. This option will also make obsoleted drivers available. These are
  41. drivers that have been replaced by something else, and/or are
  42. scheduled to be removed in a future kernel release.
  43. Unless you intend to help test and develop a feature or driver that
  44. falls into this category, or you have a situation that requires
  45. using these features, you should probably say N here, which will
  46. cause the configurator to present you with fewer choices. If
  47. you say Y here, you will be offered the choice of using features or
  48. drivers that are currently considered to be in the alpha-test phase.
  49. config BROKEN
  50. bool
  51. config BROKEN_ON_SMP
  52. bool
  53. depends on BROKEN || !SMP
  54. default y
  55. config LOCK_KERNEL
  56. bool
  57. depends on SMP || PREEMPT
  58. default y
  59. config INIT_ENV_ARG_LIMIT
  60. int
  61. default 32 if !UML
  62. default 128 if UML
  63. help
  64. Maximum of each of the number of arguments and environment
  65. variables passed to init from the kernel command line.
  66. config LOCALVERSION
  67. string "Local version - append to kernel release"
  68. help
  69. Append an extra string to the end of your kernel version.
  70. This will show up when you type uname, for example.
  71. The string you set here will be appended after the contents of
  72. any files with a filename matching localversion* in your
  73. object and source tree, in that order. Your total string can
  74. be a maximum of 64 characters.
  75. config LOCALVERSION_AUTO
  76. bool "Automatically append version information to the version string"
  77. default y
  78. help
  79. This will try to automatically determine if the current tree is a
  80. release tree by looking for git tags that belong to the current
  81. top of tree revision.
  82. A string of the format -gxxxxxxxx will be added to the localversion
  83. if a git-based tree is found. The string generated by this will be
  84. appended after any matching localversion* files, and after the value
  85. set in CONFIG_LOCALVERSION.
  86. (The actual string used here is the first eight characters produced
  87. by running the command:
  88. $ git rev-parse --verify HEAD
  89. which is done within the script "scripts/setlocalversion".)
  90. config HAVE_KERNEL_GZIP
  91. bool
  92. config HAVE_KERNEL_BZIP2
  93. bool
  94. config HAVE_KERNEL_LZMA
  95. bool
  96. config HAVE_KERNEL_LZO
  97. bool
  98. choice
  99. prompt "Kernel compression mode"
  100. default KERNEL_GZIP
  101. depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_LZO
  102. help
  103. The linux kernel is a kind of self-extracting executable.
  104. Several compression algorithms are available, which differ
  105. in efficiency, compression and decompression speed.
  106. Compression speed is only relevant when building a kernel.
  107. Decompression speed is relevant at each boot.
  108. If you have any problems with bzip2 or lzma compressed
  109. kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
  110. version of this functionality (bzip2 only), for 2.4, was
  111. supplied by Christian Ludwig)
  112. High compression options are mostly useful for users, who
  113. are low on disk space (embedded systems), but for whom ram
  114. size matters less.
  115. If in doubt, select 'gzip'
  116. config KERNEL_GZIP
  117. bool "Gzip"
  118. depends on HAVE_KERNEL_GZIP
  119. help
  120. The old and tried gzip compression. It provides a good balance
  121. between compression ratio and decompression speed.
  122. config KERNEL_BZIP2
  123. bool "Bzip2"
  124. depends on HAVE_KERNEL_BZIP2
  125. help
  126. Its compression ratio and speed is intermediate.
  127. Decompression speed is slowest among the three. The kernel
  128. size is about 10% smaller with bzip2, in comparison to gzip.
  129. Bzip2 uses a large amount of memory. For modern kernels you
  130. will need at least 8MB RAM or more for booting.
  131. config KERNEL_LZMA
  132. bool "LZMA"
  133. depends on HAVE_KERNEL_LZMA
  134. help
  135. The most recent compression algorithm.
  136. Its ratio is best, decompression speed is between the other
  137. two. Compression is slowest. The kernel size is about 33%
  138. smaller with LZMA in comparison to gzip.
  139. config KERNEL_LZO
  140. bool "LZO"
  141. depends on HAVE_KERNEL_LZO
  142. help
  143. Its compression ratio is the poorest among the 4. The kernel
  144. size is about about 10% bigger than gzip; however its speed
  145. (both compression and decompression) is the fastest.
  146. endchoice
  147. config SWAP
  148. bool "Support for paging of anonymous memory (swap)"
  149. depends on MMU && BLOCK
  150. default y
  151. help
  152. This option allows you to choose whether you want to have support
  153. for so called swap devices or swap files in your kernel that are
  154. used to provide more virtual memory than the actual RAM present
  155. in your computer. If unsure say Y.
  156. config SYSVIPC
  157. bool "System V IPC"
  158. ---help---
  159. Inter Process Communication is a suite of library functions and
  160. system calls which let processes (running programs) synchronize and
  161. exchange information. It is generally considered to be a good thing,
  162. and some programs won't run unless you say Y here. In particular, if
  163. you want to run the DOS emulator dosemu under Linux (read the
  164. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  165. you'll need to say Y here.
  166. You can find documentation about IPC with "info ipc" and also in
  167. section 6.4 of the Linux Programmer's Guide, available from
  168. <http://www.tldp.org/guides.html>.
  169. config SYSVIPC_SYSCTL
  170. bool
  171. depends on SYSVIPC
  172. depends on SYSCTL
  173. default y
  174. config POSIX_MQUEUE
  175. bool "POSIX Message Queues"
  176. depends on NET && EXPERIMENTAL
  177. ---help---
  178. POSIX variant of message queues is a part of IPC. In POSIX message
  179. queues every message has a priority which decides about succession
  180. of receiving it by a process. If you want to compile and run
  181. programs written e.g. for Solaris with use of its POSIX message
  182. queues (functions mq_*) say Y here.
  183. POSIX message queues are visible as a filesystem called 'mqueue'
  184. and can be mounted somewhere if you want to do filesystem
  185. operations on message queues.
  186. If unsure, say Y.
  187. config POSIX_MQUEUE_SYSCTL
  188. bool
  189. depends on POSIX_MQUEUE
  190. depends on SYSCTL
  191. default y
  192. config BSD_PROCESS_ACCT
  193. bool "BSD Process Accounting"
  194. help
  195. If you say Y here, a user level program will be able to instruct the
  196. kernel (via a special system call) to write process accounting
  197. information to a file: whenever a process exits, information about
  198. that process will be appended to the file by the kernel. The
  199. information includes things such as creation time, owning user,
  200. command name, memory usage, controlling terminal etc. (the complete
  201. list is in the struct acct in <file:include/linux/acct.h>). It is
  202. up to the user level program to do useful things with this
  203. information. This is generally a good idea, so say Y.
  204. config BSD_PROCESS_ACCT_V3
  205. bool "BSD Process Accounting version 3 file format"
  206. depends on BSD_PROCESS_ACCT
  207. default n
  208. help
  209. If you say Y here, the process accounting information is written
  210. in a new file format that also logs the process IDs of each
  211. process and it's parent. Note that this file format is incompatible
  212. with previous v0/v1/v2 file formats, so you will need updated tools
  213. for processing it. A preliminary version of these tools is available
  214. at <http://www.gnu.org/software/acct/>.
  215. config TASKSTATS
  216. bool "Export task/process statistics through netlink (EXPERIMENTAL)"
  217. depends on NET
  218. default n
  219. help
  220. Export selected statistics for tasks/processes through the
  221. generic netlink interface. Unlike BSD process accounting, the
  222. statistics are available during the lifetime of tasks/processes as
  223. responses to commands. Like BSD accounting, they are sent to user
  224. space on task exit.
  225. Say N if unsure.
  226. config TASK_DELAY_ACCT
  227. bool "Enable per-task delay accounting (EXPERIMENTAL)"
  228. depends on TASKSTATS
  229. help
  230. Collect information on time spent by a task waiting for system
  231. resources like cpu, synchronous block I/O completion and swapping
  232. in pages. Such statistics can help in setting a task's priorities
  233. relative to other tasks for cpu, io, rss limits etc.
  234. Say N if unsure.
  235. config TASK_XACCT
  236. bool "Enable extended accounting over taskstats (EXPERIMENTAL)"
  237. depends on TASKSTATS
  238. help
  239. Collect extended task accounting data and send the data
  240. to userland for processing over the taskstats interface.
  241. Say N if unsure.
  242. config TASK_IO_ACCOUNTING
  243. bool "Enable per-task storage I/O accounting (EXPERIMENTAL)"
  244. depends on TASK_XACCT
  245. help
  246. Collect information on the number of bytes of storage I/O which this
  247. task has caused.
  248. Say N if unsure.
  249. config AUDIT
  250. bool "Auditing support"
  251. depends on NET
  252. help
  253. Enable auditing infrastructure that can be used with another
  254. kernel subsystem, such as SELinux (which requires this for
  255. logging of avc messages output). Does not do system-call
  256. auditing without CONFIG_AUDITSYSCALL.
  257. config AUDITSYSCALL
  258. bool "Enable system-call auditing support"
  259. depends on AUDIT && (X86 || PPC || S390 || IA64 || UML || SPARC64 || SUPERH)
  260. default y if SECURITY_SELINUX
  261. help
  262. Enable low-overhead system-call auditing infrastructure that
  263. can be used independently or with another kernel subsystem,
  264. such as SELinux. To use audit's filesystem watch feature, please
  265. ensure that INOTIFY is configured.
  266. config AUDIT_TREE
  267. def_bool y
  268. depends on AUDITSYSCALL
  269. select INOTIFY
  270. menu "RCU Subsystem"
  271. choice
  272. prompt "RCU Implementation"
  273. default TREE_RCU
  274. config TREE_RCU
  275. bool "Tree-based hierarchical RCU"
  276. help
  277. This option selects the RCU implementation that is
  278. designed for very large SMP system with hundreds or
  279. thousands of CPUs. It also scales down nicely to
  280. smaller systems.
  281. config TREE_PREEMPT_RCU
  282. bool "Preemptable tree-based hierarchical RCU"
  283. depends on PREEMPT
  284. help
  285. This option selects the RCU implementation that is
  286. designed for very large SMP systems with hundreds or
  287. thousands of CPUs, but for which real-time response
  288. is also required. It also scales down nicely to
  289. smaller systems.
  290. config TINY_RCU
  291. bool "UP-only small-memory-footprint RCU"
  292. depends on !SMP
  293. help
  294. This option selects the RCU implementation that is
  295. designed for UP systems from which real-time response
  296. is not required. This option greatly reduces the
  297. memory footprint of RCU.
  298. endchoice
  299. config RCU_TRACE
  300. bool "Enable tracing for RCU"
  301. depends on TREE_RCU || TREE_PREEMPT_RCU
  302. help
  303. This option provides tracing in RCU which presents stats
  304. in debugfs for debugging RCU implementation.
  305. Say Y here if you want to enable RCU tracing
  306. Say N if you are unsure.
  307. config RCU_FANOUT
  308. int "Tree-based hierarchical RCU fanout value"
  309. range 2 64 if 64BIT
  310. range 2 32 if !64BIT
  311. depends on TREE_RCU || TREE_PREEMPT_RCU
  312. default 64 if 64BIT
  313. default 32 if !64BIT
  314. help
  315. This option controls the fanout of hierarchical implementations
  316. of RCU, allowing RCU to work efficiently on machines with
  317. large numbers of CPUs. This value must be at least the cube
  318. root of NR_CPUS, which allows NR_CPUS up to 32,768 for 32-bit
  319. systems and up to 262,144 for 64-bit systems.
  320. Select a specific number if testing RCU itself.
  321. Take the default if unsure.
  322. config RCU_FANOUT_EXACT
  323. bool "Disable tree-based hierarchical RCU auto-balancing"
  324. depends on TREE_RCU || TREE_PREEMPT_RCU
  325. default n
  326. help
  327. This option forces use of the exact RCU_FANOUT value specified,
  328. regardless of imbalances in the hierarchy. This is useful for
  329. testing RCU itself, and might one day be useful on systems with
  330. strong NUMA behavior.
  331. Without RCU_FANOUT_EXACT, the code will balance the hierarchy.
  332. Say N if unsure.
  333. config RCU_FAST_NO_HZ
  334. bool "Accelerate last non-dyntick-idle CPU's grace periods"
  335. depends on TREE_RCU && NO_HZ && SMP
  336. default n
  337. help
  338. This option causes RCU to attempt to accelerate grace periods
  339. in order to allow the final CPU to enter dynticks-idle state
  340. more quickly. On the other hand, this option increases the
  341. overhead of the dynticks-idle checking, particularly on systems
  342. with large numbers of CPUs.
  343. Say Y if energy efficiency is critically important, particularly
  344. if you have relatively few CPUs.
  345. Say N if you are unsure.
  346. config TREE_RCU_TRACE
  347. def_bool RCU_TRACE && ( TREE_RCU || TREE_PREEMPT_RCU )
  348. select DEBUG_FS
  349. help
  350. This option provides tracing for the TREE_RCU and
  351. TREE_PREEMPT_RCU implementations, permitting Makefile to
  352. trivially select kernel/rcutree_trace.c.
  353. endmenu # "RCU Subsystem"
  354. config IKCONFIG
  355. tristate "Kernel .config support"
  356. ---help---
  357. This option enables the complete Linux kernel ".config" file
  358. contents to be saved in the kernel. It provides documentation
  359. of which kernel options are used in a running kernel or in an
  360. on-disk kernel. This information can be extracted from the kernel
  361. image file with the script scripts/extract-ikconfig and used as
  362. input to rebuild the current kernel or to build another kernel.
  363. It can also be extracted from a running kernel by reading
  364. /proc/config.gz if enabled (below).
  365. config IKCONFIG_PROC
  366. bool "Enable access to .config through /proc/config.gz"
  367. depends on IKCONFIG && PROC_FS
  368. ---help---
  369. This option enables access to the kernel configuration file
  370. through /proc/config.gz.
  371. config LOG_BUF_SHIFT
  372. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  373. range 12 21
  374. default 17
  375. help
  376. Select kernel log buffer size as a power of 2.
  377. Examples:
  378. 17 => 128 KB
  379. 16 => 64 KB
  380. 15 => 32 KB
  381. 14 => 16 KB
  382. 13 => 8 KB
  383. 12 => 4 KB
  384. #
  385. # Architectures with an unreliable sched_clock() should select this:
  386. #
  387. config HAVE_UNSTABLE_SCHED_CLOCK
  388. bool
  389. menuconfig CGROUPS
  390. boolean "Control Group support"
  391. depends on EVENTFD
  392. help
  393. This option adds support for grouping sets of processes together, for
  394. use with process control subsystems such as Cpusets, CFS, memory
  395. controls or device isolation.
  396. See
  397. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  398. - Documentation/cgroups/ (features for grouping, isolation
  399. and resource control)
  400. Say N if unsure.
  401. if CGROUPS
  402. config CGROUP_DEBUG
  403. bool "Example debug cgroup subsystem"
  404. depends on CGROUPS
  405. default n
  406. help
  407. This option enables a simple cgroup subsystem that
  408. exports useful debugging information about the cgroups
  409. framework.
  410. Say N if unsure.
  411. config CGROUP_NS
  412. bool "Namespace cgroup subsystem"
  413. depends on CGROUPS
  414. help
  415. Provides a simple namespace cgroup subsystem to
  416. provide hierarchical naming of sets of namespaces,
  417. for instance virtual servers and checkpoint/restart
  418. jobs.
  419. config CGROUP_FREEZER
  420. bool "Freezer cgroup subsystem"
  421. depends on CGROUPS
  422. help
  423. Provides a way to freeze and unfreeze all tasks in a
  424. cgroup.
  425. config CGROUP_DEVICE
  426. bool "Device controller for cgroups"
  427. depends on CGROUPS && EXPERIMENTAL
  428. help
  429. Provides a cgroup implementing whitelists for devices which
  430. a process in the cgroup can mknod or open.
  431. config CPUSETS
  432. bool "Cpuset support"
  433. depends on CGROUPS
  434. help
  435. This option will let you create and manage CPUSETs which
  436. allow dynamically partitioning a system into sets of CPUs and
  437. Memory Nodes and assigning tasks to run only within those sets.
  438. This is primarily useful on large SMP or NUMA systems.
  439. Say N if unsure.
  440. config PROC_PID_CPUSET
  441. bool "Include legacy /proc/<pid>/cpuset file"
  442. depends on CPUSETS
  443. default y
  444. config CGROUP_CPUACCT
  445. bool "Simple CPU accounting cgroup subsystem"
  446. depends on CGROUPS
  447. help
  448. Provides a simple Resource Controller for monitoring the
  449. total CPU consumed by the tasks in a cgroup.
  450. config RESOURCE_COUNTERS
  451. bool "Resource counters"
  452. help
  453. This option enables controller independent resource accounting
  454. infrastructure that works with cgroups.
  455. depends on CGROUPS
  456. config CGROUP_MEM_RES_CTLR
  457. bool "Memory Resource Controller for Control Groups"
  458. depends on CGROUPS && RESOURCE_COUNTERS
  459. select MM_OWNER
  460. help
  461. Provides a memory resource controller that manages both anonymous
  462. memory and page cache. (See Documentation/cgroups/memory.txt)
  463. Note that setting this option increases fixed memory overhead
  464. associated with each page of memory in the system. By this,
  465. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  466. usage tracking struct at boot. Total amount of this is printed out
  467. at boot.
  468. Only enable when you're ok with these trade offs and really
  469. sure you need the memory resource controller. Even when you enable
  470. this, you can set "cgroup_disable=memory" at your boot option to
  471. disable memory resource controller and you can avoid overheads.
  472. (and lose benefits of memory resource controller)
  473. This config option also selects MM_OWNER config option, which
  474. could in turn add some fork/exit overhead.
  475. config CGROUP_MEM_RES_CTLR_SWAP
  476. bool "Memory Resource Controller Swap Extension(EXPERIMENTAL)"
  477. depends on CGROUP_MEM_RES_CTLR && SWAP && EXPERIMENTAL
  478. help
  479. Add swap management feature to memory resource controller. When you
  480. enable this, you can limit mem+swap usage per cgroup. In other words,
  481. when you disable this, memory resource controller has no cares to
  482. usage of swap...a process can exhaust all of the swap. This extension
  483. is useful when you want to avoid exhaustion swap but this itself
  484. adds more overheads and consumes memory for remembering information.
  485. Especially if you use 32bit system or small memory system, please
  486. be careful about enabling this. When memory resource controller
  487. is disabled by boot option, this will be automatically disabled and
  488. there will be no overhead from this. Even when you set this config=y,
  489. if boot option "noswapaccount" is set, swap will not be accounted.
  490. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  491. size is 4096bytes, 512k per 1Gbytes of swap.
  492. menuconfig CGROUP_SCHED
  493. bool "Group CPU scheduler"
  494. depends on EXPERIMENTAL && CGROUPS
  495. default n
  496. help
  497. This feature lets CPU scheduler recognize task groups and control CPU
  498. bandwidth allocation to such task groups. It uses cgroups to group
  499. tasks.
  500. if CGROUP_SCHED
  501. config FAIR_GROUP_SCHED
  502. bool "Group scheduling for SCHED_OTHER"
  503. depends on CGROUP_SCHED
  504. default CGROUP_SCHED
  505. config RT_GROUP_SCHED
  506. bool "Group scheduling for SCHED_RR/FIFO"
  507. depends on EXPERIMENTAL
  508. depends on CGROUP_SCHED
  509. default n
  510. help
  511. This feature lets you explicitly allocate real CPU bandwidth
  512. to task groups. If enabled, it will also make it impossible to
  513. schedule realtime tasks for non-root users until you allocate
  514. realtime bandwidth for them.
  515. See Documentation/scheduler/sched-rt-group.txt for more information.
  516. endif #CGROUP_SCHED
  517. config BLK_CGROUP
  518. tristate "Block IO controller"
  519. depends on CGROUPS && BLOCK
  520. default n
  521. ---help---
  522. Generic block IO controller cgroup interface. This is the common
  523. cgroup interface which should be used by various IO controlling
  524. policies.
  525. Currently, CFQ IO scheduler uses it to recognize task groups and
  526. control disk bandwidth allocation (proportional time slice allocation)
  527. to such task groups.
  528. This option only enables generic Block IO controller infrastructure.
  529. One needs to also enable actual IO controlling logic in CFQ for it
  530. to take effect. (CONFIG_CFQ_GROUP_IOSCHED=y).
  531. See Documentation/cgroups/blkio-controller.txt for more information.
  532. config DEBUG_BLK_CGROUP
  533. bool "Enable Block IO controller debugging"
  534. depends on BLK_CGROUP
  535. default n
  536. ---help---
  537. Enable some debugging help. Currently it exports additional stat
  538. files in a cgroup which can be useful for debugging.
  539. endif # CGROUPS
  540. config MM_OWNER
  541. bool
  542. config SYSFS_DEPRECATED
  543. bool
  544. config SYSFS_DEPRECATED_V2
  545. bool "enable deprecated sysfs features to support old userspace tools"
  546. depends on SYSFS
  547. default n
  548. select SYSFS_DEPRECATED
  549. help
  550. This option switches the layout of sysfs to the deprecated
  551. version. Do not use it on recent distributions.
  552. The current sysfs layout features a unified device tree at
  553. /sys/devices/, which is able to express a hierarchy between
  554. class devices. If the deprecated option is set to Y, the
  555. unified device tree is split into a bus device tree at
  556. /sys/devices/ and several individual class device trees at
  557. /sys/class/. The class and bus devices will be connected by
  558. "<subsystem>:<name>" and the "device" links. The "block"
  559. class devices, will not show up in /sys/class/block/. Some
  560. subsystems will suppress the creation of some devices which
  561. depend on the unified device tree.
  562. This option is not a pure compatibility option that can
  563. be safely enabled on newer distributions. It will change the
  564. layout of sysfs to the non-extensible deprecated version,
  565. and disable some features, which can not be exported without
  566. confusing older userspace tools. Since 2007/2008 all major
  567. distributions do not enable this option, and ship no tools which
  568. depend on the deprecated layout or this option.
  569. If you are using a new kernel on an older distribution, or use
  570. older userspace tools, you might need to say Y here. Do not say Y,
  571. if the original kernel, that came with your distribution, has
  572. this option set to N.
  573. config RELAY
  574. bool "Kernel->user space relay support (formerly relayfs)"
  575. help
  576. This option enables support for relay interface support in
  577. certain file systems (such as debugfs).
  578. It is designed to provide an efficient mechanism for tools and
  579. facilities to relay large amounts of data from kernel space to
  580. user space.
  581. If unsure, say N.
  582. config NAMESPACES
  583. bool "Namespaces support" if EMBEDDED
  584. default !EMBEDDED
  585. help
  586. Provides the way to make tasks work with different objects using
  587. the same id. For example same IPC id may refer to different objects
  588. or same user id or pid may refer to different tasks when used in
  589. different namespaces.
  590. config UTS_NS
  591. bool "UTS namespace"
  592. depends on NAMESPACES
  593. help
  594. In this namespace tasks see different info provided with the
  595. uname() system call
  596. config IPC_NS
  597. bool "IPC namespace"
  598. depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
  599. help
  600. In this namespace tasks work with IPC ids which correspond to
  601. different IPC objects in different namespaces.
  602. config USER_NS
  603. bool "User namespace (EXPERIMENTAL)"
  604. depends on NAMESPACES && EXPERIMENTAL
  605. help
  606. This allows containers, i.e. vservers, to use user namespaces
  607. to provide different user info for different servers.
  608. If unsure, say N.
  609. config PID_NS
  610. bool "PID Namespaces (EXPERIMENTAL)"
  611. default n
  612. depends on NAMESPACES && EXPERIMENTAL
  613. help
  614. Support process id namespaces. This allows having multiple
  615. processes with the same pid as long as they are in different
  616. pid namespaces. This is a building block of containers.
  617. Unless you want to work with an experimental feature
  618. say N here.
  619. config NET_NS
  620. bool "Network namespace"
  621. default n
  622. depends on NAMESPACES && EXPERIMENTAL && NET
  623. help
  624. Allow user space to create what appear to be multiple instances
  625. of the network stack.
  626. config BLK_DEV_INITRD
  627. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  628. depends on BROKEN || !FRV
  629. help
  630. The initial RAM filesystem is a ramfs which is loaded by the
  631. boot loader (loadlin or lilo) and that is mounted as root
  632. before the normal boot procedure. It is typically used to
  633. load modules needed to mount the "real" root file system,
  634. etc. See <file:Documentation/initrd.txt> for details.
  635. If RAM disk support (BLK_DEV_RAM) is also included, this
  636. also enables initial RAM disk (initrd) support and adds
  637. 15 Kbytes (more on some other architectures) to the kernel size.
  638. If unsure say Y.
  639. if BLK_DEV_INITRD
  640. source "usr/Kconfig"
  641. endif
  642. config CC_OPTIMIZE_FOR_SIZE
  643. bool "Optimize for size"
  644. default y
  645. help
  646. Enabling this option will pass "-Os" instead of "-O2" to gcc
  647. resulting in a smaller kernel.
  648. If unsure, say Y.
  649. config SYSCTL
  650. bool
  651. config ANON_INODES
  652. bool
  653. menuconfig EMBEDDED
  654. bool "Configure standard kernel features (for small systems)"
  655. help
  656. This option allows certain base kernel options and settings
  657. to be disabled or tweaked. This is for specialized
  658. environments which can tolerate a "non-standard" kernel.
  659. Only use this if you really know what you are doing.
  660. config UID16
  661. bool "Enable 16-bit UID system calls" if EMBEDDED
  662. depends on ARM || BLACKFIN || CRIS || FRV || H8300 || X86_32 || M68K || (S390 && !64BIT) || SUPERH || SPARC32 || (SPARC64 && COMPAT) || UML || (X86_64 && IA32_EMULATION)
  663. default y
  664. help
  665. This enables the legacy 16-bit UID syscall wrappers.
  666. config SYSCTL_SYSCALL
  667. bool "Sysctl syscall support" if EMBEDDED
  668. depends on PROC_SYSCTL
  669. default y
  670. select SYSCTL
  671. ---help---
  672. sys_sysctl uses binary paths that have been found challenging
  673. to properly maintain and use. The interface in /proc/sys
  674. using paths with ascii names is now the primary path to this
  675. information.
  676. Almost nothing using the binary sysctl interface so if you are
  677. trying to save some space it is probably safe to disable this,
  678. making your kernel marginally smaller.
  679. If unsure say Y here.
  680. config KALLSYMS
  681. bool "Load all symbols for debugging/ksymoops" if EMBEDDED
  682. default y
  683. help
  684. Say Y here to let the kernel print out symbolic crash information and
  685. symbolic stack backtraces. This increases the size of the kernel
  686. somewhat, as all symbols have to be loaded into the kernel image.
  687. config KALLSYMS_ALL
  688. bool "Include all symbols in kallsyms"
  689. depends on DEBUG_KERNEL && KALLSYMS
  690. help
  691. Normally kallsyms only contains the symbols of functions, for nicer
  692. OOPS messages. Some debuggers can use kallsyms for other
  693. symbols too: say Y here to include all symbols, if you need them
  694. and you don't care about adding 300k to the size of your kernel.
  695. Say N.
  696. config KALLSYMS_EXTRA_PASS
  697. bool "Do an extra kallsyms pass"
  698. depends on KALLSYMS
  699. help
  700. If kallsyms is not working correctly, the build will fail with
  701. inconsistent kallsyms data. If that occurs, log a bug report and
  702. turn on KALLSYMS_EXTRA_PASS which should result in a stable build.
  703. Always say N here unless you find a bug in kallsyms, which must be
  704. reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while
  705. you wait for kallsyms to be fixed.
  706. config HOTPLUG
  707. bool "Support for hot-pluggable devices" if EMBEDDED
  708. default y
  709. help
  710. This option is provided for the case where no hotplug or uevent
  711. capabilities is wanted by the kernel. You should only consider
  712. disabling this option for embedded systems that do not use modules, a
  713. dynamic /dev tree, or dynamic device discovery. Just say Y.
  714. config PRINTK
  715. default y
  716. bool "Enable support for printk" if EMBEDDED
  717. help
  718. This option enables normal printk support. Removing it
  719. eliminates most of the message strings from the kernel image
  720. and makes the kernel more or less silent. As this makes it
  721. very difficult to diagnose system problems, saying N here is
  722. strongly discouraged.
  723. config BUG
  724. bool "BUG() support" if EMBEDDED
  725. default y
  726. help
  727. Disabling this option eliminates support for BUG and WARN, reducing
  728. the size of your kernel image and potentially quietly ignoring
  729. numerous fatal conditions. You should only consider disabling this
  730. option for embedded systems with no facilities for reporting errors.
  731. Just say Y.
  732. config ELF_CORE
  733. default y
  734. bool "Enable ELF core dumps" if EMBEDDED
  735. help
  736. Enable support for generating core dumps. Disabling saves about 4k.
  737. config PCSPKR_PLATFORM
  738. bool "Enable PC-Speaker support" if EMBEDDED
  739. depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
  740. default y
  741. help
  742. This option allows to disable the internal PC-Speaker
  743. support, saving some memory.
  744. config BASE_FULL
  745. default y
  746. bool "Enable full-sized data structures for core" if EMBEDDED
  747. help
  748. Disabling this option reduces the size of miscellaneous core
  749. kernel data structures. This saves memory on small machines,
  750. but may reduce performance.
  751. config FUTEX
  752. bool "Enable futex support" if EMBEDDED
  753. default y
  754. select RT_MUTEXES
  755. help
  756. Disabling this option will cause the kernel to be built without
  757. support for "fast userspace mutexes". The resulting kernel may not
  758. run glibc-based applications correctly.
  759. config EPOLL
  760. bool "Enable eventpoll support" if EMBEDDED
  761. default y
  762. select ANON_INODES
  763. help
  764. Disabling this option will cause the kernel to be built without
  765. support for epoll family of system calls.
  766. config SIGNALFD
  767. bool "Enable signalfd() system call" if EMBEDDED
  768. select ANON_INODES
  769. default y
  770. help
  771. Enable the signalfd() system call that allows to receive signals
  772. on a file descriptor.
  773. If unsure, say Y.
  774. config TIMERFD
  775. bool "Enable timerfd() system call" if EMBEDDED
  776. select ANON_INODES
  777. default y
  778. help
  779. Enable the timerfd() system call that allows to receive timer
  780. events on a file descriptor.
  781. If unsure, say Y.
  782. config EVENTFD
  783. bool "Enable eventfd() system call" if EMBEDDED
  784. select ANON_INODES
  785. default y
  786. help
  787. Enable the eventfd() system call that allows to receive both
  788. kernel notification (ie. KAIO) or userspace notifications.
  789. If unsure, say Y.
  790. config SHMEM
  791. bool "Use full shmem filesystem" if EMBEDDED
  792. default y
  793. depends on MMU
  794. help
  795. The shmem is an internal filesystem used to manage shared memory.
  796. It is backed by swap and manages resource limits. It is also exported
  797. to userspace as tmpfs if TMPFS is enabled. Disabling this
  798. option replaces shmem and tmpfs with the much simpler ramfs code,
  799. which may be appropriate on small systems without swap.
  800. config AIO
  801. bool "Enable AIO support" if EMBEDDED
  802. default y
  803. help
  804. This option enables POSIX asynchronous I/O which may by used
  805. by some high performance threaded applications. Disabling
  806. this option saves about 7k.
  807. config HAVE_PERF_EVENTS
  808. bool
  809. help
  810. See tools/perf/design.txt for details.
  811. config PERF_USE_VMALLOC
  812. bool
  813. help
  814. See tools/perf/design.txt for details
  815. menu "Kernel Performance Events And Counters"
  816. config PERF_EVENTS
  817. bool "Kernel performance events and counters"
  818. default y if (PROFILING || PERF_COUNTERS)
  819. depends on HAVE_PERF_EVENTS
  820. select ANON_INODES
  821. help
  822. Enable kernel support for various performance events provided
  823. by software and hardware.
  824. Software events are supported either built-in or via the
  825. use of generic tracepoints.
  826. Most modern CPUs support performance events via performance
  827. counter registers. These registers count the number of certain
  828. types of hw events: such as instructions executed, cachemisses
  829. suffered, or branches mis-predicted - without slowing down the
  830. kernel or applications. These registers can also trigger interrupts
  831. when a threshold number of events have passed - and can thus be
  832. used to profile the code that runs on that CPU.
  833. The Linux Performance Event subsystem provides an abstraction of
  834. these software and hardware event capabilities, available via a
  835. system call and used by the "perf" utility in tools/perf/. It
  836. provides per task and per CPU counters, and it provides event
  837. capabilities on top of those.
  838. Say Y if unsure.
  839. config PERF_COUNTERS
  840. bool "Kernel performance counters (old config option)"
  841. depends on HAVE_PERF_EVENTS
  842. help
  843. This config has been obsoleted by the PERF_EVENTS
  844. config option - please see that one for details.
  845. It has no effect on the kernel whether you enable
  846. it or not, it is a compatibility placeholder.
  847. Say N if unsure.
  848. config DEBUG_PERF_USE_VMALLOC
  849. default n
  850. bool "Debug: use vmalloc to back perf mmap() buffers"
  851. depends on PERF_EVENTS && DEBUG_KERNEL
  852. select PERF_USE_VMALLOC
  853. help
  854. Use vmalloc memory to back perf mmap() buffers.
  855. Mostly useful for debugging the vmalloc code on platforms
  856. that don't require it.
  857. Say N if unsure.
  858. endmenu
  859. config VM_EVENT_COUNTERS
  860. default y
  861. bool "Enable VM event counters for /proc/vmstat" if EMBEDDED
  862. help
  863. VM event counters are needed for event counts to be shown.
  864. This option allows the disabling of the VM event counters
  865. on EMBEDDED systems. /proc/vmstat will only show page counts
  866. if VM event counters are disabled.
  867. config PCI_QUIRKS
  868. default y
  869. bool "Enable PCI quirk workarounds" if EMBEDDED
  870. depends on PCI
  871. help
  872. This enables workarounds for various PCI chipset
  873. bugs/quirks. Disable this only if your target machine is
  874. unaffected by PCI quirks.
  875. config SLUB_DEBUG
  876. default y
  877. bool "Enable SLUB debugging support" if EMBEDDED
  878. depends on SLUB && SYSFS
  879. help
  880. SLUB has extensive debug support features. Disabling these can
  881. result in significant savings in code size. This also disables
  882. SLUB sysfs support. /sys/slab will not exist and there will be
  883. no support for cache validation etc.
  884. config COMPAT_BRK
  885. bool "Disable heap randomization"
  886. default y
  887. help
  888. Randomizing heap placement makes heap exploits harder, but it
  889. also breaks ancient binaries (including anything libc5 based).
  890. This option changes the bootup default to heap randomization
  891. disabled, and can be overridden at runtime by setting
  892. /proc/sys/kernel/randomize_va_space to 2.
  893. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  894. choice
  895. prompt "Choose SLAB allocator"
  896. default SLUB
  897. help
  898. This option allows to select a slab allocator.
  899. config SLAB
  900. bool "SLAB"
  901. help
  902. The regular slab allocator that is established and known to work
  903. well in all environments. It organizes cache hot objects in
  904. per cpu and per node queues.
  905. config SLUB
  906. bool "SLUB (Unqueued Allocator)"
  907. help
  908. SLUB is a slab allocator that minimizes cache line usage
  909. instead of managing queues of cached objects (SLAB approach).
  910. Per cpu caching is realized using slabs of objects instead
  911. of queues of objects. SLUB can use memory efficiently
  912. and has enhanced diagnostics. SLUB is the default choice for
  913. a slab allocator.
  914. config SLOB
  915. depends on EMBEDDED
  916. bool "SLOB (Simple Allocator)"
  917. help
  918. SLOB replaces the stock allocator with a drastically simpler
  919. allocator. SLOB is generally more space efficient but
  920. does not perform as well on large systems.
  921. endchoice
  922. config MMAP_ALLOW_UNINITIALIZED
  923. bool "Allow mmapped anonymous memory to be uninitialized"
  924. depends on EMBEDDED && !MMU
  925. default n
  926. help
  927. Normally, and according to the Linux spec, anonymous memory obtained
  928. from mmap() has it's contents cleared before it is passed to
  929. userspace. Enabling this config option allows you to request that
  930. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  931. providing a huge performance boost. If this option is not enabled,
  932. then the flag will be ignored.
  933. This is taken advantage of by uClibc's malloc(), and also by
  934. ELF-FDPIC binfmt's brk and stack allocator.
  935. Because of the obvious security issues, this option should only be
  936. enabled on embedded devices where you control what is run in
  937. userspace. Since that isn't generally a problem on no-MMU systems,
  938. it is normally safe to say Y here.
  939. See Documentation/nommu-mmap.txt for more information.
  940. config PROFILING
  941. bool "Profiling support"
  942. help
  943. Say Y here to enable the extended profiling support mechanisms used
  944. by profilers such as OProfile.
  945. #
  946. # Place an empty function call at each tracepoint site. Can be
  947. # dynamically changed for a probe function.
  948. #
  949. config TRACEPOINTS
  950. bool
  951. source "arch/Kconfig"
  952. config SLOW_WORK
  953. default n
  954. bool
  955. help
  956. The slow work thread pool provides a number of dynamically allocated
  957. threads that can be used by the kernel to perform operations that
  958. take a relatively long time.
  959. An example of this would be CacheFiles doing a path lookup followed
  960. by a series of mkdirs and a create call, all of which have to touch
  961. disk.
  962. See Documentation/slow-work.txt.
  963. config SLOW_WORK_DEBUG
  964. bool "Slow work debugging through debugfs"
  965. default n
  966. depends on SLOW_WORK && DEBUG_FS
  967. help
  968. Display the contents of the slow work run queue through debugfs,
  969. including items currently executing.
  970. See Documentation/slow-work.txt.
  971. endmenu # General setup
  972. config HAVE_GENERIC_DMA_COHERENT
  973. bool
  974. default n
  975. config SLABINFO
  976. bool
  977. depends on PROC_FS
  978. depends on SLAB || SLUB_DEBUG
  979. default y
  980. config RT_MUTEXES
  981. boolean
  982. config BASE_SMALL
  983. int
  984. default 0 if BASE_FULL
  985. default 1 if !BASE_FULL
  986. menuconfig MODULES
  987. bool "Enable loadable module support"
  988. help
  989. Kernel modules are small pieces of compiled code which can
  990. be inserted in the running kernel, rather than being
  991. permanently built into the kernel. You use the "modprobe"
  992. tool to add (and sometimes remove) them. If you say Y here,
  993. many parts of the kernel can be built as modules (by
  994. answering M instead of Y where indicated): this is most
  995. useful for infrequently used options which are not required
  996. for booting. For more information, see the man pages for
  997. modprobe, lsmod, modinfo, insmod and rmmod.
  998. If you say Y here, you will need to run "make
  999. modules_install" to put the modules under /lib/modules/
  1000. where modprobe can find them (you may need to be root to do
  1001. this).
  1002. If unsure, say Y.
  1003. if MODULES
  1004. config MODULE_FORCE_LOAD
  1005. bool "Forced module loading"
  1006. default n
  1007. help
  1008. Allow loading of modules without version information (ie. modprobe
  1009. --force). Forced module loading sets the 'F' (forced) taint flag and
  1010. is usually a really bad idea.
  1011. config MODULE_UNLOAD
  1012. bool "Module unloading"
  1013. help
  1014. Without this option you will not be able to unload any
  1015. modules (note that some modules may not be unloadable
  1016. anyway), which makes your kernel smaller, faster
  1017. and simpler. If unsure, say Y.
  1018. config MODULE_FORCE_UNLOAD
  1019. bool "Forced module unloading"
  1020. depends on MODULE_UNLOAD && EXPERIMENTAL
  1021. help
  1022. This option allows you to force a module to unload, even if the
  1023. kernel believes it is unsafe: the kernel will remove the module
  1024. without waiting for anyone to stop using it (using the -f option to
  1025. rmmod). This is mainly for kernel developers and desperate users.
  1026. If unsure, say N.
  1027. config MODVERSIONS
  1028. bool "Module versioning support"
  1029. help
  1030. Usually, you have to use modules compiled with your kernel.
  1031. Saying Y here makes it sometimes possible to use modules
  1032. compiled for different kernels, by adding enough information
  1033. to the modules to (hopefully) spot any changes which would
  1034. make them incompatible with the kernel you are running. If
  1035. unsure, say N.
  1036. config MODULE_SRCVERSION_ALL
  1037. bool "Source checksum for all modules"
  1038. help
  1039. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1040. field inserted into their modinfo section, which contains a
  1041. sum of the source files which made it. This helps maintainers
  1042. see exactly which source was used to build a module (since
  1043. others sometimes change the module source without updating
  1044. the version). With this option, such a "srcversion" field
  1045. will be created for all modules. If unsure, say N.
  1046. endif # MODULES
  1047. config INIT_ALL_POSSIBLE
  1048. bool
  1049. help
  1050. Back when each arch used to define their own cpu_online_map and
  1051. cpu_possible_map, some of them chose to initialize cpu_possible_map
  1052. with all 1s, and others with all 0s. When they were centralised,
  1053. it was better to provide this option than to break all the archs
  1054. and have several arch maintainers pursuing me down dark alleys.
  1055. config STOP_MACHINE
  1056. bool
  1057. default y
  1058. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  1059. help
  1060. Need stop_machine() primitive.
  1061. source "block/Kconfig"
  1062. config PREEMPT_NOTIFIERS
  1063. bool
  1064. config PADATA
  1065. depends on SMP
  1066. bool
  1067. source "kernel/Kconfig.locks"