Skip to content

Use per-cpu allocator for !irq requests and prepare for a bulk allocator

Mel Gorman 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

Changelog since v2 from the cover letter

o Add ack's and benchmark data
o Rebase to 4.10-rc3

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm, page_alloc: Split buffered_rmqueuemm/page_alloc.c+77 -493 replies
2/3mm, page_alloc: Split alloc_pages_nodemaskmm/page_alloc.c+49 -320 replies
3/3mm, page_allocator: Only use per-cpu allocator for irq-safe requestsmm/page_alloc.c+17 -212 replies

Reviews trailers per patch

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

PatchHillf DantonJesper Dangaard Brouer
1/3A-b
2/3A-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] Use per-cpu allocator for !irq requests and prepare for a bulk allocator

Changelog since v2
o Add ack's and benchmark data
o Rebase to 4.10-rc3

Changelog since v1
o Remove a scheduler point from the allocation path
o Finalise the bulk allocator and test it

This series is motivated by a conversation led by Jesper Dangaard Brouer at the last LSF/MM proposing a generic page pool for DMA-coherent pages. Part of his motivation was due to the overhead of allocating multiple order-0 that led some drivers to use high-order allocations and splitting them. This is very slow in some cases.

The first two patches in this series restructure the page allocator such that it is relatively easy to introduce an order-0 bulk page allocator. A patch exists to do that and has been handed over to Jesper until an in-kernel users is created. The third patch alters the per-cpu alloctor to make it exclusive to !irq requests. This cuts allocation/free overhead by roughly 30%.

Performance tests from both Jesper and I are included in the patch.

 include/linux/gfp.h |  24 ++++
 mm/page_alloc.c     | 353 +++++++++++++++++++++++++++++++++++++---------------
 2 files changed, 278 insertions(+), 99 deletions(-)
Signature · 7 lines
2.11.0

--
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>