Re: [PATCH net-next] net: page_pool: scale alloc cache with PAGE_SIZE
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-03-12 00:56:05
Also in:
lkml
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-03-12 00:56:05
Also in:
lkml
On Mon, 9 Mar 2026 10:13:01 +0200 Nimrod Oren wrote:
The current page_pool alloc-cache size and refill values were chosen to match the NAPI budget and to leave headroom for XDP_DROP recycling. These fixed values do not scale well with large pages, as they significantly increase a given page_pool's memory footprint. Scale these values to better balance memory footprint across page sizes, while keeping behavior on 4KB-page systems unchanged.
Jesper WDYT? I'm of course happy with this simple approach. https://lore.kernel.org/all/20260309081301.103152-1-noren@nvidia.com/ (local)