bell-sw / LibericaNIK

Native Image Kit
4 stars 0 forks source link

Status of ParallelGC #22

Open luneo7 opened 3 months ago

luneo7 commented 3 months ago

I've read that ParallelGC was added to Liberica NIK, but there are no docs about it (settings that you can set), and there was also no update on its state, if it is now production ready or not. So what is the current state of the ParallelGC?

voitylov commented 3 months ago

We are working on a document that highlights SerialGC and ParallelGC. Meanwhile, please refer to https://bell-sw.com/blog/new-version-of-liberica-nik-23-0-with-parallelgc-is-available/

Basically, there are two knobs:

luneo7 commented 3 months ago

Is it still experimental? Or are we production ready?

luneo7 commented 2 months ago

I've read the source code...it seems that there is plenty room for improvement... it would be nice to have the code in git so we can also try to help... for what it is worth, doing some internal load tests and for an application that handle a lot of short lived requests the following parameters showed good results:

-march=native --gc=parallel -R:ParallelGCThreads=4 -R:MaximumYoungGenerationSizePercent=25 -H:MaxSurvivorSpaces=10