diff options
| -rw-r--r-- | mm/Kconfig | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/mm/Kconfig b/mm/Kconfig index c5124c2cb0b2..ee8d1f311858 100644 --- a/mm/Kconfig +++ b/mm/Kconfig | |||
| @@ -11,23 +11,24 @@ choice | |||
| 11 | default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT | 11 | default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT |
| 12 | default SPARSEMEM_MANUAL if ARCH_SPARSEMEM_DEFAULT | 12 | default SPARSEMEM_MANUAL if ARCH_SPARSEMEM_DEFAULT |
| 13 | default FLATMEM_MANUAL | 13 | default FLATMEM_MANUAL |
| 14 | help | ||
| 15 | This option allows you to change some of the ways that | ||
| 16 | Linux manages its memory internally. Most users will | ||
| 17 | only have one option here selected by the architecture | ||
| 18 | configuration. This is normal. | ||
| 14 | 19 | ||
| 15 | config FLATMEM_MANUAL | 20 | config FLATMEM_MANUAL |
| 16 | bool "Flat Memory" | 21 | bool "Flat Memory" |
| 17 | depends on !(ARCH_DISCONTIGMEM_ENABLE || ARCH_SPARSEMEM_ENABLE) || ARCH_FLATMEM_ENABLE | 22 | depends on !(ARCH_DISCONTIGMEM_ENABLE || ARCH_SPARSEMEM_ENABLE) || ARCH_FLATMEM_ENABLE |
| 18 | help | 23 | help |
| 19 | This option allows you to change some of the ways that | 24 | This option is best suited for non-NUMA systems with |
| 20 | Linux manages its memory internally. Most users will | 25 | flat address space. The FLATMEM is the most efficient |
| 21 | only have one option here: FLATMEM. This is normal | 26 | system in terms of performance and resource consumption |
| 22 | and a correct option. | 27 | and it is the best option for smaller systems. |
| 23 | 28 | ||
| 24 | Some users of more advanced features like NUMA and | 29 | For systems that have holes in their physical address |
| 25 | memory hotplug may have different options here. | 30 | spaces and for features like NUMA and memory hotplug, |
| 26 | DISCONTIGMEM is a more mature, better tested system, | 31 | choose "Sparse Memory" |
| 27 | but is incompatible with memory hotplug and may suffer | ||
| 28 | decreased performance over SPARSEMEM. If unsure between | ||
| 29 | "Sparse Memory" and "Discontiguous Memory", choose | ||
| 30 | "Discontiguous Memory". | ||
| 31 | 32 | ||
| 32 | If unsure, choose this option (Flat Memory) over any other. | 33 | If unsure, choose this option (Flat Memory) over any other. |
| 33 | 34 | ||
| @@ -38,29 +39,26 @@ config DISCONTIGMEM_MANUAL | |||
| 38 | This option provides enhanced support for discontiguous | 39 | This option provides enhanced support for discontiguous |
| 39 | memory systems, over FLATMEM. These systems have holes | 40 | memory systems, over FLATMEM. These systems have holes |
| 40 | in their physical address spaces, and this option provides | 41 | in their physical address spaces, and this option provides |
| 41 | more efficient handling of these holes. However, the vast | 42 | more efficient handling of these holes. |
| 42 | majority of hardware has quite flat address spaces, and | ||
| 43 | can have degraded performance from the extra overhead that | ||
| 44 | this option imposes. | ||
| 45 | 43 | ||
| 46 | Many NUMA configurations will have this as the only option. | 44 | Although "Discontiguous Memory" is still used by several |
| 45 | architectures, it is considered deprecated in favor of | ||
| 46 | "Sparse Memory". | ||
| 47 | 47 | ||
| 48 | If unsure, choose "Flat Memory" over this option. | 48 | If unsure, choose "Sparse Memory" over this option. |
| 49 | 49 | ||
| 50 | config SPARSEMEM_MANUAL | 50 | config SPARSEMEM_MANUAL |
| 51 | bool "Sparse Memory" | 51 | bool "Sparse Memory" |
| 52 | depends on ARCH_SPARSEMEM_ENABLE | 52 | depends on ARCH_SPARSEMEM_ENABLE |
| 53 | help | 53 | help |
| 54 | This will be the only option for some systems, including | 54 | This will be the only option for some systems, including |
| 55 | memory hotplug systems. This is normal. | 55 | memory hot-plug systems. This is normal. |
| 56 | 56 | ||
| 57 | For many other systems, this will be an alternative to | 57 | This option provides efficient support for systems with |
| 58 | "Discontiguous Memory". This option provides some potential | 58 | holes is their physical address space and allows memory |
| 59 | performance benefits, along with decreased code complexity, | 59 | hot-plug and hot-remove. |
| 60 | but it is newer, and more experimental. | ||
| 61 | 60 | ||
| 62 | If unsure, choose "Discontiguous Memory" or "Flat Memory" | 61 | If unsure, choose "Flat Memory" over this option. |
| 63 | over this option. | ||
| 64 | 62 | ||
| 65 | endchoice | 63 | endchoice |
| 66 | 64 | ||
