Thread (8 messages) flat view 8 messages, 2 authors, 2022-03-29

Re: [PATCH v9 bpf-next 1/9] x86/Kconfig: select HAVE_ARCH_HUGE_VMALLOC with HAVE_ARCH_HUGE_VMAP

From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
Date: 2022-03-29 21:36:18
Also in: bpf, lkml

On Tue, 2022-03-29 at 19:13 +0000, Song Liu wrote:
quoted
I don't think we should tie this to vmap_allow_huge by definition.
Also, what it does is try 2MB pages for allocations larger than
2MB.
For smaller allocations it doesn't try or "prefer" them.
How about something like:

#define VM_TRY_HUGE_VMAP        0x00001000      /* try PMD_SIZE
mapping if size-per-node >= PMD_SIZE */
Seems reasonable name. I don't know if "size-per-node >= PMD_SIZE" is
going to be useful information. Maybe something like:

/* Allow for huge pages on HAVE_ARCH_HUGE_VMALLOC_FLAG arch's */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help