Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved documentation for the BackoffIdleStrategy. #297

Merged

Conversation

pveentjer
Copy link
Contributor

@pveentjer pveentjer commented Jul 25, 2024

Linux by default will not respect the park windows. It will coalesce timer events in 50 us groups. So if you want to wait e.g. 51 us, it could be you need to wait 100 us.

Some documentation was added to explain this and how this can be improved.

For more info see:
https://hazelcast.com/blog/locksupport-parknanos-under-the-hood-and-the-curious-case-of-parking/
https://bugs.openjdk.org/browse/JDK-8307766

@pveentjer pveentjer changed the title Improved documentation for the BackoffIdleStrategy. [WIP] Improved documentation for the BackoffIdleStrategy. Jul 25, 2024
@pveentjer pveentjer changed the title [WIP] Improved documentation for the BackoffIdleStrategy. Improved documentation for the BackoffIdleStrategy. Aug 2, 2024
Linux by default will not respect the park windows. It will coalesce
timer events in 50 us groups. So if you want to wait e.g. 51 us, it
could be you need to wait 100 us.

Some documentation was added to explain this and how this can be
improved.
@pveentjer pveentjer force-pushed the doc/BackoffIdleStrategy-timerslack branch from 73beebd to caedd72 Compare August 2, 2024 11:25
@JPWatson JPWatson merged commit 2f64107 into real-logic:master Aug 2, 2024
14 checks passed
@pveentjer pveentjer deleted the doc/BackoffIdleStrategy-timerslack branch October 24, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants