Kconfig 60 KB

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