* [LSF/MM/BPF TOPIC] BPF libarena Development and
@ 2026-02-03 17:21 Emil Tsalapatis
2026-03-01 2:15 ` Cong Wang
0 siblings, 1 reply; 2+ messages in thread
From: Emil Tsalapatis @ 2026-02-03 17:21 UTC (permalink / raw)
To: lsf-pc, bpf
Hello everyone,
I'd like to propose a session on the BPF libarena library under
development[1]. The details on how this library should be developed,
managed, and provided to users are still open. The session would let
us discuss those topics, along with sharing an overview of libarena
itself.
libarena is a collection of arena-based code that will live in
tools/testing/selftests/bpf/libarena and will provide a runtime
for arena-based programs. The library currently includes memory
allocators and an ASAN runtime for BPF arena memory, and will
be expanded with arena-based implementations of data structures
for development like B-trees, RB-trees, and heaps. The end result
will look similar to the BPF arena library used by sched_ext[2].
Users will statically link the arena library into their code at
compile time.
Possible issues for discussion:
- What kind of code/functionality are we interested in hosting
in the library?
- How should the library be provided to users? (e.g. new repo
in the libbpf org)
- BPF core features/adjustments for libarena development
- ASAN status, feedback and possible followups
- General usability feedback
[1] https://lore.kernel.org/bpf/20260127181610.86376-1-emil@etsalapatis.com
[2] https://github.com/sched-ext/scx/tree/main/lib
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LSF/MM/BPF TOPIC] BPF libarena Development and
2026-02-03 17:21 [LSF/MM/BPF TOPIC] BPF libarena Development and Emil Tsalapatis
@ 2026-03-01 2:15 ` Cong Wang
0 siblings, 0 replies; 2+ messages in thread
From: Cong Wang @ 2026-03-01 2:15 UTC (permalink / raw)
To: Emil Tsalapatis; +Cc: lsf-pc, bpf
On Tue, Feb 03, 2026 at 12:21:43PM -0500, Emil Tsalapatis wrote:
> Hello everyone,
>
> I'd like to propose a session on the BPF libarena library under
> development[1]. The details on how this library should be developed,
> managed, and provided to users are still open. The session would let
> us discuss those topics, along with sharing an overview of libarena
> itself.
>
> libarena is a collection of arena-based code that will live in
> tools/testing/selftests/bpf/libarena and will provide a runtime
> for arena-based programs. The library currently includes memory
> allocators and an ASAN runtime for BPF arena memory, and will
> be expanded with arena-based implementations of data structures
> for development like B-trees, RB-trees, and heaps. The end result
> will look similar to the BPF arena library used by sched_ext[2].
> Users will statically link the arena library into their code at
> compile time.
Interesting, I have prototyped similar concepts in KernelScript [1],
the biggest difference is that they are built into the language [2], like
how Python handles data structures naturally.
1. https://github.com/multikernel/kernelscript
2. https://github.com/multikernel/kernelscript/tree/linked_list
Hope this helps.
Regards,
Cong Wang
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-01 2:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 17:21 [LSF/MM/BPF TOPIC] BPF libarena Development and Emil Tsalapatis
2026-03-01 2:15 ` Cong Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox