Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@xxxxxxxxxx>: On Wed, 27 Mar 2024 11:20:22 +0800 you wrote: > Following the recent upgrade of one of our BPF programs, we encountered > significant latency spikes affecting other applications running on the same > host. After thorough investigation, we identified that these spikes were > primarily caused by the prolonged duration required to free a > non-preallocated htab with approximately 2 million keys. > > Notably, our kernel configuration lacks the presence of CONFIG_PREEMPT. In > scenarios where kernel execution extends excessively, other threads might > be starved of CPU time, resulting in latency issues across the system. To > mitigate this, we've adopted a proactive approach by incorporating > cond_resched() calls within the kernel code. This ensures that during > lengthy kernel operations, the scheduler is invoked periodically to provide > opportunities for other threads to execute. > > [...] Here is the summary with links: - [bpf-next,v2,1/1] bpf: Mitigate latency spikes associated with freeing non-preallocated htab https://git.kernel.org/bpf/bpf-next/c/cb7b8322017e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html