Allows tuning the number of worker threads used by virtiofsd. Signed-off-by: Markus Frank <m.fr...@proxmox.com> --- PVE/QemuServer/Virtiofs.pm | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/PVE/QemuServer/Virtiofs.pm b/PVE/QemuServer/Virtiofs.pm index cfde92c9..1894c95d 100644 --- a/PVE/QemuServer/Virtiofs.pm +++ b/PVE/QemuServer/Virtiofs.pm @@ -57,6 +57,13 @@ 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, + optional => 1, + }, }; PVE::JSONSchema::register_format('pve-qm-virtiofs', $virtiofs_fmt); @@ -172,6 +179,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'}; push @$cmd, '--announce-submounts'; push @$cmd, '--allow-direct-io' if $virtiofs->{'direct-io'}; push @$cmd, '--cache='.$virtiofs->{cache} if $virtiofs->{cache}; -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel