Skip to content

Fix boot_pageset sharing issue for new populated zones of hotadded nodes

Haicheng Li linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mem-hotplug: separate setup_per_cpu_pageset() into separate functionsmm/page_alloc.c+20 -171 reply
2/3mem-hotplug: avoid multiple zones sharing same boot strapping boot_pagesetinclude/linux/mmzone.h init/main.c mm/memory_hotplug.c +1 more+28 -111 reply
3/3mem-hotplug: fix potential race while building zonelist for new populated zoneinclude/linux/memory_hotplug.h mm/memory_hotplug.c mm/page_alloc.c+33 -106 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndi KleenChristoph Lameter
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fix boot_pageset sharing issue for new populated zones of hotadded nodes

In our recent cpu/memory hotadd testing, with multiple nodes hotadded, kernel easily panics under stress workload like kernel building.

The root cause is that the new populated zones of hotadded nodes are sharing same per_cpu_pageset, i.e. boot strapping boot_pageset, which finally causes page state wrong.

The following three patches will setup the pagesets for hotadded nodes with dynamically allocated per_cpu_pageset struct.

---
 include/linux/memory_hotplug.h |    8 +++++
 include/linux/mmzone.h         |    2 +-
 init/main.c                    |    2 +-
 mm/memory_hotplug.c            |   27 +++++++++++-----
 mm/page_alloc.c                |   66 +++++++++++++++++++++++++++-------------
 5 files changed, 74 insertions(+), 31 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>