From: Laurent Vivier <lvivier@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>, passt-dev@passt.top
Subject: Re: [PATCH v2] test: Add tests for passt in vhost-user mode
Date: Mon, 7 Oct 2024 13:57:39 +0200 [thread overview]
Message-ID: <6a4e01c7-4fc7-4c5a-85d9-7b74b255cff6@redhat.com> (raw)
In-Reply-To: <20241001182228.2347208-1-sbrivio@redhat.com>
On 01/10/2024 20:22, Stefano Brivio wrote:
> 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.
>
> 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.
>
> For valgrind tests, vhost-user mode needs two extra system calls:
> statx and readlink. Add them as EXTRA_SYSCALLS for the valgrind
> target.
>
> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
> ---
> v2:
> - oops, add all the files I forgot in v1: test/perf/passt_vu_tcp,
> test/perf/passt_vu_udp, and symbolic links
> - also run the 'two_guests' case in vhost-user mode
>
> Makefile | 3 +-
> test/lib/perf_report | 15 +++
> test/lib/setup | 77 ++++++++++++---
> 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 +
> 9 files changed, 478 insertions(+), 15 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
>
Something like this is missing:
diff --git a/test/lib/setup_ugly b/test/lib/setup_ugly
index 4b2a0774de1d..46089eb9834b 100755
--- a/test/lib/setup_ugly
+++ b/test/lib/setup_ugly
@@ -33,7 +33,7 @@ setup_memory() {
pane_or_context_run guest 'qemu-system-$(uname -m)' \
' -machine accel=kvm' \
- ' -m '${VMEM}' -cpu host -smp '${VCPUS} \
+ ' -m '$((${MEM_KIB} / 1024 / 4))' -cpu host -smp '${VCPUS} \
' -kernel ' "/boot/vmlinuz-$(uname -r)" \
' -initrd '${INITRAMFS_MEM}' -nographic -serial stdio' \
' -nodefaults' \
Thanks,
Laurent
next prev parent reply other threads:[~2024-10-07 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-01 18:22 [PATCH v2] test: Add tests for passt in vhost-user mode Stefano Brivio
2024-10-07 11:57 ` Laurent Vivier [this message]
2024-10-07 14:30 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a4e01c7-4fc7-4c5a-85d9-7b74b255cff6@redhat.com \
--to=lvivier@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).