Skip to content

Use SO_INCOMING_CPU with bound ports #5165

Closed

Description

@zwoop

When we migrate to use SO_REUSEPORT and bind the listening ports on all ET_NET threads, we should use SO_INCOMING_CPU too. It should be optional and perhaps somehow associated with the feature we already have of CPU affinity for threads.

Activity

  1. self-assigned this
    on May 16, 2024
  2. bryancall commented on Jun 28, 2026

    @bryancall
    Contributor

    SO_INCOMING_CPU support was added in #11366 (first released in the 10.0.0 release; in the current 10.1.2 release). It's an optional socket option (net.sock_option_flag_in) that binds to the listening thread's CPU affinity, alongside the per-thread SO_REUSEPORT path, exactly as this issue requested. Closing as done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions