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 247C0BAD88 for ; Thu, 21 Mar 2024 16:50:58 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 04C10315F5 for ; Thu, 21 Mar 2024 16:50:58 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 ; Thu, 21 Mar 2024 16:50:56 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 39FEC415A9 for ; Thu, 21 Mar 2024 16:50:56 +0100 (CET) From: Stefan Sterz To: pve-devel@lists.proxmox.com Date: Thu, 21 Mar 2024 16:50:43 +0100 Message-Id: <20240321155044.190520-1-s.sterz@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.222 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_2 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_4 0.1 random spam to be learned in bayes SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH docs 1/2] qm: multiqueue specify that it needs to be vCPUs not cores 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: Thu, 21 Mar 2024 15:50:58 -0000 total number of cores != vCPUs if there is more than one socket configured. according to the redhat docs it should be vCPUs not cores: > Multi-queue virtio-net provides the greatest performance benefit when: > [..] > - The number of queues is equal to the number of vCPUs. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-networking-techniques#sect-Virtualization_Tuning_Optimization_Guide-Networking-Multi-queue_virtio-net Signed-off-by: Stefan Sterz --- qm.adoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qm.adoc b/qm.adoc index 1170dd1..8630419 100644 --- a/qm.adoc +++ b/qm.adoc @@ -770,14 +770,15 @@ vhost driver. With this option activated, it is possible to pass _multiple_ network queues to the host kernel for each NIC. //https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Tuning_and_Optimization_Guide/sect-Virtualization_Tuning_Optimization_Guide-Networking-Techniques.html#sect-Virtualization_Tuning_Optimization_Guide-Networking-Multi-queue_virtio-net -When using Multiqueue, it is recommended to set it to a value equal -to the number of Total Cores of your guest. You also need to set in -the VM the number of multi-purpose channels on each VirtIO NIC with the ethtool -command: +When using Multiqueue, it is recommended to set it to a value equal to the +number of vCPUs of your guest. Remember that the number of vCPUs is the number +of sockets times the number of cores configured for the VM. You also need to set +the number of multi-purpose channels on each VirtIO NIC in the VM with this +ethtool command: `ethtool -L ens1 combined X` -where X is the number of the number of vcpus of the VM. +where X is the number of the number of vCPUs of the VM. You should note that setting the Multiqueue parameter to a value greater than one will increase the CPU load on the host and guest systems as the -- 2.39.2