Skip to contentSkip to conversation

net-page_pool-use-alloc_pages_bulk-in-refill-code-path.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 8, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: net: page_pool: use alloc_pages_bulk in refill code path
has been removed from the -mm tree. Its filename was
net-page_pool-use-alloc_pages_bulk-in-refill-code-path.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jesper Dangaard Brouer <[email protected]>
Subject: net: page_pool: use alloc_pages_bulk in refill code path

There are cases where the page_pool need to refill with pages from the page allocator. Some workloads cause the page_pool to release pages instead of recycling these pages.

For these workload it can improve performance to bulk alloc pages from the page-allocator to refill the alloc cache.

For XDP-redirect workload with 100G mlx5 driver (that use page_pool) redirecting xdp_frame packets into a veth, that does XDP_PASS to create an SKB from the xdp_frame, which then cannot return the page to the page_pool.

Performance results under GitHub xdp-project[1]:
[1] https://github.com/xdp-project/xdp-project/blob/master/areas/mem/page_pool06_alloc_pages_bulk.org

Mel: The patch "net: page_pool: convert to use alloc_pages_bulk_array variant" was squashed with this patch. From the test page, the array variant was superior with one of the test results as follows.

	Kernel		XDP stats       CPU     pps           Delta
	Baseline	XDP-RX CPU      total   3,771,046       n/a
	List		XDP-RX CPU      total   3,940,242    +4.49%
	Array		XDP-RX CPU      total   4,249,224   +12.68%

---

 include/net/page_pool.h |    2 
 net/core/page_pool.c    |   82 +++++++++++++++++++++++++-------------
 2 files changed, 57 insertions(+), 27 deletions(-)
include/net/page_pool.h renamed from include/net/page_pool.h~net-page_pool-use-alloc_pages_bulk-in-refill-code-path +1 -1
@@ -65,7 +65,7 @@
 #define PP_ALLOC_CACHE_REFILL	64
 struct pp_alloc_cache {
 	u32 count;
-	void *cache[PP_ALLOC_CACHE_SIZE];
+	struct page *cache[PP_ALLOC_CACHE_SIZE];
 };
 
 struct page_pool_params {
net/core/page_pool.c renamed from net/core/page_pool.c~net-page_pool-use-alloc_pages_bulk-in-refill-code-path +56 -26

100 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are