Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce syscall overhead in native epoll transport when a lot of timeo…
…uts are scheduled(#12145) Motivation: At the moment we might end up calling timerfd_settime everytime a new timer is scheduled. This can produce quite some overhead. We should try to reduce the number of syscalls when possible. Modifications: - If we are using Linux Kernel >= 5.11 use directly epoll_pwait2(...) - If the scheduled timeout is big enough just use epoll_wait(...) without timerfd_settime and accept some inaccuracy. Result: Fixes #11695
- Loading branch information
1 parent
40382fb
commit 86004b7
Showing
3 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters