cmcfarlen opened a new pull request, #12602: URL: https://github.com/apache/trafficserver/pull/12602
We have noticed that under high RPS loads ATS spends measurable amount of time just getting the current time. In #10163, after some benchmarks, we changed from using a thread-local variable to cache the time to just calling `ink_get_hrtime` which fixed the time issue we had as well as increased RPS for some benchmarks. That PR replaced all references to the time cache variable with calls to `ink_get_hrtime`. That meant, however, that each iteration through the event loop calls `ink_get_hrtime` multiple times, including one time for each event processed. This PR attempts to relax that a bit, but also provides a knob to control how often the event loop time is updated (as a percentage chance to be updated after an event is processed). More often can lead to more accurate timers, but also increases the number of calls to get the time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
