From: "Daniel Kral" <d.kral@proxmox.com>
To: "Markus Frank" <m.frank@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH qemu-server v2 2/11] fix #6370: virtiofs: add support for thread-pool-size option
Date: Wed, 25 Feb 2026 11:46:02 +0100 [thread overview]
Message-ID: <DGNZDIYYQDQJ.MO8DJ7A6TI8Q@proxmox.com> (raw)
In-Reply-To: <20260223155951.468572-3-m.frank@proxmox.com>
On Mon Feb 23, 2026 at 4:39 PM CET, Markus Frank wrote:
> Allows tuning the number of worker threads used by virtiofsd.
>
> Signed-off-by: Markus Frank <m.frank@proxmox.com>
> ---
> src/PVE/QemuServer/Virtiofs.pm | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/src/PVE/QemuServer/Virtiofs.pm b/src/PVE/QemuServer/Virtiofs.pm
> index b181db5f..cd95470d 100644
> --- a/src/PVE/QemuServer/Virtiofs.pm
> +++ b/src/PVE/QemuServer/Virtiofs.pm
> @@ -60,6 +60,14 @@ my $virtiofs_fmt = {
> default => 0,
> optional => 1,
> },
> + 'thread-pool-size' => {
> + type => 'integer',
> + description => "Controls the maximum number of worker threads used by virtiofsd to"
> + . " handle requests. A value of '0' disables the thread pool.",
> + default => 0,
> + minimum => 0,
> + optional => 1,
> + },
> };
> PVE::JSONSchema::register_format('pve-qm-virtiofs', $virtiofs_fmt);
>
> @@ -180,6 +188,8 @@ sub start_virtiofsd {
> my $cmd = [$virtiofsd_bin, "--fd=$fd", "--shared-dir=$path"];
> push @$cmd, '--xattr' if $virtiofs->{'expose-xattr'};
> push @$cmd, '--posix-acl' if $virtiofs->{'expose-acl'};
> + push @$cmd, '--thread-pool-size=' . $virtiofs->{'thread-pool-size'}
> + if $virtiofs->{'thread-pool-size'};
nit: this should be `if defined($virtiofs->{'thread-pool-size'})`,
otherwise it will not add `--thread-pool-size` at all. This still
works as expected because virtiofsd itself falls back to 0 though
[0].
[0] https://gitlab.com/virtio-fs/virtiofsd/-/blob/89a24d1eb57d20b497c53a11cbf60a79b5655de4/src/main.rs#L156
> push @$cmd, '--announce-submounts';
> push @$cmd, '--allow-direct-io' if $virtiofs->{'direct-io'};
> push @$cmd, '--cache=' . $virtiofs->{cache} if $virtiofs->{cache};
next prev parent reply other threads:[~2026-02-25 10:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 15:39 [PATCH guest-common/qemu-server/docs/manager v2 0/11] Virtiofs improvements Markus Frank
2026-02-23 15:39 ` [PATCH guest-common v2 1/11] mapping: dir: add 'live-migration-method' parameter Markus Frank
2026-02-25 10:42 ` Daniel Kral
2026-02-23 15:39 ` [PATCH qemu-server v2 2/11] fix #6370: virtiofs: add support for thread-pool-size option Markus Frank
2026-02-25 10:46 ` Daniel Kral [this message]
2026-02-23 15:40 ` [PATCH qemu-server v2 3/11] virtiofs: add readonly option Markus Frank
2026-02-23 15:40 ` [PATCH qemu-server v2 4/11] virtiofs: add live migration support Markus Frank
2026-02-25 10:45 ` Daniel Kral
2026-02-23 15:40 ` [PATCH docs v2 5/11] virtiofs: add explanation for cache=metadata behavior Markus Frank
2026-02-23 15:40 ` [PATCH docs v2 6/11] virtiofs: add table for optional parameters Markus Frank
2026-02-23 15:40 ` [PATCH docs v2 7/11] virtiofs: add thread-pool-size description Markus Frank
2026-02-25 10:46 ` Daniel Kral
2026-02-23 15:40 ` [PATCH docs v2 8/11] virtiofs: add documentation for live migration Markus Frank
2026-02-23 15:40 ` [PATCH manager v2 09/11] fix #6370: ui: virtiofs edit: add support for thread-pool-size option Markus Frank
2026-02-25 10:46 ` Daniel Kral
2026-02-23 15:40 ` [PATCH manager v2 10/11] virtiofs edit: add support for readonly option Markus Frank
2026-02-23 15:40 ` [PATCH manager v2 11/11] directory mapping: add live-migration-method option for virtiofs Markus Frank
2026-02-25 10:46 ` Daniel Kral
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=DGNZDIYYQDQJ.MO8DJ7A6TI8Q@proxmox.com \
--to=d.kral@proxmox.com \
--cc=m.frank@proxmox.com \
--cc=pve-devel@lists.proxmox.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox