Skip to content

RFC disable pcplists during page isolation

Vlastimil Babka linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm, page_alloc: clean up pageset high and batch updatemm/page_alloc.c+20 -314 replies
2/5mm, page_alloc: calculate pageset high and batch once per zonemm/page_alloc.c+17 -232 replies
3/5mm, page_alloc(): remove setup_pageset()mm/page_alloc.c+7 -64 replies
4/5mm, page_alloc: cache pageset high and batch in struct zoneinclude/linux/mmzone.h mm/page_alloc.c+15 -52 replies
5/5mm, page_alloc: disable pcplists during page isolationinclude/linux/gfp.h mm/internal.h mm/memory_hotplug.c +2 more+89 -439 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchOscar SalvadorDavid Hildenbrand
1/5R-b
2/5R-b R-b
3/5R-b R-b
4/5
5/5

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

Read the v1 thread

Cover letter [RFC 0/5] disable pcplists during page isolation

As per the discussions [1] [2] this is an attempt to implement David's suggestion that page isolation should disable pcplists to avoid races. This is done without extra checks in fast paths, as I mentioned should be possible in the discussion, and explained in patch 5. Patches 1-4 are preparatory cleanups.

Note this is untested RFC for now. Based on v5.9-rc4 plus Pavel's patch [2] (slated as a quick fix for mainline+stable).

[1] https://lore.kernel.org/linux-mm/[email protected]/
[2] https://lore.kernel.org/linux-mm/[email protected]/

Vlastimil Babka (5):
mm, page_alloc: clean up pageset high and batch update mm, page_alloc: calculate pageset high and batch once per zone mm, page_alloc(): remove setup_pageset()
mm, page_alloc: cache pageset high and batch in struct zone mm, page_alloc: disable pcplists during page isolation

 include/linux/gfp.h    |   1 +
 include/linux/mmzone.h |   2 +
 mm/internal.h          |   4 ++
 mm/memory_hotplug.c    |  24 +++----
 mm/page_alloc.c        | 138 ++++++++++++++++++++++-------------------
 mm/page_isolation.c    |  45 +++++++++++---
 6 files changed, 127 insertions(+), 87 deletions(-)
Signature · 1 line
2.28.0