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: [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context
Date: Thu, 20 Mar 2025 20:32:24 -0700 [thread overview]
Message-ID: <CAADnVQ+=x31Rcjh6-qX1C+d2q0LBRCH=1gPqfKOaMXYx_fkQjw@mail.gmail.com> (raw)
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
next reply other threads:[~2025-03-21 3:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-21 3:32 Alexei Starovoitov [this message]
2025-03-26 16:15 ` Alexei Starovoitov
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='CAADnVQ+=x31Rcjh6-qX1C+d2q0LBRCH=1gPqfKOaMXYx_fkQjw@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