Skip to content

flexible size for bpf_prog_pack

Song Liu bpf linux-mm netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vmalloc: expose vmap_allow_huge via get_vmap_allow_huge()include/linux/vmalloc.h mm/vmalloc.c+6 -00 replies
2/2bpf: flexible size for bpf_prog_packkernel/bpf/core.c+27 -205 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] flexible size for bpf_prog_pack

There are two issues with bpf_prog_pack:

(1) On NUMA systems, bpf_prog_pack need to be bigger (PMD_SIZE * num_online_nodes) to use huge pages.
(2) If the system doesn't support huge pages (nohugevmalloc in cmdline), allocating PMD_SIZE for bpf_prog_pack is a waste.

Address these issues with flexible bpf_prog_pack_size().

Song Liu (2):
vmalloc: expose vmap_allow_huge via get_vmap_allow_huge()
bpf: flexible size for bpf_prog_pack

 include/linux/vmalloc.h |  1 +
 kernel/bpf/core.c       | 47 +++++++++++++++++++++++------------------
 mm/vmalloc.c            |  5 +++++
 3 files changed, 33 insertions(+), 20 deletions(-)

--
2.30.2