Skip to content

Conversation

@thallium
Copy link
Contributor

@thallium
Copy link
Contributor Author

@tajila @babsingh please review

@tajila tajila requested a review from gacholio November 13, 2025 16:48
@thallium thallium force-pushed the park2 branch 3 times, most recently from 23c59eb to d4dd69f Compare November 13, 2025 20:56
@thallium thallium changed the title Add park sleep related options and a CPU util cache thread Add park sleep related options and CPU util caculation code Nov 13, 2025
@thallium
Copy link
Contributor Author

  • Moved default config value to here instead of OMR
  • Get rid of the CPU utilization calculation thread and moved the code to timeCompensationHelper.
#endif /* defined(J9VM_OPT_CRIU_SUPPORT) */
#if defined(OMR_THR_YIELD_ALG)
static UDATA parkPolicy = **(UDATA **)omrthread_global((char *)"parkPolicy");
if (2 == parkPolicy) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is 2? This needs to be a constant with a meaningful name.

@thallium thallium force-pushed the park2 branch 2 times, most recently from f1535ae to 16d53e3 Compare November 14, 2025 15:44
@tajila
Copy link
Contributor

tajila commented Nov 14, 2025

jenkins test sanity.functional xlinux jdk17

Enable sleep in park on X86 and Power. Default sleep configuration is set based on experiments done using restCrud on Quarkus with wrk as the load generator. With the current default configuration, we observed: - ~20% throughput improvement on RHEL9 (Intel Skylake) - ~8% improvement on RHEL10 (Intel Raptor Lake) - ~11% improvement on pLinux Depends on eclipse-omr/omr#8039 Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants