diff options
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 67 |
1 files changed, 26 insertions, 41 deletions
diff --git a/init/Kconfig b/init/Kconfig index dcef8b55011a..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,17 +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 | 406 | ||
390 | config CGROUP_MEM_CONT | 407 | If you are using a distro with the most recent userspace |
391 | bool "Memory controller for cgroups" | 408 | packages, it should be safe to say N here. |
392 | depends on CGROUPS && RESOURCE_COUNTERS | ||
393 | help | ||
394 | Provides a memory controller that manages both page cache and | ||
395 | RSS memory. | ||
396 | 409 | ||
397 | config PROC_PID_CPUSET | 410 | config PROC_PID_CPUSET |
398 | bool "Include legacy /proc/<pid>/cpuset file" | 411 | bool "Include legacy /proc/<pid>/cpuset file" |
@@ -852,38 +865,10 @@ source "block/Kconfig" | |||
852 | config PREEMPT_NOTIFIERS | 865 | config PREEMPT_NOTIFIERS |
853 | bool | 866 | bool |
854 | 867 | ||
855 | choice | ||
856 | prompt "RCU implementation type:" | ||
857 | default CLASSIC_RCU | ||
858 | help | ||
859 | This allows you to choose either the classic RCU implementation | ||
860 | that is designed for best read-side performance on non-realtime | ||
861 | systems, or the preemptible RCU implementation for best latency | ||
862 | on realtime systems. Note that some kernel preemption modes | ||
863 | will restrict your choice. | ||
864 | |||
865 | Select the default if you are unsure. | ||
866 | |||
867 | config CLASSIC_RCU | 868 | config CLASSIC_RCU |
868 | bool "Classic RCU" | 869 | def_bool !PREEMPT_RCU |
869 | help | 870 | help |
870 | This option selects the classic RCU implementation that is | 871 | This option selects the classic RCU implementation that is |
871 | designed for best read-side performance on non-realtime | 872 | designed for best read-side performance on non-realtime |
872 | systems. | 873 | systems. Classic RCU is the default. Note that the |
873 | 874 | PREEMPT_RCU symbol is used to select/deselect this option. | |
874 | Say Y if you are unsure. | ||
875 | |||
876 | config PREEMPT_RCU | ||
877 | bool "Preemptible RCU" | ||
878 | depends on PREEMPT | ||
879 | help | ||
880 | This option reduces the latency of the kernel by making certain | ||
881 | RCU sections preemptible. Normally RCU code is non-preemptible, if | ||
882 | this option is selected then read-only RCU sections become | ||
883 | preemptible. This helps latency, but may expose bugs due to | ||
884 | now-naive assumptions about each RCU read-side critical section | ||
885 | remaining on a given CPU through its execution. | ||
886 | |||
887 | Say N if you are unsure. | ||
888 | |||
889 | endchoice | ||