From: David Gibson <david@gibson.dropbear.id.au>
To: Laurent Vivier <lvivier@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH 0/4] vhost-user: Add multiqueue support
Date: Mon, 10 Nov 2025 17:00:50 +1100 [thread overview]
Message-ID: <aRF_ksBm3AT-AWA0@zatzit> (raw)
In-Reply-To: <aRFsuShhHLZbue3b@zatzit>
[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]
On Mon, Nov 10, 2025 at 03:40:25PM +1100, David Gibson wrote:
> On Fri, Nov 07, 2025 at 03:38:57PM +0100, Laurent Vivier wrote:
> > This series implements multiqueue support for vhost-user mode, allowing passt
> > to utilize multiple queue pairs. There is no improved network performance because
> > we keep using only one thread.
> >
> > The implementation introduces a --max-queues parameter to configure up to 16
> > queue pairs (32 virtqueues) in vhost-user mode. Packets are routed to the
> > appropriate RX queue based on which TX queue they originated from, enabling the
> > guest kernel to distribute network traffic across multiple queues
> > and vCPUs.
>
> I find this description a little bit confusing, since at the packet
> (L2) level things going to an Rx queue don't really have an
> originating Tx queue. I assume you mean that each flow gets
> associated to a single queue pair, so both Rx and Tx packets on that
> flow will use the same queue pair (and, later, thread). Is that
> correct? If so I think it would be clearer to explicitly describe
> this in terms of flows.
>
> > This series adds:
> > - configuration support for multiqueue via --max-queues parameter
> > - queue parameter threading throughout the network stack - a significant
> > refactoring that propagates queue information through all protocol handlers
> > (TCP, UDP, ICMP, ARP, DHCP, DHCPv6, NDP)
> > - flow-aware queue routing that matches RX queue selection to the incoming
> > TX queue, maintaining proper packet affinity
> > - comprehensive test coverage with VHOST_USER_MQ environment variable to
> > validate multiqueue functionality across all test scenarios
> >
> > Current behavior: TX queue selection is controlled by the guest kernel, while
> > RX packets are routed to queues based on their associated flows. Host-initiated
> > flows currently default to queue 0.
> >
> > The RX queue of a flow is updated on each new packet from the TX queue to
> > maintain affinity.
> >
> > The changes maintain backward compatibility - without --max-queues, behavior
> > remains unchanged with single-queue operation.
Having now read the whole series. I noted on an individual patch that
it's sometimes confusing what's being communicated as queue pair ID,
what as absolute queue ID. Perhaps that discussion belongs better not
attached to a specific patch.
I think we should standardize on a single way of indexing, in as much
of the code as possible - the exception should be in the low-level
code that actually deals with the vq interfaces. I _think_ queue pair
will simplify things compared to absolute queue number, but I might be
wrong.
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2025-11-10 6:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 14:38 Laurent Vivier
2025-11-07 14:38 ` [PATCH 1/4] vhost-user: Enable multiqueue Laurent Vivier
2025-11-10 4:48 ` David Gibson
2025-11-17 15:26 ` Laurent Vivier
2025-11-18 0:16 ` David Gibson
2025-11-07 14:38 ` [PATCH 2/4] vhost-user: Add queue parameter throughout the network stack Laurent Vivier
2025-11-10 5:19 ` David Gibson
2025-11-07 14:39 ` [PATCH 3/4] multiqueue: Add queue-aware flow management for multiqueue support Laurent Vivier
2025-11-10 5:54 ` David Gibson
2025-11-07 14:39 ` [PATCH 4/4] test: Add multiqueue support to vhost-user test infrastructure Laurent Vivier
2025-11-10 5:57 ` David Gibson
2025-11-10 4:40 ` [PATCH 0/4] vhost-user: Add multiqueue support David Gibson
2025-11-10 6:00 ` David Gibson [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=aRF_ksBm3AT-AWA0@zatzit \
--to=david@gibson.dropbear.id.au \
--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).