-
Notifications
You must be signed in to change notification settings - Fork 1.4k
lib: Support epoll APIs in thread management lib #19917
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
base: master
Are you sure you want to change the base?
Conversation
|
oops - I see this is getting flagged because the original code used deprecated hash apis - I'll push a fix |
|
whoops - missed a checkpatch error, pushed a fix; still working on replacing the deprecated hash code |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
converted hash to typesafe apis, and rebased to newer master |
|
CI:rerun |
|
let's run again, see where we are |
|
I've temporarily made epoll the default (where available) so we can do test runs. I've added the "do not merge" tag temporarily too. |
|
CI:rerun |
This commit adds support for epoll APIs for better performance. This is controlled by a configure option. Note that epoll APIs are only available for Linux platforms. For BSD and other linux platforms which do not support epoll APIs, poll APIs are still used. Signed-off-by: Kaifei Peng <[email protected]> Signed-off-by: Mark Stapp <[email protected]>
|
Pushed a couple of updates to stop emitted warning/debug messages in some cases |
Use the typesafe hash lib for the new epoll objects. Also make a few cleanups and adjustments after testing. Signed-off-by: Mark Stapp <[email protected]>
Enable epoll by default, temporarily for testing Signed-off-by: Mark Stapp <[email protected]>
|
pushed an update to handle cancel of closed fds more cleanly, and to use jhash for the epoll fds that we hash. |
This commit substitutes poll APIs with epoll APIs for better performance. Note that epoll APIs are only available for Linux platforms. For BSD and other linux platforms which do not support epoll APIs, poll APIs are still used.
This is a rebase/update of #18126 , which was itself an update of the original PR #12862 . We're going to try to get this work moving forward again.