Kconfig 60 KB

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