Message ID | 20230629213248.3184245-1-yzhong@purestorage.com (mailing list archive) |
---|---|
Headers | show |
Series | RDMA/mlx5: align MR mem allocation size to power-of-two | expand |
On Thu, 29 Jun 2023 15:32:47 -0600, Yuanyuan Zhong wrote: > Recently I noticed the mlx5_alloc_priv_descs() do many allocations from > kmalloc-8k. It's called from following chain: > cma_cm_event_handler => nvme_rdma_cm_handler => nvme_rdma_create_queue_ib > => ib_mr_pool_init => ib_alloc_mr => __mlx5_ib_alloc_mr > => _mlx5_alloc_mkey_descs > > When the nvme-rdma asks to allocate memory regions that support maximum 257 > sg entries, the real MR memory allocation size is slightly bigger than 2048. > > [...] Applied, thanks! [1/1] RDMA/mlx5: align MR mem allocation size to power-of-two https://git.kernel.org/rdma/rdma/c/52b4bdd28c861e Best regards,