* [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context
@ 2025-03-21 3:32 Alexei Starovoitov
2025-03-26 16:15 ` Alexei Starovoitov
0 siblings, 1 reply; 2+ messages in thread
From: Alexei Starovoitov @ 2025-03-21 3:32 UTC (permalink / raw)
To: lsf-pc, linux-mm, bpf, Vlastimil Babka, Sebastian Sewior,
Michal Hocko, Andrew Morton, Dan Williams, Hou Tao,
Steven Rostedt, Masami Hiramatsu
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context
2025-03-21 3:32 [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context Alexei Starovoitov
@ 2025-03-26 16:15 ` Alexei Starovoitov
0 siblings, 0 replies; 2+ messages in thread
From: Alexei Starovoitov @ 2025-03-26 16:15 UTC (permalink / raw)
To: lsf-pc, linux-mm, bpf, Vlastimil Babka, Sebastian Sewior,
Michal Hocko, Andrew Morton, Dan Williams, Hou Tao,
Steven Rostedt, Masami Hiramatsu
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-26 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-21 3:32 [LSF/MM/BPF TOPIC] Reentrant kmalloc usable from any context Alexei Starovoitov
2025-03-26 16:15 ` Alexei Starovoitov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox