Gradle fingerprinting task input super slow on linux

Hi,
I use linux CI to run our project (pretty large with 300+ module) and fingerprinting takes around 20m or above for full build.

Some up-to-date task taking 40-60 sec/each to complete. When using gradle benchmark to try compile avoidance (when most task should be up-to-date) 1st and 2nd build fingerprinting super slow, but 3rd and 4th build getting faster.

If im comparing this to our mac OS build, it is only takes 5minutes for fingerprinting on full build, and each task mostly only takes less than 5 sec.

Is there something i can do to debug this issue and optimize fingerprinting on linux? or it is related to machine limitation?

Thank you in advance