From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: lsf-pc <lsf-pc@lists.linux-foundation.org>,
linux-mm <linux-mm@kvack.org>, bpf <bpf@vger.kernel.org>,
Vlastimil Babka <vbabka@suse.cz>,
Sebastian Sewior <bigeasy@linutronix.de>,
Michal Hocko <mhocko@suse.com>,
Andrew Morton <akpm@linux-foundation.org>,
Dan Williams <dan.j.williams@intel.com>,
Hou Tao <houtao1@huawei.com>,
Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>
Subject: Re: [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context
Date: Wed, 26 Mar 2025 12:15:44 -0400 [thread overview]
Message-ID: <CAADnVQKfkGxudNUkcPJgwe3nTZ=xohnRshx9kLZBTmR_E1DFEg@mail.gmail.com> (raw)
In-Reply-To: <CAADnVQ+=x31Rcjh6-qX1C+d2q0LBRCH=1gPqfKOaMXYx_fkQjw@mail.gmail.com>
On Thu, Mar 20, 2025 at 11:32 PM Alexei Starovoitov
<alexei.starovoitov@gmail.com> wrote:
>
> A year ago Vlastimil kicked off a discussion:
> "What's next for the SLUB allocator"
> https://lwn.net/Articles/974138/
>
> One of the proposed goals was to adopt slub allocator to use cases
> where bespoke allocators are currently used either due to
> performance requirements or context restrictions.
> bpf_mem_alloc, kretprobe's objpool, mempool were mentioned
> as initial targets. netpoll should probably be on that list too.
>
> Performance might be addressed by sheaves
> while context restrictions are more difficult to solve.
> bpf, kretprobe, netpool don't know the context where they
> might be called. Currently bpf, kretprobe handler preallocate.
> Preallocated pools pin memory to one subsystem make it
> unavailable to the rest of the kernel.
> This has to be fixed. mm subsystem needs to own, share,
> distribute the memory.
>
> Agenda for the discussion:
> - discuss and agree on problem statement
> what is being solved, why, requirements of the solution
> - discuss pros and cons of the existing design that we
> made a bunch of progress on
> - brainstorm next steps
Here are the slides from the talk:
https://github.com/4ast/docs/blob/main/Reentrant%20kmalloc.pdf
prev parent reply other threads:[~2025-03-26 16:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-21 3:32 Alexei Starovoitov
2025-03-26 16:15 ` Alexei Starovoitov [this message]
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='CAADnVQKfkGxudNUkcPJgwe3nTZ=xohnRshx9kLZBTmR_E1DFEg@mail.gmail.com' \
--to=alexei.starovoitov@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bigeasy@linutronix.de \
--cc=bpf@vger.kernel.org \
--cc=dan.j.williams@intel.com \
--cc=houtao1@huawei.com \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=mhiramat@kernel.org \
--cc=mhocko@suse.com \
--cc=rostedt@goodmis.org \
--cc=vbabka@suse.cz \
/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