]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: page_pool: scale alloc cache with PAGE_SIZE
authorNimrod Oren <noren@nvidia.com>
Mon, 9 Mar 2026 08:13:01 +0000 (10:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Mar 2026 01:51:11 +0000 (18:51 -0700)
commit15abbe7c82661209c1dc67c21903c07e2fff5aae
tree2250bc28c69131d003462fd09f709e274795e34a
parent06fc88a6973fa6203c7c0cd3f5cef9d3405928ca
net: page_pool: scale alloc cache with PAGE_SIZE

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.

Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Nimrod Oren <noren@nvidia.com>
Link: https://patch.msgid.link/20260309081301.103152-1-noren@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/page_pool/types.h