Skip to content

Epoll: Fix excessive CPU usage when Channel is only registered but no…#16260

Merged
normanmaurer merged 1 commit into5.0from
epoll_cpu5
Feb 12, 2026
Merged

Epoll: Fix excessive CPU usage when Channel is only registered but no…#16260
normanmaurer merged 1 commit into5.0from
epoll_cpu5

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…… (#16250)

…t bound / connected

Motivation:

We should only add a fd (Channel) to epoll onec it is considered active (connected) as otherwise we will receive EPOLLHUP events until it is active. This can lead to excessive CPU usage.

Modifications:

Delay adding of fd to epoll until it is considered active / connected.

Result:

Fixes #16240

#16250)

…t bound / connected

Motivation:

We should only add a fd (Channel) to epoll onec it is considered active
(connected) as otherwise we will receive EPOLLHUP events until it is
active. This can lead to excessive CPU usage.

Modifications:

Delay adding of fd to epoll until it is considered active / connected.

Result:

Fixes #16240
@normanmaurer normanmaurer merged commit 46bbed1 into 5.0 Feb 12, 2026
12 of 13 checks passed
@normanmaurer normanmaurer deleted the epoll_cpu5 branch February 12, 2026 13:07
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant