[crac] RFR: 8321660: [CRaC] Trim native heap before checkpoint to decrease image size [v2]
Volker Simonis
simonis at openjdk.org
Mon Dec 11 14:53:54 UTC 2023
> Before checkpointing, we should trim the native C-heap in order to decrease the size of the generated CRaC image.
>
> Without C-heap trimming, the size of a HelloWorld image is ~32m and the one for SpringPetclinic ~209m. If we trim the C-heap before checkpointin, the image size decreses to ~30m for HelloWorld and 170m for SpringPetclinic.
>
> I've also added a new logging tag `crac` because I think it would be nice to log more CRaC details/internals in universal logging.
>
> Please let me know what you think?
Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
Include os_linux.inline.hpp instead of os_linux.hpp to get inline os::can_trim_native_heap()
-------------
Changes:
- all: https://git.openjdk.org/crac/pull/148/files
- new: https://git.openjdk.org/crac/pull/148/files/4646524a..52005385
Webrevs:
- full: https://webrevs.openjdk.org/?repo=crac&pr=148&range=01
- incr: https://webrevs.openjdk.org/?repo=crac&pr=148&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/crac/pull/148.diff
Fetch: git fetch https://git.openjdk.org/crac.git pull/148/head:pull/148
PR: https://git.openjdk.org/crac/pull/148
More information about the crac-dev
mailing list