vSwitch Resource Allocation for Dynamic Virtual Port Scaling
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The occupation of fixed CPU and memory resources by virtual switches (vSwitches) in servers affects the resource utilization of virtual machines, particularly with increasing service bandwidth requirements.
Innovation Solution
A method and apparatus for dynamically adjusting the resource allocation of vSwitches by creating or deleting virtual ports based on resource adjustment quantities, ensuring the vSwitches do not occupy fixed server resources, and utilizing single-root input/output virtualization (SR-IOV) technology to enhance flexibility and resource utilization.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the vSwitch occupies fixed CPU and memory resources of the server, then the vSwitch can provide stable network switching functions, but the resource utilization of the server is reduced
Solution Approach 1:
The patent implements dynamic resource allocation for vSwitch by introducing a resource adjustment mechanism that monitors actual network traffic and computational workload. The system dynamically adjusts the number of CPU cores and memory resources allocated to vSwitch based on real-time demand, allowing resources to scale up during high traffic periods and scale down during low utilization periods, thus resolving the contradiction between stability and resource utilization
Solution Approach 2:
The patent changes the parameters of resource allocation from fixed values to variable values that can be adjusted based on system conditions. The resource adjustment module modifies CPU core count and memory allocation parameters dynamically, enabling the vSwitch to adapt its resource consumption to actual network traffic patterns and virtual machine workload requirements
2Reliability
If the vSwitch occupies fixed resources of the server, then the network switching function can be provided, but the resource utilization of the virtual machine on the server is affected
Solution Approach 1:
The system implements dynamic resource adjustment that allows virtual machines to access additional server resources when vSwitch workload is low, and automatically reclaims resources when vSwitch needs them, creating a flexible resource sharing model that benefits both vSwitch stability and virtual machine adaptability
Solution Approach 2:
The patent creates a universal resource pool that serves both vSwitch and virtual machines, allowing the same physical server resources to be dynamically allocated to different functions based on demand. The resource adjustment mechanism enables the system to switch between serving network switching functions and virtual machine computational needs efficiently
Data Source
AI summary
A resource adjustment method includes determining a resource adjustment quantity when creating a first virtual port or deleting a second virtual port on a server, where the resource adjustment quantity is a to-be-adjusted value of a resource occupied by a virtual switch (vSwitch) on the server, where the first virtual port is a to-be-created virtual port between the vSwitch and a first virtual machine, and where the second virtual port is a to-be-deleted virtual port between the vSwitch and a second virtual machine on the server.


