History

RDMA/core: Add netlink command to modify FRMR aging

Allow users to set FRMR pools aging timer through netlink. This functionality will allow user to control how long handles reside in the kernel before being destroyed, thus being able to tune the tradeoff between memory and HW object consumption and memory registration optimization. Since FRMR pools is highly beneficial for application restart scenarios, this command allows users to modify the aging timer to their application restart time, making sure the FRMR handles deregistered on application teardown are kept for long enough in the pools for reuse in the application startup.

Michael Guralnik committed 8 months ago

Commit d2ea6751 parent 50c03594 files · +71 −2Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/rdma/rdma_netlink.h+3−0
@@ -310,6 +310,8 @@ enum rdma_nldev_command { · 309 unmodified lines
310310
311311 RDMA_NLDEV_CMD_FRMR_POOLS_GET, /* can dump */
312312
313+ RDMA_NLDEV_CMD_FRMR_POOLS_SET,
314+
313315 RDMA_NLDEV_NUM_OPS
314316 };
315317
@@ -598,6 +600,7 @@ enum rdma_nldev_attr { · 282 unmodified lines
598600 RDMA_NLDEV_ATTR_FRMR_POOL_QUEUE_HANDLES, /* u32 */
599601 RDMA_NLDEV_ATTR_FRMR_POOL_MAX_IN_USE, /* u64 */
600602 RDMA_NLDEV_ATTR_FRMR_POOL_IN_USE, /* u64 */
603+ RDMA_NLDEV_ATTR_FRMR_POOLS_AGING_PERIOD, /* u32 */
601604
602605 /*
603606 * Always the end