Kconfig 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677
  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. config HAVE_IRQ_WORK
  20. bool
  21. config IRQ_WORK
  22. bool
  23. depends on HAVE_IRQ_WORK
  24. config BUILDTIME_EXTABLE_SORT
  25. bool
  26. menu "General setup"
  27. config EXPERIMENTAL
  28. bool "Prompt for development and/or incomplete code/drivers"
  29. ---help---
  30. Some of the various things that Linux supports (such as network
  31. drivers, file systems, network protocols, etc.) can be in a state
  32. of development where the functionality, stability, or the level of
  33. testing is not yet high enough for general use. This is usually
  34. known as the "alpha-test" phase among developers. If a feature is
  35. currently in alpha-test, then the developers usually discourage
  36. uninformed widespread use of this feature by the general public to
  37. avoid "Why doesn't this work?" type mail messages. However, active
  38. testing and use of these systems is welcomed. Just be aware that it
  39. may not meet the normal level of reliability or it may fail to work
  40. in some special cases. Detailed bug reports from people familiar
  41. with the kernel internals are usually welcomed by the developers
  42. (before submitting bug reports, please read the documents
  43. <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
  44. <file:Documentation/BUG-HUNTING>, and
  45. <file:Documentation/oops-tracing.txt> in the kernel source).
  46. This option will also make obsoleted drivers available. These are
  47. drivers that have been replaced by something else, and/or are
  48. scheduled to be removed in a future kernel release.
  49. Unless you intend to help test and develop a feature or driver that
  50. falls into this category, or you have a situation that requires
  51. using these features, you should probably say N here, which will
  52. cause the configurator to present you with fewer choices. If
  53. you say Y here, you will be offered the choice of using features or
  54. drivers that are currently considered to be in the alpha-test phase.
  55. config BROKEN
  56. bool
  57. config BROKEN_ON_SMP
  58. bool
  59. depends on BROKEN || !SMP
  60. default y
  61. config INIT_ENV_ARG_LIMIT
  62. int
  63. default 32 if !UML
  64. default 128 if UML
  65. help
  66. Maximum of each of the number of arguments and environment
  67. variables passed to init from the kernel command line.
  68. config CROSS_COMPILE
  69. string "Cross-compiler tool prefix"
  70. help
  71. Same as running 'make CROSS_COMPILE=prefix-' but stored for
  72. default make runs in this kernel build directory. You don't
  73. need to set this unless you want the configured kernel build
  74. directory to select the cross-compiler automatically.
  75. config LOCALVERSION
  76. string "Local version - append to kernel release"
  77. help
  78. Append an extra string to the end of your kernel version.
  79. This will show up when you type uname, for example.
  80. The string you set here will be appended after the contents of
  81. any files with a filename matching localversion* in your
  82. object and source tree, in that order. Your total string can
  83. be a maximum of 64 characters.
  84. config LOCALVERSION_AUTO
  85. bool "Automatically append version information to the version string"
  86. default y
  87. help
  88. This will try to automatically determine if the current tree is a
  89. release tree by looking for git tags that belong to the current
  90. top of tree revision.
  91. A string of the format -gxxxxxxxx will be added to the localversion
  92. if a git-based tree is found. The string generated by this will be
  93. appended after any matching localversion* files, and after the value
  94. set in CONFIG_LOCALVERSION.
  95. (The actual string used here is the first eight characters produced
  96. by running the command:
  97. $ git rev-parse --verify HEAD
  98. which is done within the script "scripts/setlocalversion".)
  99. config HAVE_KERNEL_GZIP
  100. bool
  101. config HAVE_KERNEL_BZIP2
  102. bool
  103. config HAVE_KERNEL_LZMA
  104. bool
  105. config HAVE_KERNEL_XZ
  106. bool
  107. config HAVE_KERNEL_LZO
  108. bool
  109. choice
  110. prompt "Kernel compression mode"
  111. default KERNEL_GZIP
  112. depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO
  113. help
  114. The linux kernel is a kind of self-extracting executable.
  115. Several compression algorithms are available, which differ
  116. in efficiency, compression and decompression speed.
  117. Compression speed is only relevant when building a kernel.
  118. Decompression speed is relevant at each boot.
  119. If you have any problems with bzip2 or lzma compressed
  120. kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
  121. version of this functionality (bzip2 only), for 2.4, was
  122. supplied by Christian Ludwig)
  123. High compression options are mostly useful for users, who
  124. are low on disk space (embedded systems), but for whom ram
  125. size matters less.
  126. If in doubt, select 'gzip'
  127. config KERNEL_GZIP
  128. bool "Gzip"
  129. depends on HAVE_KERNEL_GZIP
  130. help
  131. The old and tried gzip compression. It provides a good balance
  132. between compression ratio and decompression speed.
  133. config KERNEL_BZIP2
  134. bool "Bzip2"
  135. depends on HAVE_KERNEL_BZIP2
  136. help
  137. Its compression ratio and speed is intermediate.
  138. Decompression speed is slowest among the choices. The kernel
  139. size is about 10% smaller with bzip2, in comparison to gzip.
  140. Bzip2 uses a large amount of memory. For modern kernels you
  141. will need at least 8MB RAM or more for booting.
  142. config KERNEL_LZMA
  143. bool "LZMA"
  144. depends on HAVE_KERNEL_LZMA
  145. help
  146. This compression algorithm's ratio is best. Decompression speed
  147. is between gzip and bzip2. Compression is slowest.
  148. The kernel size is about 33% smaller with LZMA in comparison to gzip.
  149. config KERNEL_XZ
  150. bool "XZ"
  151. depends on HAVE_KERNEL_XZ
  152. help
  153. XZ uses the LZMA2 algorithm and instruction set specific
  154. BCJ filters which can improve compression ratio of executable
  155. code. The size of the kernel is about 30% smaller with XZ in
  156. comparison to gzip. On architectures for which there is a BCJ
  157. filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
  158. will create a few percent smaller kernel than plain LZMA.
  159. The speed is about the same as with LZMA: The decompression
  160. speed of XZ is better than that of bzip2 but worse than gzip
  161. and LZO. Compression is slow.
  162. config KERNEL_LZO
  163. bool "LZO"
  164. depends on HAVE_KERNEL_LZO
  165. help
  166. Its compression ratio is the poorest among the choices. The kernel
  167. size is about 10% bigger than gzip; however its speed
  168. (both compression and decompression) is the fastest.
  169. endchoice
  170. config DEFAULT_HOSTNAME
  171. string "Default hostname"
  172. default "(none)"
  173. help
  174. This option determines the default system hostname before userspace
  175. calls sethostname(2). The kernel traditionally uses "(none)" here,
  176. but you may wish to use a different default here to make a minimal
  177. system more usable with less configuration.
  178. config SWAP
  179. bool "Support for paging of anonymous memory (swap)"
  180. depends on MMU && BLOCK
  181. default y
  182. help
  183. This option allows you to choose whether you want to have support
  184. for so called swap devices or swap files in your kernel that are
  185. used to provide more virtual memory than the actual RAM present
  186. in your computer. If unsure say Y.
  187. config SYSVIPC
  188. bool "System V IPC"
  189. ---help---
  190. Inter Process Communication is a suite of library functions and
  191. system calls which let processes (running programs) synchronize and
  192. exchange information. It is generally considered to be a good thing,
  193. and some programs won't run unless you say Y here. In particular, if
  194. you want to run the DOS emulator dosemu under Linux (read the
  195. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  196. you'll need to say Y here.
  197. You can find documentation about IPC with "info ipc" and also in
  198. section 6.4 of the Linux Programmer's Guide, available from
  199. <http://www.tldp.org/guides.html>.
  200. config SYSVIPC_SYSCTL
  201. bool
  202. depends on SYSVIPC
  203. depends on SYSCTL
  204. default y
  205. config POSIX_MQUEUE
  206. bool "POSIX Message Queues"
  207. depends on NET && EXPERIMENTAL
  208. ---help---
  209. POSIX variant of message queues is a part of IPC. In POSIX message
  210. queues every message has a priority which decides about succession
  211. of receiving it by a process. If you want to compile and run
  212. programs written e.g. for Solaris with use of its POSIX message
  213. queues (functions mq_*) say Y here.
  214. POSIX message queues are visible as a filesystem called 'mqueue'
  215. and can be mounted somewhere if you want to do filesystem
  216. operations on message queues.
  217. If unsure, say Y.
  218. config POSIX_MQUEUE_SYSCTL
  219. bool
  220. depends on POSIX_MQUEUE
  221. depends on SYSCTL
  222. default y
  223. config FHANDLE
  224. bool "open by fhandle syscalls"
  225. select EXPORTFS
  226. help
  227. If you say Y here, a user level program will be able to map
  228. file names to handle and then later use the handle for
  229. different file system operations. This is useful in implementing
  230. userspace file servers, which now track files using handles instead
  231. of names. The handle would remain the same even if file names
  232. get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
  233. syscalls.
  234. config AUDIT
  235. bool "Auditing support"
  236. depends on NET
  237. help
  238. Enable auditing infrastructure that can be used with another
  239. kernel subsystem, such as SELinux (which requires this for
  240. logging of avc messages output). Does not do system-call
  241. auditing without CONFIG_AUDITSYSCALL.
  242. config AUDITSYSCALL
  243. bool "Enable system-call auditing support"
  244. depends on AUDIT && (X86 || PPC || S390 || IA64 || UML || SPARC64 || SUPERH || (ARM && AEABI && !OABI_COMPAT))
  245. default y if SECURITY_SELINUX
  246. help
  247. Enable low-overhead system-call auditing infrastructure that
  248. can be used independently or with another kernel subsystem,
  249. such as SELinux.
  250. config AUDIT_WATCH
  251. def_bool y
  252. depends on AUDITSYSCALL
  253. select FSNOTIFY
  254. config AUDIT_TREE
  255. def_bool y
  256. depends on AUDITSYSCALL
  257. select FSNOTIFY
  258. config AUDIT_LOGINUID_IMMUTABLE
  259. bool "Make audit loginuid immutable"
  260. depends on AUDIT
  261. help
  262. The config option toggles if a task setting its loginuid requires
  263. CAP_SYS_AUDITCONTROL or if that task should require no special permissions
  264. but should instead only allow setting its loginuid if it was never
  265. previously set. On systems which use systemd or a similar central
  266. process to restart login services this should be set to true. On older
  267. systems in which an admin would typically have to directly stop and
  268. start processes this should be set to false. Setting this to true allows
  269. one to drop potentially dangerous capabilites from the login tasks,
  270. but may not be backwards compatible with older init systems.
  271. source "kernel/irq/Kconfig"
  272. source "kernel/time/Kconfig"
  273. menu "CPU/Task time and stats accounting"
  274. choice
  275. prompt "Cputime accounting"
  276. default TICK_CPU_ACCOUNTING if !PPC64
  277. default VIRT_CPU_ACCOUNTING if PPC64
  278. # Kind of a stub config for the pure tick based cputime accounting
  279. config TICK_CPU_ACCOUNTING
  280. bool "Simple tick based cputime accounting"
  281. depends on !S390
  282. help
  283. This is the basic tick based cputime accounting that maintains
  284. statistics about user, system and idle time spent on per jiffies
  285. granularity.
  286. If unsure, say Y.
  287. config VIRT_CPU_ACCOUNTING
  288. bool "Deterministic task and CPU time accounting"
  289. depends on HAVE_VIRT_CPU_ACCOUNTING
  290. help
  291. Select this option to enable more accurate task and CPU time
  292. accounting. This is done by reading a CPU counter on each
  293. kernel entry and exit and on transitions within the kernel
  294. between system, softirq and hardirq state, so there is a
  295. small performance impact. In the case of s390 or IBM POWER > 5,
  296. this also enables accounting of stolen time on logically-partitioned
  297. systems.
  298. config IRQ_TIME_ACCOUNTING
  299. bool "Fine granularity task level IRQ time accounting"
  300. depends on HAVE_IRQ_TIME_ACCOUNTING
  301. help
  302. Select this option to enable fine granularity task irq time
  303. accounting. This is done by reading a timestamp on each
  304. transitions between softirq and hardirq state, so there can be a
  305. small performance impact.
  306. If in doubt, say N here.
  307. endchoice
  308. config BSD_PROCESS_ACCT
  309. bool "BSD Process Accounting"
  310. help
  311. If you say Y here, a user level program will be able to instruct the
  312. kernel (via a special system call) to write process accounting
  313. information to a file: whenever a process exits, information about
  314. that process will be appended to the file by the kernel. The
  315. information includes things such as creation time, owning user,
  316. command name, memory usage, controlling terminal etc. (the complete
  317. list is in the struct acct in <file:include/linux/acct.h>). It is
  318. up to the user level program to do useful things with this
  319. information. This is generally a good idea, so say Y.
  320. config BSD_PROCESS_ACCT_V3
  321. bool "BSD Process Accounting version 3 file format"
  322. depends on BSD_PROCESS_ACCT
  323. default n
  324. help
  325. If you say Y here, the process accounting information is written
  326. in a new file format that also logs the process IDs of each
  327. process and it's parent. Note that this file format is incompatible
  328. with previous v0/v1/v2 file formats, so you will need updated tools
  329. for processing it. A preliminary version of these tools is available
  330. at <http://www.gnu.org/software/acct/>.
  331. config TASKSTATS
  332. bool "Export task/process statistics through netlink (EXPERIMENTAL)"
  333. depends on NET
  334. default n
  335. help
  336. Export selected statistics for tasks/processes through the
  337. generic netlink interface. Unlike BSD process accounting, the
  338. statistics are available during the lifetime of tasks/processes as
  339. responses to commands. Like BSD accounting, they are sent to user
  340. space on task exit.
  341. Say N if unsure.
  342. config TASK_DELAY_ACCT
  343. bool "Enable per-task delay accounting (EXPERIMENTAL)"
  344. depends on TASKSTATS
  345. help
  346. Collect information on time spent by a task waiting for system
  347. resources like cpu, synchronous block I/O completion and swapping
  348. in pages. Such statistics can help in setting a task's priorities
  349. relative to other tasks for cpu, io, rss limits etc.
  350. Say N if unsure.
  351. config TASK_XACCT
  352. bool "Enable extended accounting over taskstats (EXPERIMENTAL)"
  353. depends on TASKSTATS
  354. help
  355. Collect extended task accounting data and send the data
  356. to userland for processing over the taskstats interface.
  357. Say N if unsure.
  358. config TASK_IO_ACCOUNTING
  359. bool "Enable per-task storage I/O accounting (EXPERIMENTAL)"
  360. depends on TASK_XACCT
  361. help
  362. Collect information on the number of bytes of storage I/O which this
  363. task has caused.
  364. Say N if unsure.
  365. endmenu # "CPU/Task time and stats accounting"
  366. menu "RCU Subsystem"
  367. choice
  368. prompt "RCU Implementation"
  369. default TREE_RCU
  370. config TREE_RCU
  371. bool "Tree-based hierarchical RCU"
  372. depends on !PREEMPT && SMP
  373. help
  374. This option selects the RCU implementation that is
  375. designed for very large SMP system with hundreds or
  376. thousands of CPUs. It also scales down nicely to
  377. smaller systems.
  378. config TREE_PREEMPT_RCU
  379. bool "Preemptible tree-based hierarchical RCU"
  380. depends on PREEMPT && SMP
  381. help
  382. This option selects the RCU implementation that is
  383. designed for very large SMP systems with hundreds or
  384. thousands of CPUs, but for which real-time response
  385. is also required. It also scales down nicely to
  386. smaller systems.
  387. config TINY_RCU
  388. bool "UP-only small-memory-footprint RCU"
  389. depends on !PREEMPT && !SMP
  390. help
  391. This option selects the RCU implementation that is
  392. designed for UP systems from which real-time response
  393. is not required. This option greatly reduces the
  394. memory footprint of RCU.
  395. config TINY_PREEMPT_RCU
  396. bool "Preemptible UP-only small-memory-footprint RCU"
  397. depends on PREEMPT && !SMP
  398. help
  399. This option selects the RCU implementation that is designed
  400. for real-time UP systems. This option greatly reduces the
  401. memory footprint of RCU.
  402. endchoice
  403. config PREEMPT_RCU
  404. def_bool ( TREE_PREEMPT_RCU || TINY_PREEMPT_RCU )
  405. help
  406. This option enables preemptible-RCU code that is common between
  407. the TREE_PREEMPT_RCU and TINY_PREEMPT_RCU implementations.
  408. config RCU_USER_QS
  409. bool "Consider userspace as in RCU extended quiescent state"
  410. depends on HAVE_RCU_USER_QS && SMP
  411. help
  412. This option sets hooks on kernel / userspace boundaries and
  413. puts RCU in extended quiescent state when the CPU runs in
  414. userspace. It means that when a CPU runs in userspace, it is
  415. excluded from the global RCU state machine and thus doesn't
  416. try to keep the timer tick on for RCU.
  417. Unless you want to hack and help the development of the full
  418. tickless feature, you shouldn't enable this option. It also
  419. adds unnecessary overhead.
  420. If unsure say N
  421. config RCU_USER_QS_FORCE
  422. bool "Force userspace extended QS by default"
  423. depends on RCU_USER_QS
  424. help
  425. Set the hooks in user/kernel boundaries by default in order to
  426. test this feature that treats userspace as an extended quiescent
  427. state until we have a real user like a full adaptive nohz option.
  428. Unless you want to hack and help the development of the full
  429. tickless feature, you shouldn't enable this option. It adds
  430. unnecessary overhead.
  431. If unsure say N
  432. config RCU_FANOUT
  433. int "Tree-based hierarchical RCU fanout value"
  434. range 2 64 if 64BIT
  435. range 2 32 if !64BIT
  436. depends on TREE_RCU || TREE_PREEMPT_RCU
  437. default 64 if 64BIT
  438. default 32 if !64BIT
  439. help
  440. This option controls the fanout of hierarchical implementations
  441. of RCU, allowing RCU to work efficiently on machines with
  442. large numbers of CPUs. This value must be at least the fourth
  443. root of NR_CPUS, which allows NR_CPUS to be insanely large.
  444. The default value of RCU_FANOUT should be used for production
  445. systems, but if you are stress-testing the RCU implementation
  446. itself, small RCU_FANOUT values allow you to test large-system
  447. code paths on small(er) systems.
  448. Select a specific number if testing RCU itself.
  449. Take the default if unsure.
  450. config RCU_FANOUT_LEAF
  451. int "Tree-based hierarchical RCU leaf-level fanout value"
  452. range 2 RCU_FANOUT if 64BIT
  453. range 2 RCU_FANOUT if !64BIT
  454. depends on TREE_RCU || TREE_PREEMPT_RCU
  455. default 16
  456. help
  457. This option controls the leaf-level fanout of hierarchical
  458. implementations of RCU, and allows trading off cache misses
  459. against lock contention. Systems that synchronize their
  460. scheduling-clock interrupts for energy-efficiency reasons will
  461. want the default because the smaller leaf-level fanout keeps
  462. lock contention levels acceptably low. Very large systems
  463. (hundreds or thousands of CPUs) will instead want to set this
  464. value to the maximum value possible in order to reduce the
  465. number of cache misses incurred during RCU's grace-period
  466. initialization. These systems tend to run CPU-bound, and thus
  467. are not helped by synchronized interrupts, and thus tend to
  468. skew them, which reduces lock contention enough that large
  469. leaf-level fanouts work well.
  470. Select a specific number if testing RCU itself.
  471. Select the maximum permissible value for large systems.
  472. Take the default if unsure.
  473. config RCU_FANOUT_EXACT
  474. bool "Disable tree-based hierarchical RCU auto-balancing"
  475. depends on TREE_RCU || TREE_PREEMPT_RCU
  476. default n
  477. help
  478. This option forces use of the exact RCU_FANOUT value specified,
  479. regardless of imbalances in the hierarchy. This is useful for
  480. testing RCU itself, and might one day be useful on systems with
  481. strong NUMA behavior.
  482. Without RCU_FANOUT_EXACT, the code will balance the hierarchy.
  483. Say N if unsure.
  484. config RCU_FAST_NO_HZ
  485. bool "Accelerate last non-dyntick-idle CPU's grace periods"
  486. depends on NO_HZ && SMP
  487. default n
  488. help
  489. This option causes RCU to attempt to accelerate grace periods in
  490. order to allow CPUs to enter dynticks-idle state more quickly.
  491. On the other hand, this option increases the overhead of the
  492. dynticks-idle checking, thus degrading scheduling latency.
  493. Say Y if energy efficiency is critically important, and you don't
  494. care about real-time response.
  495. Say N if you are unsure.
  496. config TREE_RCU_TRACE
  497. def_bool RCU_TRACE && ( TREE_RCU || TREE_PREEMPT_RCU )
  498. select DEBUG_FS
  499. help
  500. This option provides tracing for the TREE_RCU and
  501. TREE_PREEMPT_RCU implementations, permitting Makefile to
  502. trivially select kernel/rcutree_trace.c.
  503. config RCU_BOOST
  504. bool "Enable RCU priority boosting"
  505. depends on RT_MUTEXES && PREEMPT_RCU
  506. default n
  507. help
  508. This option boosts the priority of preempted RCU readers that
  509. block the current preemptible RCU grace period for too long.
  510. This option also prevents heavy loads from blocking RCU
  511. callback invocation for all flavors of RCU.
  512. Say Y here if you are working with real-time apps or heavy loads
  513. Say N here if you are unsure.
  514. config RCU_BOOST_PRIO
  515. int "Real-time priority to boost RCU readers to"
  516. range 1 99
  517. depends on RCU_BOOST
  518. default 1
  519. help
  520. This option specifies the real-time priority to which long-term
  521. preempted RCU readers are to be boosted. If you are working
  522. with a real-time application that has one or more CPU-bound
  523. threads running at a real-time priority level, you should set
  524. RCU_BOOST_PRIO to a priority higher then the highest-priority
  525. real-time CPU-bound thread. The default RCU_BOOST_PRIO value
  526. of 1 is appropriate in the common case, which is real-time
  527. applications that do not have any CPU-bound threads.
  528. Some real-time applications might not have a single real-time
  529. thread that saturates a given CPU, but instead might have
  530. multiple real-time threads that, taken together, fully utilize
  531. that CPU. In this case, you should set RCU_BOOST_PRIO to
  532. a priority higher than the lowest-priority thread that is
  533. conspiring to prevent the CPU from running any non-real-time
  534. tasks. For example, if one thread at priority 10 and another
  535. thread at priority 5 are between themselves fully consuming
  536. the CPU time on a given CPU, then RCU_BOOST_PRIO should be
  537. set to priority 6 or higher.
  538. Specify the real-time priority, or take the default if unsure.
  539. config RCU_BOOST_DELAY
  540. int "Milliseconds to delay boosting after RCU grace-period start"
  541. range 0 3000
  542. depends on RCU_BOOST
  543. default 500
  544. help
  545. This option specifies the time to wait after the beginning of
  546. a given grace period before priority-boosting preempted RCU
  547. readers blocking that grace period. Note that any RCU reader
  548. blocking an expedited RCU grace period is boosted immediately.
  549. Accept the default if unsure.
  550. endmenu # "RCU Subsystem"
  551. config IKCONFIG
  552. tristate "Kernel .config support"
  553. ---help---
  554. This option enables the complete Linux kernel ".config" file
  555. contents to be saved in the kernel. It provides documentation
  556. of which kernel options are used in a running kernel or in an
  557. on-disk kernel. This information can be extracted from the kernel
  558. image file with the script scripts/extract-ikconfig and used as
  559. input to rebuild the current kernel or to build another kernel.
  560. It can also be extracted from a running kernel by reading
  561. /proc/config.gz if enabled (below).
  562. config IKCONFIG_PROC
  563. bool "Enable access to .config through /proc/config.gz"
  564. depends on IKCONFIG && PROC_FS
  565. ---help---
  566. This option enables access to the kernel configuration file
  567. through /proc/config.gz.
  568. config LOG_BUF_SHIFT
  569. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  570. range 12 21
  571. default 17
  572. help
  573. Select kernel log buffer size as a power of 2.
  574. Examples:
  575. 17 => 128 KB
  576. 16 => 64 KB
  577. 15 => 32 KB
  578. 14 => 16 KB
  579. 13 => 8 KB
  580. 12 => 4 KB
  581. #
  582. # Architectures with an unreliable sched_clock() should select this:
  583. #
  584. config HAVE_UNSTABLE_SCHED_CLOCK
  585. bool
  586. menuconfig CGROUPS
  587. boolean "Control Group support"
  588. depends on EVENTFD
  589. help
  590. This option adds support for grouping sets of processes together, for
  591. use with process control subsystems such as Cpusets, CFS, memory
  592. controls or device isolation.
  593. See
  594. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  595. - Documentation/cgroups/ (features for grouping, isolation
  596. and resource control)
  597. Say N if unsure.
  598. if CGROUPS
  599. config CGROUP_DEBUG
  600. bool "Example debug cgroup subsystem"
  601. default n
  602. help
  603. This option enables a simple cgroup subsystem that
  604. exports useful debugging information about the cgroups
  605. framework.
  606. Say N if unsure.
  607. config CGROUP_FREEZER
  608. bool "Freezer cgroup subsystem"
  609. help
  610. Provides a way to freeze and unfreeze all tasks in a
  611. cgroup.
  612. config CGROUP_DEVICE
  613. bool "Device controller for cgroups"
  614. help
  615. Provides a cgroup implementing whitelists for devices which
  616. a process in the cgroup can mknod or open.
  617. config CPUSETS
  618. bool "Cpuset support"
  619. help
  620. This option will let you create and manage CPUSETs which
  621. allow dynamically partitioning a system into sets of CPUs and
  622. Memory Nodes and assigning tasks to run only within those sets.
  623. This is primarily useful on large SMP or NUMA systems.
  624. Say N if unsure.
  625. config PROC_PID_CPUSET
  626. bool "Include legacy /proc/<pid>/cpuset file"
  627. depends on CPUSETS
  628. default y
  629. config CGROUP_CPUACCT
  630. bool "Simple CPU accounting cgroup subsystem"
  631. help
  632. Provides a simple Resource Controller for monitoring the
  633. total CPU consumed by the tasks in a cgroup.
  634. config RESOURCE_COUNTERS
  635. bool "Resource counters"
  636. help
  637. This option enables controller independent resource accounting
  638. infrastructure that works with cgroups.
  639. config MEMCG
  640. bool "Memory Resource Controller for Control Groups"
  641. depends on RESOURCE_COUNTERS
  642. select MM_OWNER
  643. help
  644. Provides a memory resource controller that manages both anonymous
  645. memory and page cache. (See Documentation/cgroups/memory.txt)
  646. Note that setting this option increases fixed memory overhead
  647. associated with each page of memory in the system. By this,
  648. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  649. usage tracking struct at boot. Total amount of this is printed out
  650. at boot.
  651. Only enable when you're ok with these trade offs and really
  652. sure you need the memory resource controller. Even when you enable
  653. this, you can set "cgroup_disable=memory" at your boot option to
  654. disable memory resource controller and you can avoid overheads.
  655. (and lose benefits of memory resource controller)
  656. This config option also selects MM_OWNER config option, which
  657. could in turn add some fork/exit overhead.
  658. config MEMCG_SWAP
  659. bool "Memory Resource Controller Swap Extension"
  660. depends on MEMCG && SWAP
  661. help
  662. Add swap management feature to memory resource controller. When you
  663. enable this, you can limit mem+swap usage per cgroup. In other words,
  664. when you disable this, memory resource controller has no cares to
  665. usage of swap...a process can exhaust all of the swap. This extension
  666. is useful when you want to avoid exhaustion swap but this itself
  667. adds more overheads and consumes memory for remembering information.
  668. Especially if you use 32bit system or small memory system, please
  669. be careful about enabling this. When memory resource controller
  670. is disabled by boot option, this will be automatically disabled and
  671. there will be no overhead from this. Even when you set this config=y,
  672. if boot option "swapaccount=0" is set, swap will not be accounted.
  673. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  674. size is 4096bytes, 512k per 1Gbytes of swap.
  675. config MEMCG_SWAP_ENABLED
  676. bool "Memory Resource Controller Swap Extension enabled by default"
  677. depends on MEMCG_SWAP
  678. default y
  679. help
  680. Memory Resource Controller Swap Extension comes with its price in
  681. a bigger memory consumption. General purpose distribution kernels
  682. which want to enable the feature but keep it disabled by default
  683. and let the user enable it by swapaccount boot command line
  684. parameter should have this option unselected.
  685. For those who want to have the feature enabled by default should
  686. select this option (if, for some reason, they need to disable it
  687. then swapaccount=0 does the trick).
  688. config MEMCG_KMEM
  689. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  690. depends on MEMCG && EXPERIMENTAL
  691. default n
  692. help
  693. The Kernel Memory extension for Memory Resource Controller can limit
  694. the amount of memory used by kernel objects in the system. Those are
  695. fundamentally different from the entities handled by the standard
  696. Memory Controller, which are page-based, and can be swapped. Users of
  697. the kmem extension can use it to guarantee that no group of processes
  698. will ever exhaust kernel resources alone.
  699. config CGROUP_HUGETLB
  700. bool "HugeTLB Resource Controller for Control Groups"
  701. depends on RESOURCE_COUNTERS && HUGETLB_PAGE && EXPERIMENTAL
  702. default n
  703. help
  704. Provides a cgroup Resource Controller for HugeTLB pages.
  705. When you enable this, you can put a per cgroup limit on HugeTLB usage.
  706. The limit is enforced during page fault. Since HugeTLB doesn't
  707. support page reclaim, enforcing the limit at page fault time implies
  708. that, the application will get SIGBUS signal if it tries to access
  709. HugeTLB pages beyond its limit. This requires the application to know
  710. beforehand how much HugeTLB pages it would require for its use. The
  711. control group is tracked in the third page lru pointer. This means
  712. that we cannot use the controller with huge page less than 3 pages.
  713. config CGROUP_PERF
  714. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  715. depends on PERF_EVENTS && CGROUPS
  716. help
  717. This option extends the per-cpu mode to restrict monitoring to
  718. threads which belong to the cgroup specified and run on the
  719. designated cpu.
  720. Say N if unsure.
  721. menuconfig CGROUP_SCHED
  722. bool "Group CPU scheduler"
  723. default n
  724. help
  725. This feature lets CPU scheduler recognize task groups and control CPU
  726. bandwidth allocation to such task groups. It uses cgroups to group
  727. tasks.
  728. if CGROUP_SCHED
  729. config FAIR_GROUP_SCHED
  730. bool "Group scheduling for SCHED_OTHER"
  731. depends on CGROUP_SCHED
  732. default CGROUP_SCHED
  733. config CFS_BANDWIDTH
  734. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  735. depends on EXPERIMENTAL
  736. depends on FAIR_GROUP_SCHED
  737. default n
  738. help
  739. This option allows users to define CPU bandwidth rates (limits) for
  740. tasks running within the fair group scheduler. Groups with no limit
  741. set are considered to be unconstrained and will run with no
  742. restriction.
  743. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  744. config RT_GROUP_SCHED
  745. bool "Group scheduling for SCHED_RR/FIFO"
  746. depends on EXPERIMENTAL
  747. depends on CGROUP_SCHED
  748. default n
  749. help
  750. This feature lets you explicitly allocate real CPU bandwidth
  751. to task groups. If enabled, it will also make it impossible to
  752. schedule realtime tasks for non-root users until you allocate
  753. realtime bandwidth for them.
  754. See Documentation/scheduler/sched-rt-group.txt for more information.
  755. endif #CGROUP_SCHED
  756. config BLK_CGROUP
  757. bool "Block IO controller"
  758. depends on BLOCK
  759. default n
  760. ---help---
  761. Generic block IO controller cgroup interface. This is the common
  762. cgroup interface which should be used by various IO controlling
  763. policies.
  764. Currently, CFQ IO scheduler uses it to recognize task groups and
  765. control disk bandwidth allocation (proportional time slice allocation)
  766. to such task groups. It is also used by bio throttling logic in
  767. block layer to implement upper limit in IO rates on a device.
  768. This option only enables generic Block IO controller infrastructure.
  769. One needs to also enable actual IO controlling logic/policy. For
  770. enabling proportional weight division of disk bandwidth in CFQ, set
  771. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  772. CONFIG_BLK_DEV_THROTTLING=y.
  773. See Documentation/cgroups/blkio-controller.txt for more information.
  774. config DEBUG_BLK_CGROUP
  775. bool "Enable Block IO controller debugging"
  776. depends on BLK_CGROUP
  777. default n
  778. ---help---
  779. Enable some debugging help. Currently it exports additional stat
  780. files in a cgroup which can be useful for debugging.
  781. endif # CGROUPS
  782. config CHECKPOINT_RESTORE
  783. bool "Checkpoint/restore support" if EXPERT
  784. default n
  785. help
  786. Enables additional kernel features in a sake of checkpoint/restore.
  787. In particular it adds auxiliary prctl codes to setup process text,
  788. data and heap segment sizes, and a few additional /proc filesystem
  789. entries.
  790. If unsure, say N here.
  791. menuconfig NAMESPACES
  792. bool "Namespaces support" if EXPERT
  793. default !EXPERT
  794. help
  795. Provides the way to make tasks work with different objects using
  796. the same id. For example same IPC id may refer to different objects
  797. or same user id or pid may refer to different tasks when used in
  798. different namespaces.
  799. if NAMESPACES
  800. config UTS_NS
  801. bool "UTS namespace"
  802. default y
  803. help
  804. In this namespace tasks see different info provided with the
  805. uname() system call
  806. config IPC_NS
  807. bool "IPC namespace"
  808. depends on (SYSVIPC || POSIX_MQUEUE)
  809. default y
  810. help
  811. In this namespace tasks work with IPC ids which correspond to
  812. different IPC objects in different namespaces.
  813. config USER_NS
  814. bool "User namespace (EXPERIMENTAL)"
  815. depends on EXPERIMENTAL
  816. depends on UIDGID_CONVERTED
  817. select UIDGID_STRICT_TYPE_CHECKS
  818. default n
  819. help
  820. This allows containers, i.e. vservers, to use user namespaces
  821. to provide different user info for different servers.
  822. If unsure, say N.
  823. config PID_NS
  824. bool "PID Namespaces"
  825. default y
  826. help
  827. Support process id namespaces. This allows having multiple
  828. processes with the same pid as long as they are in different
  829. pid namespaces. This is a building block of containers.
  830. config NET_NS
  831. bool "Network namespace"
  832. depends on NET
  833. default y
  834. help
  835. Allow user space to create what appear to be multiple instances
  836. of the network stack.
  837. endif # NAMESPACES
  838. config UIDGID_CONVERTED
  839. # True if all of the selected software conmponents are known
  840. # to have uid_t and gid_t converted to kuid_t and kgid_t
  841. # where appropriate and are otherwise safe to use with
  842. # the user namespace.
  843. bool
  844. default y
  845. # Networking
  846. depends on NET_9P = n
  847. # Filesystems
  848. depends on 9P_FS = n
  849. depends on AFS_FS = n
  850. depends on AUTOFS4_FS = n
  851. depends on CEPH_FS = n
  852. depends on CIFS = n
  853. depends on CODA_FS = n
  854. depends on FUSE_FS = n
  855. depends on GFS2_FS = n
  856. depends on NCP_FS = n
  857. depends on NFSD = n
  858. depends on NFS_FS = n
  859. depends on OCFS2_FS = n
  860. depends on XFS_FS = n
  861. config UIDGID_STRICT_TYPE_CHECKS
  862. bool "Require conversions between uid/gids and their internal representation"
  863. depends on UIDGID_CONVERTED
  864. default n
  865. help
  866. While the nececessary conversions are being added to all subsystems this option allows
  867. the code to continue to build for unconverted subsystems.
  868. Say Y here if you want the strict type checking enabled
  869. config SCHED_AUTOGROUP
  870. bool "Automatic process group scheduling"
  871. select EVENTFD
  872. select CGROUPS
  873. select CGROUP_SCHED
  874. select FAIR_GROUP_SCHED
  875. help
  876. This option optimizes the scheduler for common desktop workloads by
  877. automatically creating and populating task groups. This separation
  878. of workloads isolates aggressive CPU burners (like build jobs) from
  879. desktop applications. Task group autogeneration is currently based
  880. upon task session.
  881. config MM_OWNER
  882. bool
  883. config SYSFS_DEPRECATED
  884. bool "Enable deprecated sysfs features to support old userspace tools"
  885. depends on SYSFS
  886. default n
  887. help
  888. This option adds code that switches the layout of the "block" class
  889. devices, to not show up in /sys/class/block/, but only in
  890. /sys/block/.
  891. This switch is only active when the sysfs.deprecated=1 boot option is
  892. passed or the SYSFS_DEPRECATED_V2 option is set.
  893. This option allows new kernels to run on old distributions and tools,
  894. which might get confused by /sys/class/block/. Since 2007/2008 all
  895. major distributions and tools handle this just fine.
  896. Recent distributions and userspace tools after 2009/2010 depend on
  897. the existence of /sys/class/block/, and will not work with this
  898. option enabled.
  899. Only if you are using a new kernel on an old distribution, you might
  900. need to say Y here.
  901. config SYSFS_DEPRECATED_V2
  902. bool "Enable deprecated sysfs features by default"
  903. default n
  904. depends on SYSFS
  905. depends on SYSFS_DEPRECATED
  906. help
  907. Enable deprecated sysfs by default.
  908. See the CONFIG_SYSFS_DEPRECATED option for more details about this
  909. option.
  910. Only if you are using a new kernel on an old distribution, you might
  911. need to say Y here. Even then, odds are you would not need it
  912. enabled, you can always pass the boot option if absolutely necessary.
  913. config RELAY
  914. bool "Kernel->user space relay support (formerly relayfs)"
  915. help
  916. This option enables support for relay interface support in
  917. certain file systems (such as debugfs).
  918. It is designed to provide an efficient mechanism for tools and
  919. facilities to relay large amounts of data from kernel space to
  920. user space.
  921. If unsure, say N.
  922. config BLK_DEV_INITRD
  923. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  924. depends on BROKEN || !FRV
  925. help
  926. The initial RAM filesystem is a ramfs which is loaded by the
  927. boot loader (loadlin or lilo) and that is mounted as root
  928. before the normal boot procedure. It is typically used to
  929. load modules needed to mount the "real" root file system,
  930. etc. See <file:Documentation/initrd.txt> for details.
  931. If RAM disk support (BLK_DEV_RAM) is also included, this
  932. also enables initial RAM disk (initrd) support and adds
  933. 15 Kbytes (more on some other architectures) to the kernel size.
  934. If unsure say Y.
  935. if BLK_DEV_INITRD
  936. source "usr/Kconfig"
  937. endif
  938. config CC_OPTIMIZE_FOR_SIZE
  939. bool "Optimize for size"
  940. help
  941. Enabling this option will pass "-Os" instead of "-O2" to gcc
  942. resulting in a smaller kernel.
  943. If unsure, say Y.
  944. config SYSCTL
  945. bool
  946. config ANON_INODES
  947. bool
  948. menuconfig EXPERT
  949. bool "Configure standard kernel features (expert users)"
  950. # Unhide debug options, to make the on-by-default options visible
  951. select DEBUG_KERNEL
  952. help
  953. This option allows certain base kernel options and settings
  954. to be disabled or tweaked. This is for specialized
  955. environments which can tolerate a "non-standard" kernel.
  956. Only use this if you really know what you are doing.
  957. config HAVE_UID16
  958. bool
  959. config UID16
  960. bool "Enable 16-bit UID system calls" if EXPERT
  961. depends on HAVE_UID16
  962. default y
  963. help
  964. This enables the legacy 16-bit UID syscall wrappers.
  965. config SYSCTL_SYSCALL
  966. bool "Sysctl syscall support" if EXPERT
  967. depends on PROC_SYSCTL
  968. default n
  969. select SYSCTL
  970. ---help---
  971. sys_sysctl uses binary paths that have been found challenging
  972. to properly maintain and use. The interface in /proc/sys
  973. using paths with ascii names is now the primary path to this
  974. information.
  975. Almost nothing using the binary sysctl interface so if you are
  976. trying to save some space it is probably safe to disable this,
  977. making your kernel marginally smaller.
  978. If unsure say N here.
  979. config SYSCTL_EXCEPTION_TRACE
  980. bool
  981. help
  982. Enable support for /proc/sys/debug/exception-trace.
  983. config KALLSYMS
  984. bool "Load all symbols for debugging/ksymoops" if EXPERT
  985. default y
  986. help
  987. Say Y here to let the kernel print out symbolic crash information and
  988. symbolic stack backtraces. This increases the size of the kernel
  989. somewhat, as all symbols have to be loaded into the kernel image.
  990. config KALLSYMS_ALL
  991. bool "Include all symbols in kallsyms"
  992. depends on DEBUG_KERNEL && KALLSYMS
  993. help
  994. Normally kallsyms only contains the symbols of functions for nicer
  995. OOPS messages and backtraces (i.e., symbols from the text and inittext
  996. sections). This is sufficient for most cases. And only in very rare
  997. cases (e.g., when a debugger is used) all symbols are required (e.g.,
  998. names of variables from the data sections, etc).
  999. This option makes sure that all symbols are loaded into the kernel
  1000. image (i.e., symbols from all sections) in cost of increased kernel
  1001. size (depending on the kernel configuration, it may be 300KiB or
  1002. something like this).
  1003. Say N unless you really need all symbols.
  1004. config HOTPLUG
  1005. def_bool y
  1006. config PRINTK
  1007. default y
  1008. bool "Enable support for printk" if EXPERT
  1009. help
  1010. This option enables normal printk support. Removing it
  1011. eliminates most of the message strings from the kernel image
  1012. and makes the kernel more or less silent. As this makes it
  1013. very difficult to diagnose system problems, saying N here is
  1014. strongly discouraged.
  1015. config BUG
  1016. bool "BUG() support" if EXPERT
  1017. default y
  1018. help
  1019. Disabling this option eliminates support for BUG and WARN, reducing
  1020. the size of your kernel image and potentially quietly ignoring
  1021. numerous fatal conditions. You should only consider disabling this
  1022. option for embedded systems with no facilities for reporting errors.
  1023. Just say Y.
  1024. config ELF_CORE
  1025. depends on COREDUMP
  1026. default y
  1027. bool "Enable ELF core dumps" if EXPERT
  1028. help
  1029. Enable support for generating core dumps. Disabling saves about 4k.
  1030. config PCSPKR_PLATFORM
  1031. bool "Enable PC-Speaker support" if EXPERT
  1032. depends on HAVE_PCSPKR_PLATFORM
  1033. select I8253_LOCK
  1034. default y
  1035. help
  1036. This option allows to disable the internal PC-Speaker
  1037. support, saving some memory.
  1038. config HAVE_PCSPKR_PLATFORM
  1039. bool
  1040. config BASE_FULL
  1041. default y
  1042. bool "Enable full-sized data structures for core" if EXPERT
  1043. help
  1044. Disabling this option reduces the size of miscellaneous core
  1045. kernel data structures. This saves memory on small machines,
  1046. but may reduce performance.
  1047. config FUTEX
  1048. bool "Enable futex support" if EXPERT
  1049. default y
  1050. select RT_MUTEXES
  1051. help
  1052. Disabling this option will cause the kernel to be built without
  1053. support for "fast userspace mutexes". The resulting kernel may not
  1054. run glibc-based applications correctly.
  1055. config EPOLL
  1056. bool "Enable eventpoll support" if EXPERT
  1057. default y
  1058. select ANON_INODES
  1059. help
  1060. Disabling this option will cause the kernel to be built without
  1061. support for epoll family of system calls.
  1062. config SIGNALFD
  1063. bool "Enable signalfd() system call" if EXPERT
  1064. select ANON_INODES
  1065. default y
  1066. help
  1067. Enable the signalfd() system call that allows to receive signals
  1068. on a file descriptor.
  1069. If unsure, say Y.
  1070. config TIMERFD
  1071. bool "Enable timerfd() system call" if EXPERT
  1072. select ANON_INODES
  1073. default y
  1074. help
  1075. Enable the timerfd() system call that allows to receive timer
  1076. events on a file descriptor.
  1077. If unsure, say Y.
  1078. config EVENTFD
  1079. bool "Enable eventfd() system call" if EXPERT
  1080. select ANON_INODES
  1081. default y
  1082. help
  1083. Enable the eventfd() system call that allows to receive both
  1084. kernel notification (ie. KAIO) or userspace notifications.
  1085. If unsure, say Y.
  1086. config SHMEM
  1087. bool "Use full shmem filesystem" if EXPERT
  1088. default y
  1089. depends on MMU
  1090. help
  1091. The shmem is an internal filesystem used to manage shared memory.
  1092. It is backed by swap and manages resource limits. It is also exported
  1093. to userspace as tmpfs if TMPFS is enabled. Disabling this
  1094. option replaces shmem and tmpfs with the much simpler ramfs code,
  1095. which may be appropriate on small systems without swap.
  1096. config AIO
  1097. bool "Enable AIO support" if EXPERT
  1098. default y
  1099. help
  1100. This option enables POSIX asynchronous I/O which may by used
  1101. by some high performance threaded applications. Disabling
  1102. this option saves about 7k.
  1103. config EMBEDDED
  1104. bool "Embedded system"
  1105. select EXPERT
  1106. help
  1107. This option should be enabled if compiling the kernel for
  1108. an embedded system so certain expert options are available
  1109. for configuration.
  1110. config HAVE_PERF_EVENTS
  1111. bool
  1112. help
  1113. See tools/perf/design.txt for details.
  1114. config PERF_USE_VMALLOC
  1115. bool
  1116. help
  1117. See tools/perf/design.txt for details
  1118. menu "Kernel Performance Events And Counters"
  1119. config PERF_EVENTS
  1120. bool "Kernel performance events and counters"
  1121. default y if PROFILING
  1122. depends on HAVE_PERF_EVENTS
  1123. select ANON_INODES
  1124. select IRQ_WORK
  1125. help
  1126. Enable kernel support for various performance events provided
  1127. by software and hardware.
  1128. Software events are supported either built-in or via the
  1129. use of generic tracepoints.
  1130. Most modern CPUs support performance events via performance
  1131. counter registers. These registers count the number of certain
  1132. types of hw events: such as instructions executed, cachemisses
  1133. suffered, or branches mis-predicted - without slowing down the
  1134. kernel or applications. These registers can also trigger interrupts
  1135. when a threshold number of events have passed - and can thus be
  1136. used to profile the code that runs on that CPU.
  1137. The Linux Performance Event subsystem provides an abstraction of
  1138. these software and hardware event capabilities, available via a
  1139. system call and used by the "perf" utility in tools/perf/. It
  1140. provides per task and per CPU counters, and it provides event
  1141. capabilities on top of those.
  1142. Say Y if unsure.
  1143. config DEBUG_PERF_USE_VMALLOC
  1144. default n
  1145. bool "Debug: use vmalloc to back perf mmap() buffers"
  1146. depends on PERF_EVENTS && DEBUG_KERNEL
  1147. select PERF_USE_VMALLOC
  1148. help
  1149. Use vmalloc memory to back perf mmap() buffers.
  1150. Mostly useful for debugging the vmalloc code on platforms
  1151. that don't require it.
  1152. Say N if unsure.
  1153. endmenu
  1154. config VM_EVENT_COUNTERS
  1155. default y
  1156. bool "Enable VM event counters for /proc/vmstat" if EXPERT
  1157. help
  1158. VM event counters are needed for event counts to be shown.
  1159. This option allows the disabling of the VM event counters
  1160. on EXPERT systems. /proc/vmstat will only show page counts
  1161. if VM event counters are disabled.
  1162. config PCI_QUIRKS
  1163. default y
  1164. bool "Enable PCI quirk workarounds" if EXPERT
  1165. depends on PCI
  1166. help
  1167. This enables workarounds for various PCI chipset
  1168. bugs/quirks. Disable this only if your target machine is
  1169. unaffected by PCI quirks.
  1170. config SLUB_DEBUG
  1171. default y
  1172. bool "Enable SLUB debugging support" if EXPERT
  1173. depends on SLUB && SYSFS
  1174. help
  1175. SLUB has extensive debug support features. Disabling these can
  1176. result in significant savings in code size. This also disables
  1177. SLUB sysfs support. /sys/slab will not exist and there will be
  1178. no support for cache validation etc.
  1179. config COMPAT_BRK
  1180. bool "Disable heap randomization"
  1181. default y
  1182. help
  1183. Randomizing heap placement makes heap exploits harder, but it
  1184. also breaks ancient binaries (including anything libc5 based).
  1185. This option changes the bootup default to heap randomization
  1186. disabled, and can be overridden at runtime by setting
  1187. /proc/sys/kernel/randomize_va_space to 2.
  1188. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  1189. choice
  1190. prompt "Choose SLAB allocator"
  1191. default SLUB
  1192. help
  1193. This option allows to select a slab allocator.
  1194. config SLAB
  1195. bool "SLAB"
  1196. help
  1197. The regular slab allocator that is established and known to work
  1198. well in all environments. It organizes cache hot objects in
  1199. per cpu and per node queues.
  1200. config SLUB
  1201. bool "SLUB (Unqueued Allocator)"
  1202. help
  1203. SLUB is a slab allocator that minimizes cache line usage
  1204. instead of managing queues of cached objects (SLAB approach).
  1205. Per cpu caching is realized using slabs of objects instead
  1206. of queues of objects. SLUB can use memory efficiently
  1207. and has enhanced diagnostics. SLUB is the default choice for
  1208. a slab allocator.
  1209. config SLOB
  1210. depends on EXPERT
  1211. bool "SLOB (Simple Allocator)"
  1212. help
  1213. SLOB replaces the stock allocator with a drastically simpler
  1214. allocator. SLOB is generally more space efficient but
  1215. does not perform as well on large systems.
  1216. endchoice
  1217. config MMAP_ALLOW_UNINITIALIZED
  1218. bool "Allow mmapped anonymous memory to be uninitialized"
  1219. depends on EXPERT && !MMU
  1220. default n
  1221. help
  1222. Normally, and according to the Linux spec, anonymous memory obtained
  1223. from mmap() has it's contents cleared before it is passed to
  1224. userspace. Enabling this config option allows you to request that
  1225. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  1226. providing a huge performance boost. If this option is not enabled,
  1227. then the flag will be ignored.
  1228. This is taken advantage of by uClibc's malloc(), and also by
  1229. ELF-FDPIC binfmt's brk and stack allocator.
  1230. Because of the obvious security issues, this option should only be
  1231. enabled on embedded devices where you control what is run in
  1232. userspace. Since that isn't generally a problem on no-MMU systems,
  1233. it is normally safe to say Y here.
  1234. See Documentation/nommu-mmap.txt for more information.
  1235. config PROFILING
  1236. bool "Profiling support"
  1237. help
  1238. Say Y here to enable the extended profiling support mechanisms used
  1239. by profilers such as OProfile.
  1240. #
  1241. # Place an empty function call at each tracepoint site. Can be
  1242. # dynamically changed for a probe function.
  1243. #
  1244. config TRACEPOINTS
  1245. bool
  1246. source "arch/Kconfig"
  1247. endmenu # General setup
  1248. config HAVE_GENERIC_DMA_COHERENT
  1249. bool
  1250. default n
  1251. config SLABINFO
  1252. bool
  1253. depends on PROC_FS
  1254. depends on SLAB || SLUB_DEBUG
  1255. default y
  1256. config RT_MUTEXES
  1257. boolean
  1258. config BASE_SMALL
  1259. int
  1260. default 0 if BASE_FULL
  1261. default 1 if !BASE_FULL
  1262. menuconfig MODULES
  1263. bool "Enable loadable module support"
  1264. help
  1265. Kernel modules are small pieces of compiled code which can
  1266. be inserted in the running kernel, rather than being
  1267. permanently built into the kernel. You use the "modprobe"
  1268. tool to add (and sometimes remove) them. If you say Y here,
  1269. many parts of the kernel can be built as modules (by
  1270. answering M instead of Y where indicated): this is most
  1271. useful for infrequently used options which are not required
  1272. for booting. For more information, see the man pages for
  1273. modprobe, lsmod, modinfo, insmod and rmmod.
  1274. If you say Y here, you will need to run "make
  1275. modules_install" to put the modules under /lib/modules/
  1276. where modprobe can find them (you may need to be root to do
  1277. this).
  1278. If unsure, say Y.
  1279. if MODULES
  1280. config MODULE_FORCE_LOAD
  1281. bool "Forced module loading"
  1282. default n
  1283. help
  1284. Allow loading of modules without version information (ie. modprobe
  1285. --force). Forced module loading sets the 'F' (forced) taint flag and
  1286. is usually a really bad idea.
  1287. config MODULE_UNLOAD
  1288. bool "Module unloading"
  1289. help
  1290. Without this option you will not be able to unload any
  1291. modules (note that some modules may not be unloadable
  1292. anyway), which makes your kernel smaller, faster
  1293. and simpler. If unsure, say Y.
  1294. config MODULE_FORCE_UNLOAD
  1295. bool "Forced module unloading"
  1296. depends on MODULE_UNLOAD && EXPERIMENTAL
  1297. help
  1298. This option allows you to force a module to unload, even if the
  1299. kernel believes it is unsafe: the kernel will remove the module
  1300. without waiting for anyone to stop using it (using the -f option to
  1301. rmmod). This is mainly for kernel developers and desperate users.
  1302. If unsure, say N.
  1303. config MODVERSIONS
  1304. bool "Module versioning support"
  1305. help
  1306. Usually, you have to use modules compiled with your kernel.
  1307. Saying Y here makes it sometimes possible to use modules
  1308. compiled for different kernels, by adding enough information
  1309. to the modules to (hopefully) spot any changes which would
  1310. make them incompatible with the kernel you are running. If
  1311. unsure, say N.
  1312. config MODULE_SRCVERSION_ALL
  1313. bool "Source checksum for all modules"
  1314. help
  1315. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1316. field inserted into their modinfo section, which contains a
  1317. sum of the source files which made it. This helps maintainers
  1318. see exactly which source was used to build a module (since
  1319. others sometimes change the module source without updating
  1320. the version). With this option, such a "srcversion" field
  1321. will be created for all modules. If unsure, say N.
  1322. config MODULE_SIG
  1323. bool "Module signature verification"
  1324. depends on MODULES
  1325. select KEYS
  1326. select CRYPTO
  1327. select ASYMMETRIC_KEY_TYPE
  1328. select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  1329. select PUBLIC_KEY_ALGO_RSA
  1330. select ASN1
  1331. select OID_REGISTRY
  1332. select X509_CERTIFICATE_PARSER
  1333. help
  1334. Check modules for valid signatures upon load: the signature
  1335. is simply appended to the module. For more information see
  1336. Documentation/module-signing.txt.
  1337. !!!WARNING!!! If you enable this option, you MUST make sure that the
  1338. module DOES NOT get stripped after being signed. This includes the
  1339. debuginfo strip done by some packagers (such as rpmbuild) and
  1340. inclusion into an initramfs that wants the module size reduced.
  1341. config MODULE_SIG_FORCE
  1342. bool "Require modules to be validly signed"
  1343. depends on MODULE_SIG
  1344. help
  1345. Reject unsigned modules or signed modules for which we don't have a
  1346. key. Without this, such modules will simply taint the kernel.
  1347. choice
  1348. prompt "Which hash algorithm should modules be signed with?"
  1349. depends on MODULE_SIG
  1350. help
  1351. This determines which sort of hashing algorithm will be used during
  1352. signature generation. This algorithm _must_ be built into the kernel
  1353. directly so that signature verification can take place. It is not
  1354. possible to load a signed module containing the algorithm to check
  1355. the signature on that module.
  1356. config MODULE_SIG_SHA1
  1357. bool "Sign modules with SHA-1"
  1358. select CRYPTO_SHA1
  1359. config MODULE_SIG_SHA224
  1360. bool "Sign modules with SHA-224"
  1361. select CRYPTO_SHA256
  1362. config MODULE_SIG_SHA256
  1363. bool "Sign modules with SHA-256"
  1364. select CRYPTO_SHA256
  1365. config MODULE_SIG_SHA384
  1366. bool "Sign modules with SHA-384"
  1367. select CRYPTO_SHA512
  1368. config MODULE_SIG_SHA512
  1369. bool "Sign modules with SHA-512"
  1370. select CRYPTO_SHA512
  1371. endchoice
  1372. endif # MODULES
  1373. config INIT_ALL_POSSIBLE
  1374. bool
  1375. help
  1376. Back when each arch used to define their own cpu_online_mask and
  1377. cpu_possible_mask, some of them chose to initialize cpu_possible_mask
  1378. with all 1s, and others with all 0s. When they were centralised,
  1379. it was better to provide this option than to break all the archs
  1380. and have several arch maintainers pursuing me down dark alleys.
  1381. config STOP_MACHINE
  1382. bool
  1383. default y
  1384. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  1385. help
  1386. Need stop_machine() primitive.
  1387. source "block/Kconfig"
  1388. config PREEMPT_NOTIFIERS
  1389. bool
  1390. config PADATA
  1391. depends on SMP
  1392. bool
  1393. # Can be selected by architectures with broken toolchains
  1394. # that get confused by correct const<->read_only section
  1395. # mappings
  1396. config BROKEN_RODATA
  1397. bool
  1398. config ASN1
  1399. tristate
  1400. help
  1401. Build a simple ASN.1 grammar compiler that produces a bytecode output
  1402. that can be interpreted by the ASN.1 stream decoder and used to
  1403. inform it as to what tags are to be expected in a stream and what
  1404. functions to call on what tags.
  1405. source "kernel/Kconfig.locks"