Navigation
Search
|
[$] A memory allocator for BPF code
Friday February 4, 2022. 04:36 PM , from LWN.net
Loading a BPF program into the kernel involves a lot of steps, including
verification, permissions checking, linking to in-kernel helper functions, and compilation to the native instruction format. Underneath all of that, though, lies one other simple task: allocating some memory to store the compiled BPF program in the kernel's address space. It turns out that this allocation can be somewhat wasteful of memory in current kernels, especially on systems where large numbers of BPF programs are loaded. This patch set from Song Liu seeks to remedy this problem by introducing yet another specialized memory allocator into the kernel.
https://lwn.net/Articles/883454/rss
|
25 sources
Current Date
Apr, Fri 26 - 00:08 CEST
|