public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v2] test: Add tests for passt in vhost-user mode
Date: Mon, 7 Oct 2024 16:30:00 +0200	[thread overview]
Message-ID: <20241007163000.039276dc@elisabeth> (raw)
In-Reply-To: <6a4e01c7-4fc7-4c5a-85d9-7b74b255cff6@redhat.com>

On Mon, 7 Oct 2024 13:57:39 +0200
Laurent Vivier <lvivier@redhat.com> wrote:

> 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} \

Oops, right, I guess I skipped that test as well while testing this
change. Feel free to just change that in this patch if you carry it in
your series (it looks okay to me).

-- 
Stefano


      reply	other threads:[~2024-10-07 14:30 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
2024-10-07 14:30   ` Stefano Brivio [this message]

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=20241007163000.039276dc@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=passt-dev@passt.top \
    /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).