From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4219DC10F16 for ; Mon, 6 May 2024 15:29:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s40Gk-0005U8-29; Mon, 06 May 2024 11:28:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s40Gg-0005TE-L3 for qemu-devel@nongnu.org; Mon, 06 May 2024 11:28:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s40Gc-0002Xt-OF for qemu-devel@nongnu.org; Mon, 06 May 2024 11:28:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715009317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eYqLLjtwKDDjhhK8fUWTOwVOCD6TH18LrZvSGiMjzyw=; b=LxcyWjG0qkd+rALehuaymLLmmHGHVCtl/ob0VPJwwDfXbHwASrbeU8yeSWCj6mCPTIQKDL TCLFSNtufZiJAdoxTt4FfAHdBWpPCB6Wz6toN7uobwJNSJzVKBElNBNpAREUsanuqwKrSO /UFPMhaIBgq0Uf26evTk+BsSkscUwd8= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606-668_6T5SOQOU4Jz3ipGvVg-1; Mon, 06 May 2024 11:28:36 -0400 X-MC-Unique: 668_6T5SOQOU4Jz3ipGvVg-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7905e4a1e61so2450585a.1 for ; Mon, 06 May 2024 08:28:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715009316; x=1715614116; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eYqLLjtwKDDjhhK8fUWTOwVOCD6TH18LrZvSGiMjzyw=; b=dCpcS7PpiiBxWVj0jy6Loy8/VR19gaz3Nd0fAz0xRrjTtCglUN+HD2hHrerMqsruww Eshr2Xwkb8toVr3jpRBHgMtt1bTbWINLXga+OsSv5xdIaPBF0ILDCqjSnBPz7Je7+7td g1eOkqEXGONYVzHyPqFJL1Bu7sadQjIqG5GV396IzlTwcYvRz2hoF5spsjAnsYIt7/iS MU82qhSlbd7UozWezB5INIjx10h30wR3la+vmhZBK51CZTcUgE4yDnhvKMWmAePE8Rel ZNpkEpkSzVPrdoNy31t6xVNI0tBu1MhQ8h04ZfJXdk1aOqKoY5VSdFZIVwwbJrQnmTaI tvfw== X-Forwarded-Encrypted: i=1; AJvYcCXHvFh/lMj98C5H7mhERMey8DppcRfPKs3z+lzL+rngG+LMrzqQssY+vBwZxPLFvb3awGrfVU3bIUCGtsc9rjVKkpng7pM= X-Gm-Message-State: AOJu0YxHP5rzOL3sj5bkFHZr5j3i3JPPG0loOyq+orfL84/asvU0yDAu gHBiyjEU8skjpa9/UzV9I1AUcp/8zMBpSKP0yeBXZ8sJCanAgMaTxo0hXikqfGmWfZxFLzUE29u B5Fx8W+fJ0+pBRVepXtrfK7jXhSZJGb7UqoZSpbZd/nHQNod1ejG9 X-Received: by 2002:a05:620a:4492:b0:790:e83a:e6eb with SMTP id x18-20020a05620a449200b00790e83ae6ebmr13936477qkp.5.1715009314991; Mon, 06 May 2024 08:28:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEOy8ab77nE+MVM/agKvkRCmioXuiqvbeabvktsLwB4zKrx5vEGI/gxouHngI6fvvr//HgTw== X-Received: by 2002:a05:620a:4492:b0:790:e83a:e6eb with SMTP id x18-20020a05620a449200b00790e83ae6ebmr13936423qkp.5.1715009314100; Mon, 06 May 2024 08:28:34 -0700 (PDT) Received: from x1n (pool-99-254-121-117.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id g21-20020a37e215000000b00792989a5127sm1095091qki.49.2024.05.06.08.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:28:33 -0700 (PDT) Date: Mon, 6 May 2024 11:28:25 -0400 From: Peter Xu To: Jinpu Wang Cc: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= , Markus Armbruster , Michael Galaxy , Yu Zhang , "Zhijian Li (Fujitsu)" , Elmar Gerdes , "qemu-devel@nongnu.org" , Yuval Shaia , Kevin Wolf , Prasanna Kumar Kalever , Cornelia Huck , Michael Roth , Prasanna Kumar Kalever , "integration@gluster.org" , Paolo Bonzini , "qemu-block@nongnu.org" , "devel@lists.libvirt.org" , Hanna Reitz , "Michael S. Tsirkin" , Thomas Huth , Eric Blake , Song Gao , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Alex =?utf-8?Q?Benn=C3=A9e?= , Wainer dos Santos Moschetta , Beraldo Leal , arei.gonglei@huawei.com, pannengyuan@huawei.com Subject: Re: [PATCH-for-9.1 v2 2/3] migration: Remove RDMA protocol handling Message-ID: References: <46f5e323-632d-7bda-f2c5-3cfa7b1c6b68@akamai.com> <877cgfe2yw.fsf@pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Received-SPF: pass client-ip=170.10.133.124; envelope-from=peterx@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.581, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Mon, May 06, 2024 at 12:08:43PM +0200, Jinpu Wang wrote: > Hi Peter, hi Daniel, Hi, Jinpu, Thanks for sharing this test results. Sounds like a great news. What's your plan next? Would it then be worthwhile / possible moving QEMU into that direction? Would that greatly simplify rdma code as Dan mentioned? Thanks, > > On Fri, May 3, 2024 at 4:33 PM Peter Xu wrote: > > > > On Fri, May 03, 2024 at 08:40:03AM +0200, Jinpu Wang wrote: > > > I had a brief check in the rsocket changelog, there seems some > > > improvement over time, > > > might be worth revisiting this. due to socket abstraction, we can't > > > use some feature like > > > ODP, it won't be a small and easy task. > > > > It'll be good to know whether Dan's suggestion would work first, without > > rewritting everything yet so far. Not sure whether some perf test could > > help with the rsocket APIs even without QEMU's involvements (or looking for > > test data supporting / invalidate such conversions). > > > I did a quick test with iperf on 100 G environment and 40 G > environment, in summary rsocket works pretty well. > > iperf tests between 2 hosts with 40 G (IB), > first a few test with different num. of threads on top of ipoib > interface, later with preload rsocket on top of same ipoib interface. > > jwang@ps401a-914.nst:~$ iperf -p 52000 -c 10.43.3.145 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.3.146 port 55602 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0001 sec 2.85 GBytes 2.44 Gbits/sec > jwang@ps401a-914.nst:~$ iperf -p 52000 -c 10.43.3.145 -P 2 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.3.146 port 39640 connected with 10.43.3.145 port 52000 > [ 3] local 10.43.3.146 port 39626 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0012 sec 2.85 GBytes 2.45 Gbits/sec > [ 4] 0.0000-10.0026 sec 2.86 GBytes 2.45 Gbits/sec > [SUM] 0.0000-10.0026 sec 5.71 GBytes 4.90 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.281/0.300/0.318/0.318 ms (tot/err) = 2/0 > jwang@ps401a-914.nst:~$ iperf -p 52000 -c 10.43.3.145 -P 4 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.3.146 port 46956 connected with 10.43.3.145 port 52000 > [ 6] local 10.43.3.146 port 46978 connected with 10.43.3.145 port 52000 > [ 3] local 10.43.3.146 port 46944 connected with 10.43.3.145 port 52000 > [ 5] local 10.43.3.146 port 46962 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0017 sec 2.85 GBytes 2.45 Gbits/sec > [ 4] 0.0000-10.0015 sec 2.85 GBytes 2.45 Gbits/sec > [ 5] 0.0000-10.0026 sec 2.85 GBytes 2.45 Gbits/sec > [ 6] 0.0000-10.0005 sec 2.85 GBytes 2.45 Gbits/sec > [SUM] 0.0000-10.0005 sec 11.4 GBytes 9.80 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.274/0.312/0.360/0.212 ms (tot/err) = 4/0 > jwang@ps401a-914.nst:~$ iperf -p 52000 -c 10.43.3.145 -P 8 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 7] local 10.43.3.146 port 35062 connected with 10.43.3.145 port 52000 > [ 6] local 10.43.3.146 port 35058 connected with 10.43.3.145 port 52000 > [ 8] local 10.43.3.146 port 35066 connected with 10.43.3.145 port 52000 > [ 9] local 10.43.3.146 port 35074 connected with 10.43.3.145 port 52000 > [ 3] local 10.43.3.146 port 35038 connected with 10.43.3.145 port 52000 > [ 12] local 10.43.3.146 port 35088 connected with 10.43.3.145 port 52000 > [ 5] local 10.43.3.146 port 35048 connected with 10.43.3.145 port 52000 > [ 4] local 10.43.3.146 port 35050 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 4] 0.0000-10.0005 sec 2.85 GBytes 2.44 Gbits/sec > [ 8] 0.0000-10.0011 sec 2.85 GBytes 2.45 Gbits/sec > [ 5] 0.0000-10.0000 sec 2.85 GBytes 2.45 Gbits/sec > [ 12] 0.0000-10.0021 sec 2.85 GBytes 2.44 Gbits/sec > [ 3] 0.0000-10.0003 sec 2.85 GBytes 2.44 Gbits/sec > [ 7] 0.0000-10.0065 sec 2.50 GBytes 2.14 Gbits/sec > [ 9] 0.0000-10.0077 sec 2.52 GBytes 2.16 Gbits/sec > [ 6] 0.0000-10.0003 sec 2.85 GBytes 2.44 Gbits/sec > [SUM] 0.0000-10.0003 sec 22.1 GBytes 19.0 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.096/0.226/0.339/0.109 ms (tot/err) = 8/0 > jwang@ps401a-914.nst:~$ iperf -p 52000 -c 10.43.3.145 -P 16 > [ 3] local 10.43.3.146 port 49540 connected with 10.43.3.145 port 52000 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 6] local 10.43.3.146 port 49554 connected with 10.43.3.145 port 52000 > [ 8] local 10.43.3.146 port 49584 connected with 10.43.3.145 port 52000 > [ 5] local 10.43.3.146 port 49552 connected with 10.43.3.145 port 52000 > [ 20] local 10.43.3.146 port 49626 connected with 10.43.3.145 port 52000 > [ 4] local 10.43.3.146 port 49606 connected with 10.43.3.145 port 52000 > [ 9] local 10.43.3.146 port 49596 connected with 10.43.3.145 port 52000 > [ 10] local 10.43.3.146 port 49604 connected with 10.43.3.145 port 52000 > [ 26] local 10.43.3.146 port 49678 connected with 10.43.3.145 port 52000 > [ 7] local 10.43.3.146 port 49556 connected with 10.43.3.145 port 52000 > [ 25] local 10.43.3.146 port 49662 connected with 10.43.3.145 port 52000 > [ 22] local 10.43.3.146 port 49636 connected with 10.43.3.145 port 52000 > [ 11] local 10.43.3.146 port 49612 connected with 10.43.3.145 port 52000 > [ 13] local 10.43.3.146 port 49618 connected with 10.43.3.145 port 52000 > [ 23] local 10.43.3.146 port 49646 connected with 10.43.3.145 port 52000 > [ 15] local 10.43.3.146 port 49688 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 11] 0.0000-10.0024 sec 2.28 GBytes 1.95 Gbits/sec > [ 23] 0.0000-10.0022 sec 2.28 GBytes 1.95 Gbits/sec > [ 20] 0.0000-10.0010 sec 2.28 GBytes 1.95 Gbits/sec > [ 8] 0.0000-10.0032 sec 2.28 GBytes 1.95 Gbits/sec > [ 26] 0.0000-10.0038 sec 2.28 GBytes 1.95 Gbits/sec > [ 10] 0.0000-10.0002 sec 2.28 GBytes 1.95 Gbits/sec > [ 7] 0.0000-10.0033 sec 2.28 GBytes 1.95 Gbits/sec > [ 15] 0.0000-10.0015 sec 2.27 GBytes 1.95 Gbits/sec > [ 4] 0.0000-10.0028 sec 2.28 GBytes 1.95 Gbits/sec > [ 6] 0.0000-10.0012 sec 2.28 GBytes 1.96 Gbits/sec > [ 13] 0.0000-10.0030 sec 2.28 GBytes 1.95 Gbits/sec > [ 25] 0.0000-10.0051 sec 2.28 GBytes 1.95 Gbits/sec > [ 5] 0.0000-10.0001 sec 2.28 GBytes 1.96 Gbits/sec > [ 9] 0.0000-10.0017 sec 2.28 GBytes 1.95 Gbits/sec > [ 22] 0.0000-10.0008 sec 2.27 GBytes 1.95 Gbits/sec > [ 3] 0.0000-10.0033 sec 2.28 GBytes 1.95 Gbits/sec > [SUM] 0.0000-10.0034 sec 36.4 GBytes 31.3 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.105/0.217/0.401/0.093 ms (tot/err) = 16/0 > jwang@ps401a-914.nst:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.3.145 -P 16 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.3.146 port 48902 connected with 10.43.3.145 port 52000 > [ 5] local 10.43.3.146 port 52777 connected with 10.43.3.145 port 52000 > [ 9] local 10.43.3.146 port 42911 connected with 10.43.3.145 port 52000 > [ 11] local 10.43.3.146 port 56354 connected with 10.43.3.145 port 52000 > [ 15] local 10.43.3.146 port 43325 connected with 10.43.3.145 port 52000 > [ 6] local 10.43.3.146 port 37041 connected with 10.43.3.145 port 52000 > [ 7] local 10.43.3.146 port 58828 connected with 10.43.3.145 port 52000 > [ 17] local 10.43.3.146 port 48858 connected with 10.43.3.145 port 52000 > [ 13] local 10.43.3.146 port 49256 connected with 10.43.3.145 port 52000 > [ 16] local 10.43.3.146 port 35652 connected with 10.43.3.145 port 52000 > [ 8] local 10.43.3.146 port 48567 connected with 10.43.3.145 port 52000 > [ 18] local 10.43.3.146 port 47394 connected with 10.43.3.145 port 52000 > [ 19] local 10.43.3.146 port 48065 connected with 10.43.3.145 port 52000 > [ 10] local 10.43.3.146 port 39788 connected with 10.43.3.145 port 52000 > [ 4] local 10.43.3.146 port 46818 connected with 10.43.3.145 port 52000 > [ 14] local 10.43.3.146 port 57174 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 14] 0.0000-10.0002 sec 2.30 GBytes 1.98 Gbits/sec > [ 6] 0.0000-10.0004 sec 2.31 GBytes 1.98 Gbits/sec > [ 5] 0.0000-10.0002 sec 2.31 GBytes 1.98 Gbits/sec > [ 8] 0.0000-10.0001 sec 2.31 GBytes 1.98 Gbits/sec > [ 11] 0.0000-10.0003 sec 2.31 GBytes 1.98 Gbits/sec > [ 18] 0.0000-10.0003 sec 2.31 GBytes 1.98 Gbits/sec > [ 3] 0.0000-10.0004 sec 2.31 GBytes 1.98 Gbits/sec > [ 4] 0.0000-10.0005 sec 2.30 GBytes 1.98 Gbits/sec > [ 17] 0.0000-10.0004 sec 2.31 GBytes 1.98 Gbits/sec > [ 15] 0.0000-10.0005 sec 2.31 GBytes 1.98 Gbits/sec > [ 19] 0.0000-10.0001 sec 2.30 GBytes 1.98 Gbits/sec > [ 7] 0.0000-10.0004 sec 2.31 GBytes 1.98 Gbits/sec > [ 13] 0.0000-10.0005 sec 2.31 GBytes 1.98 Gbits/sec > [ 10] 0.0000-10.0003 sec 2.30 GBytes 1.98 Gbits/sec > [ 9] 0.0000-10.0000 sec 2.31 GBytes 1.98 Gbits/sec > [ 16] 0.0000-10.0002 sec 2.31 GBytes 1.98 Gbits/sec > [SUM] 0.0000-10.0003 sec 36.9 GBytes 31.7 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 88.398/101.706/114.726/24.755 ms (tot/err) = 16/0 > jwang@ps401a-914.nst:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.3.145 -P 1 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.3.146 port 49168 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0000 sec 34.3 GBytes 29.5 Gbits/sec > jwang@ps401a-914.nst:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.3.145 -P 2 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.3.146 port 42096 connected with 10.43.3.145 port 52000 > [ 4] local 10.43.3.146 port 58667 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 4] 0.0000-10.0001 sec 18.4 GBytes 15.8 Gbits/sec > [ 3] 0.0000-10.0000 sec 18.5 GBytes 15.9 Gbits/sec > [SUM] 0.0000-10.0001 sec 36.9 GBytes 31.7 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 38.155/38.997/39.839/39.839 ms (tot/err) = 2/0 > jwang@ps401a-914.nst:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.3.145 -P 4 > ------------------------------------------------------------ > Client connecting to 10.43.3.145, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.3.146 port 36100 connected with 10.43.3.145 port 52000 > [ 5] local 10.43.3.146 port 55108 connected with 10.43.3.145 port 52000 > [ 6] local 10.43.3.146 port 41039 connected with 10.43.3.145 port 52000 > [ 7] local 10.43.3.146 port 34868 connected with 10.43.3.145 port 52000 > [ ID] Interval Transfer Bandwidth > [ 7] 0.0000-10.0000 sec 9.22 GBytes 7.92 Gbits/sec > [ 5] 0.0000-10.0000 sec 9.22 GBytes 7.92 Gbits/sec > [ 3] 0.0000-10.0000 sec 9.22 GBytes 7.92 Gbits/sec > [ 6] 0.0000-10.0001 sec 9.22 GBytes 7.92 Gbits/sec > [SUM] 0.0000-10.0001 sec 36.9 GBytes 31.7 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 51.401/53.644/56.015/30.487 ms (tot/err) = 4/0 > > You can see with rsocket it reaches ~ 30 Gb/s with single stream, > while ipoib only 2.5 Gb/s (12 X), ipoib scales with more threads until > ~ 32 Gb/s, which is the link limit. > > With 100 G env, rsocket also out perform ipoib, see below: > > > jwang@ps404a-59.stg:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.48.58 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.48.59 port 40588 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0000 sec 80.7 GBytes 69.4 Gbits/sec > jwang@ps404a-59.stg:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.48.58 -P 2 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.48.59 port 41813 connected with 10.43.48.58 port 52000 > [ 5] local 10.43.48.59 port 60638 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 5] 0.0000-10.0000 sec 48.9 GBytes 42.0 Gbits/sec > [ 3] 0.0000-10.0000 sec 49.8 GBytes 42.8 Gbits/sec > [SUM] 0.0000-10.0000 sec 98.7 GBytes 84.8 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 6.962/7.764/8.567/8.567 ms (tot/err) = 2/0 > jwang@ps404a-59.stg:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.48.58 -P 4 > [ 6] local 10.43.48.59 port 58086 connected with 10.43.48.58 port 52000 > [ 3] local 10.43.48.59 port 49335 connected with 10.43.48.58 port 52000 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.48.59 port 44593 connected with 10.43.48.58 port 52000 > [ 5] local 10.43.48.59 port 60464 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 5] 0.0000-10.0000 sec 28.0 GBytes 24.0 Gbits/sec > [ 4] 0.0000-10.0000 sec 28.0 GBytes 24.0 Gbits/sec > [ 3] 0.0000-10.0000 sec 28.0 GBytes 24.1 Gbits/sec > [ 6] 0.0000-10.0000 sec 28.0 GBytes 24.1 Gbits/sec > [SUM] 0.0000-10.0001 sec 112 GBytes 96.3 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 7.344/9.619/12.199/5.271 ms (tot/err) = 4/0 > jwang@ps404a-59.stg:~$ > LD_PRELOAD=/usr/lib/x86_64-linux-gnu/rsocket/librspreload.so iperf -p > 52000 -c 10.43.48.58 -P 8 > [ 3] local 10.43.48.59 port 43020 connected with 10.43.48.58 port 52000 > [ 7] local 10.43.48.59 port 59720 connected with 10.43.48.58 port 52000 > [ 4] local 10.43.48.59 port 52547 connected with 10.43.48.58 port 52000 > [ 8] local 10.43.48.59 port 41712 connected with 10.43.48.58 port 52000 > [ 10] local 10.43.48.59 port 53126 connected with 10.43.48.58 port 52000 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 128 KByte (default) > ------------------------------------------------------------ > [ 6] local 10.43.48.59 port 60311 connected with 10.43.48.58 port 52000 > [ 5] local 10.43.48.59 port 44103 connected with 10.43.48.58 port 52000 > [ 9] local 10.43.48.59 port 49007 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 9] 0.0000-10.0001 sec 14.0 GBytes 12.0 Gbits/sec > [ 8] 0.0000-10.0000 sec 14.0 GBytes 12.0 Gbits/sec > [ 4] 0.0000-10.0001 sec 14.0 GBytes 12.0 Gbits/sec > [ 6] 0.0000-10.0000 sec 14.0 GBytes 12.0 Gbits/sec > [ 10] 0.0000-10.0000 sec 14.0 GBytes 12.0 Gbits/sec > [ 7] 0.0000-10.0000 sec 14.0 GBytes 12.0 Gbits/sec > [ 5] 0.0000-10.0001 sec 14.0 GBytes 12.0 Gbits/sec > [ 3] 0.0000-10.0001 sec 14.0 GBytes 12.0 Gbits/sec > [SUM] 0.0000-10.0001 sec 112 GBytes 96.3 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 6.942/12.361/18.109/4.872 ms (tot/err) = 8/0 > jwang@ps404a-59.stg:~$ iperf -p 52000 -c 10.43.48.58 -P 8 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.48.59 port 58176 connected with 10.43.48.58 port 52000 > [ 5] local 10.43.48.59 port 58180 connected with 10.43.48.58 port 52000 > [ 3] local 10.43.48.59 port 58178 connected with 10.43.48.58 port 52000 > [ 10] local 10.43.48.59 port 58226 connected with 10.43.48.58 port 52000 > [ 11] local 10.43.48.59 port 58228 connected with 10.43.48.58 port 52000 > [ 9] local 10.43.48.59 port 58212 connected with 10.43.48.58 port 52000 > [ 7] local 10.43.48.59 port 58194 connected with 10.43.48.58 port 52000 > [ 8] local 10.43.48.59 port 58198 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 9] 0.0000-10.0005 sec 15.8 GBytes 13.5 Gbits/sec > [ 4] 0.0000-10.0002 sec 15.8 GBytes 13.6 Gbits/sec > [ 3] 0.0000-10.0000 sec 15.8 GBytes 13.6 Gbits/sec > [ 5] 0.0000-10.0002 sec 15.8 GBytes 13.6 Gbits/sec > [ 8] 0.0000-10.0005 sec 7.89 GBytes 6.78 Gbits/sec > [ 10] 0.0000-10.0000 sec 15.8 GBytes 13.6 Gbits/sec > [ 11] 0.0000-10.0014 sec 7.94 GBytes 6.82 Gbits/sec > [ 7] 0.0000-10.0009 sec 15.8 GBytes 13.6 Gbits/sec > [SUM] 0.0000-10.0009 sec 111 GBytes 95.1 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.234/0.325/0.406/0.155 ms (tot/err) = 8/0 > jwang@ps404a-59.stg:~$ iperf -p 52000 -c 10.43.48.58 -P 4 > [ 3] local 10.43.48.59 port 42548 connected with 10.43.48.58 port 52000 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.48.59 port 42558 connected with 10.43.48.58 port 52000 > [ 5] local 10.43.48.59 port 42560 connected with 10.43.48.58 port 52000 > [ 6] local 10.43.48.59 port 42562 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 6] 0.0000-10.0000 sec 27.8 GBytes 23.9 Gbits/sec > [ 5] 0.0000-10.0001 sec 27.3 GBytes 23.5 Gbits/sec > [ 3] 0.0000-10.0001 sec 27.8 GBytes 23.9 Gbits/sec > [ 4] 0.0000-10.0001 sec 27.8 GBytes 23.9 Gbits/sec > [SUM] 0.0000-10.0001 sec 111 GBytes 95.1 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.295/0.340/0.390/0.201 ms (tot/err) = 4/0 > jwang@ps404a-59.stg:~$ iperf -p 52000 -c 10.43.48.58 -P 2 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.43.48.59 port 44194 connected with 10.43.48.58 port 52000 > [ 3] local 10.43.48.59 port 44186 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0000 sec 48.3 GBytes 41.5 Gbits/sec > [ 4] 0.0000-10.0000 sec 41.3 GBytes 35.5 Gbits/sec > [SUM] 0.0000-10.0000 sec 89.7 GBytes 77.0 Gbits/sec > [ CT] final connect times (min/avg/max/stdev) = > 0.227/0.233/0.240/0.240 ms (tot/err) = 2/0 > jwang@ps404a-59.stg:~$ pbkvm list > VM State PID Cores Mem VNC Migration > -------------------------------------------- > > Total: 0 VMs, Running: 0 > jwang@ps404a-59.stg:~$ iperf -p 52000 -c 10.43.48.58 -P 1 > ------------------------------------------------------------ > Client connecting to 10.43.48.58, TCP port 52000 > TCP window size: 165 KByte (default) > ------------------------------------------------------------ > [ 3] local 10.43.48.59 port 40364 connected with 10.43.48.58 port 52000 > [ ID] Interval Transfer Bandwidth > [ 3] 0.0000-10.0000 sec 51.2 GBytes 44.0 Gbits/sec > > Thanks! > > > > Thanks, > > > > -- > > Peter Xu > > > -- Peter Xu