From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 334428E7AC for ; Sun, 13 Nov 2022 15:37:49 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 19B1E1B5A1 for ; Sun, 13 Nov 2022 15:37:49 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [IPv6:2a0a:1580:2000::2d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Sun, 13 Nov 2022 15:37:46 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id E554E80BF; Sun, 13 Nov 2022 15:37:39 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id D318D178FF5; Sun, 13 Nov 2022 15:37:39 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Sun, 13 Nov 2022 15:37:36 +0100 Message-Id: <20221113143738.878856-3-aderumier@odiso.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221113143738.878856-1-aderumier@odiso.com> References: <20221113143738.878856-1-aderumier@odiso.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.226 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% HEADER_FROM_DIFFERENT_DOMAINS 0.25 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years NO_DNS_FOR_FROM 0.001 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH qemu-server 2/4] virtio-net: increase defaults rx|tx-queue-size to 1024 X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2022 14:37:49 -0000 This is reducing packet drop on high pps, and also needed for dpdk. Redhat already have use it by default in rhev and his openstack platform too since 2019. I'm using it in production since 6 months, I don't have seen performance regression. fix: (which ask for custom option, but setting it by default seem fine for me) https://bugzilla.proxmox.com/show_bug.cgi?id=1546 https://bugzilla.proxmox.com/show_bug.cgi?id=2349 Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 2fed06d..e636c98 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1748,6 +1748,11 @@ sub print_netdevice_full { $tmpstr .= ",packed=on"; } } + + if (min_version($machine_version, 7, 1) && $net->{model} eq 'virtio'){ + $tmpstr .= ",rx_queue_size=1024,tx_queue_size=1024"; + } + $tmpstr .= ",bootindex=$net->{bootindex}" if $net->{bootindex} ; if (my $mtu = $net->{mtu}) { -- 2.30.2