Re: [PATCH v4] kprobes,lib: kretprobe scalability improvement

From: wuqiang
Date: Thu Nov 03 2022 - 12:48:15 EST


On 2022/11/3 05:33, Andrew Morton wrote:
On Wed, 2 Nov 2022 10:30:12 +0800 wuqiang <wuqiang.matt@xxxxxxxxxxxxx> wrote:

Tests of
kretprobe throughput show the biggest ratio as 333.9x of the original
freelist.

Seriously.

I'll add this for some runtime testing.

Thanks.


Are you able to identify other parts of the kernel which could use
(and benefit from) the new objpool?

The scalability issue is caused by freelist. Currently kretprobe and rethook are the only use cases.

I'm working on the evaluation of bpf percpu-freelist, which scales well but uses raw_spinlock and needs local irq disabled.