Kconfig 38 KB

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