Skip to content

mm/mm_init: simplify deferred init of struct pages

Mike Rapoport linux-mm lkml llvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 14 repliesSuperseded

Changes in v2 from the cover letter

* fix "sleeping function called from invalid context" bug reported by kbuild:
https://lore.kernel.org/all/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/mm_init: use deferred_init_memmap_chunk() in deferred_grow_zone()mm/mm_init.c+36 -340 replies
2/4mm/mm_init: deferred_init_memmap: use a job per zonemm/mm_init.c+16 -220 replies
3/4mm/mm_init: drop deferred_init_maxorder()mm/mm_init.c+32 -950 replies
4/4memblock: drop for_each_free_mem_pfn_range_in_zone_from().clang-format include/linux/memblock.h mm/memblock.c+0 -871 reply

Reviews trailers per patch

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

PatchDavid HildenbrandWei Yang
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] mm/mm_init: simplify deferred init of struct pages

From: "Mike Rapoport (Microsoft)" <[email protected]>

Hi,

These patches simplify deferred initialization of the memory map.

Beside nice negative diffstat I measured 3ms (55ms vs 58ms) reduction in the initialization of deferred pages on single node system with 64GiB of RAM.

I don't have access to large memory machines, so I'd really appreciate testing of these patches on them to make sure there's no regression there.

v2 changes:
* fix "sleeping function called from invalid context" bug reported by kbuild:
https://lore.kernel.org/all/[email protected]

v1: https://lore.kernel.org/all/[email protected]

I pushed the patches to memblock tree for wider testing.
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git/log/?h=for-next

Mike Rapoport (Microsoft) (4):
mm/mm_init: use deferred_init_memmap_chunk() in deferred_grow_zone() mm/mm_init: deferred_init_memmap: use a job per zone mm/mm_init: drop deferred_init_maxorder()
memblock: drop for_each_free_mem_pfn_range_in_zone_from()

 .clang-format            |   1 -
 include/linux/memblock.h |  22 -----
 mm/memblock.c            |  64 -------------
 mm/mm_init.c             | 197 +++++++++++++--------------------------
 4 files changed, 65 insertions(+), 219 deletions(-)

base-commit: b320789d6883cc00ac78ce83bccbfe7ed58afcf0

Signature · 1 line
2.50.1