RFR: 8307766: Linux: Provide the option to override the timer slack

David Holmes dholmes at openjdk.org
Tue May 23 08:55:01 UTC 2023


On Tue, 23 May 2023 08:19:16 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Perhaps this LWN article would help ...

Thanks. So are timer events only coalesced within a process, or is this system wide? I'm guessing the basic operation is that if a thread requests a "timed wait" that would require a timer event at time T1, but there already exists a timer event for time T2, (T2 > T1) then if T2-T1 < timer-slack then an event for T1 is not created and we piggy-back on the event for T2 instead. So the lower the slack the more likely we get our own timer-event and so get a resolution closer to that of the h/w, but it also means we have more timer-events to process so that could lower the resolution again.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13889#issuecomment-1558839048


More information about the hotspot-runtime-dev mailing list