Skip to content

Allow high order pages to be stored on PCP v2

Mel Gorman linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review 1 of 2 applied

Changelog since v1 from the cover letter

o Better comments and macros (vbabka)
o Fix pindex_to_order (vbabka)

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/page_alloc: Move free_the_pagemm/page_alloc.c+8 -80 repliesApplied
2/2mm/page_alloc: Allow high-order pages to be stored on the per-cpu listsinclude/linux/mmzone.h mm/internal.h mm/page_alloc.c +1 more+135 -489 replies

Reviews trailers per patch

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

PatchVlastimil Babka
1/2A-b
2/2A-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/2] Allow high order pages to be stored on PCP v2

Changelog since v1
o Better comments and macros (vbabka)
o Fix pindex_to_order (vbabka)

The per-cpu page allocator (PCP) only handles order-0 pages. With the series "Use local_lock for pcp protection and reduce stat overhead" and "Calculate pcp->high based on zone sizes and active CPUs", it's now feasible to store high-order pages on PCP lists.

This small series allows PCP to store "cheap" orders where cheap is determined by PAGE_ALLOC_COSTLY_ORDER and THP-sized allocations. For convenience, the series with the prerequisites are at

git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-pcphighorder-v2r1

The baseline is 5.13-rc2 because that is what I tested with but the patches rebase cleanly to mmots.

 include/linux/mmzone.h |  20 ++++-
 mm/internal.h          |   2 +-
 mm/page_alloc.c        | 171 +++++++++++++++++++++++++++++------------
 mm/swap.c              |   2 +-
 4 files changed, 141 insertions(+), 54 deletions(-)
Signature · 1 line
2.26.2