From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202410 header.b=kVKShaNl; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 414E65A004E for ; Mon, 11 Nov 2024 04:04:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1731294239; bh=bKbsWiXkpxFigW9Kp7psOKegc00Bmc7R9ht0anSlMWw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kVKShaNlHIYQrFBNEnXy/wKyvU6y9cAi2RqX2ClvKH0B9KkUQ4smn4wNOjwkHyY2z XROvI5scqSmdPpIH564/kr21gwmnHZO327ScLbj2BTTcRfwp/epFsMruhKtbASbXKw 0yNwmkC6klQfLVF7hYELCVirZXmrV32kwyF6l6u1iERHyXeylHmXD8pC95+dY4Psft kvwlbvdTiyUm6+whyWehxyGD+902dzbt54/JuoUD/7AeoMQ2PtM/8ZfvVGBlOdyqrW wFrd4PQzoSoJHat8eXa/m4XSKEN9Sr3Y3Xu0q7hRMn/sO7zVXw8NO5SeK8WmS9aMVp B8UTyhxTunMzQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XmvWz4vK9z4x8g; Mon, 11 Nov 2024 14:03:59 +1100 (AEDT) Date: Mon, 11 Nov 2024 13:48:49 +1100 From: David Gibson To: Laurent Vivier Subject: Re: [PATCH v10 08/12] test: Add tests for passt in vhost-user mode Message-ID: References: <20241108103733.3554357-1-lvivier@redhat.com> <20241108103733.3554357-9-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xeHLdnNd0d8MOFZF" Content-Disposition: inline In-Reply-To: <20241108103733.3554357-9-lvivier@redhat.com> Message-ID-Hash: KUG54RF3K5TX2V65JCQWX76HKY2UPVSO X-Message-ID-Hash: KUG54RF3K5TX2V65JCQWX76HKY2UPVSO 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, Stefano Brivio X-Mailman-Version: 3.3.8 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: --xeHLdnNd0d8MOFZF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 08, 2024 at 11:37:27AM +0100, Laurent Vivier wrote: > From: Stefano Brivio >=20 > Run functional and performance tests for vhost-user mode as well. For > functional tests, we add passt_vu and passt_vu_in_ns as symbolic links > to their non-vhost-user counterparts, as no differences are intended > but we want to distinguish them in test logs. >=20 > For performance tests, instead, we add separate perf/passt_vu_tcp and > perf/passt_vu_udp files, as we need longer test duration, as well as > higher UDP sending bandwidths and larger TCP windows, to actually get > the highest throughput vhost-user mode offers. >=20 > For valgrind tests, vhost-user mode needs two extra system calls: > statx and readlink. Add them as EXTRA_SYSCALLS for the valgrind > target. >=20 > Signed-off-by: Stefano Brivio > Signed-off-by: Laurent Vivier Reviewed-by: David Gibson > --- > Makefile | 3 +- > test/lib/perf_report | 15 +++ > test/lib/setup | 77 ++++++++++++--- > test/lib/setup_ugly | 2 +- > test/passt_vu | 1 + > test/passt_vu_in_ns | 1 + > test/perf/passt_vu_tcp | 211 +++++++++++++++++++++++++++++++++++++++++ > test/perf/passt_vu_udp | 159 +++++++++++++++++++++++++++++++ > test/run | 25 +++++ > test/two_guests_vu | 1 + > 10 files changed, 479 insertions(+), 16 deletions(-) > create mode 120000 test/passt_vu > create mode 120000 test/passt_vu_in_ns > create mode 100644 test/perf/passt_vu_tcp > create mode 100644 test/perf/passt_vu_udp > create mode 120000 test/two_guests_vu >=20 > diff --git a/Makefile b/Makefile > index 1dc12c5cc52f..8792ae4aef4d 100644 > --- a/Makefile > +++ b/Makefile > @@ -123,7 +123,8 @@ qrap: $(QRAP_SRCS) passt.h > =20 > valgrind: EXTRA_SYSCALLS +=3D rt_sigprocmask rt_sigtimedwait rt_sigactio= n \ > rt_sigreturn getpid gettid kill clock_gettime mmap \ > - mmap2 munmap open unlink gettimeofday futex > + mmap2 munmap open unlink gettimeofday futex statx \ > + readlink > valgrind: FLAGS +=3D -g -DVALGRIND > valgrind: all > =20 > diff --git a/test/lib/perf_report b/test/lib/perf_report > index d1ef50bfe0d5..c4ec817bcd1e 100755 > --- a/test/lib/perf_report > +++ b/test/lib/perf_report > @@ -49,6 +49,21 @@ td:empty { visibility: hidden; } > __passt_tcp_LINE__ __passt_udp_LINE__ > > =20 > +
  • passt with vhost-user support

    > + > + > + > + > + > + > + > + __passt_vu_tcp_header__ > + __passt_vu_udp_header__ > + > + __passt_vu_tcp_LINE__ __passt_vu_udp_LINE__ > +
    > + TCP, __= passt_vu_tcp_threads__ at __passt_vu_tcp_freq__ GHzUDP, __= passt_vu_udp_threads__ at __passt_vu_udp_freq__ GHz
    MTU:
    > + >