Skip to content

RFC Configurable fair allocation zone policy v3

Mel Gorman linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 13 repliesIn review

Changelog since v2 from the cover letter

o Drop an accounting patch, behaviour is deliberate
o Special case tmpfs and shmem pages for discussion

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm: page_alloc: exclude unreclaimable allocations from zone fairness policymm/page_alloc.c+2 -10 replies
2/6mm: page_alloc: Break out zone page aging distribution into its own helpermm/page_alloc.c+42 -210 replies
3/6mm: page_alloc: Use zone node IDs to approximate localitymm/page_alloc.c+1 -10 replies
4/6mm: Annotate page cache allocationsinclude/linux/gfp.h include/linux/pagemap.h mm/filemap.c +1 more+20 -20 replies
5/6mm: page_alloc: Make zone distribution page aging policy configurableDocumentation/sysctl/vm.txt include/linux/mmzone.h include/linux/swap.h +2 more+134 -120 replies
6/6mm: page_alloc: add vm.pagecache_interleave to control default mempolicy for page cacheDocumentation/sysctl/vm.txt include/linux/mmzone.h include/linux/swap.h +2 more+41 -500 replies

Reviews trailers per patch

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

PatchDave HansenRik van RielJohannes Weiner
1/6Bisected-by R-b
2/6R-b A-b
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [RFC PATCH 0/6] Configurable fair allocation zone policy v3

This series is currently untested and is being posted to sync up discussions on the treatment of page cache pages, particularly the sysv part. I have not thought it through in detail but postings patches is the easiest way to highlight where I think a problem might be.

Changelog since v2
o Drop an accounting patch, behaviour is deliberate
o Special case tmpfs and shmem pages for discussion

Changelog since v1
o Fix lot of brain damage in the configurable policy patch
o Yoink a page cache annotation patch
o Only account batch pages against allocations eligible for the fair policy
o Add patch that default distributes file pages on remote nodes

Commit 81c0a2bb ("mm: page_alloc: fair zone allocator policy") solved a bug whereby new pages could be reclaimed before old pages because of how the page allocator and kswapd interacted on the per-zone LRU lists.

Unfortunately a side-effect missed during review was that it's now very easy to allocate remote memory on NUMA machines. The problem is that it is not a simple case of just restoring local allocation policies as there are genuine reasons why global page aging may be prefereable. It's still a major change to default behaviour so this patch makes the policy configurable and sets what I think is a sensible default.

The patches are on top of some NUMA balancing patches currently in -mm. It's untested and posted to discuss patches 4 and 6.

 Documentation/sysctl/vm.txt |  29 ++++++++++
 include/linux/gfp.h         |   4 +-
 include/linux/mmzone.h      |   2 +
 include/linux/pagemap.h     |   2 +-
 include/linux/swap.h        |   2 +
 kernel/sysctl.c             |   8 +++
 mm/filemap.c                |   2 +
 mm/page_alloc.c             | 136 +++++++++++++++++++++++++++++++++++++-------
 mm/shmem.c                  |  14 +++++
 9 files changed, 176 insertions(+), 23 deletions(-)
Signature · 7 lines
1.8.4

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