From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id E5D285A0082 for ; Wed, 4 Jan 2023 05:35:15 +0100 (CET) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Nmxbh2mRbz4y0Q; Wed, 4 Jan 2023 15:35:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1672806912; bh=TBCROQrbTdzNifDX2y3hHjcnVnKxhz+N08uqYkap2m8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dmb0lq2UhmKN227Sv8FCoTsYWY2JzNHlEYVtuepwa00OATYyg6IMkCkIQpfZ8OzcH hj8AFM+MVKWA+df/fHobCaGvXZZK7ij3z0JN9CEXBZQIf6dH2nZMcsoNrAX+ZGztGU c9y8CP3Z4DMSR47j/yuA9GggRdTeRncPFQs7Fbqw= Date: Wed, 4 Jan 2023 15:27:58 +1100 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH] test/perf/pasta_udp: Add host to namespace cases for traffic via tap Message-ID: References: <20230104000839.834557-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IQ5xMj0M8ht925+v" Content-Disposition: inline In-Reply-To: <20230104000839.834557-1-sbrivio@redhat.com> Message-ID-Hash: WB6EUPTSASEQWBH2JFU623MPKKUR5F2Q X-Message-ID-Hash: WB6EUPTSASEQWBH2JFU623MPKKUR5F2Q X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.3 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --IQ5xMj0M8ht925+v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 04, 2023 at 01:08:39AM +0100, Stefano Brivio wrote: > These were missing as it wasn't clear, when the other tests were > introduced, if using the global address of a namespace, from the > host, should have resulted in traffic being routed via the tap > interface (as opposed to the loopback interface). We now clarified > that's actually the case. >=20 > Use same values and thresholds as the tests for loopback traffic, as > throughput figures currently indicate there isn't much difference. >=20 > Signed-off-by: Stefano Brivio Reviewed-by: David Gibson > --- > Contrary to what I stated a while ago, there's actually no need to > adapt the "code" writing the JavaScript snippets for performance > reports -- the trick is simply to keep those ordered like the > previous ones, and we'll get the right output. >=20 > test/perf/pasta_udp | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) >=20 > diff --git a/test/perf/pasta_udp b/test/perf/pasta_udp > index 27ea724..112d70d 100644 > --- a/test/perf/pasta_udp > +++ b/test/perf/pasta_udp > @@ -179,4 +179,41 @@ nsout LAT udp_rr --nolog -P 10003 -C 10013 -4 -c -H = __GW__ | sed -n 's/^throughp > hostw > lat __LAT__ 200 150 > =20 > + > +tr UDP throughput over IPv6: host to ns > +nsout IFNAME ip -j link show | jq -rM '.[] | select(.link_type =3D=3D "e= ther").ifname' > +nsout ADDR6 ip -j -6 addr show|jq -rM '.[] | select(.ifname =3D=3D "__IF= NAME__").addr_info[] | select(.scope =3D=3D "global" and .prefixlen =3D=3D = 64).local' > +bw - > +bw - > +bw - > +iperf3 BW host ns __ADDR6__ 100${i}2 __THREADS__ __TIME__ __OPTS__ -b 15G > +bw __BW__ 7.0 9.0 > + > +tl UDP RR latency over IPv6: host to ns > +lat - > +lat - > +lat - > +nsb udp_rr --nolog -P 10002 -C 10012 -6 > +hout LAT udp_rr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 200 150 > + > + > +tr UDP throughput over IPv4: host to ns > +nsout ADDR ip -j -4 addr show|jq -rM '.[] | select(.ifname =3D=3D "__IFN= AME__").addr_info[0].local' > +bw - > +bw - > +bw - > +iperf3 BW host ns __ADDR__ 100${i}2 __THREADS__ __TIME__ __OPTS__ -b 15G > +bw __BW__ 7.0 9.0 > + > +tl UDP RR latency over IPv4: host to ns > +lat - > +lat - > +lat - > +nsb udp_rr --nolog -P 10002 -C 10012 -4 > +hout LAT udp_rr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 200 150 > + > te --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --IQ5xMj0M8ht925+v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoULxWu4/Ws0dB+XtgypY4gEwYSIFAmO1ADcACgkQgypY4gEw YSLb8g/8C6UvzUcxwb8Ne1LmAFTkI9MnubsO0zUfk28Hqj4UFx7ZbQZTEazBO3eD drZjI33vg/e8RIBjMD2g87csWxIbDfYKKbBP4gvBuFQEB6/SkeYWxyB+w4yhGX/L xhZl0rd7yv2l8i1HVCOOOnHfOmrGCp+BNRuIufcMXueSnpTxAaeFZ6KaULFkUREb sRxfBFCU2//7D1ukMkzFlTtb7usSfXzv4WlpSFiALr/BHwm+enlbXSgtZuj7Qhxc cKt2PkWTZoDKgtjz4VFhZmYsiNr0S7J3tSZkL1cMtXm7jZYP3UhABJK7rEG5dQRZ de6EjlkgC8ZdoHU1DPaRctLh6gCut17PXw9O9r9C+22QTrvfDlclqYSu+ufChIAF Lf7cqOG9m1e0W0iYW9LvTMlo09cNJRgOeawQ3MLiq5DMlRyYYumGOgUla40viRN+ MJfthimUagzi4cKq/OD9AddNEQ5TJMp4qJgG+CAVy8lK6ViHbDn3YOvlG/Zz3fDO AmsP9OzwXzU9dJgYoPU0y4THXLyXs5J2G4SU1T5mpteCnDoQ0cJSlgAXT7naeWQc lAPcAJO3+roD6mJOOtb+7HHsGGe5iOhjm0Slbjegab6bt0/jNAF1xgIsRTxMR0k6 7wGoSRety9TKlyPVLqCbcmcEcfm10eLVCYKS3fkXUDXdbyKT4BQ= =OMKc -----END PGP SIGNATURE----- --IQ5xMj0M8ht925+v--