Tang Chen
01a178a94e
acpi, memory-hotplug: support getting hotplug info from SRAT
...
We now provide an option for users who don't want to specify physical
memory address in kernel commandline.
/*
* For movablemem_map=acpi:
*
* SRAT: |_____| |_____| |_________| |_________| ......
* node id: 0 1 1 2
* hotpluggable: n y y n
* movablemem_map: |_____| |_________|
*
* Using movablemem_map, we can prevent memblock from allocating memory
* on ZONE_MOVABLE at boot time.
*/
So user just specify movablemem_map=acpi, and the kernel will use
hotpluggable info in SRAT to determine which memory ranges should be set
as ZONE_MOVABLE.
If all the memory ranges in SRAT is hotpluggable, then no memory can be
used by kernel. But before parsing SRAT, memblock has already reserve
some memory ranges for other purposes, such as for kernel image, and so
on. We cannot prevent kernel from using these memory. So we need to
exclude these ranges even if these memory is hotpluggable.
Furthermore, there could be several memory ranges in the single node
which the kernel resides in. We may skip one range that have memory
reserved by memblock, but if the rest of memory is too small, then the
kernel will fail to boot. So, make the whole node which the kernel
resides in un-hotpluggable. Then the kernel has enough memory to use.
NOTE: Using this way will cause NUMA performance down because the
whole node will be set as ZONE_MOVABLE, and kernel cannot use memory
on it. If users don't want to lose NUMA performance, just don't use
it.
[[email protected] : fix warning]
[[email protected] : use strcmp()]
Signed-off-by: Tang Chen <[email protected] >
Cc: KOSAKI Motohiro <[email protected] >
Cc: Jiang Liu <[email protected] >
Cc: Jianguo Wu <[email protected] >
Cc: Kamezawa Hiroyuki <[email protected] >
Cc: Lai Jiangshan <[email protected] >
Cc: Wu Jianguo <[email protected] >
Cc: Yasuaki Ishimatsu <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: "H. Peter Anvin" <[email protected] >
Cc: Len Brown <[email protected] >
Cc: "Brown, Len" <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2013-02-23 17:50:14 -08:00
..
backing-dev.c
bdi: allow block devices to say that they require stable page writes
2013-02-21 17:22:19 -08:00
balloon_compaction.c
mm: introduce a common interface for balloon pages mobility
2012-12-11 17:22:26 -08:00
bootmem.c
mm: Add alloc_bootmem_low_pages_nopanic()
2013-01-29 19:32:59 -08:00
bounce.c
block: optionally snapshot page contents to provide stable pages during write
2013-02-21 17:22:20 -08:00
cleancache.c
compaction.c
mm: compaction: make __compact_pgdat() and compact_pgdat() return void
2013-02-23 17:50:10 -08:00
debug-pagealloc.c
dmapool.c
dmapool: make DMAPOOL_DEBUG detect corruption of free marker
2012-12-11 17:22:24 -08:00
fadvise.c
switch simple cases of fget_light to fdget
2012-09-26 22:20:08 -04:00
failslab.c
filemap.c
mm: only enforce stable page writes if the backing device requires it
2013-02-21 17:22:19 -08:00
filemap_xip.c
mm: move all mmu notifier invocations to be done outside the PT lock
2012-10-09 16:22:58 +09:00
fremap.c
mm: introduce VM_POPULATE flag to better deal with racy userspace programs
2013-02-23 17:50:11 -08:00
frontswap.c
frontswap: support exclusive gets if tmem backend is capable
2012-09-21 10:38:12 -04:00
highmem.c
Some nice cleanups, and even a patch my wife did as a "live" demo for
2012-12-20 08:37:05 -08:00
huge_memory.c
mm/huge_memory.c: use new hashtable implementation
2013-02-23 17:50:10 -08:00
hugetlb.c
mm/hugetlb.c: convert to pr_foo()
2013-02-23 17:50:09 -08:00
hugetlb_cgroup.c
mm/hugetlb: create hugetlb cgroup file in hugetlb_init
2012-12-18 15:02:15 -08:00
hwpoison-inject.c
memcg: rename config variables
2012-07-31 18:42:43 -07:00
init-mm.c
internal.h
mm: directly use __mlock_vma_pages_range() in find_extend_vma()
2013-02-23 17:50:11 -08:00
interval_tree.c
mm: add CONFIG_DEBUG_VM_RB build option
2012-10-09 16:22:42 +09:00
Kconfig
memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap
2013-02-23 17:50:12 -08:00
Kconfig.debug
kmemcheck.c
kmemleak-test.c
kmemleak.c
mm/kmemleak.c: remove obsolete simple_strtoul
2012-12-18 15:02:15 -08:00
ksm.c
mm/ksm.c: use new hashtable implementation
2013-02-23 17:50:10 -08:00
maccess.c
madvise.c
mm: make madvise(MADV_WILLNEED) support swap file prefetch
2013-02-23 17:50:10 -08:00
Makefile
mm: introduce a common interface for balloon pages mobility
2012-12-11 17:22:26 -08:00
memblock.c
page_alloc: bootmem limit with movablecore_map
2013-02-23 17:50:14 -08:00
memcontrol.c
mm/memcontrol.c: convert printk(KERN_FOO) to pr_foo()
2013-02-23 17:50:09 -08:00
memory-failure.c
Automatic NUMA Balancing V11
2012-12-16 15:18:08 -08:00
memory.c
mm: directly use __mlock_vma_pages_range() in find_extend_vma()
2013-02-23 17:50:11 -08:00
memory_hotplug.c
cpu-hotplug,memory-hotplug: clear cpu_to_node() when offlining the node
2013-02-23 17:50:13 -08:00
mempolicy.c
mempolicy: fix is_valid_nodemask()
2013-02-23 17:50:13 -08:00
mempool.c
migrate.c
mm/hugetlb: set PTE as huge in hugetlb_change_protection and remove_migration_pte
2013-02-05 20:38:47 +11:00
mincore.c
mlock.c
mm: introduce VM_POPULATE flag to better deal with racy userspace programs
2013-02-23 17:50:11 -08:00
mm_init.c
mmap.c
mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool
2013-02-23 17:50:11 -08:00
mmu_context.c
mmu_notifier.c
mm/mmu_notifier: allocate mmu_notifier in advance
2012-10-25 14:37:53 -07:00
mmzone.c
memcg: fix hotplugged memory zone oops
2012-11-16 14:33:04 -08:00
mprotect.c
mm/mprotect.c: coding-style cleanups
2012-12-18 15:02:15 -08:00
mremap.c
mm: use mm_populate() for mremap() of VM_LOCKED vmas
2013-02-23 17:50:11 -08:00
msync.c
nobootmem.c
mm: Add alloc_bootmem_low_pages_nopanic()
2013-01-29 19:32:59 -08:00
nommu.c
mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool
2013-02-23 17:50:11 -08:00
oom_kill.c
memcg, oom: provide more precise dump info while memcg oom happening
2013-02-23 17:50:08 -08:00
page-writeback.c
block: optionally snapshot page contents to provide stable pages during write
2013-02-21 17:22:20 -08:00
page_alloc.c
acpi, memory-hotplug: support getting hotplug info from SRAT
2013-02-23 17:50:14 -08:00
page_cgroup.c
memcontrol: use N_MEMORY instead N_HIGH_MEMORY
2012-12-12 17:38:32 -08:00
page_io.c
mm: add support for direct_IO to highmem pages
2012-07-31 18:42:47 -07:00
page_isolation.c
mm: fix zone_watermark_ok_safe() accounting of isolated pages
2013-01-04 16:11:46 -08:00
pagewalk.c
thp: change split_huge_page_pmd() interface
2012-12-12 17:38:31 -08:00
percpu-km.c
percpu-vm.c
percpu.c
mm, percpu: Make sure percpu_alloc early parameter has an argument
2012-12-02 06:23:04 -08:00
pgtable-generic.c
mm: Only flush the TLB when clearing an accessible pte
2012-12-11 14:28:34 +00:00
process_vm_access.c
quicklist.c
readahead.c
switch simple cases of fget_light to fdget
2012-09-26 22:20:08 -04:00
rmap.c
s390/mm: implement software dirty bits
2013-02-14 15:55:23 +01:00
shmem.c
mempolicy: remove arg from mpol_parse_str, mpol_to_str
2013-01-02 09:27:10 -08:00
slab.c
memcg: add comments clarifying aspects of cache attribute propagation
2012-12-18 15:02:15 -08:00
slab.h
slab: propagate tunable values
2012-12-18 15:02:14 -08:00
slab_common.c
slab: propagate tunable values
2012-12-18 15:02:14 -08:00
slob.c
sl[au]b: always get the cache from its page in kmem_cache_free()
2012-12-18 15:02:14 -08:00
slub.c
slub: drop mutex before deleting sysfs entry
2012-12-18 15:02:15 -08:00
sparse-vmemmap.c
sparse.c
memory-hotplug: consider compound pages when free memmap
2013-02-23 17:50:13 -08:00
swap.c
mm: remove vma arg from page_evictable
2012-10-09 16:22:55 +09:00
swap_state.c
mm: add support for a filesystem to activate swap files and use direct_IO for writing swap pages
2012-07-31 18:42:47 -07:00
swapfile.c
mm, oom: fix race when specifying a thread as the oom origin
2012-12-11 17:22:27 -08:00
truncate.c
mm: drop vmtruncate
2012-12-20 18:46:29 -05:00
util.c
mm: make do_mmap_pgoff return populate as a size in bytes, not as a bool
2013-02-23 17:50:11 -08:00
vmalloc.c
mm: use IS_ENABLED(CONFIG_NUMA) instead of NUMA_BUILD
2012-12-11 17:22:22 -08:00
vmscan.c
mm: avoid calling pgdat_balanced() needlessly
2013-02-23 17:50:10 -08:00
vmstat.c
Automatic NUMA Balancing V11
2012-12-16 15:18:08 -08:00