Kconfig 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879
  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/$ARCH/defconfig"
  15. menu "General setup"
  16. config EXPERIMENTAL
  17. bool "Prompt for development and/or incomplete code/drivers"
  18. ---help---
  19. Some of the various things that Linux supports (such as network
  20. drivers, file systems, network protocols, etc.) can be in a state
  21. of development where the functionality, stability, or the level of
  22. testing is not yet high enough for general use. This is usually
  23. known as the "alpha-test" phase among developers. If a feature is
  24. currently in alpha-test, then the developers usually discourage
  25. uninformed widespread use of this feature by the general public to
  26. avoid "Why doesn't this work?" type mail messages. However, active
  27. testing and use of these systems is welcomed. Just be aware that it
  28. may not meet the normal level of reliability or it may fail to work
  29. in some special cases. Detailed bug reports from people familiar
  30. with the kernel internals are usually welcomed by the developers
  31. (before submitting bug reports, please read the documents
  32. <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
  33. <file:Documentation/BUG-HUNTING>, and
  34. <file:Documentation/oops-tracing.txt> in the kernel source).
  35. This option will also make obsoleted drivers available. These are
  36. drivers that have been replaced by something else, and/or are
  37. scheduled to be removed in a future kernel release.
  38. Unless you intend to help test and develop a feature or driver that
  39. falls into this category, or you have a situation that requires
  40. using these features, you should probably say N here, which will
  41. cause the configurator to present you with fewer choices. If
  42. you say Y here, you will be offered the choice of using features or
  43. drivers that are currently considered to be in the alpha-test phase.
  44. config BROKEN
  45. bool
  46. config BROKEN_ON_SMP
  47. bool
  48. depends on BROKEN || !SMP
  49. default y
  50. config LOCK_KERNEL
  51. bool
  52. depends on SMP || PREEMPT
  53. default y
  54. config INIT_ENV_ARG_LIMIT
  55. int
  56. default 32 if !UML
  57. default 128 if UML
  58. help
  59. Maximum of each of the number of arguments and environment
  60. variables passed to init from the kernel command line.
  61. config LOCALVERSION
  62. string "Local version - append to kernel release"
  63. help
  64. Append an extra string to the end of your kernel version.
  65. This will show up when you type uname, for example.
  66. The string you set here will be appended after the contents of
  67. any files with a filename matching localversion* in your
  68. object and source tree, in that order. Your total string can
  69. be a maximum of 64 characters.
  70. config LOCALVERSION_AUTO
  71. bool "Automatically append version information to the version string"
  72. default y
  73. help
  74. This will try to automatically determine if the current tree is a
  75. release tree by looking for git tags that belong to the current
  76. top of tree revision.
  77. A string of the format -gxxxxxxxx will be added to the localversion
  78. if a git-based tree is found. The string generated by this will be
  79. appended after any matching localversion* files, and after the value
  80. set in CONFIG_LOCALVERSION.
  81. (The actual string used here is the first eight characters produced
  82. by running the command:
  83. $ git rev-parse --verify HEAD
  84. which is done within the script "scripts/setlocalversion".)
  85. config SWAP
  86. bool "Support for paging of anonymous memory (swap)"
  87. depends on MMU && BLOCK
  88. default y
  89. help
  90. This option allows you to choose whether you want to have support
  91. for so called swap devices or swap files in your kernel that are
  92. used to provide more virtual memory than the actual RAM present
  93. in your computer. If unsure say Y.
  94. config SYSVIPC
  95. bool "System V IPC"
  96. ---help---
  97. Inter Process Communication is a suite of library functions and
  98. system calls which let processes (running programs) synchronize and
  99. exchange information. It is generally considered to be a good thing,
  100. and some programs won't run unless you say Y here. In particular, if
  101. you want to run the DOS emulator dosemu under Linux (read the
  102. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  103. you'll need to say Y here.
  104. You can find documentation about IPC with "info ipc" and also in
  105. section 6.4 of the Linux Programmer's Guide, available from
  106. <http://www.tldp.org/guides.html>.
  107. config SYSVIPC_SYSCTL
  108. bool
  109. depends on SYSVIPC
  110. depends on SYSCTL
  111. default y
  112. config POSIX_MQUEUE
  113. bool "POSIX Message Queues"
  114. depends on NET && EXPERIMENTAL
  115. ---help---
  116. POSIX variant of message queues is a part of IPC. In POSIX message
  117. queues every message has a priority which decides about succession
  118. of receiving it by a process. If you want to compile and run
  119. programs written e.g. for Solaris with use of its POSIX message
  120. queues (functions mq_*) say Y here.
  121. POSIX message queues are visible as a filesystem called 'mqueue'
  122. and can be mounted somewhere if you want to do filesystem
  123. operations on message queues.
  124. If unsure, say Y.
  125. config BSD_PROCESS_ACCT
  126. bool "BSD Process Accounting"
  127. help
  128. If you say Y here, a user level program will be able to instruct the
  129. kernel (via a special system call) to write process accounting
  130. information to a file: whenever a process exits, information about
  131. that process will be appended to the file by the kernel. The
  132. information includes things such as creation time, owning user,
  133. command name, memory usage, controlling terminal etc. (the complete
  134. list is in the struct acct in <file:include/linux/acct.h>). It is
  135. up to the user level program to do useful things with this
  136. information. This is generally a good idea, so say Y.
  137. config BSD_PROCESS_ACCT_V3
  138. bool "BSD Process Accounting version 3 file format"
  139. depends on BSD_PROCESS_ACCT
  140. default n
  141. help
  142. If you say Y here, the process accounting information is written
  143. in a new file format that also logs the process IDs of each
  144. process and it's parent. Note that this file format is incompatible
  145. with previous v0/v1/v2 file formats, so you will need updated tools
  146. for processing it. A preliminary version of these tools is available
  147. at <http://www.physik3.uni-rostock.de/tim/kernel/utils/acct/>.
  148. config TASKSTATS
  149. bool "Export task/process statistics through netlink (EXPERIMENTAL)"
  150. depends on NET
  151. default n
  152. help
  153. Export selected statistics for tasks/processes through the
  154. generic netlink interface. Unlike BSD process accounting, the
  155. statistics are available during the lifetime of tasks/processes as
  156. responses to commands. Like BSD accounting, they are sent to user
  157. space on task exit.
  158. Say N if unsure.
  159. config TASK_DELAY_ACCT
  160. bool "Enable per-task delay accounting (EXPERIMENTAL)"
  161. depends on TASKSTATS
  162. help
  163. Collect information on time spent by a task waiting for system
  164. resources like cpu, synchronous block I/O completion and swapping
  165. in pages. Such statistics can help in setting a task's priorities
  166. relative to other tasks for cpu, io, rss limits etc.
  167. Say N if unsure.
  168. config TASK_XACCT
  169. bool "Enable extended accounting over taskstats (EXPERIMENTAL)"
  170. depends on TASKSTATS
  171. help
  172. Collect extended task accounting data and send the data
  173. to userland for processing over the taskstats interface.
  174. Say N if unsure.
  175. config TASK_IO_ACCOUNTING
  176. bool "Enable per-task storage I/O accounting (EXPERIMENTAL)"
  177. depends on TASK_XACCT
  178. help
  179. Collect information on the number of bytes of storage I/O which this
  180. task has caused.
  181. Say N if unsure.
  182. config USER_NS
  183. bool "User Namespaces (EXPERIMENTAL)"
  184. default n
  185. depends on EXPERIMENTAL
  186. help
  187. Support user namespaces. This allows containers, i.e.
  188. vservers, to use user namespaces to provide different
  189. user info for different servers. If unsure, say N.
  190. config PID_NS
  191. bool "PID Namespaces (EXPERIMENTAL)"
  192. default n
  193. depends on EXPERIMENTAL
  194. help
  195. Suport process id namespaces. This allows having multiple
  196. process with the same pid as long as they are in different
  197. pid namespaces. This is a building block of containers.
  198. Unless you want to work with an experimental feature
  199. say N here.
  200. config AUDIT
  201. bool "Auditing support"
  202. depends on NET
  203. help
  204. Enable auditing infrastructure that can be used with another
  205. kernel subsystem, such as SELinux (which requires this for
  206. logging of avc messages output). Does not do system-call
  207. auditing without CONFIG_AUDITSYSCALL.
  208. config AUDITSYSCALL
  209. bool "Enable system-call auditing support"
  210. depends on AUDIT && (X86 || PPC || PPC64 || S390 || IA64 || UML || SPARC64|| SUPERH)
  211. default y if SECURITY_SELINUX
  212. help
  213. Enable low-overhead system-call auditing infrastructure that
  214. can be used independently or with another kernel subsystem,
  215. such as SELinux. To use audit's filesystem watch feature, please
  216. ensure that INOTIFY is configured.
  217. config AUDIT_TREE
  218. def_bool y
  219. depends on AUDITSYSCALL && INOTIFY
  220. config IKCONFIG
  221. tristate "Kernel .config support"
  222. ---help---
  223. This option enables the complete Linux kernel ".config" file
  224. contents to be saved in the kernel. It provides documentation
  225. of which kernel options are used in a running kernel or in an
  226. on-disk kernel. This information can be extracted from the kernel
  227. image file with the script scripts/extract-ikconfig and used as
  228. input to rebuild the current kernel or to build another kernel.
  229. It can also be extracted from a running kernel by reading
  230. /proc/config.gz if enabled (below).
  231. config IKCONFIG_PROC
  232. bool "Enable access to .config through /proc/config.gz"
  233. depends on IKCONFIG && PROC_FS
  234. ---help---
  235. This option enables access to the kernel configuration file
  236. through /proc/config.gz.
  237. config LOG_BUF_SHIFT
  238. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  239. range 12 21
  240. default 17 if S390 || LOCKDEP
  241. default 16 if X86_NUMAQ || IA64
  242. default 15 if SMP
  243. default 14
  244. help
  245. Select kernel log buffer size as a power of 2.
  246. Defaults and Examples:
  247. 17 => 128 KB for S/390
  248. 16 => 64 KB for x86 NUMAQ or IA-64
  249. 15 => 32 KB for SMP
  250. 14 => 16 KB for uniprocessor
  251. 13 => 8 KB
  252. 12 => 4 KB
  253. config CGROUPS
  254. bool "Control Group support"
  255. help
  256. This option will let you use process cgroup subsystems
  257. such as Cpusets
  258. Say N if unsure.
  259. config CGROUP_DEBUG
  260. bool "Example debug cgroup subsystem"
  261. depends on CGROUPS
  262. help
  263. This option enables a simple cgroup subsystem that
  264. exports useful debugging information about the cgroups
  265. framework
  266. Say N if unsure
  267. config CGROUP_NS
  268. bool "Namespace cgroup subsystem"
  269. depends on CGROUPS
  270. help
  271. Provides a simple namespace cgroup subsystem to
  272. provide hierarchical naming of sets of namespaces,
  273. for instance virtual servers and checkpoint/restart
  274. jobs.
  275. config CPUSETS
  276. bool "Cpuset support"
  277. depends on SMP && CGROUPS
  278. help
  279. This option will let you create and manage CPUSETs which
  280. allow dynamically partitioning a system into sets of CPUs and
  281. Memory Nodes and assigning tasks to run only within those sets.
  282. This is primarily useful on large SMP or NUMA systems.
  283. Say N if unsure.
  284. config FAIR_GROUP_SCHED
  285. bool "Fair group CPU scheduler"
  286. default y
  287. help
  288. This feature lets CPU scheduler recognize task groups and control CPU
  289. bandwidth allocation to such task groups.
  290. choice
  291. depends on FAIR_GROUP_SCHED
  292. prompt "Basis for grouping tasks"
  293. default FAIR_USER_SCHED
  294. config FAIR_USER_SCHED
  295. bool "user id"
  296. help
  297. This option will choose userid as the basis for grouping
  298. tasks, thus providing equal CPU bandwidth to each user.
  299. config FAIR_CGROUP_SCHED
  300. bool "Control groups"
  301. depends on CGROUPS
  302. help
  303. This option allows you to create arbitrary task groups
  304. using the "cgroup" pseudo filesystem and control
  305. the cpu bandwidth allocated to each such task group.
  306. Refer to Documentation/cgroups.txt for more information
  307. on "cgroup" pseudo filesystem.
  308. endchoice
  309. config CGROUP_CPUACCT
  310. bool "Simple CPU accounting cgroup subsystem"
  311. depends on CGROUPS
  312. help
  313. Provides a simple Resource Controller for monitoring the
  314. total CPU consumed by the tasks in a cgroup
  315. config RESOURCE_COUNTERS
  316. bool "Resource counters"
  317. help
  318. This option enables controller independent resource accounting
  319. infrastructure that works with cgroups
  320. depends on CGROUPS
  321. config SYSFS_DEPRECATED
  322. bool "Create deprecated sysfs files"
  323. depends on SYSFS
  324. default y
  325. help
  326. This option creates deprecated symlinks such as the
  327. "device"-link, the <subsystem>:<name>-link, and the
  328. "bus"-link. It may also add deprecated key in the
  329. uevent environment.
  330. None of these features or values should be used today, as
  331. they export driver core implementation details to userspace
  332. or export properties which can't be kept stable across kernel
  333. releases.
  334. If enabled, this option will also move any device structures
  335. that belong to a class, back into the /sys/class hierarchy, in
  336. order to support older versions of udev.
  337. If you are using a distro that was released in 2006 or later,
  338. it should be safe to say N here.
  339. config CGROUP_MEM_CONT
  340. bool "Memory controller for cgroups"
  341. depends on CGROUPS && RESOURCE_COUNTERS
  342. help
  343. Provides a memory controller that manages both page cache and
  344. RSS memory.
  345. config PROC_PID_CPUSET
  346. bool "Include legacy /proc/<pid>/cpuset file"
  347. depends on CPUSETS
  348. default y
  349. config RELAY
  350. bool "Kernel->user space relay support (formerly relayfs)"
  351. help
  352. This option enables support for relay interface support in
  353. certain file systems (such as debugfs).
  354. It is designed to provide an efficient mechanism for tools and
  355. facilities to relay large amounts of data from kernel space to
  356. user space.
  357. If unsure, say N.
  358. config NAMESPACES
  359. bool "Namespaces support" if EMBEDDED
  360. default !EMBEDDED
  361. help
  362. Provides the way to make tasks work with different objects using
  363. the same id. For example same IPC id may refer to different objects
  364. or same user id or pid may refer to different tasks when used in
  365. different namespaces.
  366. config UTS_NS
  367. bool "UTS namespace"
  368. depends on NAMESPACES
  369. help
  370. In this namespace tasks see different info provided with the
  371. uname() system call
  372. config IPC_NS
  373. bool "IPC namespace"
  374. depends on NAMESPACES && SYSVIPC
  375. help
  376. In this namespace tasks work with IPC ids which correspond to
  377. different IPC objects in different namespaces
  378. config BLK_DEV_INITRD
  379. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  380. depends on BROKEN || !FRV
  381. help
  382. The initial RAM filesystem is a ramfs which is loaded by the
  383. boot loader (loadlin or lilo) and that is mounted as root
  384. before the normal boot procedure. It is typically used to
  385. load modules needed to mount the "real" root file system,
  386. etc. See <file:Documentation/initrd.txt> for details.
  387. If RAM disk support (BLK_DEV_RAM) is also included, this
  388. also enables initial RAM disk (initrd) support and adds
  389. 15 Kbytes (more on some other architectures) to the kernel size.
  390. If unsure say Y.
  391. if BLK_DEV_INITRD
  392. source "usr/Kconfig"
  393. endif
  394. config CC_OPTIMIZE_FOR_SIZE
  395. bool "Optimize for size (Look out for broken compilers!)"
  396. default y
  397. depends on ARM || H8300 || SUPERH || EXPERIMENTAL
  398. help
  399. Enabling this option will pass "-Os" instead of "-O2" to gcc
  400. resulting in a smaller kernel.
  401. WARNING: some versions of gcc may generate incorrect code with this
  402. option. If problems are observed, a gcc upgrade may be needed.
  403. If unsure, say N.
  404. config SYSCTL
  405. bool
  406. menuconfig EMBEDDED
  407. bool "Configure standard kernel features (for small systems)"
  408. help
  409. This option allows certain base kernel options and settings
  410. to be disabled or tweaked. This is for specialized
  411. environments which can tolerate a "non-standard" kernel.
  412. Only use this if you really know what you are doing.
  413. config UID16
  414. bool "Enable 16-bit UID system calls" if EMBEDDED
  415. depends on ARM || BLACKFIN || CRIS || FRV || H8300 || X86_32 || M68K || (S390 && !64BIT) || SUPERH || SPARC32 || (SPARC64 && SPARC32_COMPAT) || UML || (X86_64 && IA32_EMULATION)
  416. default y
  417. help
  418. This enables the legacy 16-bit UID syscall wrappers.
  419. config SYSCTL_SYSCALL
  420. bool "Sysctl syscall support" if EMBEDDED
  421. default y
  422. select SYSCTL
  423. ---help---
  424. sys_sysctl uses binary paths that have been found challenging
  425. to properly maintain and use. The interface in /proc/sys
  426. using paths with ascii names is now the primary path to this
  427. information.
  428. Almost nothing using the binary sysctl interface so if you are
  429. trying to save some space it is probably safe to disable this,
  430. making your kernel marginally smaller.
  431. If unsure say Y here.
  432. config KALLSYMS
  433. bool "Load all symbols for debugging/ksymoops" if EMBEDDED
  434. default y
  435. help
  436. Say Y here to let the kernel print out symbolic crash information and
  437. symbolic stack backtraces. This increases the size of the kernel
  438. somewhat, as all symbols have to be loaded into the kernel image.
  439. config KALLSYMS_ALL
  440. bool "Include all symbols in kallsyms"
  441. depends on DEBUG_KERNEL && KALLSYMS
  442. help
  443. Normally kallsyms only contains the symbols of functions, for nicer
  444. OOPS messages. Some debuggers can use kallsyms for other
  445. symbols too: say Y here to include all symbols, if you need them
  446. and you don't care about adding 300k to the size of your kernel.
  447. Say N.
  448. config KALLSYMS_EXTRA_PASS
  449. bool "Do an extra kallsyms pass"
  450. depends on KALLSYMS
  451. help
  452. If kallsyms is not working correctly, the build will fail with
  453. inconsistent kallsyms data. If that occurs, log a bug report and
  454. turn on KALLSYMS_EXTRA_PASS which should result in a stable build.
  455. Always say N here unless you find a bug in kallsyms, which must be
  456. reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while
  457. you wait for kallsyms to be fixed.
  458. config HOTPLUG
  459. bool "Support for hot-pluggable devices" if EMBEDDED
  460. default y
  461. help
  462. This option is provided for the case where no hotplug or uevent
  463. capabilities is wanted by the kernel. You should only consider
  464. disabling this option for embedded systems that do not use modules, a
  465. dynamic /dev tree, or dynamic device discovery. Just say Y.
  466. config PRINTK
  467. default y
  468. bool "Enable support for printk" if EMBEDDED
  469. help
  470. This option enables normal printk support. Removing it
  471. eliminates most of the message strings from the kernel image
  472. and makes the kernel more or less silent. As this makes it
  473. very difficult to diagnose system problems, saying N here is
  474. strongly discouraged.
  475. config BUG
  476. bool "BUG() support" if EMBEDDED
  477. default y
  478. help
  479. Disabling this option eliminates support for BUG and WARN, reducing
  480. the size of your kernel image and potentially quietly ignoring
  481. numerous fatal conditions. You should only consider disabling this
  482. option for embedded systems with no facilities for reporting errors.
  483. Just say Y.
  484. config ELF_CORE
  485. default y
  486. bool "Enable ELF core dumps" if EMBEDDED
  487. help
  488. Enable support for generating core dumps. Disabling saves about 4k.
  489. config COMPAT_BRK
  490. bool "Disable heap randomization"
  491. default y
  492. help
  493. Randomizing heap placement makes heap exploits harder, but it
  494. also breaks ancient binaries (including anything libc5 based).
  495. This option changes the bootup default to heap randomization
  496. disabled, and can be overriden runtime by setting
  497. /proc/sys/kernel/randomize_va_space to 2.
  498. On non-ancient distros (post-2000 ones) Y is usually a safe choice.
  499. config BASE_FULL
  500. default y
  501. bool "Enable full-sized data structures for core" if EMBEDDED
  502. help
  503. Disabling this option reduces the size of miscellaneous core
  504. kernel data structures. This saves memory on small machines,
  505. but may reduce performance.
  506. config FUTEX
  507. bool "Enable futex support" if EMBEDDED
  508. default y
  509. select RT_MUTEXES
  510. help
  511. Disabling this option will cause the kernel to be built without
  512. support for "fast userspace mutexes". The resulting kernel may not
  513. run glibc-based applications correctly.
  514. config ANON_INODES
  515. bool
  516. config EPOLL
  517. bool "Enable eventpoll support" if EMBEDDED
  518. default y
  519. select ANON_INODES
  520. help
  521. Disabling this option will cause the kernel to be built without
  522. support for epoll family of system calls.
  523. config SIGNALFD
  524. bool "Enable signalfd() system call" if EMBEDDED
  525. select ANON_INODES
  526. default y
  527. help
  528. Enable the signalfd() system call that allows to receive signals
  529. on a file descriptor.
  530. If unsure, say Y.
  531. config TIMERFD
  532. bool "Enable timerfd() system call" if EMBEDDED
  533. select ANON_INODES
  534. default y
  535. help
  536. Enable the timerfd() system call that allows to receive timer
  537. events on a file descriptor.
  538. If unsure, say Y.
  539. config EVENTFD
  540. bool "Enable eventfd() system call" if EMBEDDED
  541. select ANON_INODES
  542. default y
  543. help
  544. Enable the eventfd() system call that allows to receive both
  545. kernel notification (ie. KAIO) or userspace notifications.
  546. If unsure, say Y.
  547. config SHMEM
  548. bool "Use full shmem filesystem" if EMBEDDED
  549. default y
  550. depends on MMU
  551. help
  552. The shmem is an internal filesystem used to manage shared memory.
  553. It is backed by swap and manages resource limits. It is also exported
  554. to userspace as tmpfs if TMPFS is enabled. Disabling this
  555. option replaces shmem and tmpfs with the much simpler ramfs code,
  556. which may be appropriate on small systems without swap.
  557. config VM_EVENT_COUNTERS
  558. default y
  559. bool "Enable VM event counters for /proc/vmstat" if EMBEDDED
  560. help
  561. VM event counters are needed for event counts to be shown.
  562. This option allows the disabling of the VM event counters
  563. on EMBEDDED systems. /proc/vmstat will only show page counts
  564. if VM event counters are disabled.
  565. config SLUB_DEBUG
  566. default y
  567. bool "Enable SLUB debugging support" if EMBEDDED
  568. depends on SLUB
  569. help
  570. SLUB has extensive debug support features. Disabling these can
  571. result in significant savings in code size. This also disables
  572. SLUB sysfs support. /sys/slab will not exist and there will be
  573. no support for cache validation etc.
  574. choice
  575. prompt "Choose SLAB allocator"
  576. default SLUB
  577. help
  578. This option allows to select a slab allocator.
  579. config SLAB
  580. bool "SLAB"
  581. help
  582. The regular slab allocator that is established and known to work
  583. well in all environments. It organizes cache hot objects in
  584. per cpu and per node queues. SLAB is the default choice for
  585. a slab allocator.
  586. config SLUB
  587. bool "SLUB (Unqueued Allocator)"
  588. help
  589. SLUB is a slab allocator that minimizes cache line usage
  590. instead of managing queues of cached objects (SLAB approach).
  591. Per cpu caching is realized using slabs of objects instead
  592. of queues of objects. SLUB can use memory efficiently
  593. and has enhanced diagnostics.
  594. config SLOB
  595. depends on EMBEDDED
  596. bool "SLOB (Simple Allocator)"
  597. help
  598. SLOB replaces the stock allocator with a drastically simpler
  599. allocator. SLOB is generally more space efficient but
  600. does not perform as well on large systems.
  601. endchoice
  602. config PROFILING
  603. bool "Profiling support (EXPERIMENTAL)"
  604. help
  605. Say Y here to enable the extended profiling support mechanisms used
  606. by profilers such as OProfile.
  607. config MARKERS
  608. bool "Activate markers"
  609. help
  610. Place an empty function call at each marker site. Can be
  611. dynamically changed for a probe function.
  612. source "arch/Kconfig"
  613. config PROC_PAGE_MONITOR
  614. default y
  615. depends on PROC_FS && MMU
  616. bool "Enable /proc page monitoring" if EMBEDDED
  617. help
  618. Various /proc files exist to monitor process memory utilization:
  619. /proc/pid/smaps, /proc/pid/clear_refs, /proc/pid/pagemap,
  620. /proc/kpagecount, and /proc/kpageflags. Disabling these
  621. interfaces will reduce the size of the kernel by approximately 4kb.
  622. endmenu # General setup
  623. config SLABINFO
  624. bool
  625. depends on PROC_FS
  626. depends on SLAB || SLUB
  627. default y
  628. config RT_MUTEXES
  629. boolean
  630. select PLIST
  631. config TINY_SHMEM
  632. default !SHMEM
  633. bool
  634. config BASE_SMALL
  635. int
  636. default 0 if BASE_FULL
  637. default 1 if !BASE_FULL
  638. menuconfig MODULES
  639. bool "Enable loadable module support"
  640. help
  641. Kernel modules are small pieces of compiled code which can
  642. be inserted in the running kernel, rather than being
  643. permanently built into the kernel. You use the "modprobe"
  644. tool to add (and sometimes remove) them. If you say Y here,
  645. many parts of the kernel can be built as modules (by
  646. answering M instead of Y where indicated): this is most
  647. useful for infrequently used options which are not required
  648. for booting. For more information, see the man pages for
  649. modprobe, lsmod, modinfo, insmod and rmmod.
  650. If you say Y here, you will need to run "make
  651. modules_install" to put the modules under /lib/modules/
  652. where modprobe can find them (you may need to be root to do
  653. this).
  654. If unsure, say Y.
  655. config MODULE_UNLOAD
  656. bool "Module unloading"
  657. depends on MODULES
  658. help
  659. Without this option you will not be able to unload any
  660. modules (note that some modules may not be unloadable
  661. anyway), which makes your kernel slightly smaller and
  662. simpler. If unsure, say Y.
  663. config MODULE_FORCE_UNLOAD
  664. bool "Forced module unloading"
  665. depends on MODULE_UNLOAD && EXPERIMENTAL
  666. help
  667. This option allows you to force a module to unload, even if the
  668. kernel believes it is unsafe: the kernel will remove the module
  669. without waiting for anyone to stop using it (using the -f option to
  670. rmmod). This is mainly for kernel developers and desperate users.
  671. If unsure, say N.
  672. config MODVERSIONS
  673. bool "Module versioning support"
  674. depends on MODULES
  675. help
  676. Usually, you have to use modules compiled with your kernel.
  677. Saying Y here makes it sometimes possible to use modules
  678. compiled for different kernels, by adding enough information
  679. to the modules to (hopefully) spot any changes which would
  680. make them incompatible with the kernel you are running. If
  681. unsure, say N.
  682. config MODULE_SRCVERSION_ALL
  683. bool "Source checksum for all modules"
  684. depends on MODULES
  685. help
  686. Modules which contain a MODULE_VERSION get an extra "srcversion"
  687. field inserted into their modinfo section, which contains a
  688. sum of the source files which made it. This helps maintainers
  689. see exactly which source was used to build a module (since
  690. others sometimes change the module source without updating
  691. the version). With this option, such a "srcversion" field
  692. will be created for all modules. If unsure, say N.
  693. config KMOD
  694. bool "Automatic kernel module loading"
  695. depends on MODULES
  696. help
  697. Normally when you have selected some parts of the kernel to
  698. be created as kernel modules, you must load them (using the
  699. "modprobe" command) before you can use them. If you say Y
  700. here, some parts of the kernel will be able to load modules
  701. automatically: when a part of the kernel needs a module, it
  702. runs modprobe with the appropriate arguments, thereby
  703. loading the module if it is available. If unsure, say Y.
  704. config STOP_MACHINE
  705. bool
  706. default y
  707. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  708. help
  709. Need stop_machine() primitive.
  710. source "block/Kconfig"
  711. config PREEMPT_NOTIFIERS
  712. bool
  713. choice
  714. prompt "RCU implementation type:"
  715. default CLASSIC_RCU
  716. help
  717. This allows you to choose either the classic RCU implementation
  718. that is designed for best read-side performance on non-realtime
  719. systems, or the preemptible RCU implementation for best latency
  720. on realtime systems. Note that some kernel preemption modes
  721. will restrict your choice.
  722. Select the default if you are unsure.
  723. config CLASSIC_RCU
  724. bool "Classic RCU"
  725. help
  726. This option selects the classic RCU implementation that is
  727. designed for best read-side performance on non-realtime
  728. systems.
  729. Say Y if you are unsure.
  730. config PREEMPT_RCU
  731. bool "Preemptible RCU"
  732. depends on PREEMPT
  733. help
  734. This option reduces the latency of the kernel by making certain
  735. RCU sections preemptible. Normally RCU code is non-preemptible, if
  736. this option is selected then read-only RCU sections become
  737. preemptible. This helps latency, but may expose bugs due to
  738. now-naive assumptions about each RCU read-side critical section
  739. remaining on a given CPU through its execution.
  740. Say N if you are unsure.
  741. endchoice