Kconfig 40 KB

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