Skip to content

Memory hotplug for new nodes v.2.

Yasunori Goto linux-ia64 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Memory hotplug for new nodes v.2. (pgdat allocation)include/linux/memory_hotplug.h mm/memory_hotplug.c mm/vmscan.c+78 -12 replies
2/12Memory hotplug for new nodes v.2. (changing to __meminit)include/linux/bootmem.h mm/page_alloc.c+10 -100 replies
3/12Memory hotplug for new nodes v.2. (Wait table and zonelists initalization)include/linux/memory_hotplug.h include/linux/mmzone.h mm/memory_hotplug.c +1 more+81 -72 replies
4/12Memory hotplug for new nodes v.2. (pgdat alloc caller for ia64)arch/ia64/mm/init.c+20 -31 reply
5/12Memory hotplug for new nodes v.2.(pgdat alloc caller for x86-64)arch/x86_64/mm/init.c+22 -31 reply
6/12Memory hotplug for new nodes v.2.(create sysfs for node (ia64))arch/ia64/kernel/topology.c include/asm-ia64/numa.h+18 -00 replies
7/12Memory hotplug for new nodes v.2.(create sysfs for node (x86-64))arch/i386/mach-default/topology.c include/asm-i386/node.h+21 -140 replies
8/12Memory hotplug for new nodes v.2(NODE_DATA array initalize for ia64).arch/ia64/Kconfig arch/ia64/mm/discontig.c include/asm-ia64/nodedata.h+90 -30 replies
9/12Memory hotplug for new nodes v.2 (pgdat link insert)arch/ia64/mm/discontig.c include/linux/mmzone.h mm/memory_hotplug.c +1 more+28 -250 replies
10/12Memory hotplug for new nodes v.2(find node id via ACPI's dsdt)drivers/acpi/acpi_memhotplug.c drivers/acpi/numa.c include/linux/acpi.h+108 -00 replies
11/12Memory hotplug for new nodes v.2 (Register start func for acpi_memhotplug)drivers/acpi/acpi_memhotplug.c+22 -00 replies
12/12Memory hotplug for new nodes v.2 (allow -EEXIST of add_memory)drivers/acpi/acpi_memhotplug.c+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH: 000/012] Memory hotplug for new nodes v.2.

Hello.

I'll post newest patches for memory hotadd as V2.
In this patch, pgdat is allocated when new node is comming. To initialize pgdat and zones, a set of patches are necessary.
- to call memory_hotplug code from acpi container driver.
- to allcate and initialize pgdat, zone, zonelist.
- to initialize node_data[] array (ia64)
- to register sysfs file for new node.
This patch set is not only for ia64 but also for x86-64.

Note:
- kmalloc is used for pgdat allocation in this version.
So, even if pgdat is allocated, it will be allocated on the other node. This is only to simplify patches a bit. :-P

This patches are for 2.6.16-rc3-mm1.

Followings are updates.
- update for 2.6.16-rc3-mm1.
- not only ia64, This is tested on x86_64 with NUMA emulation too. :-)
- wait_table_size() allcation is changed.
- Take max size as much as possible.
- Change using GFP_ATOMIC. It is inside of zone_init_lock. (Warining message of might_sleep() is very well.)
- stop_machine_run(build_zonelists) is move to outside of lock.
- pgdat_insert() is moved to generic code to be used by x86_64.
- add decision of ZONE_DMA32 or ZONE_NORMAL to x86_64's add_memory().
- Make a separated patch to change from __init to __meminit.
- Fix some typo

Please comment.

Signature · 1 line
Yasunori Goto