-
Notifications
You must be signed in to change notification settings - Fork 877
add support for busypolling #3462
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
…e being passed into open_inet_listener and adjust the logic in create_per_thread_nic_map_listeners to call finish_open_listener for all listeners
3feaff9 to
4a6a7ab
Compare
4a6a7ab to
fff1b13
Compare
cfec1b9 to
9be384e
Compare
…ate iface being passed into open_inet_listener and adjust the logic in create_per_thread_nic_map_listeners to call finish_open_listener for all listeners" This reverts commit daf55c7.
9be384e to
a53af73
Compare
febb4fe to
e55be3c
Compare
ef09964 to
1f8387d
Compare
70c5bd5 to
426b9d8
Compare
426b9d8 to
e321105
Compare
kazuho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes! I like how the changes are becoming isolated.
Co-authored-by: Kazuho Oku <kazuhooku@gmail.com>
kazuho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for all the changes. I really like what we have now, all my comments below are nitpicks.
I might try myself to see if we can further reduce the changes to src/main.c, but I am starting to guess I'd fail, as it already looks quite polished up.
Co-authored-by: Kazuho Oku <kazuhooku@gmail.com>
Co-authored-by: Kazuho Oku <kazuhooku@gmail.com>
Co-authored-by: Kazuho Oku <kazuhooku@gmail.com>
|
there's a bug in the loopback setup with this branch, issuing two requests to loopback causes it to fail: which shouldn't happen -- the right listener fd is being awoken, so either:
possibly worth adding a test which makes multiple requests to both loopback and non-loopback interfaces? |
in the same logic runs after the sends to the netdevsim interfaces as well, im not sure why it's not triggering the behavior you are seeing. |
Because the test is incorrect. If you change the test configuration according to the following diff: the problem reproduces: |
This originated with the change to add the serving cpu index to as a logging directive, the |
This pr add busypolling support to h2o. It is linux only.
For notes on busy polling and its internals, please see the following:
The current implementation make several assumptions that may need further thought
num-threadswill be equivalent to the number of cpus configured in the busypoll map.mode: OFFin the options subsection.