* [PATCH] net: netvsc: Increase default VMBus channel from 8 to 16
@ 2024-08-06 5:55 Erni Sri Satya Vennela
2024-08-08 3:18 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Erni Sri Satya Vennela @ 2024-08-06 5:55 UTC (permalink / raw)
To: kys, haiyangz, wei.liu, decui, davem, edumazet, kuba, pabeni,
linux-hyperv, netdev, linux-kernel
Cc: ernis, Erni Sri Satya Vennela
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
Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
---
drivers/net/hyperv/hyperv_net.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
index 810977952f95..e690b95b1bbb 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
@@ -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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: netvsc: Increase default VMBus channel from 8 to 16
2024-08-06 5:55 [PATCH] net: netvsc: Increase default VMBus channel from 8 to 16 Erni Sri Satya Vennela
@ 2024-08-08 3:18 ` Jakub Kicinski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2024-08-08 3:18 UTC (permalink / raw)
To: Erni Sri Satya Vennela
Cc: kys, haiyangz, wei.liu, decui, davem, edumazet, pabeni,
linux-hyperv, netdev, linux-kernel, ernis
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.
--
pw-bot: cr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-08 3:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 5:55 [PATCH] net: netvsc: Increase default VMBus channel from 8 to 16 Erni Sri Satya Vennela
2024-08-08 3:18 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).