Skip to content

ext/sockets: adding SO_BUSY_POLL socket option for Linux. #17954

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

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Mar 1, 2025

To possibly reduce the latency when polling packets by activating it from the network interface for N microseconds.
The kernel by doing so, increase the CPU(s) activity bound to the socket significantly.
Note that not only the kernel needs to have support enabled for it (which the average distribution usually does) but the network interface itself needs to support it too. If not, it is just a no-op.

To possibly reduce the latency when polling packets by activating it
from the network interface for N microseconds.
The kernel by doing so, increase the CPU(s) activity bound to
the socket significantly.
Note that not only the kernel needs to have support enabled for it
(which the average distribution usually does) but the network
interface itself needs to support it too. If not, it is just a no-op.
@devnexen devnexen force-pushed the socket_so_busy_poll branch from a002367 to 3ae0edc Compare March 1, 2025 18:44
@devnexen devnexen marked this pull request as ready for review March 1, 2025 18:46
@devnexen devnexen requested a review from kocsismate as a code owner March 1, 2025 18:46
@devnexen devnexen merged commit 21fd08b into php:master Mar 11, 2025
9 checks passed
@devnexen devnexen deleted the socket_so_busy_poll branch March 11, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant