Skip to content

RFC powerpc: mm: Numa faults support for ppc64

Aneesh Kumar K.V linux-mm linuxppc-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9powerpc: Use HPTE constants when updating hpte bitsarch/powerpc/platforms/cell/beat_htab.c arch/powerpc/platforms/pseries/lpar.c+4 -30 replies
2/9powerpc: Free up _PAGE_COHERENCE for numa fault use laterarch/powerpc/include/asm/pte-hash64.h arch/powerpc/mm/hash_low_64.S arch/powerpc/mm/hash_utils_64.c +2 more+26 -80 replies
3/9mm: Move change_prot_numa outside CONFIG_ARCH_USES_NUMA_PROT_NONEinclude/linux/mm.h mm/mempolicy.c+0 -120 replies
4/9powerpc: mm: Only check for _PAGE_PRESENT in set_pte/pmd functionsarch/powerpc/mm/pgtable.c arch/powerpc/mm/pgtable_64.c+2 -20 replies
5/9powerpc: mm: book3s: Enable _PAGE_NUMA for book3sarch/powerpc/include/asm/pgtable.h arch/powerpc/include/asm/pte-hash64.h arch/powerpc/platforms/Kconfig.cputype+72 -10 replies
6/9powerpc: mm: book3s: Disable hugepaged pmd format for book3sarch/powerpc/include/asm/page.h arch/powerpc/mm/hugetlbpage.c+18 -10 replies
7/9mm: numafaults: Use change_pmd_protnuma for updating _PAGE_NUMA for regular pmdsarch/powerpc/include/asm/pgtable.h include/asm-generic/pgtable.h mm/memory.c +1 more+44 -190 replies
8/9powerpc: mm: Support setting _PAGE_NUMA bit on pmd entry which are pointer to PTE pagearch/powerpc/include/asm/pgtable-ppc64.h+16 -20 replies
9/9powerpc: mm: Enable numa faulting for hugepagesarch/powerpc/include/asm/pgtable.h+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/9] powerpc: mm: Numa faults support for ppc64

Hi,

This patch series add support for numa faults on ppc64 architecture. We steal the _PAGE_COHERENCE bit and use that for indicating _PAGE_NUMA. We clear the _PAGE_PRESENT bit and also invalidate the hpte entry on setting _PAGE_NUMA. The next fault on that page will be considered a numa fault.

NOTE:
______
Issue:
I am finding large lock contention on page_table_lock with this series on a 95 cpu 4 node box with autonuma benchmark

I will out on vacation till NOV 6 without email access. Hence i will not be able to respond to review feedbacks till then.

lock_stat version 0.3
-------------------------------------------------------------------------------------------------------------------------------------------------------
class name con-bounces contentions waittime-min waittime-max waittime-total acq-bounces acquisitions holdtime-mi hold time hold total
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

&(&mm->page_table_lock)->rlock: 713531791 719610919 0.09 3038193.19 357867523236.3 729709189 750040162 0.0 236991.36 1159646899.68
------------------------------

  &(&mm->page_table_lock)->rlock              1          [<c000000000218880>] .anon_vma_prepare+0xb0/0x1e0
  &(&mm->page_table_lock)->rlock             93          [<c000000000207ebc>] .do_numa_page+0x4c/0x190
  &(&mm->page_table_lock)->rlock         301678          [<c0000000002139d4>] .change_protection+0x1d4/0x560
  &(&mm->page_table_lock)->rlock         244524          [<c000000000213be8>] .change_protection+0x3e8/0x560
  ------------------------------
  &(&mm->page_table_lock)->rlock              1          [<c000000000206a38>] .__do_fault+0x198/0x6b0
  &(&mm->page_table_lock)->rlock         704163          [<c0000000002139d4>] .change_protection+0x1d4/0x560
  &(&mm->page_table_lock)->rlock         207227          [<c000000000213be8>] .change_protection+0x3e8/0x560
  &(&mm->page_table_lock)->rlock             95          [<c000000000207ebc>] .do_numa_page+0x4c/0x190

-aneesh