Kconfig 41 KB

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