RFR: 8315923: pretouch_memory by atomic-add-0 fragments huge pages unexpectedly [v3]
Liming Liu
duke at openjdk.org
Mon Oct 9 08:00:16 UTC 2023
On Fri, 29 Sep 2023 07:08:19 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> PretouchTask attempts to parallelize the pretouching. How well does that work with the use of MADV_POPULATE_WRITE?
I tested it on 64c aarch64 machines with 24GB heaps, 64 gc threads and kernel 6.1, and the startup time of JVM was changed from 0.27s to 0.33s when transparent huge pages (THP) were disabled, while the startup time was reduced from 3.54s to 0.33s when THP were used. The point of the use of MADV_POPULATE_WRITE is to avoid kernel from copying small pages around to form a huge page, and this behavior was cause by https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3917c80280c9
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15781#issuecomment-1752510098
More information about the hotspot-runtime-dev
mailing list