Re: [PATCH rdma-next] RDMA/rdmavt: Decouple QP and SGE lists allocations

From: Dennis Dalessandro
Date: Wed May 19 2021 - 07:56:41 EST


On 5/19/21 3:50 AM, Leon Romanovsky wrote:
On Fri, May 14, 2021 at 12:02:37PM -0300, Jason Gunthorpe wrote:
On Fri, May 14, 2021 at 03:00:37PM +0000, Marciniszyn, Mike wrote:
The core stuff in ib_qp is not performance sensitive and has no obvious node
affinity since it relates primarily to simple control stuff.


The current rvt_qp "inherits" from ib_qp, so the fields in the
"control" stuff are performance critical especially for receive
processing and have historically live in the same allocation.

This is why I said "core stuff in ib_qp" if drivers are adding
performance stuff to their own structs then that is the driver's
responsibility to handle.

Can I learn from this response that node aware allocation is not needed,
and this patch can go as is.

It's pretty clearly a NAK from us. The code was purposely written this way, it was done years ago (from day 1 basically), changing it now is concerning for performance.

Perhaps the code can be enhanced to move more stuff into the driver's own structs as Jason points out, but that should happen first. For now I still don't understand why the core can't optionally make the allocation per node.

-Denny