Re: [PATCH net-next] net: page_pool: scale alloc cache with PAGE_SIZE

From: Jesper Dangaard Brouer

Date: Mon Mar 16 2026 - 11:26:38 EST




On 12/03/2026 01.56, Jakub Kicinski wrote:
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@xxxxxxxxxx/

Sorry for the slow response, LGTM.
Patch is already applied.

--Jesper