From: Leon Romanovsky <leon@kernel.org>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: Leon Romanovsky <leonro@nvidia.com>,
linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org,
Mark Zhang <markzhang@nvidia.com>
Subject: [PATCH rdma-next 0/2] Query IBoE speed directly
Date: Mon, 10 Apr 2023 16:12:05 +0300 [thread overview]
Message-ID: <cover.1681132096.git.leon@kernel.org> (raw)
From: Leon Romanovsky <leonro@nvidia.com>
From Mark,
This series adds a new driver API to query the IBoE link speed, as well
as the mlx5 implementation.
Currently the ethtool API is used, which must be protected with the rtnl
lock. This becomes a bottleneck when try to create many rdma-cm
connections at the same time, especially with multiple processes.
With this new API we can get rid of the rtnl lock and ethtool operation.
Test result shows clear improvement, An example below (the time needed
for a process to create all connections):
One process with One process with Eight processes, each
1,000 connections 10,000 connections with 1,000 connections
old: 10330ms 106107ms 47723ms
new: 7937ms 80108ms 19446ms
Improvement: 23.2% 24.5% 59.3%
Thanks
Mark Zhang (2):
IB/core: Query IBoE link speed with a new driver API
IB/mlx5: Implement query_iboe_speed driver API
drivers/infiniband/core/cma.c | 6 ++-
drivers/infiniband/core/device.c | 1 +
drivers/infiniband/hw/mlx5/main.c | 41 ++++++++++++++++++++
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 24 ------------
include/rdma/ib_addr.h | 31 +++++++++------
include/rdma/ib_verbs.h | 26 +++++++++++++
6 files changed, 92 insertions(+), 37 deletions(-)
--
2.39.2
next reply other threads:[~2023-04-10 13:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-10 13:12 Leon Romanovsky [this message]
2023-04-10 13:12 ` [PATCH rdma-next 1/2] IB/core: Query IBoE link speed with a new driver API Leon Romanovsky
2023-04-10 23:23 ` Jason Gunthorpe
2023-04-10 23:42 ` Mark Zhang
2023-04-11 11:20 ` Jason Gunthorpe
2023-04-10 13:12 ` [PATCH rdma-next 2/2] IB/mlx5: Implement query_iboe_speed " Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1681132096.git.leon@kernel.org \
--to=leon@kernel.org \
--cc=jgg@nvidia.com \
--cc=leonro@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=markzhang@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.