Re: [PATCH v6 0/2] Optimize performance of update hash-map when free is zero
From: patchwork-bot+netdevbpf
Date: Sat Jun 11 2022 - 17:40:25 EST
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Fri, 10 Jun 2022 10:33:06 +0800 you wrote:
> From: Feng Zhou <zhoufeng.zf@xxxxxxxxxxxxx>
>
> We encountered bad case on big system with 96 CPUs that
> alloc_htab_elem() would last for 1ms. The reason is that after the
> prealloc hashtab has no free elems, when trying to update, it will still
> grab spin_locks of all cpus. If there are multiple update users, the
> competition is very serious.
>
> [...]
Here is the summary with links:
- [v6,1/2] bpf: avoid grabbing spin_locks of all cpus when no free elems
https://git.kernel.org/bpf/bpf-next/c/54a9c3a42d92
- [v6,2/2] selftest/bpf/benchs: Add bpf_map benchmark
https://git.kernel.org/bpf/bpf-next/c/89eda98428ce
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html