From: Tony Lu <tonylu@linux.alibaba.com>
To: Wenjia Zhang <wenjia@linux.ibm.com>
Cc: Wen Gu <guwen@linux.alibaba.com>,
kgraul@linux.ibm.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, linux-s390@vger.kernel.org,
netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 0/6] net/smc: Introduce virtually contiguous buffers for SMC-R
Date: Mon, 18 Jul 2022 20:45:28 +0800 [thread overview]
Message-ID: <YtVV6IWF0cKxJaWe@TonyMac-Alibaba> (raw)
In-Reply-To: <345053d6-5ecb-066d-8eeb-7637da1d7370@linux.ibm.com>
On Thu, Jul 14, 2022 at 05:16:47PM +0200, Wenjia Zhang wrote:
>
>
> On 14.07.22 11:43, Wen Gu wrote:
> > On long-running enterprise production servers, high-order contiguous
> > memory pages are usually very rare and in most cases we can only get
> > fragmented pages.
> >
> > When replacing TCP with SMC-R in such production scenarios, attempting
> > to allocate high-order physically contiguous sndbufs and RMBs may result
> > in frequent memory compaction, which will cause unexpected hung issue
> > and further stability risks.
> >
> > So this patch set is aimed to allow SMC-R link group to use virtually
> > contiguous sndbufs and RMBs to avoid potential issues mentioned above.
> > Whether to use physically or virtually contiguous buffers can be set
> > by sysctl smcr_buf_type.
> >
> > Note that using virtually contiguous buffers will bring an acceptable
> > performance regression, which can be mainly divided into two parts:
> >
> > 1) regression in data path, which is brought by additional address
> > translation of sndbuf by RNIC in Tx. But in general, translating
> > address through MTT is fast. According to qperf test, this part
> > regression is basically less than 10% in latency and bandwidth.
> > (see patch 5/6 for details)
> >
> > 2) regression in buffer initialization and destruction path, which is
> > brought by additional MR operations of sndbufs. But thanks to link
> > group buffer reuse mechanism, the impact of this kind of regression
> > decreases as times of buffer reuse increases.
> >
> > Patch set overview:
> > - Patch 1/6 and 2/6 mainly about simplifying and optimizing DMA sync
> > operation, which will reduce overhead on the data path, especially
> > when using virtually contiguous buffers;
> > - Patch 3/6 and 4/6 introduce a sysctl smcr_buf_type to set the type
> > of buffers in new created link group;
> > - Patch 5/6 allows SMC-R to use virtually contiguous sndbufs and RMBs,
> > including buffer creation, destruction, MR operation and access;
> > - patch 6/6 extends netlink attribute for buffer type of SMC-R link group;
> >
> > v1->v2:
> > - Patch 5/6 fixes build issue on 32bit;
> > - Patch 3/6 adds description of new sysctl in smc-sysctl.rst;
> >
> > Guangguan Wang (2):
> > net/smc: remove redundant dma sync ops
> > net/smc: optimize for smc_sndbuf_sync_sg_for_device and
> > smc_rmb_sync_sg_for_cpu
> >
> > Wen Gu (4):
> > net/smc: Introduce a sysctl for setting SMC-R buffer type
> > net/smc: Use sysctl-specified types of buffers in new link group
> > net/smc: Allow virtually contiguous sndbufs or RMBs for SMC-R
> > net/smc: Extend SMC-R link group netlink attribute
> >
> > Documentation/networking/smc-sysctl.rst | 13 ++
> > include/net/netns/smc.h | 1 +
> > include/uapi/linux/smc.h | 1 +
> > net/smc/af_smc.c | 68 +++++++--
> > net/smc/smc_clc.c | 8 +-
> > net/smc/smc_clc.h | 2 +-
> > net/smc/smc_core.c | 246 +++++++++++++++++++++-----------
> > net/smc/smc_core.h | 20 ++-
> > net/smc/smc_ib.c | 44 +++++-
> > net/smc/smc_ib.h | 2 +
> > net/smc/smc_llc.c | 33 +++--
> > net/smc/smc_rx.c | 92 +++++++++---
> > net/smc/smc_sysctl.c | 11 ++
> > net/smc/smc_tx.c | 10 +-
> > 14 files changed, 404 insertions(+), 147 deletions(-)
> >
> This idea is very cool! Thank you for your effort! But we still need to
> verify if this solution can run well on our system. I'll come to you soon.
Hi Wenjia,
We have noticed that SMC community is becoming more active recently.
More and more companies have shown their interests in SMC.
Correspondingly, patches are also increasing. We (Alibaba) are trying to
apply SMC into cloud production environment, extending its abilities and
enhancing the performance. We also contributed some work to community in
the past period of time. So we are more than happy to help review SMC
patches together. If you need, we are very glad to be reviewers to share
the review work.
Hope to hear from you, thank you.
Best wishes,
Tony Lu
next prev parent reply other threads:[~2022-07-18 12:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-14 9:43 [PATCH net-next v2 0/6] net/smc: Introduce virtually contiguous buffers for SMC-R Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 1/6] net/smc: remove redundant dma sync ops Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 2/6] net/smc: optimize for smc_sndbuf_sync_sg_for_device and smc_rmb_sync_sg_for_cpu Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 3/6] net/smc: Introduce a sysctl for setting SMC-R buffer type Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 4/6] net/smc: Use sysctl-specified types of buffers in new link group Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 5/6] net/smc: Allow virtually contiguous sndbufs or RMBs for SMC-R Wen Gu
2022-07-14 9:44 ` [PATCH net-next v2 6/6] net/smc: Extend SMC-R link group netlink attribute Wen Gu
2022-07-14 15:16 ` [PATCH net-next v2 0/6] net/smc: Introduce virtually contiguous buffers for SMC-R Wenjia Zhang
2022-07-18 12:45 ` Tony Lu [this message]
2022-07-19 12:55 ` Wenjia Zhang
2022-07-18 10:40 ` patchwork-bot+netdevbpf
2022-07-20 17:38 ` Wenjia Zhang
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=YtVV6IWF0cKxJaWe@TonyMac-Alibaba \
--to=tonylu@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=guwen@linux.alibaba.com \
--cc=kgraul@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=wenjia@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox