Virtual Switch Selection¶
The virtual switch connects VMs to your data networks. It runs on every compute worker and handles packet forwarding between VM interfaces and the physical NICs attached to data networks. Without it, VMs have no network connectivity.
StarlingX OpenStack uses Open vSwitch (OVS) as the virtual switch. Your decision is which datapath mode to run: kernel mode or DPDK (user-space) mode. This is a deployment-wide choice. All compute workers use the same mode, and you cannot mix them within one deployment.
Comparison¶
The following table compares the two modes across key factors that affect performance, resource usage, and operational complexity.
Factor |
OVS Kernel |
OVS-DPDK |
|---|---|---|
Datapath |
Linux kernel (interrupt-driven) |
User space (poll-mode) |
Dedicated CPU cores |
None |
1 to 2 per NUMA node |
Huge page memory |
Not required for vSwitch |
1 GB per NUMA node |
Throughput ceiling |
~1 million packets per second (pps) per node |
Line-rate, millions of pps |
Latency |
Variable (kernel scheduling) |
Deterministic (poll-mode) |
VM density impact |
None; no cores reserved |
Reduces available cores and memory |
Mode Options¶
Use the following table to match your workload characteristics to the appropriate mode.
Workload Characteristic |
Recommended Mode |
|---|---|
Enterprise apps with moderate network I/O |
OVS Kernel |
Simplicity is a priority |
OVS Kernel |
Maximum VM density needed |
OVS Kernel |
Deterministic latency (VoIP, real-time analytics, virtual firewall) |
OVS-DPDK |
Packet rates exceed 1 million pps per node |
OVS-DPDK |
Network functions demand line-rate throughput |
OVS-DPDK |
Note
The virtual switch mode cannot be changed without reinstalling compute workers. Choose based on your most demanding workload.