On 8/27/20 12:53 AM, Li RongQing wrote:
> when changes the rx/tx ring to 4096, kzalloc may fail due to
> a temporary shortage on slab entries.
>
> kvmalloc is used to allocate this memory as there is no need
> to have this memory area physical continuously.
>
> Signed-off-by: Li RongQing <lirongq...@baidu.com>
> ---
Well, fallback to vmalloc() overhead because order-1 pages are not readily
available
when the NIC is setup (usually one time per boot)
is adding TLB cost at run time, for billions of packets to come, maybe for
months.
Surely trying a bit harder to get order-1 pages is desirable.
__GFP_RETRY_MAYFAIL is supposed to help here.