Re: [PATCH v4 bpf 3/4] module: introduce module_alloc_huge

From: Rik van Riel
Date: Fri Apr 15 2022 - 14:06:32 EST


On Fri, 2022-04-15 at 09:44 -0700, Song Liu wrote:
> Introduce module_alloc_huge, which allocates huge page backed memory
> in
> module memory space. The primary user of this memory is bpf_prog_pack
> (multiple BPF programs sharing a huge page).
>
> Signed-off-by: Song Liu <song@xxxxxxxxxx>

Looks like the BPF might end up being the only user.

On my system I don't see one single kernel module that is
large enough to use an entire hugepage.

Oh well, it's a simple enough interface...

Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>