Re: [PATCH v10 3/5] kprobes: kretprobe scalability improvement with objpool

2023-10-16 Thread wuqiang.matt
On 2023/10/16 21:21, Masami Hiramatsu (Google) wrote: On Sun, 15 Oct 2023 13:32:49 +0800 "wuqiang.matt" wrote: kretprobe is using freelist to manage return-instances, but freelist, as LIFO queue based on singly linked list, scales badly and reduces the overall throughput of kretprobed

Re: [PATCH v10 3/5] kprobes: kretprobe scalability improvement with objpool

2023-10-16 Thread Google
On Sun, 15 Oct 2023 13:32:49 +0800 "wuqiang.matt" wrote: > kretprobe is using freelist to manage return-instances, but freelist, > as LIFO queue based on singly linked list, scales badly and reduces > the overall throughput of kretprobed routines, especially for high > contention scenarios. > >

[PATCH v10 3/5] kprobes: kretprobe scalability improvement with objpool

2023-10-14 Thread wuqiang.matt
kretprobe is using freelist to manage return-instances, but freelist, as LIFO queue based on singly linked list, scales badly and reduces the overall throughput of kretprobed routines, especially for high contention scenarios. Here's a typical throughput test of sys_prctl (counts in 10 seconds,