Dave Hansen | e1785e8 | 2005-06-23 00:07:49 -0700 | [diff] [blame] | 1 | config SELECT_MEMORY_MODEL |
| 2 | def_bool y |
| 3 | depends on EXPERIMENTAL || ARCH_SELECT_MEMORY_MODEL |
| 4 | |
Dave Hansen | 3a9da76 | 2005-06-23 00:07:42 -0700 | [diff] [blame] | 5 | choice |
| 6 | prompt "Memory model" |
Dave Hansen | e1785e8 | 2005-06-23 00:07:49 -0700 | [diff] [blame] | 7 | depends on SELECT_MEMORY_MODEL |
| 8 | default DISCONTIGMEM_MANUAL if ARCH_DISCONTIGMEM_DEFAULT |
| 9 | default FLATMEM_MANUAL |
Dave Hansen | 3a9da76 | 2005-06-23 00:07:42 -0700 | [diff] [blame] | 10 | |
Dave Hansen | e1785e8 | 2005-06-23 00:07:49 -0700 | [diff] [blame] | 11 | config FLATMEM_MANUAL |
Dave Hansen | 3a9da76 | 2005-06-23 00:07:42 -0700 | [diff] [blame] | 12 | bool "Flat Memory" |
| 13 | depends on !ARCH_DISCONTIGMEM_ENABLE || ARCH_FLATMEM_ENABLE |
| 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: FLATMEM. This is normal |
| 18 | and a correct option. |
| 19 | |
| 20 | If unsure, choose this option over any other. |
| 21 | |
Dave Hansen | e1785e8 | 2005-06-23 00:07:49 -0700 | [diff] [blame] | 22 | config DISCONTIGMEM_MANUAL |
Dave Hansen | 3a9da76 | 2005-06-23 00:07:42 -0700 | [diff] [blame] | 23 | bool "Discontigious Memory" |
| 24 | depends on ARCH_DISCONTIGMEM_ENABLE |
| 25 | help |
Dave Hansen | 785dcd4 | 2005-06-23 00:07:50 -0700 | [diff] [blame] | 26 | This option provides enhanced support for discontiguous |
| 27 | memory systems, over FLATMEM. These systems have holes |
| 28 | in their physical address spaces, and this option provides |
| 29 | more efficient handling of these holes. However, the vast |
| 30 | majority of hardware has quite flat address spaces, and |
| 31 | can have degraded performance from extra overhead that |
| 32 | this option imposes. |
| 33 | |
| 34 | Many NUMA configurations will have this as the only option. |
| 35 | |
Dave Hansen | 3a9da76 | 2005-06-23 00:07:42 -0700 | [diff] [blame] | 36 | If unsure, choose "Flat Memory" over this option. |
| 37 | |
| 38 | endchoice |
| 39 | |
Dave Hansen | e1785e8 | 2005-06-23 00:07:49 -0700 | [diff] [blame] | 40 | config DISCONTIGMEM |
| 41 | def_bool y |
| 42 | depends on (!SELECT_MEMORY_MODEL && ARCH_DISCONTIGMEM_ENABLE) || DISCONTIGMEM_MANUAL |
| 43 | |
| 44 | config FLATMEM |
| 45 | def_bool y |
| 46 | depends on !DISCONTIGMEM || FLATMEM_MANUAL |
| 47 | |
Dave Hansen | 93b7504 | 2005-06-23 00:07:47 -0700 | [diff] [blame] | 48 | # |
| 49 | # Both the NUMA code and DISCONTIGMEM use arrays of pg_data_t's |
| 50 | # to represent different areas of memory. This variable allows |
| 51 | # those dependencies to exist individually. |
| 52 | # |
| 53 | config NEED_MULTIPLE_NODES |
| 54 | def_bool y |
| 55 | depends on DISCONTIGMEM || NUMA |