Skip to content

NUMA balancing related fixlets

Mel Gorman lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm: remove misleading ARCH_USES_NUMA_PROT_NONE (from Andrew's tree)arch/powerpc/include/asm/pgtable.h arch/powerpc/include/asm/pte-common.h arch/x86/Kconfig +3 more+40 -750 replies
2/4mm: migrate: Close race between migration completion and mprotectmm/migrate.c+3 -12 replies
3/4mm: mempolicy: Skip inaccessible VMAs when setting MPOL_MF_LAZYmm/mempolicy.c+3 -11 reply
4/4mm: numa: Do not mark PTEs pte_numa when splitting huge pagesmm/huge_memory.c+0 -210 replies

Reviews trailers per patch

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

PatchAneesh Kumar K.VKirill A. ShutemovRik van Riel
1/4R-b
2/4A-b
3/4A-b
4/4A-b A-b

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 [PATCH 0/4] NUMA balancing related fixlets

The following is in reaction to the thread "pipe/page fault oddness". The first patch cleans up a lot of mess related to ARCH_USES_NUMA_PROT_NONE. It's already in Andrew's tree but included here for context.

The second patch removes a race between migration and mprotect, particularly from compaction context.

The third patch should have no real effect but it's an oversight that should be corrected in case MPOL_MF_LAZY is exposed to userspace.

The fourth patch addresses a problem whereby a split_huge_page can leave a pte_numa PTE in the wrong location and is one potential source of the bug Dave observed.

Note that none of this prevents a pte_protnone approach being applied on top or replacing patch 4 with it. They should not be in conflict but if patch 4 in particular addresses Dave's problem then it may be considerably lower risk for 3.17.

 arch/powerpc/include/asm/pgtable.h    | 57 ++++++++---------------------------
 arch/powerpc/include/asm/pte-common.h |  5 +++
 arch/x86/Kconfig                      |  1 -
 arch/x86/include/asm/pgtable_types.h  | 14 +++++++++
 include/asm-generic/pgtable.h         | 27 ++++++-----------
 init/Kconfig                          | 11 -------
 mm/huge_memory.c                      |  2 --
 mm/mempolicy.c                        |  4 ++-
 mm/migrate.c                          |  4 ++-
 9 files changed, 46 insertions(+), 79 deletions(-)
Signature · 1 line
1.8.4.5