From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ru73wHUW; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id B5A2E5A004C for ; Thu, 22 Aug 2024 18:53:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724345587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bu4E46MW1QzLtzj/qn1T4iWq37TVR6pUhc5Z0xfH/X8=; b=Ru73wHUW+AuA0TKKNCCQylfP2qR0sMzdeEIFpSqfR+Lf1QmaAdNiClh239tnRNiQsjJUEZ /ECSoMLI99ImielOoaZHbHWbsN40A0iRC0G9On00Y4q8zIXu6lWuZHi+7uvrnaV8fQoGiU GY3UPWosZGOYQuZfKoASKkyizbEy3Z0= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-511-xbBpGdKSO-2eFlb05DyKKg-1; Thu, 22 Aug 2024 12:53:06 -0400 X-MC-Unique: xbBpGdKSO-2eFlb05DyKKg-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-37188f68116so480248f8f.3 for ; Thu, 22 Aug 2024 09:53:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724345583; x=1724950383; h=mime-version:organization:references:in-reply-to:message-id:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=S6DOe5hgluXpx0XYbn0SEmsn2xie9SvUkcxIqUcX1Ak=; b=w5siJ3j95ZC3RgfgIC+MisbCcymP8SRGOKzvPpXqUFqaCrKRKTSGF3aZBZlGgl6KiK LQ3+5g5h+7MCokeAAAHOzr/s1QaMXKyqMNB8Xkd1okURYdxnHrHEgEgtiJJ0xM0O/kI9 A0ziojuKueip6NA/DHDx1cnMswkKf0p8p0O/4qlAirP/X4BZ85Rj0HvUfWofTlJ+6Sbn MdjApxdyA3FcyOMzUKzBMH1lphLg39ffNtmU4dWAjT3FZ8FwERn76VcVPMl4wsam77oB QDYb5ZJyrBcG3e9K/dfJP28f2wGT0ORyB2gH81vNj17eqduSNZeQCaA3A1s+n5CjgPgS dr/w== X-Gm-Message-State: AOJu0Yyc+fjozwHaKDFTRG9e1/Y+Ylci/NyuSfTSGNVbCKHqWg0Xjwti 7H/4Wm7emTEzRBO4RJyAWu3sm4P/oh0+AftbBcFWUlw0fndjnnsisE7J6Qv6gj4E9A5t1tnwCtI B9bUM7hrR6Pk1CCVL/JiCuNunxTb1WEPnLmq0X32yvd+Ewr6zfs7dgL0PMqt6mujpCl75UG+4/Q Aw2s0d5+QoqjKzP6/A7mtKPsQZz03DbSnD X-Received: by 2002:a5d:4481:0:b0:368:7fd3:291c with SMTP id ffacd0b85a97d-3730906ae01mr1452345f8f.60.1724345583381; Thu, 22 Aug 2024 09:53:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9D+rAAsMwuS06aKhW+cP6qh7eVFi+8KaK+ggrD2Knq/fraK+8B5a6Kg4cXpVyzch9O80LQA== X-Received: by 2002:a5d:4481:0:b0:368:7fd3:291c with SMTP id ffacd0b85a97d-3730906ae01mr1452326f8f.60.1724345582768; Thu, 22 Aug 2024 09:53:02 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-373082096bbsm2076363f8f.89.2024.08.22.09.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 09:53:01 -0700 (PDT) Date: Thu, 22 Aug 2024 18:53:00 +0200 From: Stefano Brivio To: passt-dev@passt.top Subject: Re: [PATCH v3 0/4] Add vhost-user support to passt. (part 3) Message-ID: <20240822185300.46dd34f1@elisabeth> In-Reply-To: <20240821004114.008ddc08@elisabeth> References: <20240815155024.827956-1-lvivier@redhat.com> <20240821004114.008ddc08@elisabeth> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="MP_/rWBk1bM1WtRgA14=MmHXIDR" Message-ID-Hash: HMP67VZE4EH27UX3RCQIFBHM3MWJGOSK X-Message-ID-Hash: HMP67VZE4EH27UX3RCQIFBHM3MWJGOSK X-MailFrom: sbrivio@redhat.com 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: Laurent Vivier 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: --MP_/rWBk1bM1WtRgA14=MmHXIDR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, 21 Aug 2024 00:41:14 +0200 Stefano Brivio wrote: > On Thu, 15 Aug 2024 17:50:19 +0200 > Laurent Vivier wrote: > > > This series of patches adds vhost-user support to passt > > and then allows passt to connect to QEMU network backend using > > virtqueue rather than a socket. > > > > With QEMU, rather than using to connect: > > > > -netdev stream,id=s,server=off,addr.type=unix,addr.path=/tmp/passt_1.socket > > > > we will use: > > > > -chardev socket,id=chr0,path=/tmp/passt_1.socket > > -netdev vhost-user,id=netdev0,chardev=chr0 > > -device virtio-net,netdev=netdev0 > > -object memory-backend-memfd,id=memfd0,share=on,size=$RAMSIZE > > -numa node,memdev=memfd0 > > > > The memory backend is needed to share data between passt and QEMU. > > > > Performance comparison between "-netdev stream" and "-netdev vhost-user": > > By the way, I attached a quick patch adding vhost-user-based tests to > the usual throughput and latency tests. > > UDP doesn't work (I didn't look into that at all), TCP does. Complete/fixed patch attached. The only part of UDP that's not working is actually over IPv6 -- it works over IPv4. -- Stefano --MP_/rWBk1bM1WtRgA14=MmHXIDR Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-test-Add-vhost-user-performance-tests-for-TCP-and-UD.patch >From 1ea5bf7942d1fdbea37d9d2cf3ce3c2c335360cf Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 22 Aug 2024 18:50:43 +0200 Subject: [PATCH] test: Add vhost-user performance tests for TCP and UDP Signed-off-by: Stefano Brivio --- test/lib/perf_report | 15 +++ test/lib/setup | 49 +++++++--- test/perf/passtvu_tcp | 211 ++++++++++++++++++++++++++++++++++++++++++ test/perf/passtvu_udp | 159 +++++++++++++++++++++++++++++++ test/run | 10 ++ 5 files changed, 431 insertions(+), 13 deletions(-) create mode 100644 test/perf/passtvu_tcp create mode 100644 test/perf/passtvu_udp diff --git a/test/lib/perf_report b/test/lib/perf_report index d1ef50b..dfab32e 100755 --- a/test/lib/perf_report +++ b/test/lib/perf_report @@ -49,6 +49,21 @@ td:empty { visibility: hidden; } =09__passt_tcp_LINE__ __passt_udp_LINE__ =20 +
  • passt with vhost-user back-end

    + +=09 +=09=09 +=09=09 +=09 +=09 +=09=09 +=09=09__passtvu_tcp_header__ +=09=09__passtvu_udp_header__ +=09 +=09__passtvu_tcp_LINE__ __passtvu_udp_LINE__ +
    +=09=09TCP, __= passtvu_tcp_threads__ at __passtvu_tcp_freq__ GHzUDP, __= passtvu_udp_threads__ at __passtvu_udp_freq__ GHz
    MTU:
    +