Thread (4 messages) flat view 4 messages, 4 authors, 2d ago

Re: [PATCH net-next] net: openvswitch: don't schedule rebalancing if there are no datapaths

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-04 00:51:16
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Wed,  2 Sep 2026 22:30:41 +0200 you wrote:
During namespace initialization the masks rebalancing work is
scheduled and automatically re-scheduled every 4 seconds afterwards.
This is happening in every namespace.  On a large kubernetes node with
500 pods, i.e., 500+ namespaces, this creates a decent amount of
unnecessary churn scheduling 500 jobs every 4 seconds that take the
mutex, check that there are no datapaths in their namespace, release
the mutex, re-schedule themselves and exit.  These 500 unnecessary
mutex locks may hold off operations in a single namespace that
actually has a datapath configured and has real user requests to
handle under this lock.  They can also add delay to removal of other
namespaces as ovs_exit_net() needs to take that lock as well and
synchronously waits for the work to be cancelled.

[...]
Here is the summary with links:
  - [net-next] net: openvswitch: don't schedule rebalancing if there are no datapaths
    https://git.kernel.org/netdev/net-next/c/6ebcf5074cff

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help