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 4A6E05A005E for ; Thu, 5 Jan 2023 05:22:59 +0100 (CET) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4NnYH14919z4xyP; Thu, 5 Jan 2023 15:22:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1672892573; bh=53ibt3v90QHkWwLz1KZUcokQ04fM9q+UO1r5jEC9do4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CtbDcUVrnw+sPEGi4QTtdNKYpbhPmWU9gMohDg3h2UGz+fyy3AwGuJhRuLf6IxqWj 2JTc99HBT9GhTbPAQ97cDRASoMszpP2H6a6tewhVV3VgfIMUkoOI+lUGI+7nKjkvX5 lsY5SroBlfSKMSYbuWNJQbTCdQwSTPFbymhEica8= Date: Thu, 5 Jan 2023 13:24:26 +1100 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH] test/perf/pasta_tcp: Add host to namespace cases for traffic via tap Message-ID: References: <20230104174408.633795-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XkunvYivRCIsunib" Content-Disposition: inline In-Reply-To: <20230104174408.633795-1-sbrivio@redhat.com> Message-ID-Hash: UJUXD7UC4DCDUODGMJAAIJPABHOR53OF X-Message-ID-Hash: UJUXD7UC4DCDUODGMJAAIJPABHOR53OF 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: --XkunvYivRCIsunib Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 04, 2023 at 06:44:08PM +0100, Stefano Brivio wrote: > Similarly to UDP cases, 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 connections being > routed via the tap interface. >=20 > Signed-off-by: Stefano Brivio Reviewed-by: David Gibson > --- > test/perf/pasta_tcp | 57 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 57 insertions(+) >=20 > diff --git a/test/perf/pasta_tcp b/test/perf/pasta_tcp > index 1847c83..8ebb25c 100644 > --- a/test/perf/pasta_tcp > +++ b/test/perf/pasta_tcp > @@ -240,4 +240,61 @@ nsout LAT tcp_crr --nolog -P 10003 -C 10013 -4 -c -H= __GW__ | sed -n 's/^through > hostw > lat __LAT__ 1500 500 > =20 > + > +tr TCP 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__ > +bw __BW__ 8.0 10.0 > + > +tl TCP RR latency over IPv6: host to ns > +lat - > +lat - > +lat - > +nsb tcp_rr --nolog -P 10002 -C 10012 -6 > +hout LAT tcp_rr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 150 100 > + > +tl TCP CRR latency over IPv6: host to ns > +lat - > +lat - > +lat - > +sleep 1 > +nsb tcp_crr --nolog -P 10002 -C 10012 -6 > +hout LAT tcp_crr --nolog -P 10002 -C 10012 -6 -c -H __ADDR6__ | sed -n '= s/^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 5000 10000 > + > + > +tr TCP 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__ > +bw __BW__ 8.0 10.0 > + > +tl TCP RR latency over IPv4: host to ns > +lat - > +lat - > +lat - > +nsb tcp_rr --nolog -P 10002 -C 10012 -4 > +hout LAT tcp_rr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's/= ^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 150 100 > + > +tl TCP CRR latency over IPv4: host to ns > +lat - > +lat - > +lat - > +sleep 1 > +nsb tcp_crr --nolog -P 10002 -C 10012 -4 > +hout LAT tcp_crr --nolog -P 10002 -C 10012 -4 -c -H __ADDR__ | sed -n 's= /^throughput=3D\(.*\)/\1/p' > +nsw > +lat __LAT__ 5000 10000 > + > 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 --XkunvYivRCIsunib Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoULxWu4/Ws0dB+XtgypY4gEwYSIFAmO2NNQACgkQgypY4gEw YSL/Qg/8DYIqeVPAlQ6Uz/aovtJAS53TnSicbkWV/+SfJwGJTt4jksUj6oBEFyjq KfCcrIzVBJNvuhgw8IFdVXjt+HDaSX8t6vOUCivwtiwtS0OtHLCmu/ZCoErir6ZN /okQAOQUwkR8OjGvkRZS0FVWfaMUMQSVphIlRafsfjLryOqkagcWK2ulZv6VeIrP OJSO9hicb1Uin1cyHtnCcOTM4ZQexU+8Lafk18GuDrAm/bwoXViLNqQaEl1z5qgV kWx1M8dOfGpNGssbeRWgKlZcxRfYmAblJ5YgBmkiYHdzjidVBSX0XFC8mLqnmo23 Q+qC8CBoeVKP7eCcPpvxL8ZJhl3uT92xPPHYop9zcqym39nrxJrdpsgk1Zcd4kKD 6NCV9sRbcQxpUImhwe1yf12+2a8d97mywaLEZI2Qhv+wvvQVgSZn/tkTWfD/5qsq 6bZU6GXHXzpa2gtsxqMiWnmb87h8QHY/sjE2gyVTtrpWTHX+w/GEo6MkrlNzGURd vBoocC3q5vbj+cRGzFs4CH+3QXnd1XzFJm42KI/JQsDjSyw97ZEabXRNRizquiiD dyjJI0Mirgc8XmQNnoma1V9m6jmGW3oGwDn3QdAurg85/0Ojr0xUciUftGsu6ej7 FRpJg38B4pXZl8mngnTD8UrfIBO4NQZGxKWBjOfnxFUdbS3xLH0= =dgdf -----END PGP SIGNATURE----- --XkunvYivRCIsunib--