Integrated: 8349713: [leyden] Memory map the cached code file

Aleksey Shipilev shade at openjdk.org
Wed Feb 12 16:33:33 UTC 2025


On Mon, 10 Feb 2025 12:14:11 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> It is visible in profiles for lots of applications that reading the SC cache file at startup costs significantly. On JavacBenchApp example, loading ~25M code requires about 30ms. This is ~1 GB/sec, so it is I/O limited.
> 
> We should really mmap the SC cache file to alleviate these costs. Let the actual SC readers (separate threads) to eat the cost of reading from the backing file. 
> 
> I was not entirely sure COW for file mappings works correctly on Windows, so I excepted that one.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `runtime/cds`

This pull request has now been integrated.

Changeset: 79f7e616
Author:    Aleksey Shipilev <shade at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL:       https://git.openjdk.org/leyden/commit/79f7e6168f212312247340151b786089eee0a40b
Stats:     33 lines in 2 files changed: 21 ins; 2 del; 10 mod

8349713: [leyden] Memory map the cached code file

Reviewed-by: kvn, iklam

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

PR: https://git.openjdk.org/leyden/pull/34


More information about the leyden-dev mailing list