Kconfig 57 KB

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