Skip to content

Reduce the pte framgment size.

Aneesh Kumar K.V linuxppc-dev 2 versions – In review

Get series with b4
b4 am 1448274825-30289-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first · linked by author and title

  1. v2 Latest10 patches 2 repliesIn review
  2. v1 RFC7 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* rebased on top of 4.3 + change pte format series
* Use H_READ_4 so that we read 4 hpte slot information in single hcall.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10powerpc/mm: Don't hardcode page table sizearch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/nohash/64/pgtable-64k.h arch/powerpc/include/asm/pgalloc-64.h +1 more+41 -250 replies
2/10powerpc/mm: Don't hardcode the hash pte slot shiftarch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/include/asm/nohash/64/pgtable.h+3 -30 replies
3/10powerpc/nohash: Update 64K nohash config to have 32 pte fragementarch/powerpc/include/asm/nohash/64/pgtable-64k.h+3 -30 replies
4/10powerpc/nohash: we don't use real_pte_t for nohasharch/powerpc/include/asm/nohash/64/pgtable.h+0 -330 replies
5/10powerpc/mm: Use H_READ with H_READ_4arch/powerpc/include/asm/plpar_wrappers.h arch/powerpc/platforms/pseries/lpar.c+44 -270 replies
6/10powerpc/mm: Don't track 4k subpage information with 64k linux page sizearch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/include/asm/machdep.h +6 more+127 -560 replies
7/10powerpc/mm: update PTE frag sizearch/powerpc/include/asm/book3s/64/hash-64k.h+3 -32 replies
8/10powerpc/mm: Update pte_iterate_hashed_subpages argsarch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/mm/hash_native_64.c +2 more+15 -170 replies
9/10powerpc/mm: Drop real_pte_t usagearch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/include/asm/nohash/64/pgtable-64k.h +8 more+43 -860 replies
10/10powerpc/mm: Optmize the hashed subpage iterationarch/powerpc/include/asm/book3s/64/hash-64k.h arch/powerpc/include/asm/book3s/64/pgtable.h arch/powerpc/mm/hash64_64k.c +3 more+55 -270 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 00/10] Reduce the pte framgment size.

Hi,

This patch series update 4k subpage tracking in pte page, thereby reducing the ptefragment size. This results in us allocating less number of pgtable_t for an application. One of the side effect is that we now make and hcall to find out whether a 4k subpage is present in the hash page table or not. We try to optmize that in patch "powerpc/mm: Optmize the hashed subpage iteration"

Changes from V1:
* rebased on top of 4.3 + change pte format series
* Use H_READ_4 so that we read 4 hpte slot information in single hcall.

Aneesh Kumar K.V (10):
powerpc/mm: Don't hardcode page table size
powerpc/mm: Don't hardcode the hash pte slot shift powerpc/nohash: Update 64K nohash config to have 32 pte fragement powerpc/nohash: we don't use real_pte_t for nohash powerpc/mm: Use H_READ with H_READ_4
powerpc/mm: Don't track 4k subpage information with 64k linux page
size
powerpc/mm: update PTE frag size
powerpc/mm: Update pte_iterate_hashed_subpages args powerpc/mm: Drop real_pte_t usage
powerpc/mm: Optmize the hashed subpage iteration

 arch/powerpc/include/asm/book3s/64/hash-64k.h    |  82 ++++++++-----------
 arch/powerpc/include/asm/book3s/64/pgtable.h     |  35 ++++----
 arch/powerpc/include/asm/machdep.h               |   1 +
 arch/powerpc/include/asm/nohash/64/pgtable-64k.h |  21 ++++-
 arch/powerpc/include/asm/nohash/64/pgtable.h     |  33 --------
 arch/powerpc/include/asm/page.h                  |  15 ----
 arch/powerpc/include/asm/pgalloc-64.h            |  10 ---
 arch/powerpc/include/asm/plpar_wrappers.h        |  17 ++++
 arch/powerpc/include/asm/tlbflush.h              |   4 +-
 arch/powerpc/mm/hash64_64k.c                     | 100 ++++++++++++++---------
 arch/powerpc/mm/hash_native_64.c                 |  55 +++++++++++--
 arch/powerpc/mm/hash_utils_64.c                  |  13 +--
 arch/powerpc/mm/init_64.c                        |   7 +-
 arch/powerpc/mm/pgtable_64.c                     |   6 +-
 arch/powerpc/mm/tlb_hash64.c                     |  15 ++--
 arch/powerpc/platforms/pseries/lpar.c            |  90 +++++++++++++-------
 16 files changed, 279 insertions(+), 225 deletions(-)
Signature · 1 line
2.5.0