Kconfig 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359
  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. config THREAD_INFO_IN_TASK
  24. bool
  25. help
  26. Select this to move thread_info off the stack into task_struct. To
  27. make this work, an arch will need to remove all thread_info fields
  28. except flags and fix any runtime bugs.
  29. One subtle change that will be needed is to use try_get_task_stack()
  30. and put_task_stack() in save_thread_stack_tsk() and get_wchan().
  31. menu "General setup"
  32. config BROKEN
  33. bool
  34. config BROKEN_ON_SMP
  35. bool
  36. depends on BROKEN || !SMP
  37. default y
  38. config INIT_ENV_ARG_LIMIT
  39. int
  40. default 32 if !UML
  41. default 128 if UML
  42. help
  43. Maximum of each of the number of arguments and environment
  44. variables passed to init from the kernel command line.
  45. config CROSS_COMPILE
  46. string "Cross-compiler tool prefix"
  47. help
  48. Same as running 'make CROSS_COMPILE=prefix-' but stored for
  49. default make runs in this kernel build directory. You don't
  50. need to set this unless you want the configured kernel build
  51. directory to select the cross-compiler automatically.
  52. config COMPILE_TEST
  53. bool "Compile also drivers which will not load"
  54. depends on !UML
  55. default n
  56. help
  57. Some drivers can be compiled on a different platform than they are
  58. intended to be run on. Despite they cannot be loaded there (or even
  59. when they load they cannot be used due to missing HW support),
  60. developers still, opposing to distributors, might want to build such
  61. drivers to compile-test them.
  62. If you are a developer and want to build everything available, say Y
  63. here. If you are a user/distributor, say N here to exclude useless
  64. drivers to be distributed.
  65. config LOCALVERSION
  66. string "Local version - append to kernel release"
  67. help
  68. Append an extra string to the end of your kernel version.
  69. This will show up when you type uname, for example.
  70. The string you set here will be appended after the contents of
  71. any files with a filename matching localversion* in your
  72. object and source tree, in that order. Your total string can
  73. be a maximum of 64 characters.
  74. config LOCALVERSION_AUTO
  75. bool "Automatically append version information to the version string"
  76. default y
  77. depends on !COMPILE_TEST
  78. help
  79. This will try to automatically determine if the current tree is a
  80. release tree by looking for git tags that belong to the current
  81. top of tree revision.
  82. A string of the format -gxxxxxxxx will be added to the localversion
  83. if a git-based tree is found. The string generated by this will be
  84. appended after any matching localversion* files, and after the value
  85. set in CONFIG_LOCALVERSION.
  86. (The actual string used here is the first eight characters produced
  87. by running the command:
  88. $ git rev-parse --verify HEAD
  89. which is done within the script "scripts/setlocalversion".)
  90. config HAVE_KERNEL_GZIP
  91. bool
  92. config HAVE_KERNEL_BZIP2
  93. bool
  94. config HAVE_KERNEL_LZMA
  95. bool
  96. config HAVE_KERNEL_XZ
  97. bool
  98. config HAVE_KERNEL_LZO
  99. bool
  100. config HAVE_KERNEL_LZ4
  101. bool
  102. choice
  103. prompt "Kernel compression mode"
  104. default KERNEL_GZIP
  105. depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
  106. help
  107. The linux kernel is a kind of self-extracting executable.
  108. Several compression algorithms are available, which differ
  109. in efficiency, compression and decompression speed.
  110. Compression speed is only relevant when building a kernel.
  111. Decompression speed is relevant at each boot.
  112. If you have any problems with bzip2 or lzma compressed
  113. kernels, mail me (Alain Knaff) <[email protected]>. (An older
  114. version of this functionality (bzip2 only), for 2.4, was
  115. supplied by Christian Ludwig)
  116. High compression options are mostly useful for users, who
  117. are low on disk space (embedded systems), but for whom ram
  118. size matters less.
  119. If in doubt, select 'gzip'
  120. config KERNEL_GZIP
  121. bool "Gzip"
  122. depends on HAVE_KERNEL_GZIP
  123. help
  124. The old and tried gzip compression. It provides a good balance
  125. between compression ratio and decompression speed.
  126. config KERNEL_BZIP2
  127. bool "Bzip2"
  128. depends on HAVE_KERNEL_BZIP2
  129. help
  130. Its compression ratio and speed is intermediate.
  131. Decompression speed is slowest among the choices. The kernel
  132. size is about 10% smaller with bzip2, in comparison to gzip.
  133. Bzip2 uses a large amount of memory. For modern kernels you
  134. will need at least 8MB RAM or more for booting.
  135. config KERNEL_LZMA
  136. bool "LZMA"
  137. depends on HAVE_KERNEL_LZMA
  138. help
  139. This compression algorithm's ratio is best. Decompression speed
  140. is between gzip and bzip2. Compression is slowest.
  141. The kernel size is about 33% smaller with LZMA in comparison to gzip.
  142. config KERNEL_XZ
  143. bool "XZ"
  144. depends on HAVE_KERNEL_XZ
  145. help
  146. XZ uses the LZMA2 algorithm and instruction set specific
  147. BCJ filters which can improve compression ratio of executable
  148. code. The size of the kernel is about 30% smaller with XZ in
  149. comparison to gzip. On architectures for which there is a BCJ
  150. filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
  151. will create a few percent smaller kernel than plain LZMA.
  152. The speed is about the same as with LZMA: The decompression
  153. speed of XZ is better than that of bzip2 but worse than gzip
  154. and LZO. Compression is slow.
  155. config KERNEL_LZO
  156. bool "LZO"
  157. depends on HAVE_KERNEL_LZO
  158. help
  159. Its compression ratio is the poorest among the choices. The kernel
  160. size is about 10% bigger than gzip; however its speed
  161. (both compression and decompression) is the fastest.
  162. config KERNEL_LZ4
  163. bool "LZ4"
  164. depends on HAVE_KERNEL_LZ4
  165. help
  166. LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
  167. A preliminary version of LZ4 de/compression tool is available at
  168. <https://code.google.com/p/lz4/>.
  169. Its compression ratio is worse than LZO. The size of the kernel
  170. is about 8% bigger than LZO. But the decompression speed is
  171. faster than LZO.
  172. endchoice
  173. config DEFAULT_HOSTNAME
  174. string "Default hostname"
  175. default "(none)"
  176. help
  177. This option determines the default system hostname before userspace
  178. calls sethostname(2). The kernel traditionally uses "(none)" here,
  179. but you may wish to use a different default here to make a minimal
  180. system more usable with less configuration.
  181. config SWAP
  182. bool "Support for paging of anonymous memory (swap)"
  183. depends on MMU && BLOCK
  184. default y
  185. help
  186. This option allows you to choose whether you want to have support
  187. for so called swap devices or swap files in your kernel that are
  188. used to provide more virtual memory than the actual RAM present
  189. in your computer. If unsure say Y.
  190. config SYSVIPC
  191. bool "System V IPC"
  192. ---help---
  193. Inter Process Communication is a suite of library functions and
  194. system calls which let processes (running programs) synchronize and
  195. exchange information. It is generally considered to be a good thing,
  196. and some programs won't run unless you say Y here. In particular, if
  197. you want to run the DOS emulator dosemu under Linux (read the
  198. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  199. you'll need to say Y here.
  200. You can find documentation about IPC with "info ipc" and also in
  201. section 6.4 of the Linux Programmer's Guide, available from
  202. <http://www.tldp.org/guides.html>.
  203. config SYSVIPC_SYSCTL
  204. bool
  205. depends on SYSVIPC
  206. depends on SYSCTL
  207. default y
  208. config POSIX_MQUEUE
  209. bool "POSIX Message Queues"
  210. depends on NET
  211. ---help---
  212. POSIX variant of message queues is a part of IPC. In POSIX message
  213. queues every message has a priority which decides about succession
  214. of receiving it by a process. If you want to compile and run
  215. programs written e.g. for Solaris with use of its POSIX message
  216. queues (functions mq_*) say Y here.
  217. POSIX message queues are visible as a filesystem called 'mqueue'
  218. and can be mounted somewhere if you want to do filesystem
  219. operations on message queues.
  220. If unsure, say Y.
  221. config POSIX_MQUEUE_SYSCTL
  222. bool
  223. depends on POSIX_MQUEUE
  224. depends on SYSCTL
  225. default y
  226. config CROSS_MEMORY_ATTACH
  227. bool "Enable process_vm_readv/writev syscalls"
  228. depends on MMU
  229. default y
  230. help
  231. Enabling this option adds the system calls process_vm_readv and
  232. process_vm_writev which allow a process with the correct privileges
  233. to directly read from or write to another process' address space.
  234. See the man page for more details.
  235. config FHANDLE
  236. bool "open by fhandle syscalls" if EXPERT
  237. select EXPORTFS
  238. default y
  239. help
  240. If you say Y here, a user level program will be able to map
  241. file names to handle and then later use the handle for
  242. different file system operations. This is useful in implementing
  243. userspace file servers, which now track files using handles instead
  244. of names. The handle would remain the same even if file names
  245. get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
  246. syscalls.
  247. config USELIB
  248. bool "uselib syscall"
  249. def_bool ALPHA || M68K || SPARC || X86_32 || IA32_EMULATION
  250. help
  251. This option enables the uselib syscall, a system call used in the
  252. dynamic linker from libc5 and earlier. glibc does not use this
  253. system call. If you intend to run programs built on libc5 or
  254. earlier, you may need to enable this syscall. Current systems
  255. running glibc can safely disable this.
  256. config AUDIT
  257. bool "Auditing support"
  258. depends on NET
  259. help
  260. Enable auditing infrastructure that can be used with another
  261. kernel subsystem, such as SELinux (which requires this for
  262. logging of avc messages output). Does not do system-call
  263. auditing without CONFIG_AUDITSYSCALL.
  264. config HAVE_ARCH_AUDITSYSCALL
  265. bool
  266. config AUDITSYSCALL
  267. bool "Enable system-call auditing support"
  268. depends on AUDIT && HAVE_ARCH_AUDITSYSCALL
  269. default y if SECURITY_SELINUX
  270. help
  271. Enable low-overhead system-call auditing infrastructure that
  272. can be used independently or with another kernel subsystem,
  273. such as SELinux.
  274. config AUDIT_WATCH
  275. def_bool y
  276. depends on AUDITSYSCALL
  277. select FSNOTIFY
  278. config AUDIT_TREE
  279. def_bool y
  280. depends on AUDITSYSCALL
  281. select FSNOTIFY
  282. source "kernel/irq/Kconfig"
  283. source "kernel/time/Kconfig"
  284. menu "CPU/Task time and stats accounting"
  285. config VIRT_CPU_ACCOUNTING
  286. bool
  287. choice
  288. prompt "Cputime accounting"
  289. default TICK_CPU_ACCOUNTING if !PPC64
  290. default VIRT_CPU_ACCOUNTING_NATIVE if PPC64
  291. # Kind of a stub config for the pure tick based cputime accounting
  292. config TICK_CPU_ACCOUNTING
  293. bool "Simple tick based cputime accounting"
  294. depends on !S390 && !NO_HZ_FULL
  295. help
  296. This is the basic tick based cputime accounting that maintains
  297. statistics about user, system and idle time spent on per jiffies
  298. granularity.
  299. If unsure, say Y.
  300. config VIRT_CPU_ACCOUNTING_NATIVE
  301. bool "Deterministic task and CPU time accounting"
  302. depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
  303. select VIRT_CPU_ACCOUNTING
  304. help
  305. Select this option to enable more accurate task and CPU time
  306. accounting. This is done by reading a CPU counter on each
  307. kernel entry and exit and on transitions within the kernel
  308. between system, softirq and hardirq state, so there is a
  309. small performance impact. In the case of s390 or IBM POWER > 5,
  310. this also enables accounting of stolen time on logically-partitioned
  311. systems.
  312. config VIRT_CPU_ACCOUNTING_GEN
  313. bool "Full dynticks CPU time accounting"
  314. depends on HAVE_CONTEXT_TRACKING
  315. depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
  316. select VIRT_CPU_ACCOUNTING
  317. select CONTEXT_TRACKING
  318. help
  319. Select this option to enable task and CPU time accounting on full
  320. dynticks systems. This accounting is implemented by watching every
  321. kernel-user boundaries using the context tracking subsystem.
  322. The accounting is thus performed at the expense of some significant
  323. overhead.
  324. For now this is only useful if you are working on the full
  325. dynticks subsystem development.
  326. If unsure, say N.
  327. endchoice
  328. config IRQ_TIME_ACCOUNTING
  329. bool "Fine granularity task level IRQ time accounting"
  330. depends on HAVE_IRQ_TIME_ACCOUNTING && !VIRT_CPU_ACCOUNTING_NATIVE
  331. help
  332. Select this option to enable fine granularity task irq time
  333. accounting. This is done by reading a timestamp on each
  334. transitions between softirq and hardirq state, so there can be a
  335. small performance impact.
  336. If in doubt, say N here.
  337. config SCHED_WALT
  338. bool "Support window based load tracking"
  339. depends on SMP
  340. help
  341. This feature will allow the scheduler to maintain a tunable window
  342. based set of metrics for tasks and runqueues. These metrics can be
  343. used to guide task placement as well as task frequency requirements
  344. for cpufreq governors.
  345. config BSD_PROCESS_ACCT
  346. bool "BSD Process Accounting"
  347. depends on MULTIUSER
  348. help
  349. If you say Y here, a user level program will be able to instruct the
  350. kernel (via a special system call) to write process accounting
  351. information to a file: whenever a process exits, information about
  352. that process will be appended to the file by the kernel. The
  353. information includes things such as creation time, owning user,
  354. command name, memory usage, controlling terminal etc. (the complete
  355. list is in the struct acct in <file:include/linux/acct.h>). It is
  356. up to the user level program to do useful things with this
  357. information. This is generally a good idea, so say Y.
  358. config BSD_PROCESS_ACCT_V3
  359. bool "BSD Process Accounting version 3 file format"
  360. depends on BSD_PROCESS_ACCT
  361. default n
  362. help
  363. If you say Y here, the process accounting information is written
  364. in a new file format that also logs the process IDs of each
  365. process and it's parent. Note that this file format is incompatible
  366. with previous v0/v1/v2 file formats, so you will need updated tools
  367. for processing it. A preliminary version of these tools is available
  368. at <http://www.gnu.org/software/acct/>.
  369. config TASKSTATS
  370. bool "Export task/process statistics through netlink"
  371. depends on NET
  372. depends on MULTIUSER
  373. default n
  374. help
  375. Export selected statistics for tasks/processes through the
  376. generic netlink interface. Unlike BSD process accounting, the
  377. statistics are available during the lifetime of tasks/processes as
  378. responses to commands. Like BSD accounting, they are sent to user
  379. space on task exit.
  380. Say N if unsure.
  381. config TASK_DELAY_ACCT
  382. bool "Enable per-task delay accounting"
  383. depends on TASKSTATS
  384. select SCHED_INFO
  385. help
  386. Collect information on time spent by a task waiting for system
  387. resources like cpu, synchronous block I/O completion and swapping
  388. in pages. Such statistics can help in setting a task's priorities
  389. relative to other tasks for cpu, io, rss limits etc.
  390. Say N if unsure.
  391. config TASK_XACCT
  392. bool "Enable extended accounting over taskstats"
  393. depends on TASKSTATS
  394. help
  395. Collect extended task accounting data and send the data
  396. to userland for processing over the taskstats interface.
  397. Say N if unsure.
  398. config TASK_IO_ACCOUNTING
  399. bool "Enable per-task storage I/O accounting"
  400. depends on TASK_XACCT
  401. help
  402. Collect information on the number of bytes of storage I/O which this
  403. task has caused.
  404. Say N if unsure.
  405. config PSI
  406. bool "Pressure stall information tracking"
  407. help
  408. Collect metrics that indicate how overcommitted the CPU, memory,
  409. and IO capacity are in the system.
  410. If you say Y here, the kernel will create /proc/pressure/ with the
  411. pressure statistics files cpu, memory, and io. These will indicate
  412. the share of walltime in which some or all tasks in the system are
  413. delayed due to contention of the respective resource.
  414. In kernels with cgroup support, cgroups (cgroup2 only) will
  415. have cpu.pressure, memory.pressure, and io.pressure files,
  416. which aggregate pressure stalls for the grouped tasks only.
  417. For more details see Documentation/accounting/psi.txt.
  418. Say N if unsure.
  419. config PSI_DEFAULT_DISABLED
  420. bool "Require boot parameter to enable pressure stall information tracking"
  421. default n
  422. depends on PSI
  423. help
  424. If set, pressure stall information tracking will be disabled
  425. per default but can be enabled through passing psi=1 on the
  426. kernel commandline during boot.
  427. This feature adds some code to the task wakeup and sleep
  428. paths of the scheduler. The overhead is too low to affect
  429. common scheduling-intense workloads in practice (such as
  430. webservers, memcache), but it does show up in artificial
  431. scheduler stress tests, such as hackbench.
  432. If you are paranoid and not sure what the kernel will be
  433. used for, say Y.
  434. Say N if unsure.
  435. endmenu # "CPU/Task time and stats accounting"
  436. menu "RCU Subsystem"
  437. config TREE_RCU
  438. bool
  439. default y if !PREEMPT && SMP
  440. help
  441. This option selects the RCU implementation that is
  442. designed for very large SMP system with hundreds or
  443. thousands of CPUs. It also scales down nicely to
  444. smaller systems.
  445. config PREEMPT_RCU
  446. bool
  447. default y if PREEMPT
  448. help
  449. This option selects the RCU implementation that is
  450. designed for very large SMP systems with hundreds or
  451. thousands of CPUs, but for which real-time response
  452. is also required. It also scales down nicely to
  453. smaller systems.
  454. Select this option if you are unsure.
  455. config TINY_RCU
  456. bool
  457. default y if !PREEMPT && !SMP
  458. help
  459. This option selects the RCU implementation that is
  460. designed for UP systems from which real-time response
  461. is not required. This option greatly reduces the
  462. memory footprint of RCU.
  463. config RCU_EXPERT
  464. bool "Make expert-level adjustments to RCU configuration"
  465. default n
  466. help
  467. This option needs to be enabled if you wish to make
  468. expert-level adjustments to RCU configuration. By default,
  469. no such adjustments can be made, which has the often-beneficial
  470. side-effect of preventing "make oldconfig" from asking you all
  471. sorts of detailed questions about how you would like numerous
  472. obscure RCU options to be set up.
  473. Say Y if you need to make expert-level adjustments to RCU.
  474. Say N if you are unsure.
  475. config SRCU
  476. bool
  477. help
  478. This option selects the sleepable version of RCU. This version
  479. permits arbitrary sleeping or blocking within RCU read-side critical
  480. sections.
  481. config TASKS_RCU
  482. bool
  483. default n
  484. depends on !UML
  485. select SRCU
  486. help
  487. This option enables a task-based RCU implementation that uses
  488. only voluntary context switch (not preemption!), idle, and
  489. user-mode execution as quiescent states.
  490. config RCU_STALL_COMMON
  491. def_bool ( TREE_RCU || PREEMPT_RCU || RCU_TRACE )
  492. help
  493. This option enables RCU CPU stall code that is common between
  494. the TINY and TREE variants of RCU. The purpose is to allow
  495. the tiny variants to disable RCU CPU stall warnings, while
  496. making these warnings mandatory for the tree variants.
  497. config CONTEXT_TRACKING
  498. bool
  499. config CONTEXT_TRACKING_FORCE
  500. bool "Force context tracking"
  501. depends on CONTEXT_TRACKING
  502. default y if !NO_HZ_FULL
  503. help
  504. The major pre-requirement for full dynticks to work is to
  505. support the context tracking subsystem. But there are also
  506. other dependencies to provide in order to make the full
  507. dynticks working.
  508. This option stands for testing when an arch implements the
  509. context tracking backend but doesn't yet fullfill all the
  510. requirements to make the full dynticks feature working.
  511. Without the full dynticks, there is no way to test the support
  512. for context tracking and the subsystems that rely on it: RCU
  513. userspace extended quiescent state and tickless cputime
  514. accounting. This option copes with the absence of the full
  515. dynticks subsystem by forcing the context tracking on all
  516. CPUs in the system.
  517. Say Y only if you're working on the development of an
  518. architecture backend for the context tracking.
  519. Say N otherwise, this option brings an overhead that you
  520. don't want in production.
  521. config RCU_FANOUT
  522. int "Tree-based hierarchical RCU fanout value"
  523. range 2 64 if 64BIT
  524. range 2 32 if !64BIT
  525. depends on (TREE_RCU || PREEMPT_RCU) && RCU_EXPERT
  526. default 64 if 64BIT
  527. default 32 if !64BIT
  528. help
  529. This option controls the fanout of hierarchical implementations
  530. of RCU, allowing RCU to work efficiently on machines with
  531. large numbers of CPUs. This value must be at least the fourth
  532. root of NR_CPUS, which allows NR_CPUS to be insanely large.
  533. The default value of RCU_FANOUT should be used for production
  534. systems, but if you are stress-testing the RCU implementation
  535. itself, small RCU_FANOUT values allow you to test large-system
  536. code paths on small(er) systems.
  537. Select a specific number if testing RCU itself.
  538. Take the default if unsure.
  539. config RCU_FANOUT_LEAF
  540. int "Tree-based hierarchical RCU leaf-level fanout value"
  541. range 2 64 if 64BIT
  542. range 2 32 if !64BIT
  543. depends on (TREE_RCU || PREEMPT_RCU) && RCU_EXPERT
  544. default 16
  545. help
  546. This option controls the leaf-level fanout of hierarchical
  547. implementations of RCU, and allows trading off cache misses
  548. against lock contention. Systems that synchronize their
  549. scheduling-clock interrupts for energy-efficiency reasons will
  550. want the default because the smaller leaf-level fanout keeps
  551. lock contention levels acceptably low. Very large systems
  552. (hundreds or thousands of CPUs) will instead want to set this
  553. value to the maximum value possible in order to reduce the
  554. number of cache misses incurred during RCU's grace-period
  555. initialization. These systems tend to run CPU-bound, and thus
  556. are not helped by synchronized interrupts, and thus tend to
  557. skew them, which reduces lock contention enough that large
  558. leaf-level fanouts work well.
  559. Select a specific number if testing RCU itself.
  560. Select the maximum permissible value for large systems.
  561. Take the default if unsure.
  562. config RCU_FAST_NO_HZ
  563. bool "Accelerate last non-dyntick-idle CPU's grace periods"
  564. depends on NO_HZ_COMMON && SMP && RCU_EXPERT
  565. default n
  566. help
  567. This option permits CPUs to enter dynticks-idle state even if
  568. they have RCU callbacks queued, and prevents RCU from waking
  569. these CPUs up more than roughly once every four jiffies (by
  570. default, you can adjust this using the rcutree.rcu_idle_gp_delay
  571. parameter), thus improving energy efficiency. On the other
  572. hand, this option increases the duration of RCU grace periods,
  573. for example, slowing down synchronize_rcu().
  574. Say Y if energy efficiency is critically important, and you
  575. don't care about increased grace-period durations.
  576. Say N if you are unsure.
  577. config TREE_RCU_TRACE
  578. def_bool RCU_TRACE && ( TREE_RCU || PREEMPT_RCU )
  579. select DEBUG_FS
  580. help
  581. This option provides tracing for the TREE_RCU and
  582. PREEMPT_RCU implementations, permitting Makefile to
  583. trivially select kernel/rcutree_trace.c.
  584. config RCU_BOOST
  585. bool "Enable RCU priority boosting"
  586. depends on RT_MUTEXES && PREEMPT_RCU && RCU_EXPERT
  587. default n
  588. help
  589. This option boosts the priority of preempted RCU readers that
  590. block the current preemptible RCU grace period for too long.
  591. This option also prevents heavy loads from blocking RCU
  592. callback invocation for all flavors of RCU.
  593. Say Y here if you are working with real-time apps or heavy loads
  594. Say N here if you are unsure.
  595. config RCU_KTHREAD_PRIO
  596. int "Real-time priority to use for RCU worker threads"
  597. range 1 99 if RCU_BOOST
  598. range 0 99 if !RCU_BOOST
  599. default 1 if RCU_BOOST
  600. default 0 if !RCU_BOOST
  601. depends on RCU_EXPERT
  602. help
  603. This option specifies the SCHED_FIFO priority value that will be
  604. assigned to the rcuc/n and rcub/n threads and is also the value
  605. used for RCU_BOOST (if enabled). If you are working with a
  606. real-time application that has one or more CPU-bound threads
  607. running at a real-time priority level, you should set
  608. RCU_KTHREAD_PRIO to a priority higher than the highest-priority
  609. real-time CPU-bound application thread. The default RCU_KTHREAD_PRIO
  610. value of 1 is appropriate in the common case, which is real-time
  611. applications that do not have any CPU-bound threads.
  612. Some real-time applications might not have a single real-time
  613. thread that saturates a given CPU, but instead might have
  614. multiple real-time threads that, taken together, fully utilize
  615. that CPU. In this case, you should set RCU_KTHREAD_PRIO to
  616. a priority higher than the lowest-priority thread that is
  617. conspiring to prevent the CPU from running any non-real-time
  618. tasks. For example, if one thread at priority 10 and another
  619. thread at priority 5 are between themselves fully consuming
  620. the CPU time on a given CPU, then RCU_KTHREAD_PRIO should be
  621. set to priority 6 or higher.
  622. Specify the real-time priority, or take the default if unsure.
  623. config RCU_BOOST_DELAY
  624. int "Milliseconds to delay boosting after RCU grace-period start"
  625. range 0 3000
  626. depends on RCU_BOOST
  627. default 500
  628. help
  629. This option specifies the time to wait after the beginning of
  630. a given grace period before priority-boosting preempted RCU
  631. readers blocking that grace period. Note that any RCU reader
  632. blocking an expedited RCU grace period is boosted immediately.
  633. Accept the default if unsure.
  634. config RCU_NOCB_CPU
  635. bool "Offload RCU callback processing from boot-selected CPUs"
  636. depends on TREE_RCU || PREEMPT_RCU
  637. depends on RCU_EXPERT || NO_HZ_FULL
  638. default n
  639. help
  640. Use this option to reduce OS jitter for aggressive HPC or
  641. real-time workloads. It can also be used to offload RCU
  642. callback invocation to energy-efficient CPUs in battery-powered
  643. asymmetric multiprocessors.
  644. This option offloads callback invocation from the set of
  645. CPUs specified at boot time by the rcu_nocbs parameter.
  646. For each such CPU, a kthread ("rcuox/N") will be created to
  647. invoke callbacks, where the "N" is the CPU being offloaded,
  648. and where the "x" is "b" for RCU-bh, "p" for RCU-preempt, and
  649. "s" for RCU-sched. Nothing prevents this kthread from running
  650. on the specified CPUs, but (1) the kthreads may be preempted
  651. between each callback, and (2) affinity or cgroups can be used
  652. to force the kthreads to run on whatever set of CPUs is desired.
  653. Say Y here if you want to help to debug reduced OS jitter.
  654. Say N here if you are unsure.
  655. choice
  656. prompt "Build-forced no-CBs CPUs"
  657. default RCU_NOCB_CPU_NONE
  658. depends on RCU_NOCB_CPU
  659. help
  660. This option allows no-CBs CPUs (whose RCU callbacks are invoked
  661. from kthreads rather than from softirq context) to be specified
  662. at build time. Additional no-CBs CPUs may be specified by
  663. the rcu_nocbs= boot parameter.
  664. config RCU_NOCB_CPU_NONE
  665. bool "No build_forced no-CBs CPUs"
  666. help
  667. This option does not force any of the CPUs to be no-CBs CPUs.
  668. Only CPUs designated by the rcu_nocbs= boot parameter will be
  669. no-CBs CPUs, whose RCU callbacks will be invoked by per-CPU
  670. kthreads whose names begin with "rcuo". All other CPUs will
  671. invoke their own RCU callbacks in softirq context.
  672. Select this option if you want to choose no-CBs CPUs at
  673. boot time, for example, to allow testing of different no-CBs
  674. configurations without having to rebuild the kernel each time.
  675. config RCU_NOCB_CPU_ZERO
  676. bool "CPU 0 is a build_forced no-CBs CPU"
  677. help
  678. This option forces CPU 0 to be a no-CBs CPU, so that its RCU
  679. callbacks are invoked by a per-CPU kthread whose name begins
  680. with "rcuo". Additional CPUs may be designated as no-CBs
  681. CPUs using the rcu_nocbs= boot parameter will be no-CBs CPUs.
  682. All other CPUs will invoke their own RCU callbacks in softirq
  683. context.
  684. Select this if CPU 0 needs to be a no-CBs CPU for real-time
  685. or energy-efficiency reasons, but the real reason it exists
  686. is to ensure that randconfig testing covers mixed systems.
  687. config RCU_NOCB_CPU_ALL
  688. bool "All CPUs are build_forced no-CBs CPUs"
  689. help
  690. This option forces all CPUs to be no-CBs CPUs. The rcu_nocbs=
  691. boot parameter will be ignored. All CPUs' RCU callbacks will
  692. be executed in the context of per-CPU rcuo kthreads created for
  693. this purpose. Assuming that the kthreads whose names start with
  694. "rcuo" are bound to "housekeeping" CPUs, this reduces OS jitter
  695. on the remaining CPUs, but might decrease memory locality during
  696. RCU-callback invocation, thus potentially degrading throughput.
  697. Select this if all CPUs need to be no-CBs CPUs for real-time
  698. or energy-efficiency reasons.
  699. endchoice
  700. endmenu # "RCU Subsystem"
  701. config BUILD_BIN2C
  702. bool
  703. default n
  704. config IKCONFIG
  705. tristate "Kernel .config support"
  706. select BUILD_BIN2C
  707. ---help---
  708. This option enables the complete Linux kernel ".config" file
  709. contents to be saved in the kernel. It provides documentation
  710. of which kernel options are used in a running kernel or in an
  711. on-disk kernel. This information can be extracted from the kernel
  712. image file with the script scripts/extract-ikconfig and used as
  713. input to rebuild the current kernel or to build another kernel.
  714. It can also be extracted from a running kernel by reading
  715. /proc/config.gz if enabled (below).
  716. config IKCONFIG_PROC
  717. bool "Enable access to .config through /proc/config.gz"
  718. depends on IKCONFIG && PROC_FS
  719. ---help---
  720. This option enables access to the kernel configuration file
  721. through /proc/config.gz.
  722. config LOG_BUF_SHIFT
  723. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  724. range 12 25
  725. default 17
  726. depends on PRINTK
  727. help
  728. Select the minimal kernel log buffer size as a power of 2.
  729. The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
  730. parameter, see below. Any higher size also might be forced
  731. by "log_buf_len" boot parameter.
  732. Examples:
  733. 17 => 128 KB
  734. 16 => 64 KB
  735. 15 => 32 KB
  736. 14 => 16 KB
  737. 13 => 8 KB
  738. 12 => 4 KB
  739. config CONSOLE_FLUSH_ON_HOTPLUG
  740. bool "Enable console flush configurable in hot plug code path"
  741. depends on HOTPLUG_CPU
  742. def_bool n
  743. help
  744. In cpu hot plug path console lock acquire and release causes the
  745. console to flush. If console lock is not free hot plug latency
  746. increases. So make console flush configurable in hot plug path
  747. and default disabled to help in cpu hot plug latencies.
  748. config LOG_CPU_MAX_BUF_SHIFT
  749. int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
  750. depends on SMP
  751. range 0 21
  752. default 12 if !BASE_SMALL
  753. default 0 if BASE_SMALL
  754. depends on PRINTK
  755. help
  756. This option allows to increase the default ring buffer size
  757. according to the number of CPUs. The value defines the contribution
  758. of each CPU as a power of 2. The used space is typically only few
  759. lines however it might be much more when problems are reported,
  760. e.g. backtraces.
  761. The increased size means that a new buffer has to be allocated and
  762. the original static one is unused. It makes sense only on systems
  763. with more CPUs. Therefore this value is used only when the sum of
  764. contributions is greater than the half of the default kernel ring
  765. buffer as defined by LOG_BUF_SHIFT. The default values are set
  766. so that more than 64 CPUs are needed to trigger the allocation.
  767. Also this option is ignored when "log_buf_len" kernel parameter is
  768. used as it forces an exact (power of two) size of the ring buffer.
  769. The number of possible CPUs is used for this computation ignoring
  770. hotplugging making the computation optimal for the worst case
  771. scenario while allowing a simple algorithm to be used from bootup.
  772. Examples shift values and their meaning:
  773. 17 => 128 KB for each CPU
  774. 16 => 64 KB for each CPU
  775. 15 => 32 KB for each CPU
  776. 14 => 16 KB for each CPU
  777. 13 => 8 KB for each CPU
  778. 12 => 4 KB for each CPU
  779. config NMI_LOG_BUF_SHIFT
  780. int "Temporary per-CPU NMI log buffer size (12 => 4KB, 13 => 8KB)"
  781. range 10 21
  782. default 13
  783. depends on PRINTK_NMI
  784. help
  785. Select the size of a per-CPU buffer where NMI messages are temporary
  786. stored. They are copied to the main log buffer in a safe context
  787. to avoid a deadlock. The value defines the size as a power of 2.
  788. NMI messages are rare and limited. The largest one is when
  789. a backtrace is printed. It usually fits into 4KB. Select
  790. 8KB if you want to be on the safe side.
  791. Examples:
  792. 17 => 128 KB for each CPU
  793. 16 => 64 KB for each CPU
  794. 15 => 32 KB for each CPU
  795. 14 => 16 KB for each CPU
  796. 13 => 8 KB for each CPU
  797. 12 => 4 KB for each CPU
  798. #
  799. # Architectures with an unreliable sched_clock() should select this:
  800. #
  801. config HAVE_UNSTABLE_SCHED_CLOCK
  802. bool
  803. config GENERIC_SCHED_CLOCK
  804. bool
  805. #
  806. # For architectures that want to enable the support for NUMA-affine scheduler
  807. # balancing logic:
  808. #
  809. config ARCH_SUPPORTS_NUMA_BALANCING
  810. bool
  811. #
  812. # For architectures that prefer to flush all TLBs after a number of pages
  813. # are unmapped instead of sending one IPI per page to flush. The architecture
  814. # must provide guarantees on what happens if a clean TLB cache entry is
  815. # written after the unmap. Details are in mm/rmap.c near the check for
  816. # should_defer_flush. The architecture should also consider if the full flush
  817. # and the refill costs are offset by the savings of sending fewer IPIs.
  818. config ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
  819. bool
  820. #
  821. # For architectures that know their GCC __int128 support is sound
  822. #
  823. config ARCH_SUPPORTS_INT128
  824. bool
  825. # For architectures that (ab)use NUMA to represent different memory regions
  826. # all cpu-local but of different latencies, such as SuperH.
  827. #
  828. config ARCH_WANT_NUMA_VARIABLE_LOCALITY
  829. bool
  830. config NUMA_BALANCING
  831. bool "Memory placement aware NUMA scheduler"
  832. depends on ARCH_SUPPORTS_NUMA_BALANCING
  833. depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
  834. depends on SMP && NUMA && MIGRATION
  835. help
  836. This option adds support for automatic NUMA aware memory/task placement.
  837. The mechanism is quite primitive and is based on migrating memory when
  838. it has references to the node the task is running on.
  839. This system will be inactive on UMA systems.
  840. config NUMA_BALANCING_DEFAULT_ENABLED
  841. bool "Automatically enable NUMA aware memory/task placement"
  842. default y
  843. depends on NUMA_BALANCING
  844. help
  845. If set, automatic NUMA balancing will be enabled if running on a NUMA
  846. machine.
  847. menuconfig CGROUPS
  848. bool "Control Group support"
  849. select KERNFS
  850. help
  851. This option adds support for grouping sets of processes together, for
  852. use with process control subsystems such as Cpusets, CFS, memory
  853. controls or device isolation.
  854. See
  855. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  856. - Documentation/cgroup-v1/ (features for grouping, isolation
  857. and resource control)
  858. Say N if unsure.
  859. if CGROUPS
  860. config CGROUP_DEBUG
  861. bool "Example debug cgroup subsystem"
  862. default n
  863. help
  864. This option enables a simple cgroup subsystem that
  865. exports useful debugging information about the cgroups
  866. framework.
  867. Say N if unsure.
  868. config CGROUP_FREEZER
  869. bool "Freezer cgroup subsystem"
  870. help
  871. Provides a way to freeze and unfreeze all tasks in a
  872. cgroup.
  873. config CGROUP_PIDS
  874. bool "PIDs cgroup subsystem"
  875. help
  876. Provides enforcement of process number limits in the scope of a
  877. cgroup. Any attempt to fork more processes than is allowed in the
  878. cgroup will fail. PIDs are fundamentally a global resource because it
  879. is fairly trivial to reach PID exhaustion before you reach even a
  880. conservative kmemcg limit. As a result, it is possible to grind a
  881. system to halt without being limited by other cgroup policies. The
  882. PIDs cgroup subsystem is designed to stop this from happening.
  883. It should be noted that organisational operations (such as attaching
  884. to a cgroup hierarchy will *not* be blocked by the PIDs subsystem),
  885. since the PIDs limit only affects a process's ability to fork, not to
  886. attach to a cgroup.
  887. config CGROUP_DEVICE
  888. bool "Device controller for cgroups"
  889. help
  890. Provides a cgroup implementing whitelists for devices which
  891. a process in the cgroup can mknod or open.
  892. config CPUSETS
  893. bool "Cpuset support"
  894. help
  895. This option will let you create and manage CPUSETs which
  896. allow dynamically partitioning a system into sets of CPUs and
  897. Memory Nodes and assigning tasks to run only within those sets.
  898. This is primarily useful on large SMP or NUMA systems.
  899. Say N if unsure.
  900. config PROC_PID_CPUSET
  901. bool "Include legacy /proc/<pid>/cpuset file"
  902. depends on CPUSETS
  903. default y
  904. config CGROUP_CPUACCT
  905. bool "Simple CPU accounting cgroup subsystem"
  906. help
  907. Provides a simple Resource Controller for monitoring the
  908. total CPU consumed by the tasks in a cgroup.
  909. config CGROUP_SCHEDTUNE
  910. bool "CFS tasks boosting cgroup subsystem (EXPERIMENTAL)"
  911. depends on SCHED_TUNE
  912. help
  913. This option provides the "schedtune" controller which improves the
  914. flexibility of the task boosting mechanism by introducing the support
  915. to define "per task" boost values.
  916. This new controller:
  917. 1. allows only a two layers hierarchy, where the root defines the
  918. system-wide boost value and its direct childrens define each one a
  919. different "class of tasks" to be boosted with a different value
  920. 2. supports up to 16 different task classes, each one which could be
  921. configured with a different boost value
  922. Say N if unsure.
  923. config PAGE_COUNTER
  924. bool
  925. config MEMCG
  926. bool "Memory controller"
  927. select PAGE_COUNTER
  928. select EVENTFD
  929. help
  930. Provides control over the memory footprint of tasks in a cgroup.
  931. config MEMCG_SWAP
  932. bool "Swap controller"
  933. depends on MEMCG && SWAP
  934. help
  935. Provides control over the swap space consumed by tasks in a cgroup.
  936. config MEMCG_SWAP_ENABLED
  937. bool "Swap controller enabled by default"
  938. depends on MEMCG_SWAP
  939. default y
  940. help
  941. Memory Resource Controller Swap Extension comes with its price in
  942. a bigger memory consumption. General purpose distribution kernels
  943. which want to enable the feature but keep it disabled by default
  944. and let the user enable it by swapaccount=1 boot command line
  945. parameter should have this option unselected.
  946. For those who want to have the feature enabled by default should
  947. select this option (if, for some reason, they need to disable it
  948. then swapaccount=0 does the trick).
  949. config BLK_CGROUP
  950. bool "IO controller"
  951. depends on BLOCK
  952. default n
  953. ---help---
  954. Generic block IO controller cgroup interface. This is the common
  955. cgroup interface which should be used by various IO controlling
  956. policies.
  957. Currently, CFQ IO scheduler uses it to recognize task groups and
  958. control disk bandwidth allocation (proportional time slice allocation)
  959. to such task groups. It is also used by bio throttling logic in
  960. block layer to implement upper limit in IO rates on a device.
  961. This option only enables generic Block IO controller infrastructure.
  962. One needs to also enable actual IO controlling logic/policy. For
  963. enabling proportional weight division of disk bandwidth in CFQ, set
  964. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  965. CONFIG_BLK_DEV_THROTTLING=y.
  966. See Documentation/cgroup-v1/blkio-controller.txt for more information.
  967. config DEBUG_BLK_CGROUP
  968. bool "IO controller debugging"
  969. depends on BLK_CGROUP
  970. default n
  971. ---help---
  972. Enable some debugging help. Currently it exports additional stat
  973. files in a cgroup which can be useful for debugging.
  974. config CGROUP_WRITEBACK
  975. bool
  976. depends on MEMCG && BLK_CGROUP
  977. default y
  978. menuconfig CGROUP_SCHED
  979. bool "CPU controller"
  980. default n
  981. help
  982. This feature lets CPU scheduler recognize task groups and control CPU
  983. bandwidth allocation to such task groups. It uses cgroups to group
  984. tasks.
  985. if CGROUP_SCHED
  986. config FAIR_GROUP_SCHED
  987. bool "Group scheduling for SCHED_OTHER"
  988. depends on CGROUP_SCHED
  989. default CGROUP_SCHED
  990. config CFS_BANDWIDTH
  991. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  992. depends on FAIR_GROUP_SCHED
  993. default n
  994. help
  995. This option allows users to define CPU bandwidth rates (limits) for
  996. tasks running within the fair group scheduler. Groups with no limit
  997. set are considered to be unconstrained and will run with no
  998. restriction.
  999. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  1000. config RT_GROUP_SCHED
  1001. bool "Group scheduling for SCHED_RR/FIFO"
  1002. depends on CGROUP_SCHED
  1003. default n
  1004. help
  1005. This feature lets you explicitly allocate real CPU bandwidth
  1006. to task groups. If enabled, it will also make it impossible to
  1007. schedule realtime tasks for non-root users until you allocate
  1008. realtime bandwidth for them.
  1009. See Documentation/scheduler/sched-rt-group.txt for more information.
  1010. endif #CGROUP_SCHED
  1011. config CGROUP_PIDS
  1012. bool "PIDs controller"
  1013. help
  1014. Provides enforcement of process number limits in the scope of a
  1015. cgroup. Any attempt to fork more processes than is allowed in the
  1016. cgroup will fail. PIDs are fundamentally a global resource because it
  1017. is fairly trivial to reach PID exhaustion before you reach even a
  1018. conservative kmemcg limit. As a result, it is possible to grind a
  1019. system to halt without being limited by other cgroup policies. The
  1020. PIDs controller is designed to stop this from happening.
  1021. It should be noted that organisational operations (such as attaching
  1022. to a cgroup hierarchy will *not* be blocked by the PIDs controller),
  1023. since the PIDs limit only affects a process's ability to fork, not to
  1024. attach to a cgroup.
  1025. config CGROUP_FREEZER
  1026. bool "Freezer controller"
  1027. help
  1028. Provides a way to freeze and unfreeze all tasks in a
  1029. cgroup.
  1030. This option affects the ORIGINAL cgroup interface. The cgroup2 memory
  1031. controller includes important in-kernel memory consumers per default.
  1032. If you're using cgroup2, say N.
  1033. config CGROUP_HUGETLB
  1034. bool "HugeTLB controller"
  1035. depends on HUGETLB_PAGE
  1036. select PAGE_COUNTER
  1037. default n
  1038. help
  1039. Provides a cgroup controller for HugeTLB pages.
  1040. When you enable this, you can put a per cgroup limit on HugeTLB usage.
  1041. The limit is enforced during page fault. Since HugeTLB doesn't
  1042. support page reclaim, enforcing the limit at page fault time implies
  1043. that, the application will get SIGBUS signal if it tries to access
  1044. HugeTLB pages beyond its limit. This requires the application to know
  1045. beforehand how much HugeTLB pages it would require for its use. The
  1046. control group is tracked in the third page lru pointer. This means
  1047. that we cannot use the controller with huge page less than 3 pages.
  1048. config CPUSETS
  1049. bool "Cpuset controller"
  1050. help
  1051. This option will let you create and manage CPUSETs which
  1052. allow dynamically partitioning a system into sets of CPUs and
  1053. Memory Nodes and assigning tasks to run only within those sets.
  1054. This is primarily useful on large SMP or NUMA systems.
  1055. Say N if unsure.
  1056. config PROC_PID_CPUSET
  1057. bool "Include legacy /proc/<pid>/cpuset file"
  1058. depends on CPUSETS
  1059. default y
  1060. config CGROUP_DEVICE
  1061. bool "Device controller"
  1062. help
  1063. Provides a cgroup controller implementing whitelists for
  1064. devices which a process in the cgroup can mknod or open.
  1065. config CGROUP_CPUACCT
  1066. bool "Simple CPU accounting controller"
  1067. help
  1068. Provides a simple controller for monitoring the
  1069. total CPU consumed by the tasks in a cgroup.
  1070. config CGROUP_PERF
  1071. bool "Perf controller"
  1072. depends on PERF_EVENTS
  1073. help
  1074. This option extends the perf per-cpu mode to restrict monitoring
  1075. to threads which belong to the cgroup specified and run on the
  1076. designated cpu.
  1077. Say N if unsure.
  1078. config CGROUP_BPF
  1079. bool "Support for eBPF programs attached to cgroups"
  1080. depends on BPF_SYSCALL
  1081. select SOCK_CGROUP_DATA
  1082. help
  1083. Allow attaching eBPF programs to a cgroup using the bpf(2)
  1084. syscall command BPF_PROG_ATTACH.
  1085. In which context these programs are accessed depends on the type
  1086. of attachment. For instance, programs that are attached using
  1087. BPF_CGROUP_INET_INGRESS will be executed on the ingress path of
  1088. inet sockets.
  1089. config CGROUP_DEBUG
  1090. bool "Example controller"
  1091. default n
  1092. help
  1093. This option enables a simple controller that exports
  1094. debugging information about the cgroups framework.
  1095. Say N.
  1096. config SOCK_CGROUP_DATA
  1097. bool
  1098. default n
  1099. endif # CGROUPS
  1100. config SCHED_CORE_CTL
  1101. bool "QTI Core Control"
  1102. depends on SMP
  1103. help
  1104. This options enables the core control functionality in
  1105. the scheduler. Core control automatically offline and
  1106. online cores based on cpu load and utilization.
  1107. If unsure, say N here.
  1108. config SCHED_CORE_ROTATE
  1109. bool "Scheduler core rotation"
  1110. depends on SMP
  1111. help
  1112. This options enables the core rotation functionality in
  1113. the scheduler. Scheduler with core rotation aims to utilize
  1114. CPUs evenly.
  1115. If unsure, say N here.
  1116. config CHECKPOINT_RESTORE
  1117. bool "Checkpoint/restore support" if EXPERT
  1118. select PROC_CHILDREN
  1119. default n
  1120. help
  1121. Enables additional kernel features in a sake of checkpoint/restore.
  1122. In particular it adds auxiliary prctl codes to setup process text,
  1123. data and heap segment sizes, and a few additional /proc filesystem
  1124. entries.
  1125. If unsure, say N here.
  1126. menuconfig NAMESPACES
  1127. bool "Namespaces support" if EXPERT
  1128. depends on MULTIUSER
  1129. default !EXPERT
  1130. help
  1131. Provides the way to make tasks work with different objects using
  1132. the same id. For example same IPC id may refer to different objects
  1133. or same user id or pid may refer to different tasks when used in
  1134. different namespaces.
  1135. if NAMESPACES
  1136. config UTS_NS
  1137. bool "UTS namespace"
  1138. default y
  1139. help
  1140. In this namespace tasks see different info provided with the
  1141. uname() system call
  1142. config IPC_NS
  1143. bool "IPC namespace"
  1144. depends on (SYSVIPC || POSIX_MQUEUE)
  1145. default y
  1146. help
  1147. In this namespace tasks work with IPC ids which correspond to
  1148. different IPC objects in different namespaces.
  1149. config USER_NS
  1150. bool "User namespace"
  1151. default n
  1152. help
  1153. This allows containers, i.e. vservers, to use user namespaces
  1154. to provide different user info for different servers.
  1155. When user namespaces are enabled in the kernel it is
  1156. recommended that the MEMCG option also be enabled and that
  1157. user-space use the memory control groups to limit the amount
  1158. of memory a memory unprivileged users can use.
  1159. If unsure, say N.
  1160. config PID_NS
  1161. bool "PID Namespaces"
  1162. default y
  1163. help
  1164. Support process id namespaces. This allows having multiple
  1165. processes with the same pid as long as they are in different
  1166. pid namespaces. This is a building block of containers.
  1167. config NET_NS
  1168. bool "Network namespace"
  1169. depends on NET
  1170. default y
  1171. help
  1172. Allow user space to create what appear to be multiple instances
  1173. of the network stack.
  1174. config DRV_NS
  1175. bool "drivers namespace"
  1176. depends on PID_NS
  1177. default n
  1178. help
  1179. Allow user space to create what appear to be multiple instances
  1180. of the drivers stack.
  1181. endif # NAMESPACES
  1182. config SCHED_AUTOGROUP
  1183. bool "Automatic process group scheduling"
  1184. select CGROUPS
  1185. select CGROUP_SCHED
  1186. select FAIR_GROUP_SCHED
  1187. help
  1188. This option optimizes the scheduler for common desktop workloads by
  1189. automatically creating and populating task groups. This separation
  1190. of workloads isolates aggressive CPU burners (like build jobs) from
  1191. desktop applications. Task group autogeneration is currently based
  1192. upon task session.
  1193. config SCHED_TUNE
  1194. bool "Boosting for CFS tasks (EXPERIMENTAL)"
  1195. depends on SMP
  1196. help
  1197. This option enables the system-wide support for task boosting.
  1198. When this support is enabled a new sysctl interface is exposed to
  1199. userspace via:
  1200. /proc/sys/kernel/sched_cfs_boost
  1201. which allows to set a system-wide boost value in range [0..100].
  1202. The currently boosting strategy is implemented in such a way that:
  1203. - a 0% boost value requires to operate in "standard" mode by
  1204. scheduling all tasks at the minimum capacities required by their
  1205. workload demand
  1206. - a 100% boost value requires to push at maximum the task
  1207. performances, "regardless" of the incurred energy consumption
  1208. A boost value in between these two boundaries is used to bias the
  1209. power/performance trade-off, the higher the boost value the more the
  1210. scheduler is biased toward performance boosting instead of energy
  1211. efficiency.
  1212. Since this support exposes a single system-wide knob, the specified
  1213. boost value is applied to all (CFS) tasks in the system.
  1214. If unsure, say N.
  1215. config DEFAULT_USE_ENERGY_AWARE
  1216. bool "Default to enabling the Energy Aware Scheduler feature"
  1217. default n
  1218. help
  1219. This option defaults the ENERGY_AWARE scheduling feature to true,
  1220. as without SCHED_DEBUG set this feature can't be enabled or disabled
  1221. via sysctl.
  1222. Say N if unsure.
  1223. config SYSFS_DEPRECATED
  1224. bool "Enable deprecated sysfs features to support old userspace tools"
  1225. depends on SYSFS
  1226. default n
  1227. help
  1228. This option adds code that switches the layout of the "block" class
  1229. devices, to not show up in /sys/class/block/, but only in
  1230. /sys/block/.
  1231. This switch is only active when the sysfs.deprecated=1 boot option is
  1232. passed or the SYSFS_DEPRECATED_V2 option is set.
  1233. This option allows new kernels to run on old distributions and tools,
  1234. which might get confused by /sys/class/block/. Since 2007/2008 all
  1235. major distributions and tools handle this just fine.
  1236. Recent distributions and userspace tools after 2009/2010 depend on
  1237. the existence of /sys/class/block/, and will not work with this
  1238. option enabled.
  1239. Only if you are using a new kernel on an old distribution, you might
  1240. need to say Y here.
  1241. config SYSFS_DEPRECATED_V2
  1242. bool "Enable deprecated sysfs features by default"
  1243. default n
  1244. depends on SYSFS
  1245. depends on SYSFS_DEPRECATED
  1246. help
  1247. Enable deprecated sysfs by default.
  1248. See the CONFIG_SYSFS_DEPRECATED option for more details about this
  1249. option.
  1250. Only if you are using a new kernel on an old distribution, you might
  1251. need to say Y here. Even then, odds are you would not need it
  1252. enabled, you can always pass the boot option if absolutely necessary.
  1253. config RELAY
  1254. bool "Kernel->user space relay support (formerly relayfs)"
  1255. select IRQ_WORK
  1256. help
  1257. This option enables support for relay interface support in
  1258. certain file systems (such as debugfs).
  1259. It is designed to provide an efficient mechanism for tools and
  1260. facilities to relay large amounts of data from kernel space to
  1261. user space.
  1262. If unsure, say N.
  1263. config BLK_DEV_INITRD
  1264. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  1265. depends on BROKEN || !FRV
  1266. help
  1267. The initial RAM filesystem is a ramfs which is loaded by the
  1268. boot loader (loadlin or lilo) and that is mounted as root
  1269. before the normal boot procedure. It is typically used to
  1270. load modules needed to mount the "real" root file system,
  1271. etc. See <file:Documentation/initrd.txt> for details.
  1272. If RAM disk support (BLK_DEV_RAM) is also included, this
  1273. also enables initial RAM disk (initrd) support and adds
  1274. 15 Kbytes (more on some other architectures) to the kernel size.
  1275. If unsure say Y.
  1276. if BLK_DEV_INITRD
  1277. source "usr/Kconfig"
  1278. endif
  1279. choice
  1280. prompt "Compiler optimization level"
  1281. default CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
  1282. config CC_OPTIMIZE_FOR_PERFORMANCE
  1283. bool "Optimize for performance"
  1284. help
  1285. This is the default optimization level for the kernel, building
  1286. with the "-O2" compiler flag for best performance and most
  1287. helpful compile-time warnings.
  1288. config CC_OPTIMIZE_FOR_SIZE
  1289. bool "Optimize for size"
  1290. help
  1291. Enabling this option will pass "-Os" instead of "-O2" to
  1292. your compiler resulting in a smaller kernel.
  1293. If unsure, say N.
  1294. endchoice
  1295. config SYSCTL
  1296. bool
  1297. config HAVE_UID16
  1298. bool
  1299. config SYSCTL_EXCEPTION_TRACE
  1300. bool
  1301. help
  1302. Enable support for /proc/sys/debug/exception-trace.
  1303. config SYSCTL_ARCH_UNALIGN_NO_WARN
  1304. bool
  1305. help
  1306. Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
  1307. Allows arch to define/use @no_unaligned_warning to possibly warn
  1308. about unaligned access emulation going on under the hood.
  1309. config SYSCTL_ARCH_UNALIGN_ALLOW
  1310. bool
  1311. help
  1312. Enable support for /proc/sys/kernel/unaligned-trap
  1313. Allows arches to define/use @unaligned_enabled to runtime toggle
  1314. the unaligned access emulation.
  1315. see arch/parisc/kernel/unaligned.c for reference
  1316. config HAVE_PCSPKR_PLATFORM
  1317. bool
  1318. # interpreter that classic socket filters depend on
  1319. config BPF
  1320. bool
  1321. menuconfig EXPERT
  1322. bool "Configure standard kernel features (expert users)"
  1323. # Unhide debug options, to make the on-by-default options visible
  1324. select DEBUG_KERNEL
  1325. help
  1326. This option allows certain base kernel options and settings
  1327. to be disabled or tweaked. This is for specialized
  1328. environments which can tolerate a "non-standard" kernel.
  1329. Only use this if you really know what you are doing.
  1330. config UID16
  1331. bool "Enable 16-bit UID system calls" if EXPERT
  1332. depends on HAVE_UID16 && MULTIUSER
  1333. default y
  1334. help
  1335. This enables the legacy 16-bit UID syscall wrappers.
  1336. config MULTIUSER
  1337. bool "Multiple users, groups and capabilities support" if EXPERT
  1338. default y
  1339. help
  1340. This option enables support for non-root users, groups and
  1341. capabilities.
  1342. If you say N here, all processes will run with UID 0, GID 0, and all
  1343. possible capabilities. Saying N here also compiles out support for
  1344. system calls related to UIDs, GIDs, and capabilities, such as setuid,
  1345. setgid, and capset.
  1346. If unsure, say Y here.
  1347. config SGETMASK_SYSCALL
  1348. bool "sgetmask/ssetmask syscalls support" if EXPERT
  1349. def_bool PARISC || MN10300 || BLACKFIN || M68K || PPC || MIPS || X86 || SPARC || CRIS || MICROBLAZE || SUPERH
  1350. ---help---
  1351. sys_sgetmask and sys_ssetmask are obsolete system calls
  1352. no longer supported in libc but still enabled by default in some
  1353. architectures.
  1354. If unsure, leave the default option here.
  1355. config SYSFS_SYSCALL
  1356. bool "Sysfs syscall support" if EXPERT
  1357. default y
  1358. ---help---
  1359. sys_sysfs is an obsolete system call no longer supported in libc.
  1360. Note that disabling this option is more secure but might break
  1361. compatibility with some systems.
  1362. If unsure say Y here.
  1363. config SYSCTL_SYSCALL
  1364. bool "Sysctl syscall support" if EXPERT
  1365. depends on PROC_SYSCTL
  1366. default n
  1367. select SYSCTL
  1368. ---help---
  1369. sys_sysctl uses binary paths that have been found challenging
  1370. to properly maintain and use. The interface in /proc/sys
  1371. using paths with ascii names is now the primary path to this
  1372. information.
  1373. Almost nothing using the binary sysctl interface so if you are
  1374. trying to save some space it is probably safe to disable this,
  1375. making your kernel marginally smaller.
  1376. If unsure say N here.
  1377. config KALLSYMS
  1378. bool "Load all symbols for debugging/ksymoops" if EXPERT
  1379. default y
  1380. help
  1381. Say Y here to let the kernel print out symbolic crash information and
  1382. symbolic stack backtraces. This increases the size of the kernel
  1383. somewhat, as all symbols have to be loaded into the kernel image.
  1384. config KALLSYMS_ALL
  1385. bool "Include all symbols in kallsyms"
  1386. depends on DEBUG_KERNEL && KALLSYMS
  1387. help
  1388. Normally kallsyms only contains the symbols of functions for nicer
  1389. OOPS messages and backtraces (i.e., symbols from the text and inittext
  1390. sections). This is sufficient for most cases. And only in very rare
  1391. cases (e.g., when a debugger is used) all symbols are required (e.g.,
  1392. names of variables from the data sections, etc).
  1393. This option makes sure that all symbols are loaded into the kernel
  1394. image (i.e., symbols from all sections) in cost of increased kernel
  1395. size (depending on the kernel configuration, it may be 300KiB or
  1396. something like this).
  1397. Say N unless you really need all symbols.
  1398. config KALLSYMS_ABSOLUTE_PERCPU
  1399. bool
  1400. depends on KALLSYMS
  1401. default X86_64 && SMP
  1402. config KALLSYMS_BASE_RELATIVE
  1403. bool
  1404. depends on KALLSYMS
  1405. default !IA64 && !(TILE && 64BIT)
  1406. help
  1407. Instead of emitting them as absolute values in the native word size,
  1408. emit the symbol references in the kallsyms table as 32-bit entries,
  1409. each containing a relative value in the range [base, base + U32_MAX]
  1410. or, when KALLSYMS_ABSOLUTE_PERCPU is in effect, each containing either
  1411. an absolute value in the range [0, S32_MAX] or a relative value in the
  1412. range [base, base + S32_MAX], where base is the lowest relative symbol
  1413. address encountered in the image.
  1414. On 64-bit builds, this reduces the size of the address table by 50%,
  1415. but more importantly, it results in entries whose values are build
  1416. time constants, and no relocation pass is required at runtime to fix
  1417. up the entries based on the runtime load address of the kernel.
  1418. config PRINTK
  1419. default y
  1420. bool "Enable support for printk" if EXPERT
  1421. select IRQ_WORK
  1422. help
  1423. This option enables normal printk support. Removing it
  1424. eliminates most of the message strings from the kernel image
  1425. and makes the kernel more or less silent. As this makes it
  1426. very difficult to diagnose system problems, saying N here is
  1427. strongly discouraged.
  1428. config PRINTK_NMI
  1429. def_bool y
  1430. depends on PRINTK
  1431. depends on HAVE_NMI
  1432. config BUG
  1433. bool "BUG() support" if EXPERT
  1434. default y
  1435. help
  1436. Disabling this option eliminates support for BUG and WARN, reducing
  1437. the size of your kernel image and potentially quietly ignoring
  1438. numerous fatal conditions. You should only consider disabling this
  1439. option for embedded systems with no facilities for reporting errors.
  1440. Just say Y.
  1441. config ELF_CORE
  1442. depends on COREDUMP
  1443. default y
  1444. bool "Enable ELF core dumps" if EXPERT
  1445. help
  1446. Enable support for generating core dumps. Disabling saves about 4k.
  1447. config PCSPKR_PLATFORM
  1448. bool "Enable PC-Speaker support" if EXPERT
  1449. depends on HAVE_PCSPKR_PLATFORM
  1450. select I8253_LOCK
  1451. default y
  1452. help
  1453. This option allows to disable the internal PC-Speaker
  1454. support, saving some memory.
  1455. config BASE_FULL
  1456. default y
  1457. bool "Enable full-sized data structures for core" if EXPERT
  1458. help
  1459. Disabling this option reduces the size of miscellaneous core
  1460. kernel data structures. This saves memory on small machines,
  1461. but may reduce performance.
  1462. config FUTEX
  1463. bool "Enable futex support" if EXPERT
  1464. default y
  1465. select RT_MUTEXES
  1466. help
  1467. Disabling this option will cause the kernel to be built without
  1468. support for "fast userspace mutexes". The resulting kernel may not
  1469. run glibc-based applications correctly.
  1470. config HAVE_FUTEX_CMPXCHG
  1471. bool
  1472. depends on FUTEX
  1473. help
  1474. Architectures should select this if futex_atomic_cmpxchg_inatomic()
  1475. is implemented and always working. This removes a couple of runtime
  1476. checks.
  1477. config EPOLL
  1478. bool "Enable eventpoll support" if EXPERT
  1479. default y
  1480. help
  1481. Disabling this option will cause the kernel to be built without
  1482. support for epoll family of system calls.
  1483. config SIGNALFD
  1484. bool "Enable signalfd() system call" if EXPERT
  1485. default y
  1486. help
  1487. Enable the signalfd() system call that allows to receive signals
  1488. on a file descriptor.
  1489. If unsure, say Y.
  1490. config TIMERFD
  1491. bool "Enable timerfd() system call" if EXPERT
  1492. default y
  1493. help
  1494. Enable the timerfd() system call that allows to receive timer
  1495. events on a file descriptor.
  1496. If unsure, say Y.
  1497. config EVENTFD
  1498. bool "Enable eventfd() system call" if EXPERT
  1499. default y
  1500. help
  1501. Enable the eventfd() system call that allows to receive both
  1502. kernel notification (ie. KAIO) or userspace notifications.
  1503. If unsure, say Y.
  1504. # syscall, maps, verifier
  1505. config BPF_SYSCALL
  1506. bool "Enable bpf() system call"
  1507. select BPF
  1508. default n
  1509. help
  1510. Enable the bpf() system call that allows to manipulate eBPF
  1511. programs and maps via file descriptors.
  1512. config BPF_JIT_ALWAYS_ON
  1513. bool "Permanently enable BPF JIT and remove BPF interpreter"
  1514. depends on BPF_SYSCALL && HAVE_EBPF_JIT && BPF_JIT
  1515. help
  1516. Enables BPF JIT and removes BPF interpreter to avoid
  1517. speculative execution of BPF instructions by the interpreter
  1518. config SHMEM
  1519. bool "Use full shmem filesystem" if EXPERT
  1520. default y
  1521. depends on MMU
  1522. help
  1523. The shmem is an internal filesystem used to manage shared memory.
  1524. It is backed by swap and manages resource limits. It is also exported
  1525. to userspace as tmpfs if TMPFS is enabled. Disabling this
  1526. option replaces shmem and tmpfs with the much simpler ramfs code,
  1527. which may be appropriate on small systems without swap.
  1528. config AIO
  1529. bool "Enable AIO support" if EXPERT
  1530. default y
  1531. help
  1532. This option enables POSIX asynchronous I/O which may by used
  1533. by some high performance threaded applications. Disabling
  1534. this option saves about 7k.
  1535. config ADVISE_SYSCALLS
  1536. bool "Enable madvise/fadvise syscalls" if EXPERT
  1537. default y
  1538. help
  1539. This option enables the madvise and fadvise syscalls, used by
  1540. applications to advise the kernel about their future memory or file
  1541. usage, improving performance. If building an embedded system where no
  1542. applications use these syscalls, you can disable this option to save
  1543. space.
  1544. config USERFAULTFD
  1545. bool "Enable userfaultfd() system call"
  1546. depends on MMU
  1547. help
  1548. Enable the userfaultfd() system call that allows to intercept and
  1549. handle page faults in userland.
  1550. config PCI_QUIRKS
  1551. default y
  1552. bool "Enable PCI quirk workarounds" if EXPERT
  1553. depends on PCI
  1554. help
  1555. This enables workarounds for various PCI chipset
  1556. bugs/quirks. Disable this only if your target machine is
  1557. unaffected by PCI quirks.
  1558. config MEMBARRIER
  1559. bool "Enable membarrier() system call" if EXPERT
  1560. default y
  1561. help
  1562. Enable the membarrier() system call that allows issuing memory
  1563. barriers across all running threads, which can be used to distribute
  1564. the cost of user-space memory barriers asymmetrically by transforming
  1565. pairs of memory barriers into pairs consisting of membarrier() and a
  1566. compiler barrier.
  1567. If unsure, say Y.
  1568. config EMBEDDED
  1569. bool "Embedded system"
  1570. option allnoconfig_y
  1571. select EXPERT
  1572. help
  1573. This option should be enabled if compiling the kernel for
  1574. an embedded system so certain expert options are available
  1575. for configuration.
  1576. config HAVE_PERF_EVENTS
  1577. bool
  1578. help
  1579. See tools/perf/design.txt for details.
  1580. config PERF_USE_VMALLOC
  1581. bool
  1582. help
  1583. See tools/perf/design.txt for details
  1584. menu "Kernel Performance Events And Counters"
  1585. config PERF_EVENTS
  1586. bool "Kernel performance events and counters"
  1587. default y if PROFILING
  1588. depends on HAVE_PERF_EVENTS
  1589. select IRQ_WORK
  1590. select SRCU
  1591. help
  1592. Enable kernel support for various performance events provided
  1593. by software and hardware.
  1594. Software events are supported either built-in or via the
  1595. use of generic tracepoints.
  1596. Most modern CPUs support performance events via performance
  1597. counter registers. These registers count the number of certain
  1598. types of hw events: such as instructions executed, cachemisses
  1599. suffered, or branches mis-predicted - without slowing down the
  1600. kernel or applications. These registers can also trigger interrupts
  1601. when a threshold number of events have passed - and can thus be
  1602. used to profile the code that runs on that CPU.
  1603. The Linux Performance Event subsystem provides an abstraction of
  1604. these software and hardware event capabilities, available via a
  1605. system call and used by the "perf" utility in tools/perf/. It
  1606. provides per task and per CPU counters, and it provides event
  1607. capabilities on top of those.
  1608. Say Y if unsure.
  1609. config PERF_USER_SHARE
  1610. bool "Perf event sharing with user-space"
  1611. help
  1612. Say yes here to enable the user-space sharing of events. The events
  1613. can be shared among other user-space events or with kernel created
  1614. events that has the same config and type event attributes.
  1615. Say N if unsure.
  1616. config DEBUG_PERF_USE_VMALLOC
  1617. default n
  1618. bool "Debug: use vmalloc to back perf mmap() buffers"
  1619. depends on PERF_EVENTS && DEBUG_KERNEL && !PPC
  1620. select PERF_USE_VMALLOC
  1621. help
  1622. Use vmalloc memory to back perf mmap() buffers.
  1623. Mostly useful for debugging the vmalloc code on platforms
  1624. that don't require it.
  1625. Say N if unsure.
  1626. endmenu
  1627. config VM_EVENT_COUNTERS
  1628. default y
  1629. bool "Enable VM event counters for /proc/vmstat" if EXPERT
  1630. help
  1631. VM event counters are needed for event counts to be shown.
  1632. This option allows the disabling of the VM event counters
  1633. on EXPERT systems. /proc/vmstat will only show page counts
  1634. if VM event counters are disabled.
  1635. config SLUB_DEBUG
  1636. default y
  1637. bool "Enable SLUB debugging support" if EXPERT
  1638. depends on SLUB && SYSFS
  1639. help
  1640. SLUB has extensive debug support features. Disabling these can
  1641. result in significant savings in code size. This also disables
  1642. SLUB sysfs support. /sys/slab will not exist and there will be
  1643. no support for cache validation etc.
  1644. config SLUB_MEMCG_SYSFS_ON
  1645. default n
  1646. bool "Enable memcg SLUB sysfs support by default" if EXPERT
  1647. depends on SLUB && SYSFS && MEMCG
  1648. help
  1649. SLUB creates a directory under /sys/kernel/slab for each
  1650. allocation cache to host info and debug files. If memory
  1651. cgroup is enabled, each cache can have per memory cgroup
  1652. caches. SLUB can create the same sysfs directories for these
  1653. caches under /sys/kernel/slab/CACHE/cgroup but it can lead
  1654. to a very high number of debug files being created. This is
  1655. controlled by slub_memcg_sysfs boot parameter and this
  1656. config option determines the parameter's default value.
  1657. config COMPAT_BRK
  1658. bool "Disable heap randomization"
  1659. default y
  1660. help
  1661. Randomizing heap placement makes heap exploits harder, but it
  1662. also breaks ancient binaries (including anything libc5 based).
  1663. This option changes the bootup default to heap randomization
  1664. disabled, and can be overridden at runtime by setting
  1665. /proc/sys/kernel/randomize_va_space to 2.
  1666. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  1667. choice
  1668. prompt "Choose SLAB allocator"
  1669. default SLUB
  1670. help
  1671. This option allows to select a slab allocator.
  1672. config SLAB
  1673. bool "SLAB"
  1674. select HAVE_HARDENED_USERCOPY_ALLOCATOR
  1675. help
  1676. The regular slab allocator that is established and known to work
  1677. well in all environments. It organizes cache hot objects in
  1678. per cpu and per node queues.
  1679. config SLUB
  1680. bool "SLUB (Unqueued Allocator)"
  1681. select HAVE_HARDENED_USERCOPY_ALLOCATOR
  1682. help
  1683. SLUB is a slab allocator that minimizes cache line usage
  1684. instead of managing queues of cached objects (SLAB approach).
  1685. Per cpu caching is realized using slabs of objects instead
  1686. of queues of objects. SLUB can use memory efficiently
  1687. and has enhanced diagnostics. SLUB is the default choice for
  1688. a slab allocator.
  1689. config SLOB
  1690. depends on EXPERT
  1691. bool "SLOB (Simple Allocator)"
  1692. help
  1693. SLOB replaces the stock allocator with a drastically simpler
  1694. allocator. SLOB is generally more space efficient but
  1695. does not perform as well on large systems.
  1696. endchoice
  1697. config SLAB_FREELIST_RANDOM
  1698. default n
  1699. depends on SLAB || SLUB
  1700. bool "SLAB freelist randomization"
  1701. help
  1702. Randomizes the freelist order used on creating new pages. This
  1703. security feature reduces the predictability of the kernel slab
  1704. allocator against heap overflows.
  1705. config SLUB_CPU_PARTIAL
  1706. default y
  1707. depends on SLUB && SMP
  1708. bool "SLUB per cpu partial cache"
  1709. help
  1710. Per cpu partial caches accellerate objects allocation and freeing
  1711. that is local to a processor at the price of more indeterminism
  1712. in the latency of the free. On overflow these caches will be cleared
  1713. which requires the taking of locks that may cause latency spikes.
  1714. Typically one would choose no for a realtime system.
  1715. config MMAP_ALLOW_UNINITIALIZED
  1716. bool "Allow mmapped anonymous memory to be uninitialized"
  1717. depends on EXPERT && !MMU
  1718. default n
  1719. help
  1720. Normally, and according to the Linux spec, anonymous memory obtained
  1721. from mmap() has it's contents cleared before it is passed to
  1722. userspace. Enabling this config option allows you to request that
  1723. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  1724. providing a huge performance boost. If this option is not enabled,
  1725. then the flag will be ignored.
  1726. This is taken advantage of by uClibc's malloc(), and also by
  1727. ELF-FDPIC binfmt's brk and stack allocator.
  1728. Because of the obvious security issues, this option should only be
  1729. enabled on embedded devices where you control what is run in
  1730. userspace. Since that isn't generally a problem on no-MMU systems,
  1731. it is normally safe to say Y here.
  1732. See Documentation/nommu-mmap.txt for more information.
  1733. config SYSTEM_DATA_VERIFICATION
  1734. def_bool n
  1735. select SYSTEM_TRUSTED_KEYRING
  1736. select KEYS
  1737. select CRYPTO
  1738. select CRYPTO_RSA
  1739. select ASYMMETRIC_KEY_TYPE
  1740. select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
  1741. select ASN1
  1742. select OID_REGISTRY
  1743. select X509_CERTIFICATE_PARSER
  1744. select PKCS7_MESSAGE_PARSER
  1745. help
  1746. Provide PKCS#7 message verification using the contents of the system
  1747. trusted keyring to provide public keys. This then can be used for
  1748. module verification, kexec image verification and firmware blob
  1749. verification.
  1750. config PROFILING
  1751. bool "Profiling support"
  1752. help
  1753. Say Y here to enable the extended profiling support mechanisms used
  1754. by profilers such as OProfile.
  1755. #
  1756. # Place an empty function call at each tracepoint site. Can be
  1757. # dynamically changed for a probe function.
  1758. #
  1759. config TRACEPOINTS
  1760. bool
  1761. source "arch/Kconfig"
  1762. endmenu # General setup
  1763. config HAVE_GENERIC_DMA_COHERENT
  1764. bool
  1765. default n
  1766. config SLABINFO
  1767. bool
  1768. depends on PROC_FS
  1769. depends on SLAB || SLUB_DEBUG
  1770. default y
  1771. config RT_MUTEXES
  1772. bool
  1773. config BASE_SMALL
  1774. int
  1775. default 0 if BASE_FULL
  1776. default 1 if !BASE_FULL
  1777. menuconfig MODULES
  1778. bool "Enable loadable module support"
  1779. option modules
  1780. help
  1781. Kernel modules are small pieces of compiled code which can
  1782. be inserted in the running kernel, rather than being
  1783. permanently built into the kernel. You use the "modprobe"
  1784. tool to add (and sometimes remove) them. If you say Y here,
  1785. many parts of the kernel can be built as modules (by
  1786. answering M instead of Y where indicated): this is most
  1787. useful for infrequently used options which are not required
  1788. for booting. For more information, see the man pages for
  1789. modprobe, lsmod, modinfo, insmod and rmmod.
  1790. If you say Y here, you will need to run "make
  1791. modules_install" to put the modules under /lib/modules/
  1792. where modprobe can find them (you may need to be root to do
  1793. this).
  1794. If unsure, say Y.
  1795. if MODULES
  1796. config MODULE_FORCE_LOAD
  1797. bool "Forced module loading"
  1798. default n
  1799. help
  1800. Allow loading of modules without version information (ie. modprobe
  1801. --force). Forced module loading sets the 'F' (forced) taint flag and
  1802. is usually a really bad idea.
  1803. config MODULE_UNLOAD
  1804. bool "Module unloading"
  1805. help
  1806. Without this option you will not be able to unload any
  1807. modules (note that some modules may not be unloadable
  1808. anyway), which makes your kernel smaller, faster
  1809. and simpler. If unsure, say Y.
  1810. config MODULE_FORCE_UNLOAD
  1811. bool "Forced module unloading"
  1812. depends on MODULE_UNLOAD
  1813. help
  1814. This option allows you to force a module to unload, even if the
  1815. kernel believes it is unsafe: the kernel will remove the module
  1816. without waiting for anyone to stop using it (using the -f option to
  1817. rmmod). This is mainly for kernel developers and desperate users.
  1818. If unsure, say N.
  1819. config MODVERSIONS
  1820. bool "Module versioning support"
  1821. help
  1822. Usually, you have to use modules compiled with your kernel.
  1823. Saying Y here makes it sometimes possible to use modules
  1824. compiled for different kernels, by adding enough information
  1825. to the modules to (hopefully) spot any changes which would
  1826. make them incompatible with the kernel you are running. If
  1827. unsure, say N.
  1828. config MODULE_SRCVERSION_ALL
  1829. bool "Source checksum for all modules"
  1830. help
  1831. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1832. field inserted into their modinfo section, which contains a
  1833. sum of the source files which made it. This helps maintainers
  1834. see exactly which source was used to build a module (since
  1835. others sometimes change the module source without updating
  1836. the version). With this option, such a "srcversion" field
  1837. will be created for all modules. If unsure, say N.
  1838. config MODULE_SIG
  1839. bool "Module signature verification"
  1840. depends on MODULES
  1841. select SYSTEM_DATA_VERIFICATION
  1842. help
  1843. Check modules for valid signatures upon load: the signature
  1844. is simply appended to the module. For more information see
  1845. Documentation/module-signing.txt.
  1846. Note that this option adds the OpenSSL development packages as a
  1847. kernel build dependency so that the signing tool can use its crypto
  1848. library.
  1849. !!!WARNING!!! If you enable this option, you MUST make sure that the
  1850. module DOES NOT get stripped after being signed. This includes the
  1851. debuginfo strip done by some packagers (such as rpmbuild) and
  1852. inclusion into an initramfs that wants the module size reduced.
  1853. config MODULE_SIG_FORCE
  1854. bool "Require modules to be validly signed"
  1855. depends on MODULE_SIG
  1856. help
  1857. Reject unsigned modules or signed modules for which we don't have a
  1858. key. Without this, such modules will simply taint the kernel.
  1859. config MODULE_SIG_ALL
  1860. bool "Automatically sign all modules"
  1861. default y
  1862. depends on MODULE_SIG
  1863. help
  1864. Sign all modules during make modules_install. Without this option,
  1865. modules must be signed manually, using the scripts/sign-file tool.
  1866. comment "Do not forget to sign required modules with scripts/sign-file"
  1867. depends on MODULE_SIG_FORCE && !MODULE_SIG_ALL
  1868. choice
  1869. prompt "Which hash algorithm should modules be signed with?"
  1870. depends on MODULE_SIG
  1871. help
  1872. This determines which sort of hashing algorithm will be used during
  1873. signature generation. This algorithm _must_ be built into the kernel
  1874. directly so that signature verification can take place. It is not
  1875. possible to load a signed module containing the algorithm to check
  1876. the signature on that module.
  1877. config MODULE_SIG_SHA1
  1878. bool "Sign modules with SHA-1"
  1879. select CRYPTO_SHA1
  1880. config MODULE_SIG_SHA224
  1881. bool "Sign modules with SHA-224"
  1882. select CRYPTO_SHA256
  1883. config MODULE_SIG_SHA256
  1884. bool "Sign modules with SHA-256"
  1885. select CRYPTO_SHA256
  1886. config MODULE_SIG_SHA384
  1887. bool "Sign modules with SHA-384"
  1888. select CRYPTO_SHA512
  1889. config MODULE_SIG_SHA512
  1890. bool "Sign modules with SHA-512"
  1891. select CRYPTO_SHA512
  1892. endchoice
  1893. config MODULE_SIG_HASH
  1894. string
  1895. depends on MODULE_SIG
  1896. default "sha1" if MODULE_SIG_SHA1
  1897. default "sha224" if MODULE_SIG_SHA224
  1898. default "sha256" if MODULE_SIG_SHA256
  1899. default "sha384" if MODULE_SIG_SHA384
  1900. default "sha512" if MODULE_SIG_SHA512
  1901. config MODULE_COMPRESS
  1902. bool "Compress modules on installation"
  1903. depends on MODULES
  1904. help
  1905. Compresses kernel modules when 'make modules_install' is run; gzip or
  1906. xz depending on "Compression algorithm" below.
  1907. module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
  1908. Out-of-tree kernel modules installed using Kbuild will also be
  1909. compressed upon installation.
  1910. Note: for modules inside an initrd or initramfs, it's more efficient
  1911. to compress the whole initrd or initramfs instead.
  1912. Note: This is fully compatible with signed modules.
  1913. If in doubt, say N.
  1914. choice
  1915. prompt "Compression algorithm"
  1916. depends on MODULE_COMPRESS
  1917. default MODULE_COMPRESS_GZIP
  1918. help
  1919. This determines which sort of compression will be used during
  1920. 'make modules_install'.
  1921. GZIP (default) and XZ are supported.
  1922. config MODULE_COMPRESS_GZIP
  1923. bool "GZIP"
  1924. config MODULE_COMPRESS_XZ
  1925. bool "XZ"
  1926. endchoice
  1927. config TRIM_UNUSED_KSYMS
  1928. bool "Trim unused exported kernel symbols"
  1929. depends on MODULES && !UNUSED_SYMBOLS
  1930. help
  1931. The kernel and some modules make many symbols available for
  1932. other modules to use via EXPORT_SYMBOL() and variants. Depending
  1933. on the set of modules being selected in your kernel configuration,
  1934. many of those exported symbols might never be used.
  1935. This option allows for unused exported symbols to be dropped from
  1936. the build. In turn, this provides the compiler more opportunities
  1937. (especially when using LTO) for optimizing the code and reducing
  1938. binary size. This might have some security advantages as well.
  1939. If unsure, or if you need to build out-of-tree modules, say N.
  1940. endif # MODULES
  1941. config MODULES_TREE_LOOKUP
  1942. def_bool y
  1943. depends on PERF_EVENTS || TRACING || CFI_CLANG
  1944. config INIT_ALL_POSSIBLE
  1945. bool
  1946. help
  1947. Back when each arch used to define their own cpu_online_mask and
  1948. cpu_possible_mask, some of them chose to initialize cpu_possible_mask
  1949. with all 1s, and others with all 0s. When they were centralised,
  1950. it was better to provide this option than to break all the archs
  1951. and have several arch maintainers pursuing me down dark alleys.
  1952. source "block/Kconfig"
  1953. config PREEMPT_NOTIFIERS
  1954. bool
  1955. config PADATA
  1956. depends on SMP
  1957. bool
  1958. config ASN1
  1959. tristate
  1960. help
  1961. Build a simple ASN.1 grammar compiler that produces a bytecode output
  1962. that can be interpreted by the ASN.1 stream decoder and used to
  1963. inform it as to what tags are to be expected in a stream and what
  1964. functions to call on what tags.
  1965. source "kernel/Kconfig.locks"