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=i1ck5qU0; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 516A15A004C for ; Wed, 16 Oct 2024 02:29:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1729038534; bh=tStfgzFJMRAsL74scdoPu6XSZ6GO5tXl0QLD9tdILv0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i1ck5qU03Ume3H6XpsWvnFMDpQLYXTQgX0c6w0IluKNlhE4Zk01ncFXXwIZBv6NEW Nu4k9Tp38QZuUSaQocc8Nj2g4oJkS1zOVF71031E62b0NHfW3elrADNqgHD7/J1+T3 4Rhsnuag+/cFgr1N74fO0jYRyisz6RCDWi0eI0SVZ/PUA0RzNzc948RUr/CX2KqWDD 9DVEcEWcBlZkt+UjDyi7Ido+DzO5PGwGCZPOo/5psAhUwt3osMQjzyW2TGB1lzjV+c toIP/r8PnR/p6QJeMPTWalGnNainRnah8HFw83cbgTYtiPwFsHOOJV68UKRRbZ5926 RpDnlfx97aV2g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XSsK25g04z4wxm; Wed, 16 Oct 2024 11:28:54 +1100 (AEDT) Date: Tue, 15 Oct 2024 14:40:22 +1100 From: David Gibson To: Laurent Vivier Subject: Re: [PATCH v8 8/8] test: Add tests for passt in vhost-user mode Message-ID: References: <20241010122903.1188992-1-lvivier@redhat.com> <20241010122903.1188992-9-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eqa6XKlkGwogA8X0" Content-Disposition: inline In-Reply-To: <20241010122903.1188992-9-lvivier@redhat.com> Message-ID-Hash: XV5AG6H5LAPX6VENG4YLYWTCR3SIO55O X-Message-ID-Hash: XV5AG6H5LAPX6VENG4YLYWTCR3SIO55O 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: --eqa6XKlkGwogA8X0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 10, 2024 at 02:29:02PM +0200, 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 1e8910dda1f4..ce8aa4302790 100644 > --- a/Makefile > +++ b/Makefile > @@ -138,7 +138,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:
    > + >