diff options
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 75 |
1 files changed, 26 insertions, 49 deletions
diff --git a/init/Kconfig b/init/Kconfig index f698a5af5007..a97924bc5b8d 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -366,10 +366,29 @@ config RESOURCE_COUNTERS | |||
366 | infrastructure that works with cgroups | 366 | infrastructure that works with cgroups |
367 | depends on CGROUPS | 367 | depends on CGROUPS |
368 | 368 | ||
369 | config CGROUP_MEM_RES_CTLR | ||
370 | bool "Memory Resource Controller for Control Groups" | ||
371 | depends on CGROUPS && RESOURCE_COUNTERS | ||
372 | help | ||
373 | Provides a memory resource controller that manages both page cache and | ||
374 | RSS memory. | ||
375 | |||
376 | Note that setting this option increases fixed memory overhead | ||
377 | associated with each page of memory in the system by 4/8 bytes | ||
378 | and also increases cache misses because struct page on many 64bit | ||
379 | systems will not fit into a single cache line anymore. | ||
380 | |||
381 | Only enable when you're ok with these trade offs and really | ||
382 | sure you need the memory resource controller. | ||
383 | |||
369 | config SYSFS_DEPRECATED | 384 | config SYSFS_DEPRECATED |
385 | bool | ||
386 | |||
387 | config SYSFS_DEPRECATED_V2 | ||
370 | bool "Create deprecated sysfs files" | 388 | bool "Create deprecated sysfs files" |
371 | depends on SYSFS | 389 | depends on SYSFS |
372 | default y | 390 | default y |
391 | select SYSFS_DEPRECATED | ||
373 | help | 392 | help |
374 | This option creates deprecated symlinks such as the | 393 | This option creates deprecated symlinks such as the |
375 | "device"-link, the <subsystem>:<name>-link, and the | 394 | "device"-link, the <subsystem>:<name>-link, and the |
@@ -382,25 +401,11 @@ config SYSFS_DEPRECATED | |||
382 | 401 | ||
383 | If enabled, this option will also move any device structures | 402 | If enabled, this option will also move any device structures |
384 | that belong to a class, back into the /sys/class hierarchy, in | 403 | that belong to a class, back into the /sys/class hierarchy, in |
385 | order to support older versions of udev. | 404 | order to support older versions of udev and some userspace |
386 | 405 | programs. | |
387 | If you are using a distro that was released in 2006 or later, | ||
388 | it should be safe to say N here. | ||
389 | |||
390 | config CGROUP_MEM_CONT | ||
391 | bool "Memory controller for cgroups" | ||
392 | depends on CGROUPS && RESOURCE_COUNTERS | ||
393 | help | ||
394 | Provides a memory controller that manages both page cache and | ||
395 | RSS memory. | ||
396 | 406 | ||
397 | Note that setting this option increases fixed memory overhead | 407 | If you are using a distro with the most recent userspace |
398 | associated with each page of memory in the system by 4/8 bytes | 408 | packages, it should be safe to say N here. |
399 | and also increases cache misses because struct page on many 64bit | ||
400 | systems will not fit into a single cache line anymore. | ||
401 | |||
402 | Only enable when you're ok with these trade offs and really | ||
403 | sure you need the memory controller. | ||
404 | 409 | ||
405 | config PROC_PID_CPUSET | 410 | config PROC_PID_CPUSET |
406 | bool "Include legacy /proc/<pid>/cpuset file" | 411 | bool "Include legacy /proc/<pid>/cpuset file" |
@@ -860,38 +865,10 @@ source "block/Kconfig" | |||
860 | config PREEMPT_NOTIFIERS | 865 | config PREEMPT_NOTIFIERS |
861 | bool | 866 | bool |
862 | 867 | ||
863 | choice | ||
864 | prompt "RCU implementation type:" | ||
865 | default CLASSIC_RCU | ||
866 | help | ||
867 | This allows you to choose either the classic RCU implementation | ||
868 | that is designed for best read-side performance on non-realtime | ||
869 | systems, or the preemptible RCU implementation for best latency | ||
870 | on realtime systems. Note that some kernel preemption modes | ||
871 | will restrict your choice. | ||
872 | |||
873 | Select the default if you are unsure. | ||
874 | |||
875 | config CLASSIC_RCU | 868 | config CLASSIC_RCU |
876 | bool "Classic RCU" | 869 | def_bool !PREEMPT_RCU |
877 | help | 870 | help |
878 | This option selects the classic RCU implementation that is | 871 | This option selects the classic RCU implementation that is |
879 | designed for best read-side performance on non-realtime | 872 | designed for best read-side performance on non-realtime |
880 | systems. | 873 | systems. Classic RCU is the default. Note that the |
881 | 874 | PREEMPT_RCU symbol is used to select/deselect this option. | |
882 | Say Y if you are unsure. | ||
883 | |||
884 | config PREEMPT_RCU | ||
885 | bool "Preemptible RCU" | ||
886 | depends on PREEMPT | ||
887 | help | ||
888 | This option reduces the latency of the kernel by making certain | ||
889 | RCU sections preemptible. Normally RCU code is non-preemptible, if | ||
890 | this option is selected then read-only RCU sections become | ||
891 | preemptible. This helps latency, but may expose bugs due to | ||
892 | now-naive assumptions about each RCU read-side critical section | ||
893 | remaining on a given CPU through its execution. | ||
894 | |||
895 | Say N if you are unsure. | ||
896 | |||
897 | endchoice | ||