mm, memory_hotplug: handle unitialized numa node gracefully
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 41 repliesIn review 5 of 6 applied
Patches in v1 5 of 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mm, memory_hotplug: make arch_alloc_nodedata independent on CONFIG_MEMORY_HOTPLUGarch/ include/ | +59 | 4 replies | Applied |
| 2/6 | mm: handle uninitialized numa nodes gracefullyarch/ include/ mm/ +1 more | +43 | 18 replies | |
| 3/6 | mm, memory_hotplug: drop arch_free_nodedataarch/ include/ mm/ | +0 | 4 replies | Applied |
| 4/6 | mm, memory_hotplug: reorganize new pgdat initializationinclude/ mm/ mm/ | +27 | 7 replies | Applied |
| 5/6 | mm: make free_area_init_node aware of memory less nodesmm/ | +8 | 4 replies | Applied |
| 6/6 | memcg: do not tweak node in alloc_mem_cgroup_per_node_infomm/ | +2 | 4 replies | Applied |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Rafael Aquini | Alexey Makhalov | David Hildenbrand | Mike Rapoport | Oscar Salvador | Wei Yang |
|---|---|---|---|---|---|---|
| 1/6 | A-b | A-b | A-b | R-b | R-b | |
| 2/6 | A-b T-b A-b T-b | T-b T-b | A-b A-b | A-b A-b | R-b R-b | |
| 3/6 | A-b | A-b | A-b | R-b | R-b | |
| 4/6 | A-b | A-b | R-b | R-b | ||
| 5/6 | A-b | A-b | R-b | R-b | R-b | |
| 6/6 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [PATCH 0/6] mm, memory_hotplug: handle unitialized numa node gracefully
Hi,
the previous version of this patchset has been posted her:
http://lkml.kernel.org/r/[email protected]
I have ended up with 6 patches in the end. The core of the fix is patch 2 which also links existing bug reports. The high level goal is to have all possible numa nodes have their pgdat allocated and initialized so
for_each_possible_node(nid)
NODE_DATA(nid)
will never return a garbage. This has proven to be problem in several places when an offline numa node is used for an allocation just to realize that node_data and therefore allocation fallback zonelists are not initialized and such an allocation request blows up.
There were attempts to address that by checking node_online in several places including the page allocator. This patchset approaches the problem from a different perspective and instead of special casing, which just adds a runtime overhead, it allocates pglist_data for each possible node. This can add some memory overhead for platforms with high number of possible nodes if they do not contain any memory. This should be a rather rare configuration though.
How to test this? David has provided and excellent howto:
http://lkml.kernel.org/r/[email protected]
Patches 1 and 3-6 are mostly cleanups. The patchset has been reviewed by Rafael (thanks!) and the core fix tested by Rafael and Alexey (thanks to both). David has tested as per instructions above and hasn't found any fallouts in the memory hotplug scenarios.
Please consider for inclusion.
Thanks!
Diffstat:
arch/ia64/mm/discontig.c | 11 +--- include/linux/memory_hotplug.h | 118 ++++++++++++++++++++--------------------- mm/memcontrol.c | 14 +---- mm/memory_hotplug.c | 55 ++++--------------- mm/page_alloc.c | 70 +++++++++++++++++++++--- 5 files changed, 133 insertions(+), 135 deletions(-)