mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: wuqiang <wuqiang.matt@bytedance.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mhiramat@kernel.org, davem@davemloft.net,
	anil.s.keshavamurthy@intel.com, naveen.n.rao@linux.ibm.com,
	rostedt@goodmis.org, peterz@infradead.org, sander@svanheule.net,
	ebiggers@google.com, dan.j.williams@intel.com,
	jpoimboe@kernel.org, linux-kernel@vger.kernel.org,
	mattwu@163.com, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH v4] kprobes,lib: kretprobe scalability improvement
Date: Fri, 4 Nov 2022 00:46:55 +0800	[thread overview]
Message-ID: <3fb41114-4ccf-bfc2-dc02-9379aec0415e@bytedance.com> (raw)
In-Reply-To: <20221102143312.a1b09fe962e8e1057fd4a872@linux-foundation.org>

On 2022/11/3 05:33, Andrew Morton wrote:
> On Wed,  2 Nov 2022 10:30:12 +0800 wuqiang <wuqiang.matt@bytedance.com> 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.

  reply	other threads:[~2022-11-03 16:48 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-01  1:43 [PATCH v3] " wuqiang
2022-11-01 12:27 ` kernel test robot
2022-11-02  2:30 ` [PATCH v4] " wuqiang
2022-11-02 21:33   ` Andrew Morton
2022-11-03 16:46     ` wuqiang [this message]
2022-11-03  2:51   ` Masami Hiramatsu
2022-11-03 16:45     ` wuqiang
2022-11-04  1:28       ` Masami Hiramatsu
2022-11-06  5:34   ` [PATCH v5 0/4] lib,kprobes: " wuqiang
2022-11-06  5:34     ` [PATCH v5 1/4] lib: objpool added: ring-array based lockless MPMC queue wuqiang
2022-11-06  5:34     ` [PATCH v5 2/4] lib: objpool test module added wuqiang
2022-11-06  5:34     ` [PATCH v5 3/4] kprobes: kretprobe scalability improvement with objpool wuqiang
2022-11-06  5:34     ` [PATCH v5 4/4] kprobes: freelist.h removed wuqiang
2022-11-08  7:14   ` [PATCH v6 0/4] lib,kprobes: kretprobe scalability improvement wuqiang
2022-11-08  7:14     ` [PATCH v6 1/4] lib: objpool added: ring-array based lockless MPMC queue wuqiang
2022-11-14 15:54       ` Masami Hiramatsu
2022-11-16 10:42         ` wuqiang
2022-11-08  7:14     ` [PATCH v6 2/4] lib: objpool test module added wuqiang
2022-11-08  7:14     ` [PATCH v6 3/4] kprobes: kretprobe scalability improvement with objpool wuqiang
2022-11-14 15:56       ` Masami Hiramatsu
2022-11-14 15:56       ` Masami Hiramatsu
2022-11-16 10:49         ` wuqiang
2022-11-08  7:14     ` [PATCH v6 4/4] kprobes: freelist.h removed wuqiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3fb41114-4ccf-bfc2-dc02-9379aec0415e@bytedance.com \
    --to=wuqiang.matt@bytedance.com \
    --cc=akpm@linux-foundation.org \
    --cc=anil.s.keshavamurthy@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=davem@davemloft.net \
    --cc=ebiggers@google.com \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mattwu@163.com \
    --cc=mhiramat@kernel.org \
    --cc=naveen.n.rao@linux.ibm.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=sander@svanheule.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®