RFR: 8255237: ZGC: Bulk free garbage pages during relocation set selection [v2]
Per Liden
pliden at openjdk.java.net
Tue Oct 27 11:09:38 UTC 2020
> During relocation set selection, we immediately free garbage (empty) pages. On very large heap, which has a very high number of garbage pages we can make a significant number of calls to free pages, which prolongs the "Concurrent Select Relocation Set" phase. Freeing a page involves grabbing a lock, inserting the page into the page cache, and then try to satisfy any stalled allocation. By freeing empty pages in bulk, we can amortize the some of the cost of freeing a page and speed up this phase. With this patch we free (up to) 64 pages in bulk.
>
> This PR depends on "8255234: ZGC: Bulk allocate forwarding data structures" and "8255235: ZGC: Allocate and initialize forwarding data structures in parallel", which are separate PRs (#804 and #805).
>
> This patch was joint work with Albert (ayang).
Per Liden has updated the pull request incrementally with one additional commit since the last revision:
Add comment
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/806/files
- new: https://git.openjdk.java.net/jdk/pull/806/files/29d24bbe..132efd58
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=806&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=806&range=00-01
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/806.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/806/head:pull/806
PR: https://git.openjdk.java.net/jdk/pull/806
More information about the hotspot-gc-dev
mailing list