Skip to content

RFC page_pool proof-of-concept early code

Jesper Dangaard Brouer linux-mm netdev oe-lkp 1 version In review

Get series with b4
b4 am 20161220132444.18788.50875.stgit@firesoul

Versions newest first

  1. v1 RFC Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4doc: page_pool introduction documentationDocumentation/vm/page_pool/introduction.rst+71 -00 replies
2/4page_pool: basic implementation of page_poolinclude/linux/mm.h include/linux/mm_types.h include/linux/page-flags.h +7 more+627 -67 replies
3/4mlx5: use page_pooldrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_rx.c+60 -160 replies
4/4page_pool: change refcnt modelinclude/linux/mm.h include/linux/page_pool.h mm/page_alloc.c +2 more+79 -960 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] page_pool proof-of-concept early code

This is an RFC patchset of my *work-in-progress* page_pool implemenation. This is NOT ready for inclusion. People asked to see the code, so here we go.

This patchset is focused providing a generic replacement for the driver page recycle caches. Where mlx5 is the first user in patch-3.

Notice that patch-2 is more "MM-invasive" (modifies put_page) than patch-4 which is less MM-agressive (scaled back based on input from Mel Gorman).

I do know that all page-flags are used (for 32bit), thus I'm open to suggestions/ideas on howto work-around this (need some way to identify a page belongs to a page pool).

This patchset is the bare-minimum PoC that allows me to benchmarks these ideas and see if performance is going in the right direction. It is not safe, e.g. unloading the driver can crash the kernel.

---

Jesper Dangaard Brouer (4):
doc: page_pool introduction documentation
page_pool: basic implementation of page_pool
mlx5: use page_pool
page_pool: change refcnt model

 Documentation/vm/page_pool/introduction.rst       |   71 ++++
 drivers/net/ethernet/mellanox/mlx5/core/en.h      |    1 
 drivers/net/ethernet/mellanox/mlx5/core/en_main.c |   28 +
 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c   |   47 ++
 include/linux/mm.h                                |    1 
 include/linux/mm_types.h                          |   11 +
 include/linux/page-flags.h                        |   13 +
 include/linux/page_pool.h                         |  168 +++++++++
 include/linux/skbuff.h                            |    2 
 include/trace/events/mmflags.h                    |    3 
 mm/Makefile                                       |    3 
 mm/page_alloc.c                                   |    6 
 mm/page_pool.c                                    |  402 +++++++++++++++++++++
 mm/slub.c                                         |    4 
 mm/swap.c                                         |    3 
 15 files changed, 741 insertions(+), 22 deletions(-)
 create mode 100644 Documentation/vm/page_pool/introduction.rst
 create mode 100644 include/linux/page_pool.h
 create mode 100644 mm/page_pool.c

--

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>