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
310 310
311 RDMA_NLDEV_CMD_FRMR_POOLS_GET, /* can dump */311 RDMA_NLDEV_CMD_FRMR_POOLS_GET, /* can dump */
312 312
313 RDMA_NLDEV_CMD_FRMR_POOLS_SET,
314
313 RDMA_NLDEV_NUM_OPS315 RDMA_NLDEV_NUM_OPS
314};316};
315 317
@@ -598,6 +600,7 @@ enum rdma_nldev_attr { · 282 unmodified lines
598 RDMA_NLDEV_ATTR_FRMR_POOL_QUEUE_HANDLES, /* u32 */600 RDMA_NLDEV_ATTR_FRMR_POOL_QUEUE_HANDLES, /* u32 */
599 RDMA_NLDEV_ATTR_FRMR_POOL_MAX_IN_USE, /* u64 */601 RDMA_NLDEV_ATTR_FRMR_POOL_MAX_IN_USE, /* u64 */
600 RDMA_NLDEV_ATTR_FRMR_POOL_IN_USE, /* u64 */602 RDMA_NLDEV_ATTR_FRMR_POOL_IN_USE, /* u64 */
603 RDMA_NLDEV_ATTR_FRMR_POOLS_AGING_PERIOD, /* u32 */
601 604
602 /*605 /*
603 * Always the end606 * Always the end