Kconfig 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292
  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
  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. menu "RCU Subsystem"
  286. choice
  287. prompt "RCU Implementation"
  288. default TREE_RCU
  289. config TREE_RCU
  290. bool "Tree-based hierarchical RCU"
  291. depends on !PREEMPT && SMP
  292. help
  293. This option selects the RCU implementation that is
  294. designed for very large SMP system with hundreds or
  295. thousands of CPUs. It also scales down nicely to
  296. smaller systems.
  297. config TREE_PREEMPT_RCU
  298. bool "Preemptible tree-based hierarchical RCU"
  299. depends on PREEMPT
  300. help
  301. This option selects the RCU implementation that is
  302. designed for very large SMP systems with hundreds or
  303. thousands of CPUs, but for which real-time response
  304. is also required. It also scales down nicely to
  305. smaller systems.
  306. config TINY_RCU
  307. bool "UP-only small-memory-footprint RCU"
  308. depends on !SMP
  309. help
  310. This option selects the RCU implementation that is
  311. designed for UP systems from which real-time response
  312. is not required. This option greatly reduces the
  313. memory footprint of RCU.
  314. config TINY_PREEMPT_RCU
  315. bool "Preemptible UP-only small-memory-footprint RCU"
  316. depends on !SMP && PREEMPT
  317. help
  318. This option selects the RCU implementation that is designed
  319. for real-time UP systems. This option greatly reduces the
  320. memory footprint of RCU.
  321. endchoice
  322. config PREEMPT_RCU
  323. def_bool ( TREE_PREEMPT_RCU || TINY_PREEMPT_RCU )
  324. help
  325. This option enables preemptible-RCU code that is common between
  326. the TREE_PREEMPT_RCU and TINY_PREEMPT_RCU implementations.
  327. config RCU_TRACE
  328. bool "Enable tracing for RCU"
  329. depends on TREE_RCU || TREE_PREEMPT_RCU
  330. help
  331. This option provides tracing in RCU which presents stats
  332. in debugfs for debugging RCU implementation.
  333. Say Y here if you want to enable RCU tracing
  334. Say N if you are unsure.
  335. config RCU_FANOUT
  336. int "Tree-based hierarchical RCU fanout value"
  337. range 2 64 if 64BIT
  338. range 2 32 if !64BIT
  339. depends on TREE_RCU || TREE_PREEMPT_RCU
  340. default 64 if 64BIT
  341. default 32 if !64BIT
  342. help
  343. This option controls the fanout of hierarchical implementations
  344. of RCU, allowing RCU to work efficiently on machines with
  345. large numbers of CPUs. This value must be at least the fourth
  346. root of NR_CPUS, which allows NR_CPUS to be insanely large.
  347. The default value of RCU_FANOUT should be used for production
  348. systems, but if you are stress-testing the RCU implementation
  349. itself, small RCU_FANOUT values allow you to test large-system
  350. code paths on small(er) systems.
  351. Select a specific number if testing RCU itself.
  352. Take the default if unsure.
  353. config RCU_FANOUT_EXACT
  354. bool "Disable tree-based hierarchical RCU auto-balancing"
  355. depends on TREE_RCU || TREE_PREEMPT_RCU
  356. default n
  357. help
  358. This option forces use of the exact RCU_FANOUT value specified,
  359. regardless of imbalances in the hierarchy. This is useful for
  360. testing RCU itself, and might one day be useful on systems with
  361. strong NUMA behavior.
  362. Without RCU_FANOUT_EXACT, the code will balance the hierarchy.
  363. Say N if unsure.
  364. config RCU_FAST_NO_HZ
  365. bool "Accelerate last non-dyntick-idle CPU's grace periods"
  366. depends on TREE_RCU && NO_HZ && SMP
  367. default n
  368. help
  369. This option causes RCU to attempt to accelerate grace periods
  370. in order to allow the final CPU to enter dynticks-idle state
  371. more quickly. On the other hand, this option increases the
  372. overhead of the dynticks-idle checking, particularly on systems
  373. with large numbers of CPUs.
  374. Say Y if energy efficiency is critically important, particularly
  375. if you have relatively few CPUs.
  376. Say N if you are unsure.
  377. config TREE_RCU_TRACE
  378. def_bool RCU_TRACE && ( TREE_RCU || TREE_PREEMPT_RCU )
  379. select DEBUG_FS
  380. help
  381. This option provides tracing for the TREE_RCU and
  382. TREE_PREEMPT_RCU implementations, permitting Makefile to
  383. trivially select kernel/rcutree_trace.c.
  384. endmenu # "RCU Subsystem"
  385. config IKCONFIG
  386. tristate "Kernel .config support"
  387. ---help---
  388. This option enables the complete Linux kernel ".config" file
  389. contents to be saved in the kernel. It provides documentation
  390. of which kernel options are used in a running kernel or in an
  391. on-disk kernel. This information can be extracted from the kernel
  392. image file with the script scripts/extract-ikconfig and used as
  393. input to rebuild the current kernel or to build another kernel.
  394. It can also be extracted from a running kernel by reading
  395. /proc/config.gz if enabled (below).
  396. config IKCONFIG_PROC
  397. bool "Enable access to .config through /proc/config.gz"
  398. depends on IKCONFIG && PROC_FS
  399. ---help---
  400. This option enables access to the kernel configuration file
  401. through /proc/config.gz.
  402. config LOG_BUF_SHIFT
  403. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  404. range 12 21
  405. default 17
  406. help
  407. Select kernel log buffer size as a power of 2.
  408. Examples:
  409. 17 => 128 KB
  410. 16 => 64 KB
  411. 15 => 32 KB
  412. 14 => 16 KB
  413. 13 => 8 KB
  414. 12 => 4 KB
  415. #
  416. # Architectures with an unreliable sched_clock() should select this:
  417. #
  418. config HAVE_UNSTABLE_SCHED_CLOCK
  419. bool
  420. menuconfig CGROUPS
  421. boolean "Control Group support"
  422. depends on EVENTFD
  423. help
  424. This option adds support for grouping sets of processes together, for
  425. use with process control subsystems such as Cpusets, CFS, memory
  426. controls or device isolation.
  427. See
  428. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  429. - Documentation/cgroups/ (features for grouping, isolation
  430. and resource control)
  431. Say N if unsure.
  432. if CGROUPS
  433. config CGROUP_DEBUG
  434. bool "Example debug cgroup subsystem"
  435. depends on CGROUPS
  436. default n
  437. help
  438. This option enables a simple cgroup subsystem that
  439. exports useful debugging information about the cgroups
  440. framework.
  441. Say N if unsure.
  442. config CGROUP_NS
  443. bool "Namespace cgroup subsystem"
  444. depends on CGROUPS
  445. help
  446. Provides a simple namespace cgroup subsystem to
  447. provide hierarchical naming of sets of namespaces,
  448. for instance virtual servers and checkpoint/restart
  449. jobs.
  450. config CGROUP_FREEZER
  451. bool "Freezer cgroup subsystem"
  452. depends on CGROUPS
  453. help
  454. Provides a way to freeze and unfreeze all tasks in a
  455. cgroup.
  456. config CGROUP_DEVICE
  457. bool "Device controller for cgroups"
  458. depends on CGROUPS && EXPERIMENTAL
  459. help
  460. Provides a cgroup implementing whitelists for devices which
  461. a process in the cgroup can mknod or open.
  462. config CPUSETS
  463. bool "Cpuset support"
  464. depends on CGROUPS
  465. help
  466. This option will let you create and manage CPUSETs which
  467. allow dynamically partitioning a system into sets of CPUs and
  468. Memory Nodes and assigning tasks to run only within those sets.
  469. This is primarily useful on large SMP or NUMA systems.
  470. Say N if unsure.
  471. config PROC_PID_CPUSET
  472. bool "Include legacy /proc/<pid>/cpuset file"
  473. depends on CPUSETS
  474. default y
  475. config CGROUP_CPUACCT
  476. bool "Simple CPU accounting cgroup subsystem"
  477. depends on CGROUPS
  478. help
  479. Provides a simple Resource Controller for monitoring the
  480. total CPU consumed by the tasks in a cgroup.
  481. config RESOURCE_COUNTERS
  482. bool "Resource counters"
  483. help
  484. This option enables controller independent resource accounting
  485. infrastructure that works with cgroups.
  486. depends on CGROUPS
  487. config CGROUP_MEM_RES_CTLR
  488. bool "Memory Resource Controller for Control Groups"
  489. depends on CGROUPS && RESOURCE_COUNTERS
  490. select MM_OWNER
  491. help
  492. Provides a memory resource controller that manages both anonymous
  493. memory and page cache. (See Documentation/cgroups/memory.txt)
  494. Note that setting this option increases fixed memory overhead
  495. associated with each page of memory in the system. By this,
  496. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  497. usage tracking struct at boot. Total amount of this is printed out
  498. at boot.
  499. Only enable when you're ok with these trade offs and really
  500. sure you need the memory resource controller. Even when you enable
  501. this, you can set "cgroup_disable=memory" at your boot option to
  502. disable memory resource controller and you can avoid overheads.
  503. (and lose benefits of memory resource controller)
  504. This config option also selects MM_OWNER config option, which
  505. could in turn add some fork/exit overhead.
  506. config CGROUP_MEM_RES_CTLR_SWAP
  507. bool "Memory Resource Controller Swap Extension"
  508. depends on CGROUP_MEM_RES_CTLR && SWAP
  509. help
  510. Add swap management feature to memory resource controller. When you
  511. enable this, you can limit mem+swap usage per cgroup. In other words,
  512. when you disable this, memory resource controller has no cares to
  513. usage of swap...a process can exhaust all of the swap. This extension
  514. is useful when you want to avoid exhaustion swap but this itself
  515. adds more overheads and consumes memory for remembering information.
  516. Especially if you use 32bit system or small memory system, please
  517. be careful about enabling this. When memory resource controller
  518. is disabled by boot option, this will be automatically disabled and
  519. there will be no overhead from this. Even when you set this config=y,
  520. if boot option "noswapaccount" is set, swap will not be accounted.
  521. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  522. size is 4096bytes, 512k per 1Gbytes of swap.
  523. menuconfig CGROUP_SCHED
  524. bool "Group CPU scheduler"
  525. depends on EXPERIMENTAL && CGROUPS
  526. default n
  527. help
  528. This feature lets CPU scheduler recognize task groups and control CPU
  529. bandwidth allocation to such task groups. It uses cgroups to group
  530. tasks.
  531. if CGROUP_SCHED
  532. config FAIR_GROUP_SCHED
  533. bool "Group scheduling for SCHED_OTHER"
  534. depends on CGROUP_SCHED
  535. default CGROUP_SCHED
  536. config RT_GROUP_SCHED
  537. bool "Group scheduling for SCHED_RR/FIFO"
  538. depends on EXPERIMENTAL
  539. depends on CGROUP_SCHED
  540. default n
  541. help
  542. This feature lets you explicitly allocate real CPU bandwidth
  543. to task groups. If enabled, it will also make it impossible to
  544. schedule realtime tasks for non-root users until you allocate
  545. realtime bandwidth for them.
  546. See Documentation/scheduler/sched-rt-group.txt for more information.
  547. endif #CGROUP_SCHED
  548. config BLK_CGROUP
  549. tristate "Block IO controller"
  550. depends on CGROUPS && BLOCK
  551. default n
  552. ---help---
  553. Generic block IO controller cgroup interface. This is the common
  554. cgroup interface which should be used by various IO controlling
  555. policies.
  556. Currently, CFQ IO scheduler uses it to recognize task groups and
  557. control disk bandwidth allocation (proportional time slice allocation)
  558. to such task groups.
  559. This option only enables generic Block IO controller infrastructure.
  560. One needs to also enable actual IO controlling logic in CFQ for it
  561. to take effect. (CONFIG_CFQ_GROUP_IOSCHED=y).
  562. See Documentation/cgroups/blkio-controller.txt for more information.
  563. config DEBUG_BLK_CGROUP
  564. bool "Enable Block IO controller debugging"
  565. depends on BLK_CGROUP
  566. default n
  567. ---help---
  568. Enable some debugging help. Currently it exports additional stat
  569. files in a cgroup which can be useful for debugging.
  570. endif # CGROUPS
  571. config MM_OWNER
  572. bool
  573. config SYSFS_DEPRECATED
  574. bool
  575. config SYSFS_DEPRECATED_V2
  576. bool "enable deprecated sysfs features to support old userspace tools"
  577. depends on SYSFS
  578. default n
  579. select SYSFS_DEPRECATED
  580. help
  581. This option switches the layout of sysfs to the deprecated
  582. version. Do not use it on recent distributions.
  583. The current sysfs layout features a unified device tree at
  584. /sys/devices/, which is able to express a hierarchy between
  585. class devices. If the deprecated option is set to Y, the
  586. unified device tree is split into a bus device tree at
  587. /sys/devices/ and several individual class device trees at
  588. /sys/class/. The class and bus devices will be connected by
  589. "<subsystem>:<name>" and the "device" links. The "block"
  590. class devices, will not show up in /sys/class/block/. Some
  591. subsystems will suppress the creation of some devices which
  592. depend on the unified device tree.
  593. This option is not a pure compatibility option that can
  594. be safely enabled on newer distributions. It will change the
  595. layout of sysfs to the non-extensible deprecated version,
  596. and disable some features, which can not be exported without
  597. confusing older userspace tools. Since 2007/2008 all major
  598. distributions do not enable this option, and ship no tools which
  599. depend on the deprecated layout or this option.
  600. If you are using a new kernel on an older distribution, or use
  601. older userspace tools, you might need to say Y here. Do not say Y,
  602. if the original kernel, that came with your distribution, has
  603. this option set to N.
  604. config RELAY
  605. bool "Kernel->user space relay support (formerly relayfs)"
  606. help
  607. This option enables support for relay interface support in
  608. certain file systems (such as debugfs).
  609. It is designed to provide an efficient mechanism for tools and
  610. facilities to relay large amounts of data from kernel space to
  611. user space.
  612. If unsure, say N.
  613. config NAMESPACES
  614. bool "Namespaces support" if EMBEDDED
  615. default !EMBEDDED
  616. help
  617. Provides the way to make tasks work with different objects using
  618. the same id. For example same IPC id may refer to different objects
  619. or same user id or pid may refer to different tasks when used in
  620. different namespaces.
  621. config UTS_NS
  622. bool "UTS namespace"
  623. depends on NAMESPACES
  624. help
  625. In this namespace tasks see different info provided with the
  626. uname() system call
  627. config IPC_NS
  628. bool "IPC namespace"
  629. depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
  630. help
  631. In this namespace tasks work with IPC ids which correspond to
  632. different IPC objects in different namespaces.
  633. config USER_NS
  634. bool "User namespace (EXPERIMENTAL)"
  635. depends on NAMESPACES && EXPERIMENTAL
  636. help
  637. This allows containers, i.e. vservers, to use user namespaces
  638. to provide different user info for different servers.
  639. If unsure, say N.
  640. config PID_NS
  641. bool "PID Namespaces (EXPERIMENTAL)"
  642. default n
  643. depends on NAMESPACES && EXPERIMENTAL
  644. help
  645. Support process id namespaces. This allows having multiple
  646. processes with the same pid as long as they are in different
  647. pid namespaces. This is a building block of containers.
  648. Unless you want to work with an experimental feature
  649. say N here.
  650. config NET_NS
  651. bool "Network namespace"
  652. default n
  653. depends on NAMESPACES && EXPERIMENTAL && NET
  654. help
  655. Allow user space to create what appear to be multiple instances
  656. of the network stack.
  657. config BLK_DEV_INITRD
  658. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  659. depends on BROKEN || !FRV
  660. help
  661. The initial RAM filesystem is a ramfs which is loaded by the
  662. boot loader (loadlin or lilo) and that is mounted as root
  663. before the normal boot procedure. It is typically used to
  664. load modules needed to mount the "real" root file system,
  665. etc. See <file:Documentation/initrd.txt> for details.
  666. If RAM disk support (BLK_DEV_RAM) is also included, this
  667. also enables initial RAM disk (initrd) support and adds
  668. 15 Kbytes (more on some other architectures) to the kernel size.
  669. If unsure say Y.
  670. if BLK_DEV_INITRD
  671. source "usr/Kconfig"
  672. endif
  673. config CC_OPTIMIZE_FOR_SIZE
  674. bool "Optimize for size"
  675. default y
  676. help
  677. Enabling this option will pass "-Os" instead of "-O2" to gcc
  678. resulting in a smaller kernel.
  679. If unsure, say Y.
  680. config SYSCTL
  681. bool
  682. config ANON_INODES
  683. bool
  684. menuconfig EMBEDDED
  685. bool "Configure standard kernel features (for small systems)"
  686. help
  687. This option allows certain base kernel options and settings
  688. to be disabled or tweaked. This is for specialized
  689. environments which can tolerate a "non-standard" kernel.
  690. Only use this if you really know what you are doing.
  691. config UID16
  692. bool "Enable 16-bit UID system calls" if EMBEDDED
  693. depends on ARM || BLACKFIN || CRIS || FRV || H8300 || X86_32 || M68K || (S390 && !64BIT) || SUPERH || SPARC32 || (SPARC64 && COMPAT) || UML || (X86_64 && IA32_EMULATION)
  694. default y
  695. help
  696. This enables the legacy 16-bit UID syscall wrappers.
  697. config SYSCTL_SYSCALL
  698. bool "Sysctl syscall support" if EMBEDDED
  699. depends on PROC_SYSCTL
  700. default y
  701. select SYSCTL
  702. ---help---
  703. sys_sysctl uses binary paths that have been found challenging
  704. to properly maintain and use. The interface in /proc/sys
  705. using paths with ascii names is now the primary path to this
  706. information.
  707. Almost nothing using the binary sysctl interface so if you are
  708. trying to save some space it is probably safe to disable this,
  709. making your kernel marginally smaller.
  710. If unsure say Y here.
  711. config KALLSYMS
  712. bool "Load all symbols for debugging/ksymoops" if EMBEDDED
  713. default y
  714. help
  715. Say Y here to let the kernel print out symbolic crash information and
  716. symbolic stack backtraces. This increases the size of the kernel
  717. somewhat, as all symbols have to be loaded into the kernel image.
  718. config KALLSYMS_ALL
  719. bool "Include all symbols in kallsyms"
  720. depends on DEBUG_KERNEL && KALLSYMS
  721. help
  722. Normally kallsyms only contains the symbols of functions, for nicer
  723. OOPS messages. Some debuggers can use kallsyms for other
  724. symbols too: say Y here to include all symbols, if you need them
  725. and you don't care about adding 300k to the size of your kernel.
  726. Say N.
  727. config KALLSYMS_EXTRA_PASS
  728. bool "Do an extra kallsyms pass"
  729. depends on KALLSYMS
  730. help
  731. If kallsyms is not working correctly, the build will fail with
  732. inconsistent kallsyms data. If that occurs, log a bug report and
  733. turn on KALLSYMS_EXTRA_PASS which should result in a stable build.
  734. Always say N here unless you find a bug in kallsyms, which must be
  735. reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while
  736. you wait for kallsyms to be fixed.
  737. config HOTPLUG
  738. bool "Support for hot-pluggable devices" if EMBEDDED
  739. default y
  740. help
  741. This option is provided for the case where no hotplug or uevent
  742. capabilities is wanted by the kernel. You should only consider
  743. disabling this option for embedded systems that do not use modules, a
  744. dynamic /dev tree, or dynamic device discovery. Just say Y.
  745. config PRINTK
  746. default y
  747. bool "Enable support for printk" if EMBEDDED
  748. help
  749. This option enables normal printk support. Removing it
  750. eliminates most of the message strings from the kernel image
  751. and makes the kernel more or less silent. As this makes it
  752. very difficult to diagnose system problems, saying N here is
  753. strongly discouraged.
  754. config BUG
  755. bool "BUG() support" if EMBEDDED
  756. default y
  757. help
  758. Disabling this option eliminates support for BUG and WARN, reducing
  759. the size of your kernel image and potentially quietly ignoring
  760. numerous fatal conditions. You should only consider disabling this
  761. option for embedded systems with no facilities for reporting errors.
  762. Just say Y.
  763. config ELF_CORE
  764. default y
  765. bool "Enable ELF core dumps" if EMBEDDED
  766. help
  767. Enable support for generating core dumps. Disabling saves about 4k.
  768. config PCSPKR_PLATFORM
  769. bool "Enable PC-Speaker support" if EMBEDDED
  770. depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
  771. default y
  772. help
  773. This option allows to disable the internal PC-Speaker
  774. support, saving some memory.
  775. config BASE_FULL
  776. default y
  777. bool "Enable full-sized data structures for core" if EMBEDDED
  778. help
  779. Disabling this option reduces the size of miscellaneous core
  780. kernel data structures. This saves memory on small machines,
  781. but may reduce performance.
  782. config FUTEX
  783. bool "Enable futex support" if EMBEDDED
  784. default y
  785. select RT_MUTEXES
  786. help
  787. Disabling this option will cause the kernel to be built without
  788. support for "fast userspace mutexes". The resulting kernel may not
  789. run glibc-based applications correctly.
  790. config EPOLL
  791. bool "Enable eventpoll support" if EMBEDDED
  792. default y
  793. select ANON_INODES
  794. help
  795. Disabling this option will cause the kernel to be built without
  796. support for epoll family of system calls.
  797. config SIGNALFD
  798. bool "Enable signalfd() system call" if EMBEDDED
  799. select ANON_INODES
  800. default y
  801. help
  802. Enable the signalfd() system call that allows to receive signals
  803. on a file descriptor.
  804. If unsure, say Y.
  805. config TIMERFD
  806. bool "Enable timerfd() system call" if EMBEDDED
  807. select ANON_INODES
  808. default y
  809. help
  810. Enable the timerfd() system call that allows to receive timer
  811. events on a file descriptor.
  812. If unsure, say Y.
  813. config EVENTFD
  814. bool "Enable eventfd() system call" if EMBEDDED
  815. select ANON_INODES
  816. default y
  817. help
  818. Enable the eventfd() system call that allows to receive both
  819. kernel notification (ie. KAIO) or userspace notifications.
  820. If unsure, say Y.
  821. config SHMEM
  822. bool "Use full shmem filesystem" if EMBEDDED
  823. default y
  824. depends on MMU
  825. help
  826. The shmem is an internal filesystem used to manage shared memory.
  827. It is backed by swap and manages resource limits. It is also exported
  828. to userspace as tmpfs if TMPFS is enabled. Disabling this
  829. option replaces shmem and tmpfs with the much simpler ramfs code,
  830. which may be appropriate on small systems without swap.
  831. config AIO
  832. bool "Enable AIO support" if EMBEDDED
  833. default y
  834. help
  835. This option enables POSIX asynchronous I/O which may by used
  836. by some high performance threaded applications. Disabling
  837. this option saves about 7k.
  838. config HAVE_PERF_EVENTS
  839. bool
  840. help
  841. See tools/perf/design.txt for details.
  842. config PERF_USE_VMALLOC
  843. bool
  844. help
  845. See tools/perf/design.txt for details
  846. menu "Kernel Performance Events And Counters"
  847. config PERF_EVENTS
  848. bool "Kernel performance events and counters"
  849. default y if (PROFILING || PERF_COUNTERS)
  850. depends on HAVE_PERF_EVENTS
  851. select ANON_INODES
  852. select IRQ_WORK
  853. help
  854. Enable kernel support for various performance events provided
  855. by software and hardware.
  856. Software events are supported either built-in or via the
  857. use of generic tracepoints.
  858. Most modern CPUs support performance events via performance
  859. counter registers. These registers count the number of certain
  860. types of hw events: such as instructions executed, cachemisses
  861. suffered, or branches mis-predicted - without slowing down the
  862. kernel or applications. These registers can also trigger interrupts
  863. when a threshold number of events have passed - and can thus be
  864. used to profile the code that runs on that CPU.
  865. The Linux Performance Event subsystem provides an abstraction of
  866. these software and hardware event capabilities, available via a
  867. system call and used by the "perf" utility in tools/perf/. It
  868. provides per task and per CPU counters, and it provides event
  869. capabilities on top of those.
  870. Say Y if unsure.
  871. config PERF_COUNTERS
  872. bool "Kernel performance counters (old config option)"
  873. depends on HAVE_PERF_EVENTS
  874. help
  875. This config has been obsoleted by the PERF_EVENTS
  876. config option - please see that one for details.
  877. It has no effect on the kernel whether you enable
  878. it or not, it is a compatibility placeholder.
  879. Say N if unsure.
  880. config DEBUG_PERF_USE_VMALLOC
  881. default n
  882. bool "Debug: use vmalloc to back perf mmap() buffers"
  883. depends on PERF_EVENTS && DEBUG_KERNEL
  884. select PERF_USE_VMALLOC
  885. help
  886. Use vmalloc memory to back perf mmap() buffers.
  887. Mostly useful for debugging the vmalloc code on platforms
  888. that don't require it.
  889. Say N if unsure.
  890. endmenu
  891. config VM_EVENT_COUNTERS
  892. default y
  893. bool "Enable VM event counters for /proc/vmstat" if EMBEDDED
  894. help
  895. VM event counters are needed for event counts to be shown.
  896. This option allows the disabling of the VM event counters
  897. on EMBEDDED systems. /proc/vmstat will only show page counts
  898. if VM event counters are disabled.
  899. config PCI_QUIRKS
  900. default y
  901. bool "Enable PCI quirk workarounds" if EMBEDDED
  902. depends on PCI
  903. help
  904. This enables workarounds for various PCI chipset
  905. bugs/quirks. Disable this only if your target machine is
  906. unaffected by PCI quirks.
  907. config SLUB_DEBUG
  908. default y
  909. bool "Enable SLUB debugging support" if EMBEDDED
  910. depends on SLUB && SYSFS
  911. help
  912. SLUB has extensive debug support features. Disabling these can
  913. result in significant savings in code size. This also disables
  914. SLUB sysfs support. /sys/slab will not exist and there will be
  915. no support for cache validation etc.
  916. config COMPAT_BRK
  917. bool "Disable heap randomization"
  918. default y
  919. help
  920. Randomizing heap placement makes heap exploits harder, but it
  921. also breaks ancient binaries (including anything libc5 based).
  922. This option changes the bootup default to heap randomization
  923. disabled, and can be overridden at runtime by setting
  924. /proc/sys/kernel/randomize_va_space to 2.
  925. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  926. choice
  927. prompt "Choose SLAB allocator"
  928. default SLUB
  929. help
  930. This option allows to select a slab allocator.
  931. config SLAB
  932. bool "SLAB"
  933. help
  934. The regular slab allocator that is established and known to work
  935. well in all environments. It organizes cache hot objects in
  936. per cpu and per node queues.
  937. config SLUB
  938. bool "SLUB (Unqueued Allocator)"
  939. help
  940. SLUB is a slab allocator that minimizes cache line usage
  941. instead of managing queues of cached objects (SLAB approach).
  942. Per cpu caching is realized using slabs of objects instead
  943. of queues of objects. SLUB can use memory efficiently
  944. and has enhanced diagnostics. SLUB is the default choice for
  945. a slab allocator.
  946. config SLOB
  947. depends on EMBEDDED
  948. bool "SLOB (Simple Allocator)"
  949. help
  950. SLOB replaces the stock allocator with a drastically simpler
  951. allocator. SLOB is generally more space efficient but
  952. does not perform as well on large systems.
  953. endchoice
  954. config MMAP_ALLOW_UNINITIALIZED
  955. bool "Allow mmapped anonymous memory to be uninitialized"
  956. depends on EMBEDDED && !MMU
  957. default n
  958. help
  959. Normally, and according to the Linux spec, anonymous memory obtained
  960. from mmap() has it's contents cleared before it is passed to
  961. userspace. Enabling this config option allows you to request that
  962. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  963. providing a huge performance boost. If this option is not enabled,
  964. then the flag will be ignored.
  965. This is taken advantage of by uClibc's malloc(), and also by
  966. ELF-FDPIC binfmt's brk and stack allocator.
  967. Because of the obvious security issues, this option should only be
  968. enabled on embedded devices where you control what is run in
  969. userspace. Since that isn't generally a problem on no-MMU systems,
  970. it is normally safe to say Y here.
  971. See Documentation/nommu-mmap.txt for more information.
  972. config PROFILING
  973. bool "Profiling support"
  974. help
  975. Say Y here to enable the extended profiling support mechanisms used
  976. by profilers such as OProfile.
  977. #
  978. # Place an empty function call at each tracepoint site. Can be
  979. # dynamically changed for a probe function.
  980. #
  981. config TRACEPOINTS
  982. bool
  983. source "arch/Kconfig"
  984. endmenu # General setup
  985. config HAVE_GENERIC_DMA_COHERENT
  986. bool
  987. default n
  988. config SLABINFO
  989. bool
  990. depends on PROC_FS
  991. depends on SLAB || SLUB_DEBUG
  992. default y
  993. config RT_MUTEXES
  994. boolean
  995. config BASE_SMALL
  996. int
  997. default 0 if BASE_FULL
  998. default 1 if !BASE_FULL
  999. menuconfig MODULES
  1000. bool "Enable loadable module support"
  1001. help
  1002. Kernel modules are small pieces of compiled code which can
  1003. be inserted in the running kernel, rather than being
  1004. permanently built into the kernel. You use the "modprobe"
  1005. tool to add (and sometimes remove) them. If you say Y here,
  1006. many parts of the kernel can be built as modules (by
  1007. answering M instead of Y where indicated): this is most
  1008. useful for infrequently used options which are not required
  1009. for booting. For more information, see the man pages for
  1010. modprobe, lsmod, modinfo, insmod and rmmod.
  1011. If you say Y here, you will need to run "make
  1012. modules_install" to put the modules under /lib/modules/
  1013. where modprobe can find them (you may need to be root to do
  1014. this).
  1015. If unsure, say Y.
  1016. if MODULES
  1017. config MODULE_FORCE_LOAD
  1018. bool "Forced module loading"
  1019. default n
  1020. help
  1021. Allow loading of modules without version information (ie. modprobe
  1022. --force). Forced module loading sets the 'F' (forced) taint flag and
  1023. is usually a really bad idea.
  1024. config MODULE_UNLOAD
  1025. bool "Module unloading"
  1026. help
  1027. Without this option you will not be able to unload any
  1028. modules (note that some modules may not be unloadable
  1029. anyway), which makes your kernel smaller, faster
  1030. and simpler. If unsure, say Y.
  1031. config MODULE_FORCE_UNLOAD
  1032. bool "Forced module unloading"
  1033. depends on MODULE_UNLOAD && EXPERIMENTAL
  1034. help
  1035. This option allows you to force a module to unload, even if the
  1036. kernel believes it is unsafe: the kernel will remove the module
  1037. without waiting for anyone to stop using it (using the -f option to
  1038. rmmod). This is mainly for kernel developers and desperate users.
  1039. If unsure, say N.
  1040. config MODVERSIONS
  1041. bool "Module versioning support"
  1042. help
  1043. Usually, you have to use modules compiled with your kernel.
  1044. Saying Y here makes it sometimes possible to use modules
  1045. compiled for different kernels, by adding enough information
  1046. to the modules to (hopefully) spot any changes which would
  1047. make them incompatible with the kernel you are running. If
  1048. unsure, say N.
  1049. config MODULE_SRCVERSION_ALL
  1050. bool "Source checksum for all modules"
  1051. help
  1052. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1053. field inserted into their modinfo section, which contains a
  1054. sum of the source files which made it. This helps maintainers
  1055. see exactly which source was used to build a module (since
  1056. others sometimes change the module source without updating
  1057. the version). With this option, such a "srcversion" field
  1058. will be created for all modules. If unsure, say N.
  1059. endif # MODULES
  1060. config INIT_ALL_POSSIBLE
  1061. bool
  1062. help
  1063. Back when each arch used to define their own cpu_online_map and
  1064. cpu_possible_map, some of them chose to initialize cpu_possible_map
  1065. with all 1s, and others with all 0s. When they were centralised,
  1066. it was better to provide this option than to break all the archs
  1067. and have several arch maintainers pursuing me down dark alleys.
  1068. config STOP_MACHINE
  1069. bool
  1070. default y
  1071. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  1072. help
  1073. Need stop_machine() primitive.
  1074. source "block/Kconfig"
  1075. config PREEMPT_NOTIFIERS
  1076. bool
  1077. config PADATA
  1078. depends on SMP
  1079. bool
  1080. source "kernel/Kconfig.locks"