RDMA/rw: Support threshold for registration vs scattering to local pages
authorYamin Friedman <yaminf@mellanox.com>
Mon, 7 Oct 2019 13:59:32 +0000 (16:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Oct 2019 17:26:52 +0000 (14:26 -0300)
commit00bd1439f464cfac3c60f6eabfe209b8a52e8194
tree8fd186b86ac484edee64b6f9d541e3d85a1a9a26
parent7d47433cf74f942a414171867d89c08640cfef45
RDMA/rw: Support threshold for registration vs scattering to local pages

If there are more scatter entries than the recommended limit provided by
the ib device, UMR registration is used. This will provide optimal
performance when performing large RDMA READs over devices that advertise
the threshold capability.

With ConnectX-5 running NVMeoF RDMA with FIO single QP 128KB writes:
Without use of cap: 70Gb/sec
With use of cap: 84Gb/sec

Link: https://lore.kernel.org/r/20191007135933.12483-3-leon@kernel.org
Signed-off-by: Yamin Friedman <yaminf@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rw.c
include/rdma/ib_verbs.h