Skip to content

Recalculate per-cpu page allocator batch and high limits after deferred meminit v2

Mel Gorman linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Changelog since V1 from the cover letter

o Fix a "might sleep" warning
o Reorder for easier backporting

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm, meminit: Recalculate pcpu batch and high limits after init completesmm/page_alloc.c+8 -07 replies
2/3mm, pcp: Share common code between memory hotplug and percpu sysctl handlermm/page_alloc.c+12 -111 reply
3/3mm, pcpu: Make zone pcp updates and reset internal to the mminclude/linux/mm.h mm/internal.h+3 -31 reply

Reviews trailers per patch

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

PatchMichal HockoVlastimil Babka
1/3A-b A-b
2/3A-b A-b
3/3A-b A-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] Recalculate per-cpu page allocator batch and high limits after deferred meminit v2

This is an updated series that addresses some review feedback and an LKP warning. I did not preserve Michal Hocko's ack for the fix as it has changed. This series replaces the following patches in mmotm

mm-pcp-share-common-code-between-memory-hotplug-and-percpu-sysctl-handler.patch mm-meminit-recalculate-pcpu-batch-and-high-limits-after-init-completes.patch mm-pcpu-make-zone-pcp-updates-and-reset-internal-to-the-mm.patch

Changelog since V1
o Fix a "might sleep" warning
o Reorder for easier backporting

A private report stated that system CPU usage was excessive on an AMD EPYC 2 machine while building kernels with much longer build times than expected. The issue is partially explained by high zone lock contention due to the per-cpu page allocator batch and high limits being calculated incorrectly. This series addresses a large chunk of the problem. Patch 1 is the real fix and the other two are cosmetic issues noticed while implementing the fix.

 include/linux/mm.h |  3 ---
 mm/internal.h      |  3 +++
 mm/page_alloc.c    | 31 ++++++++++++++++++++-----------
 3 files changed, 23 insertions(+), 14 deletions(-)
Signature · 1 line
2.16.4