Kconfig 56 KB

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