Skip to content

Introduce FRMR pools

Chiara Meiohas linux-rdma netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 9 repliesIn review
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- frmr_pool_key: Replaced packed union with plain struct
- moved to colon-separated fields output format for pool keys instead of hex strings
- Fix commented types of AGING_PERIOD and PINNED
- Add res_frmr_pools_idx_parse_cb stub

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rdma: Update headersrdma/include/uapi/rdma/rdma_netlink.h+22 -05 replies
2/4rdma: Add resource FRMR pools show commandman/man8/rdma-resource.8 rdma/Makefile rdma/res-frmr-pools.c +2 more+204 -30 replies
3/4rdma: Add FRMR pools set aging commandman/man8/rdma-resource.8 rdma/res-frmr-pools.c rdma/res.c +1 more+95 -00 replies
4/4rdma: Add FRMR pools set pinned commandman/man8/rdma-resource.8 rdma/res-frmr-pools.c rdma/res.c +1 more+143 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPatrisious HaddadChiara Meiohas
SeriesR-b
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 iproute2-next 0/4] Introduce FRMR pools

From Michael:

This series adds support for managing Fast Registration Memory Region (FRMR) pools in rdma tool, enabling users to monitor and configure FRMR pool behavior.

FRMR pools are used to cache and reuse Fast Registration Memory Region handles to improve performance by avoiding the overhead of repeated memory region creation and destruction. This series introduces commands to view FRMR pool statistics and configure pool parameters such as aging time and pinned handle count.

The 'show' command allows users to display FRMR pools created on devices, their properties, and usage statistics. Each pool is identified by a unique key (hex-encoded properties) for easy reference in subsequent operations.

The aging 'set' command allows users to modify the aging time parameter, which controls how long unused FRMR handles remain in the pool before being released.

The pinned 'set' command allows users to configure the number of pinned handles in a pool. Pinned handles are exempt from aging and remain permanently available for reuse, which is useful for workloads with predictable memory region usage patterns.

Command usage and examples are included in the commits and man pages.

These patches are complimentary to the kernel patches:
https://lore.kernel.org/linux-rdma/[email protected]/

--
v1->v2:
- frmr_pool_key: Replaced packed union with plain struct
- moved to colon-separated fields output format for pool keys instead of hex strings
- Fix commented types of AGING_PERIOD and PINNED
- Add res_frmr_pools_idx_parse_cb stub

Michael Guralnik (4):
rdma: Update headers
rdma: Add resource FRMR pools show command
rdma: Add FRMR pools set aging command
rdma: Add FRMR pools set pinned command

 man/man8/rdma-resource.8              |  51 +++-
 rdma/Makefile                         |   2 +-
 rdma/include/uapi/rdma/rdma_netlink.h |  22 ++
 rdma/res-frmr-pools.c                 | 352 ++++++++++++++++++++++++++
 rdma/res.c                            |  19 +-
 rdma/res.h                            |  20 ++
 6 files changed, 463 insertions(+), 3 deletions(-)
 create mode 100644 rdma/res-frmr-pools.c
Signature · 1 line
2.38.1