RFR: 8276055: ZGC: Defragment address space [v2]

Per Liden pliden at openjdk.java.net
Wed Oct 27 14:45:40 UTC 2021


> In ZGC, small pages are allocated from the beginning of the address space (low addresses), while medium and large pages are allocated from the end of the address space (high addresses). However, small pages can sometimes end up on a high address if a medium or a large page was split into small pages. Over time this can cause the address space to become fragmented, with the risk of eventually running out of address space for new large allocations.
> 
> To mitigate this, we can defragment the address space by letting small pages at high addresses be remapped to lower addresses. That's what this patch does.
> 
> Testing:
>  - Tier 1-7 with ZGC on Linux/x86_64
>  - SPECjbb2015 shows no regression
>  - Manually ran test that tries to fragment the address space

Per Liden has updated the pull request incrementally with one additional commit since the last revision:

  Renames

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/6137/files
  - new: https://git.openjdk.java.net/jdk/pull/6137/files/cbd5b6b3..5b7b8e96

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6137&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6137&range=00-01

  Stats: 17 lines in 7 files changed: 0 ins; 0 del; 17 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6137.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6137/head:pull/6137

PR: https://git.openjdk.java.net/jdk/pull/6137



More information about the hotspot-gc-dev mailing list