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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2022-03-29 at 19:13 +0000, Song Liu wrote:
> > 
> > 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 */




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux