A method, system, device and medium for improving virtualized network performance
By binding the virtual machine to the host CPU core, adjusting the network card configuration and adding VirtIO-Net data exchange threads, the network performance loss problem caused by virtualization technology is solved, the performance improvement of virtualized network is achieved, and network data processing is optimized ability.
Patent Information
- Application Number
- CN202210355102.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-03-31
AI Technical Summary
The network performance loss caused by virtualization technology in production environments with high network requirements affects the normal operation of services.
By binding the virtual machine to the host's CPU core, adjusting the MTU and GSO/GRO configuration of the network card, and increasing the data exchange thread between the front and back ends of the VirtIO-Net to improve the performance of the virtualized network.
Without hardware upgrades, improve the performance of virtual machines, network cards and Hypervisors, optimize network data processing capabilities, and significantly improve virtualized network performance, especially in high load situations to effectively avoid network losses.
Smart Images

Figure CN114697215B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtualization, and in particular to a method, system, device and medium for improving virtualized network performance. Background Art
[0002] As the application fields of virtualization technology continue to expand, more and more business applications are beginning to move from host machines to virtualization platforms. In some production environments with high network requirements, the network performance loss caused by virtualization will affect the normal operation of the business. Therefore, a network performance improvement method suitable for virtualization scenarios is needed to optimize all stages of network data transmission on the virtualization platform. Summary of the invention
[0003] In view of this, the present invention proposes a method, system, device and medium for improving virtualized network performance. Among them, the method for improving virtualized network performance proposed by the present invention is suitable for improving the performance of virtualized network data transmission, and comprehensively improves the performance of virtual machines, network card performance and hypervisor performance.
[0004] Based on the above purpose, one aspect of an embodiment of the present invention provides a method for improving virtualization network performance, comprising the following steps: binding the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required for the virtual machine to be run; bridging the network card of the virtual machine to be run to the host machine network card, and driving it through VirtIO-Net; adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host machine network card to be consistent with the MTU of the operating environment; configuring the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host machine network card, and simultaneously enabling the GSO and GRO of the host machine network card and the network card of the virtual machine to be run; increasing the threads for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net.
[0005] In some embodiments, binding the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required for the virtual machine to be run includes: monitoring the use of the CPU core of the host machine through a management platform; determining whether the number of unbound CPU cores of the host machine meets the number of CPU cores required for the virtual machine to be run; and in response to the number of unbound CPU cores of the host machine meeting the number of CPU cores required for the virtual machine to be run, binding the virtual machine to be run to the unbound CPU core of the host machine.
[0006] In some embodiments, binding the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required by the virtual machine to be run includes: in response to the number of unbound CPU cores of the host machine not meeting the number of CPU cores required by the virtual machine to be run, releasing the cores occupied by virtual machines with lower priority than the virtual machine to be run in the host machine, and binding the virtual machine to be run to the unbound CPU cores of the host machine and the released CPU cores of the host machine.
[0007] In some embodiments, binding the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required by the virtual machine to be run includes: modifying the GRUB startup parameters according to the number of CPU cores required by the virtual machine to be run to isolate the required number of CPU cores from the host machine; binding the virtual machine to be run to the isolated CPU core of the host machine.
[0008] In some embodiments, adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host network card to be consistent with the MTU of the operating environment includes: adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host network card through Ethtool to ensure that the MTU of the network card of the virtual machine to be run and the MTU of the host network card are consistent with the MTU of the operating environment.
[0009] In some embodiments, increasing the threads for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net includes: exchanging data through a ring buffer between the front end and the back end of the VirtIO-Net, and increasing the ring buffer to improve the efficiency of data transmission in the VirtIO-Net.
[0010] According to another aspect of an embodiment of the present invention, a system for improving virtualized network performance is provided, comprising the following modules: a first module, configured to bind the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required for the virtual machine to be run; a second module, configured to bridge the network card of the virtual machine to be run to the network card of the host machine, and drive it through VirtIO-Net; a third module, configured to configure the MTU of the network card of the virtual machine to be run and the MTU of the host machine network card to be consistent with the MTU of the running environment; a fourth module, configured to configure the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host machine network card, and simultaneously enable the GSO and GRO of the host machine network card and the network card of the virtual machine to be run; and a fifth module, configured to increase the thread for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net.
[0011] In some embodiments, the fifth module is used to: exchange data through a ring buffer between the front end and the back end of the VirtIO-Net, and increase the efficiency of data transmission in the VirtIO-Net by increasing the ring buffer.
[0012] Another aspect of an embodiment of the present invention provides a computer device, comprising at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of any of the above methods when executed by the processor.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements any of the above method steps when executed by a processor.
[0014] The present invention has at least the following beneficial effects: a method, system, device and medium for improving the performance of a virtualized network proposed in the present invention, wherein the method for improving the performance of a virtualized network proposed in the present invention improves the performance of the virtualized network by improving the performance of the virtual machine, the performance of the network card and the performance of the Hypervisor without upgrading the hardware. The improvement of the network performance of the virtual machine is achieved by binding cores to the CPU of the host machine, thereby optimizing the processing capacity of network data, and the effect is particularly significant when the virtual machine is under high load. When improving the performance of the network card, the network loss can be effectively avoided by adjusting the GSO, GRO and MTU of the virtual machine and the host machine in a linked manner. When improving the performance of the Hypervisor, the network transmission performance of the VirtIO-Net front and back ends can be effectively improved by increasing the number of threads of the VirtIO-Net front and back ends. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of an embodiment of a method for improving virtualized network performance provided by the present invention;
[0017] Figure 2 A schematic diagram of another embodiment of a method for improving virtualized network performance proposed by the present invention;
[0018] Figure 3 A schematic diagram of an embodiment of a system for improving virtualized network performance provided by the present invention;
[0019] Figure 4 A schematic diagram of an embodiment of a computer device provided by the present invention;
[0020] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0021] The following describes embodiments of the present invention. However, it should be understood that the disclosed embodiments are merely examples and other embodiments can take various alternative forms.
[0022] In addition, it should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one. The terms "include", "comprise" or any other variation thereof are intended to cover non-exclusive inclusions, so that a process, method, article or device that includes a series of elements includes not only those elements, but also elements that are not explicitly listed or inherent to these processes, methods, articles or devices.
[0023] One or more embodiments of the present application will be described below with reference to the accompanying drawings.
[0024] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a method for improving virtualized network performance. Figure 1 FIG. 1 is a schematic diagram of an embodiment of a method for improving virtualized network performance provided by the present invention. Figure 1As shown, a method for improving virtualized network performance according to an embodiment of the present invention includes the following steps:
[0025] S1. Binding the virtual machine to be run to the CPU core allocated to the host machine according to the number of CPU cores required by the virtual machine to be run;
[0026] S2, bridge the network card of the virtual machine to be run to the network card of the host machine, and drive it through VirtIO-Net;
[0027] S3, adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host network card to be consistent with the MTU of the running environment;
[0028] S4, configuring the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host network card, and simultaneously enabling the GSO and GRO of the host network card and the network card of the virtual machine to be run;
[0029] S5. Adding threads for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net.
[0030] Figure 2 FIG. 2 is a schematic diagram of another embodiment of a method for improving virtualized network performance proposed by the present invention. Figure 2 As shown, a method for improving virtualized network performance according to an embodiment of the present invention includes:
[0031] When a virtual machine interacts with the outside world, network data will pass through the virtual machine, hypervisor, and host machine. Without upgrading the hardware conditions, the virtual network performance can be improved by configuring the network cards of the virtual machine, hypervisor, virtual machine, and host machine.
[0032] The management platform monitors the usage of the CPU core of the host machine. When there is a virtual machine to be run, the corresponding core quantity is allocated from the CPU core of the host machine according to the number of CPU cores required by the virtual machine to be run, so as to supply the virtual machine to be run. When performing the binding operation in the host machine, the CPU cores that are not bound are selected first, and the CPU cores occupied by the virtual machines with higher priorities than the virtual machine to be run are not occupied as much as possible to ensure that the high-priority virtual machines are allocated sufficient resources. When the number of unbound CPU cores is insufficient, the number of CPU cores occupied by the low-priority virtual machines is released according to the actual situation, and the virtual machine to be run is bound to the unbound CPU cores and the unbound CPU cores according to the required CPU core quantity. In actual applications, the isolation and binding method can be selected to bind the virtual machine to be run to the CPU core of the host machine. According to the amount of CPU cores required by the virtual machine to be run, the startup parameters of GRUD are modified to isolate the corresponding CPU cores on a portion of the host machine, and then the virtual machine process to be run is bound to the isolated CPU core, so that the virtual machine to be run can monopolize these CPU resources. Although this method makes other processes of the host machine unable to run on it, it can enable the virtual machine to obtain performance close to that of a real CPU. It is understandable that in actual applications, the direct binding without isolation method can also be selected. This method enables the virtual machine process to run on the specified CPU core of the host machine, reducing the performance loss caused by context switching. At the same time, other processes of the host machine can still be scheduled to these CPU cores. This method takes into account the performance of both the virtual machine and the host machine.
[0033] Bridge the network card of the virtual machine to be run to the network card of the host machine, and use VirtIO-Net to drive it. Enable GSO (Generic Segmentation Offload) and GRO (Generic Receive Offloading) of the network card of the host machine, and perform data segmentation and aggregation through the network card of the host machine. Among them, under the condition that the network card hardware supports it, the GSO (Generic Segmentation Offload) and GRO (Generic Receive Offloading) functions can be directly implemented by the network card, otherwise they must be handled by the network card driver. Furthermore, by referring to the GSO (Generic Segmentation Offload) and GRO (Generic Receive Offloading) principles of the host machine's network card, GSO (Generic Segmentation Offload) and GRO (Generic Receive Offloading) are configured and enabled at the same time in the virtual machine to be run. GSO (Generic Segmentation Offload) postpones data segmentation until just before it is sent to the network card of the virtual machine to be run, and GRO (Generic Receive Offloading) aggregates the data received by the network card of the virtual machine and then passes it to the network protocol stack. At the same time, adjust the MTU (Maximum Transmission Unit) on the network link nodes of the host machine, the virtual machine to be run, and the running environment to be consistent. Through Ethtool, the MTU (Maximum Transmission Unit) of the network cards of the virtual machine to be run and the host machine can be adjusted to avoid multiple fragmentation and aggregation of large network packets due to inconsistent MTU (Maximum Transmission Unit) of link nodes during transmission.By configuring the GSO (Generic Segmentation Offload), GRO (Generic Receive Offloading), and MTU (Maximum Transmission Unit) of the host machine and the virtual machine to be run in the above manner, network loss can be effectively avoided.
[0034] In terms of improving the Hypervisor network performance, the VirtIO-Net front-end and back-end are optimized to improve the Hypervisor network performance. The VirtIO-Net front-end is driven by the virtual network card in the virtual machine, and the back-end is implemented in the Hypervisor. The two exchange data through the data buffer. In practical applications, a ring buffer can be selected as the data buffer for exchanging data between the two. The transmission efficiency between the VirtIO-Net front-end and back-end is a bottleneck of the network performance of the virtual machine. By increasing the number of threads that read and write data from the data buffer of the VirtIO-Net front-end and back-end, and increasing the ring buffer, the network transmission performance of the VirtIO-Net front-end and back-end can be effectively improved, that is, the transmission efficiency of network data at the Hypervisor layer can be improved.
[0035] Based on the above objectives, a second aspect of an embodiment of the present invention provides a system for improving virtualized network performance. Figure 3 FIG. 1 is a schematic diagram of an embodiment of a system for improving virtualized network performance provided by the present invention. Figure 3 As shown, a system for improving virtualized network performance provided by the present invention includes the following modules: a first module 011, configured to bind the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required by the virtual machine to be run; a second module 012, configured to bridge the network card of the virtual machine to be run to the network card of the host machine, and drive it through VirtIO-Net; a third module 013, configured to configure the MTU of the network card of the virtual machine to be run and the MTU of the host machine network card to be consistent with the MTU of the running environment; a fourth module 014, configured to configure the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host machine network card, and simultaneously enable the GSO and GRO of the host machine network card and the network card of the virtual machine to be run; and a fifth module 015, configured to increase the thread of data exchange between the front end and the back end of the VirtIO-Net, so as to improve the efficiency of data transmission in the VirtIO-Net.
[0036] The fifth module 015 is configured to: exchange data through a ring buffer between the front end and the back end of the VirtIO-Net, and increase the efficiency of data transmission in the VirtIO-Net by increasing the ring buffer.
[0037] Based on the above objectives, a third aspect of an embodiment of the present invention provides a computer device, Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 4 As shown, an embodiment of a computer device provided by the present invention includes the following modules: at least one processor 021; and a memory 022, wherein the memory 022 stores computer instructions 023 that can be executed on the processor 021, and the computer instructions 023 implement the steps of any of the above methods when executed by the processor 021.
[0038] The present invention also provides a computer-readable storage medium. Figure 5 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, the computer-readable storage medium 031 stores a computer program 032 that performs the above method when executed by a processor.
[0039] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the method for setting system parameters can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.
[0040] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
[0041] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
[0042] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0043] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (D0L) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, D0L or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0044] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0045] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0046] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0047] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0048] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for improving virtualized network performance, characterized in that: include: Binding the virtual machine to be run to the CPU core allocated to the host machine according to the number of CPU cores required by the virtual machine to be run; Bridge the network card of the virtual machine to be run to the network card of the host machine and drive it through VirtIO-Net; Adjust the MTU of the network card of the virtual machine to be run and the MTU of the host network card to be consistent with the MTU of the running environment; Configure the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host network card, and simultaneously enable the GSO and GRO of the host network card and the network card of the virtual machine to be run; Adding threads for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net; The step of binding the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required by the virtual machine to be run includes: When performing a binding operation in the host machine, the CPU cores that are not bound are selected first, and the CPU cores occupied by virtual machines with higher priorities than the virtual machine to be run are not occupied as much as possible, so as to ensure that sufficient resources are allocated to the high-priority virtual machines; Monitoring the use of the CPU core of the host machine through a management platform; Determine whether the number of unbound CPU cores of the host machine meets the number of CPU cores required by the virtual machine to be run; and In response to the number of unbound CPU cores of the host machine satisfying the number of CPU cores required by the virtual machine to be run, binding the virtual machine to be run to the unbound CPU cores of the host machine; In response to the number of unbound CPU cores of the host machine not meeting the number of CPU cores required by the virtual machine to be run, releasing the cores occupied by virtual machines with lower priorities than the virtual machine to be run in the host machine, and binding the virtual machine to be run to the unbound CPU cores of the host machine and the released CPU cores of the host machine; The steps of binding the virtual machine to be run to the CPU core of the host machine by means of isolation and binding are as follows: Modify the startup parameters of GRUB according to the number of CPU cores required by the virtual machine to be run, so as to isolate the required number of CPU cores from the host machine; Binding the virtual machine to be run to the isolated CPU core of the host machine; Alternatively, the steps of binding the virtual machine to be run to the CPU core of the host machine in a binding but non-isolated manner are as follows: The process of the virtual machine to be run is run on a designated CPU core of the virtual machine.
2. The method for improving virtualized network performance according to claim 1, characterized in that: The adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host network card to be consistent with the MTU of the operating environment includes: adjusting the MTU of the network card of the virtual machine to be run and the MTU of the host network card through Ethtool to achieve the consistency of the MTU of the network card of the virtual machine to be run and the MTU of the host network card with the MTU of the operating environment.
3. The method for improving virtualized network performance according to claim 1, characterized in that: The method of increasing the threads for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net includes: exchanging data through a ring buffer between the front end and the back end of the VirtIO-Net, and increasing the ring buffer to improve the efficiency of data transmission in the VirtIO-Net.
4. A system for improving virtualized network performance, characterized in that: include: The first module is configured to bind the virtual machine to be run to the CPU core allocated by the host machine according to the number of CPU cores required by the virtual machine to be run; The second module is configured to bridge the network card of the virtual machine to be run to the network card of the host machine and drive it through VirtIO-Net; The third module is configured to configure the MTU of the network card of the virtual machine to be run and the MTU of the host network card to be consistent with the MTU of the running environment; The fourth module is configured to configure the GSO and GRO of the network card of the virtual machine to be run according to the GSO and GRO of the host network card, and simultaneously enable the GSO and GRO of the host network card and the network card of the virtual machine to be run; as well as A fifth module is configured to increase the thread for data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the VirtIO-Net; The first module is further configured to: When performing a binding operation in the host machine, the CPU cores that are not bound are selected first, and the CPU cores occupied by virtual machines with higher priorities than the virtual machine to be run are not occupied as much as possible, so as to ensure that sufficient resources are allocated to the high-priority virtual machines; Monitoring the use of the CPU core of the host machine through a management platform; Determine whether the number of unbound CPU cores of the host machine meets the number of CPU cores required by the virtual machine to be run; and In response to the number of unbound CPU cores of the host machine satisfying the number of CPU cores required by the virtual machine to be run, binding the virtual machine to be run to the unbound CPU cores of the host machine; In response to the number of unbound CPU cores of the host machine not meeting the number of CPU cores required by the virtual machine to be run, releasing the cores occupied by virtual machines with lower priorities than the virtual machine to be run in the host machine, and binding the virtual machine to be run to the unbound CPU cores of the host machine and the released CPU cores of the host machine; The steps of binding the virtual machine to be run to the CPU core of the host machine by means of isolation and binding are as follows: Modify the startup parameters of GRUB according to the number of CPU cores required by the virtual machine to be run, so as to isolate the required number of CPU cores from the host machine; Binding the virtual machine to be run to the isolated CPU core of the host machine; Alternatively, the steps of binding the virtual machine to be run to the CPU core of the host machine in a binding but non-isolated manner are as follows: The process of the virtual machine to be run is run on a designated CPU core of the virtual machine.
5. The system for improving virtualized network performance according to claim 4, characterized in that: The fifth module is used to: exchange data through the ring buffer between the front end and the back end of the VirtIO-Net, and increase the efficiency of data transmission in the VirtIO-Net by increasing the ring buffer.
6. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 3.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
