Skip to contentSkip to conversation

net: netvsc: Increase default VMBus channel from 8 to 16

PATCH In review Erni Sri Satya Vennela 2 participants 2 messages Aug 6, 2024 – Aug 8, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: netvsc: Increase default VMBus channel from 8 to 16

Increase default VMBus channels in Linux netvsc from 8 to 16 to align with Azure Windows VM and improve networking throughput.

Set channels to 16 for VMs with more than 16 vCPUs; otherwise, channels depend on VM's vCPU count.

Performance tests showed significant improvement in throughput:
- 0.54% for 16 vCPUs
- 1.51% for 32 vCPUs
- 0.72% for 48 vCPUs
- 5.57% for 64 vCPUs
- 9.14% for 96 vCPUs

---
 drivers/net/hyperv/hyperv_net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/hyperv/hyperv_net.h +1 -1
index 810977952f95..e690b95b1bbb 100644
@@ -882,7 +882,7 @@ struct nvsp_message {
 
 #define VRSS_SEND_TAB_SIZE 16  /* must be power of 2 */
 #define VRSS_CHANNEL_MAX 64
-#define VRSS_CHANNEL_DEFAULT 8
+#define VRSS_CHANNEL_DEFAULT 16
 
 #define RNDIS_MAX_PKT_DEFAULT 8
 #define RNDIS_PKT_ALIGN_DEFAULT 8
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 6 lines · On Mon, 5 Aug 2024 22:55:51 -0700 Erni Sri Satya Vennela wrote:

Performance tests showed significant improvement in throughput:
- 0.54% for 16 vCPUs
- 1.51% for 32 vCPUs
- 0.72% for 48 vCPUs
- 5.57% for 64 vCPUs
- 9.14% for 96 vCPUs

Could you please switch to netif_get_num_default_rss_queues() ? It used to return hard coded 8, but now it returns #physical cores / 2. That's based on broad experience with Meta's workloads. Some workloads need more some needs fewer, but broadly half of physical cores is a good guess for 90%+
Assuming you have thread siblings in those vCPUs above it should match what you want, too.

Signature · 1 line
pw-bot: cr