CN114697215A - Method, system, equipment and medium for improving performance of virtualization network - Google Patents

Method, system, equipment and medium for improving performance of virtualization network Download PDF

Info

Publication number
CN114697215A
CN114697215A CN202210355102.XA CN202210355102A CN114697215A CN 114697215 A CN114697215 A CN 114697215A CN 202210355102 A CN202210355102 A CN 202210355102A CN 114697215 A CN114697215 A CN 114697215A
Authority
CN
China
Prior art keywords
virtual machine
network card
operated
machine
host machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210355102.XA
Other languages
Chinese (zh)
Inventor
张晓东
刘毅枫
刘学兵
马晓光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Chaoyue Shentai Information Technology Co Ltd
Original Assignee
Xian Chaoyue Shentai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Chaoyue Shentai Information Technology Co Ltd filed Critical Xian Chaoyue Shentai Information Technology Co Ltd
Priority to CN202210355102.XA priority Critical patent/CN114697215A/en
Publication of CN114697215A publication Critical patent/CN114697215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Abstract

The invention relates to the field of virtualization, and discloses a method, a system, equipment and a medium for improving the performance of a virtualized network. The method comprises the following steps: binding the virtual machine to be operated on the CPU core distributed by the host machine according to the number of the CPU cores required by the virtual machine to be operated; bridging a network card of a virtual machine to be operated to a network card of a host machine, and driving through VirtIO-Net; adjusting the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine to be consistent with the MTU of the operating environment; the GSO and the GRO of the virtual machine network card to be operated are configured according to the GSO and the GRO of the host machine network card, and the host machine network card and the GSO and the GRO of the virtual machine network card to be operated are simultaneously started; and increasing the thread of data exchange between the front end and the rear end of the VirtiO-Net so as to improve the efficiency of data transmission in the VirtiO-Net. The method disclosed by the invention realizes the improvement of the performance of the virtualized network.

Description

Method, system, equipment and medium for improving performance of virtualization network
Technical Field
The present invention relates to the field of virtualization, and in particular, to a method, system, device, and medium for improving performance of a virtualized network.
Background
As the application field of virtualization technology continues to extend, more and more business applications begin to be transferred from the host to the virtualization platform. In some production environments with high network requirements, network performance loss caused by virtualization may affect normal operation of services. Therefore, a network performance improving method suitable for a virtualization scene is needed to optimize each stage of network data transmission of a virtualization platform.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device and a medium for improving the performance of a virtualized network. The method for improving the performance of the virtualized network is suitable for improving the data transmission performance of the virtualized network, and comprehensively realizes the improvement of the performance of the virtualized network from the improvement of the performance of a virtual machine, the performance of a network card and the performance of a Hypervisor.
Based on the above objectives, an aspect of the embodiments of the present invention provides a method for improving performance of a virtualized network, including the following steps: binding the virtual machine to be run on the CPU core distributed by the host machine according to the number of the CPU cores required by the virtual machine to be run; bridging a network card of a virtual machine to be operated to a network card of a host machine, and driving through VirtIO-Net; adjusting the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine to be consistent with the MTU of the operating environment; the GSO and the GRO of the virtual machine network card to be operated are configured according to the GSO and the GRO of the host machine network card, and the host machine network card and the GSO and the GRO of the virtual machine network card to be operated are simultaneously started; and increasing the thread of data exchange between the front end and the rear end of the VirtiO-Net so as to improve the efficiency of data transmission in the VirtiO-Net.
In some embodiments, the binding the virtual machine to be run to the CPU core allocated by the host according to the number of CPU cores required by the virtual machine to be run includes: monitoring the use of the CPU core of the host machine through a management platform; judging whether the unbound CPU core number of the host machine meets the CPU core number required by the virtual machine to be operated; and binding the virtual machine to be operated on the unbound CPU core of the host machine in response to the unbound CPU core number of the host machine meeting the CPU core number required by the virtual machine to be operated.
In some embodiments, the binding the virtual machine to be run to the CPU core allocated by the host according to the number of CPU cores required by the virtual machine to be run includes: and in response to the fact that the number of unbound CPU cores of the host machine does not meet the number of CPU cores required by the virtual machine to be operated, releasing cores occupied by the virtual machine with lower priority than the virtual machine to be operated in the host machine, and binding the virtual machine to be operated on the unbound CPU cores of the host machine and the released CPU cores of the host machine.
In some embodiments, the binding the virtual machine to be run to the CPU core allocated by the host according to the number of CPU cores required by the virtual machine to be run includes: modifying a starting parameter of GRUB according to the number of CPU cores required by the virtual machine to be operated so as to isolate the required number of CPU cores from the host; and binding the virtual machine to be operated on the isolated CPU core of the host machine.
In some embodiments, the adjusting that the MTU of the to-be-run virtual machine network card and the MTU of the host machine network card are consistent with the MTU of the running environment includes: and adjusting the network card of the virtual machine to be operated and the MTU of the network card of the host machine through Ethtool to realize that the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine are consistent with the MTU of the operating environment.
In some embodiments, the increasing the number of threads of data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the virio-Net comprises: and carrying out data exchange through the annular buffer area between the front end and the rear end of the VirtiO-Net, and increasing the annular buffer area to improve the transmission efficiency of data in the VirtiO-Net.
In another aspect of the embodiments of the present invention, a system for improving performance of a virtualized network is further provided, including the following modules: the virtual machine management system comprises a first module, a second module and a third module, wherein the first module is configured to bind a virtual machine to be operated on a CPU core distributed by a host machine according to the number of the CPU cores required by the virtual machine to be operated; the second module is configured to bridge the network card of the virtual machine to be operated to the network card of the host machine and drive the network card through VirtIO-Net; the third module is configured to configure that the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine are consistent with the MTU of the operating environment; the fourth module is configured to configure the GSO and the GRO of the virtual machine network card to be operated according to the GSO and the GRO of the host machine network card, and simultaneously start the GSO and the GRO of the host machine network card and the virtual machine network card to be operated; and a fifth module, configured to increase a thread of data exchange between the front end and the back end of the VirtIO-Net, so as to improve efficiency of data transmission in the VirtIO-Net.
In some embodiments, the fifth module is to: and carrying out data exchange through the annular buffer area between the front end and the rear end of the VirtiO-Net, and increasing the annular buffer area to improve the transmission efficiency of data in the VirtiO-Net.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing any one of the above method steps is stored when the computer program is executed by a processor.
The invention has at least the following beneficial effects: the method, the system, the equipment and the medium for improving the performance of the virtualized network provided by the invention realize the improvement of the performance of the virtualized network by improving the performance of a virtual machine, the performance of a network card and the performance of a Hypervisor without upgrading hardware. The network performance of the virtual machine is improved by binding a core on a CPU of the host machine, so that the processing capacity of network data is optimized, and the effect is particularly remarkable under the condition that the virtual machine is under high load. When the network card performance is improved, the GSO, the GRO and the MTU of the virtual machine and the host machine are adjusted in a linkage mode, and network loss can be effectively avoided. When the performance of the Hypervisor is improved, the network transmission performance of the front end and the back end of the VirtiO-Net can be effectively improved by increasing the thread number of the front end and the back end of the VirtiO-Net.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an embodiment of a method for improving performance of a virtualized network according to the present invention;
FIG. 2 is a diagram illustrating another embodiment of a method for improving performance of a virtualized network according to the present invention;
FIG. 3 is a diagram illustrating an embodiment of a system for improving performance of a virtualized network;
FIG. 4 is a schematic diagram of one embodiment of a computer device;
fig. 5 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
Embodiments of the present invention are described below. However, it is to be understood that the disclosed embodiments are merely examples and that other embodiments may take various and alternative forms.
In addition, it should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are only used for convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
One or more embodiments of the present application will be described below in conjunction with the following drawings.
In view of the above objectives, a first aspect of the embodiments of the present invention provides an embodiment of a method for improving performance of a virtualized network. Fig. 1 is a schematic diagram illustrating an embodiment of a method for improving performance of a virtualized network according to the present invention. As shown in fig. 1, a method for improving performance of a virtualized network according to an embodiment of the present invention includes the following steps:
s1, binding the virtual machine to be operated on the CPU core distributed by the host machine according to the number of the CPU cores required by the virtual machine to be operated;
s2, bridging the virtual machine network card to be operated to the host machine network card, and driving through VirtIO-Net;
s3, adjusting the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine to be consistent with the MTU of the operation environment;
s4, configuring GSO and GRO of the virtual machine network card to be operated according to GSO and GRO of the host machine network card, and simultaneously starting the host machine network card and GSO and GRO of the virtual machine network card to be operated;
and S5, increasing the thread of data exchange between the front end and the rear end of the VirtiO-Net to improve the efficiency of data transmission in the VirtiO-Net.
Fig. 2 is a schematic diagram illustrating another embodiment of a method for improving performance of a virtualized network according to the present invention. As shown in fig. 2, a method for improving performance of a virtualized network according to an embodiment of the present invention includes:
when the Virtual Machine interacts with the outside, network data can pass through the Virtual Machine (Virtual Machine), the Hypervisor and the Host Machine (Host Machine). Under the condition that hardware conditions are not upgraded, the performance of a Virtual network is improved by configuring network cards of a Virtual Machine (Virtual Machine), a Hypervisor, a Virtual Machine (Virtual Machine) and a Host Machine (Host Machine).
The management platform monitors the use condition of the Host Machine (Host Machine) CPU core, and when there is a Virtual Machine (Virtual Machine) to be operated, the management platform distributes corresponding core amount from the Host Machine (Host Machine) CPU core through the number of the CPU cores required by the Virtual Machine to be operated so as to supply the Virtual Machine (Virtual Machine) to be operated. When the Host Machine (Host Machine) performs binding operation, the Host Machine preferentially selects from unbound CPU cores, and the CPU core occupied by the Virtual Machine (Virtual Machine) with higher priority than the Virtual Machine (Virtual Machine) to be operated is not occupied as much as possible so as to ensure that the high-priority Virtual Machine (Virtual Machine) is distributed with enough resources. When the number of unbound CPU cores is insufficient, the CPU core number occupied by the Virtual Machine (Virtual Machine) with low priority is removed according to the actual situation, and the Virtual Machine (Virtual Machine) to be operated is bound on the unbound CPU core and the unbound CPU core according to the required CPU core amount. In practical application, a mode of isolation and binding can be selected to bind the virtual machine to be run on the CPU core of the host. Modifying the starting parameters of the GRUD according to the CPU core quantity required by the Virtual Machine (Host Machine) to be operated so as to isolate a part of corresponding CPU cores on the Host Machine (Host Machine), and then binding the process of the Virtual Machine (Host Machine) to be operated to the isolated CPU cores so that the Virtual Machine (Host Machine) to be operated can monopolize the CPU resources. It can be understood that, in practical applications, a direct-binding non-isolation manner may also be selected, which enables the Virtual Machine (Virtual Machine) process to run on the designated CPU core of the Host Machine (Host Machine), so as to reduce the performance loss caused by context switching, and meanwhile, other processes of the Host Machine (Host Machine) may still be scheduled on these CPU cores, which takes into account the performance of the Virtual Machine (Virtual Machine) and the Host Machine (Host Machine).
Bridging a network card of a Virtual Machine (Virtual Machine) to be operated to a network card of a Host Machine (Host Machine), and driving by using the Virtual IO-Net. The method comprises the steps of starting GSO (general Segmentation Offload) and GRO (general reception Offload) of a network card of a Host Machine (Host Machine), and carrying out fragmentation and aggregation of data through the network card of the Host Machine (Host Machine). Under the condition of network card hardware support, the gso (generic Segmentation offload) and gro (generic Receive offload) functions can be directly realized by the network card, otherwise, the functions are processed by the network card driver. Further, by referring to the gso (generic Segmentation offload) and gro (generic reception offload) principles of the network card of the Host Machine (Host Machine), gso (generic Segmentation offload) and gro (generic reception offload) are configured and simultaneously started in the Virtual Machine (Virtual Machine) to be run, and gso (generic Segmentation offload) defer the data fragmentation to the point before the network card sent to the Virtual Machine (Virtual Machine) to be run, and the gro (generic Segmentation offload) aggregates the data received by the network card of the Virtual Machine (Virtual Machine) and then transfers the aggregated data to the network protocol stack. Meanwhile, the Host Machine (Host Machine), the Virtual Machine (Virtual Machine) to be operated and the MTU (Maximum Transmission Unit) on the network link node of the operating environment are adjusted to be consistent, the MTU (Maximum Transmission Unit) of the network cards of the Virtual Machine (Virtual Machine) to be operated and the Host Machine (Host Machine) can be adjusted through the Ethtool, and multiple fragmentation and aggregation caused by the inconsistency of the link node MTU (Maximum Transmission Unit) during Transmission of the network large packet are avoided. By performing linkage configuration on the Host (Host Machine) and the GSO (general Segmentation off flow), the GRO (general reception off flow) and the MTU (maximum Transmission Unit) of the Virtual Machine (Virtual Machine) to be operated in the above manner, network loss can be effectively avoided.
In the aspect of improving the performance of the Hypervisor network, the front end and the rear end of VirtiO-Net are optimized to further improve the performance of the Hypervisor network. The VirtiO-Net front end is driven by a Virtual network card in a Virtual Machine (Virtual Machine), the back end is realized in a Hypervisor, the VirtiO-Net front end and the VirtiO-Net front end exchange data through a data buffer area, and in practical application, a ring buffer area can be selected as the data buffer area for the VirtiO-Net front end and the Hypervisor to exchange data. The transmission efficiency between the front end and the back end of the Virtual Machine-Net is a bottleneck of the network performance of the Virtual Machine (Virtual Machine). By increasing threads for reading and writing data from the data buffer area by the front end and the rear end of VirtiO-Net and enlarging the annular buffer area, the network transmission performance of the front end and the rear end of VirtiO-Net can be effectively improved, namely the transmission efficiency of network data on a Hypervisor layer is improved.
In view of the above, a second aspect of the embodiment of the present invention provides a system for improving performance of a virtualized network, and fig. 3 is a schematic diagram illustrating an embodiment of the system for improving performance of a virtualized network according to the present invention. As shown in fig. 3, the system for improving performance of a virtualized network provided by the present invention includes the following modules: the first module 011 is configured to bind the virtual machine to be run to the CPU core allocated by the host machine according to the number of the CPU cores required by the virtual machine to be run; the second module 012 is configured to bridge the network card of the virtual machine to be operated to the network card of the host machine, and is driven by virtIO-Net; a third module 013, configured to configure the MTU of the to-be-run virtual machine network card 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 the GRO of the virtual machine network card to be operated according to the GSO and the GRO of the host machine network card, and simultaneously start the GSO and the GRO of the host machine network card and the virtual machine network card to be operated; and a fifth module 015, configured to increase a thread of data exchange between a front end and a back end of the VirtIO-Net, so as to improve efficiency of data transmission in the VirtIO-Net.
The fifth module 015 is configured to: and carrying out data exchange through the annular buffer area between the front end and the rear end of the VirtiO-Net, and increasing the annular buffer area to improve the transmission efficiency of data in the VirtiO-Net.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, and fig. 4 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 4, an embodiment of a computer device provided by the present invention includes the following modules: at least one processor 021; and a memory 022, the memory 022 storing computer instructions 023 executable on the processor 021, said computer instructions 023, when executed by said processor 021, implementing the steps of any of the methods described above.
The invention also provides a computer readable storage medium. FIG. 5 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 5, the computer readable storage medium 031 stores a computer program 032 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for setting system parameters can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (D0L), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, D0L, or wireless technologies such as infrared, radio, and microwave are all included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, 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 magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for improving the performance of a virtualized network is characterized by comprising the following steps:
binding the virtual machine to be operated on the CPU core distributed by the host machine according to the number of the CPU cores required by the virtual machine to be operated;
bridging a network card of a virtual machine to be operated to a network card of a host machine, and driving through VirtIO-Net;
adjusting the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine to be consistent with the MTU of the operating environment;
the GSO and the GRO of the virtual machine network card to be operated are configured according to the GSO and the GRO of the host machine network card, and the GSO and the GRO of the host machine network card and the virtual machine network card to be operated are simultaneously started;
and increasing the thread of data exchange between the front end and the rear end of the VirtiO-Net so as to improve the efficiency of data transmission in the VirtiO-Net.
2. The method according to claim 1, wherein the binding the virtual machine to be run to the CPU core allocated by the host according to the number of the CPU cores required by the virtual machine to be run comprises:
monitoring the use of the CPU core of the host machine through a management platform;
judging whether the unbound CPU core number of the host machine meets the CPU core number required by the virtual machine to be operated; and
and in response to the condition that the number of the unbound CPU cores of the host machine meets the number of the CPU cores required by the virtual machine to be operated, binding the virtual machine to be operated on the unbound CPU cores of the host machine.
3. The method according to claim 2, wherein the binding the virtual machine to be run to the CPU core allocated by the host according to the number of the CPU cores required by the virtual machine to be run comprises:
and in response to the fact that the number of unbound CPU cores of the host machine does not meet the number of CPU cores required by the virtual machine to be operated, releasing cores occupied by the virtual machine with lower priority than the virtual machine to be operated in the host machine, and binding the virtual machine to be operated on the unbound CPU cores of the host machine and the released CPU cores of the host machine.
4. The method for improving the performance of the virtualized network according to claim 3, wherein the binding the virtual machine to be run on the CPU core allocated by the host according to the number of the CPU cores required by the virtual machine to be run comprises:
modifying a starting parameter of GRUB according to the number of CPU cores required by the virtual machine to be operated so as to isolate the required number of CPU cores from the host;
and binding the virtual machine to be operated on the isolated CPU core of the host machine.
5. The method according to claim 1, wherein the adjusting that the MTU of the network card of the virtual machine to be executed and the MTU of the network card of the host machine are consistent with the MTU of the execution environment comprises: and adjusting the network card of the virtual machine to be operated and the MTU of the network card of the host machine through Ethtool to realize that the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine are consistent with the MTU of the operating environment.
6. The method of claim 1, wherein the increasing the thread of data exchange between the front end and the back end of the VirtIO-Net to improve the efficiency of data transmission in the virio-Net comprises: and carrying out data exchange through the annular buffer area between the front end and the rear end of the VirtiO-Net, and increasing the annular buffer area to improve the transmission efficiency of data in the VirtiO-Net.
7. A system for virtualized network performance enhancement, comprising:
the virtual machine management system comprises a first module, a second module and a third module, wherein the first module is configured to bind a virtual machine to be operated on a CPU core distributed by a host machine according to the number of the CPU cores required by the virtual machine to be operated;
the second module is configured to bridge the network card of the virtual machine to be operated to the network card of the host machine and drive the network card through VirtIO-Net;
the third module is configured to configure that the MTU of the network card of the virtual machine to be operated and the MTU of the network card of the host machine are consistent with the MTU of the operating environment;
the fourth module is configured to configure the GSO and the GRO of the virtual machine network card to be operated according to the GSO and the GRO of the host machine network card, and simultaneously start the GSO and the GRO of the host machine network card and the virtual machine network card to be operated; and
and the fifth module is configured to increase a thread of data exchange between the front end and the rear end of the VirtiO-Net, so as to improve the efficiency of data transmission in the VirtiO-Net.
8. The system for virtualized network performance enhancement as in claim 7, wherein the fifth module is configured to: and carrying out data exchange through the annular buffer area between the front end and the rear end of the VirtiO-Net, and increasing the annular buffer area to improve the transmission efficiency of data in the VirtiO-Net.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202210355102.XA 2022-03-31 2022-03-31 Method, system, equipment and medium for improving performance of virtualization network Pending CN114697215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210355102.XA CN114697215A (en) 2022-03-31 2022-03-31 Method, system, equipment and medium for improving performance of virtualization network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210355102.XA CN114697215A (en) 2022-03-31 2022-03-31 Method, system, equipment and medium for improving performance of virtualization network

Publications (1)

Publication Number Publication Date
CN114697215A true CN114697215A (en) 2022-07-01

Family

ID=82143787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210355102.XA Pending CN114697215A (en) 2022-03-31 2022-03-31 Method, system, equipment and medium for improving performance of virtualization network

Country Status (1)

Country Link
CN (1) CN114697215A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170103003A1 (en) * 2015-10-09 2017-04-13 Neusoft Corporation Physical network security device and control method therefor
WO2017067391A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Data sharing method and device for virtual machines
US20180191629A1 (en) * 2016-12-30 2018-07-05 Intel Corporation Time-based flexible packet scheduling
CN108255598A (en) * 2016-12-28 2018-07-06 华耀(中国)科技有限公司 The virtual management platform resource distribution system and method for performance guarantee
CN108847972A (en) * 2018-06-08 2018-11-20 山东超越数控电子股份有限公司 The method of network data transmission rate is improved under a kind of virtual environment
WO2019091361A1 (en) * 2017-11-10 2019-05-16 北京金山云网络技术有限公司 Network card mode switching method, apparatus, electronic device and storage medium
CN109803016A (en) * 2019-01-24 2019-05-24 山东超越数控电子股份有限公司 A kind of method and apparatus using virtual switch forwarding data packet
US20200097314A1 (en) * 2018-09-21 2020-03-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and Apparatus for Processing Request
CN111130863A (en) * 2019-12-12 2020-05-08 北京浪潮数据技术有限公司 Virtual network card management method, system, equipment and computer storage medium
CN111143025A (en) * 2019-11-22 2020-05-12 中国船舶工业***工程研究院 Method for real-time virtual machine instance management
US20200267082A1 (en) * 2017-09-28 2020-08-20 Beijing Kingsoft Cloud Network Technology Co., Ltd. Packet Forwarding Method, Device, Switch, Apparatus, and Storage Medium
CN112199157A (en) * 2020-10-16 2021-01-08 深圳无域科技技术有限公司 Cloud environment management method
CN112711462A (en) * 2020-12-28 2021-04-27 ***股份有限公司 Cloud platform virtual CPU hot binding method and device and computer readable storage medium
US20210203619A1 (en) * 2018-09-18 2021-07-01 Alibaba Group Holding Limited Packet Forwarding Method, Apparatus, Device, and System

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170103003A1 (en) * 2015-10-09 2017-04-13 Neusoft Corporation Physical network security device and control method therefor
WO2017067391A1 (en) * 2015-10-22 2017-04-27 中兴通讯股份有限公司 Data sharing method and device for virtual machines
CN108255598A (en) * 2016-12-28 2018-07-06 华耀(中国)科技有限公司 The virtual management platform resource distribution system and method for performance guarantee
US20180191629A1 (en) * 2016-12-30 2018-07-05 Intel Corporation Time-based flexible packet scheduling
US20200267082A1 (en) * 2017-09-28 2020-08-20 Beijing Kingsoft Cloud Network Technology Co., Ltd. Packet Forwarding Method, Device, Switch, Apparatus, and Storage Medium
WO2019091361A1 (en) * 2017-11-10 2019-05-16 北京金山云网络技术有限公司 Network card mode switching method, apparatus, electronic device and storage medium
CN108847972A (en) * 2018-06-08 2018-11-20 山东超越数控电子股份有限公司 The method of network data transmission rate is improved under a kind of virtual environment
US20210203619A1 (en) * 2018-09-18 2021-07-01 Alibaba Group Holding Limited Packet Forwarding Method, Apparatus, Device, and System
US20200097314A1 (en) * 2018-09-21 2020-03-26 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and Apparatus for Processing Request
CN109803016A (en) * 2019-01-24 2019-05-24 山东超越数控电子股份有限公司 A kind of method and apparatus using virtual switch forwarding data packet
CN111143025A (en) * 2019-11-22 2020-05-12 中国船舶工业***工程研究院 Method for real-time virtual machine instance management
CN111130863A (en) * 2019-12-12 2020-05-08 北京浪潮数据技术有限公司 Virtual network card management method, system, equipment and computer storage medium
CN112199157A (en) * 2020-10-16 2021-01-08 深圳无域科技技术有限公司 Cloud environment management method
CN112711462A (en) * 2020-12-28 2021-04-27 ***股份有限公司 Cloud platform virtual CPU hot binding method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CA2935114C (en) Computer, control device, and data processing method
US20070258388A1 (en) Virtual server cloning
US8417848B2 (en) Method and apparatus for implementing multiple service processing functions
CN111147391B (en) Data transmission method and system between DPDK user mode and linux kernel network protocol stack
US20230022113A1 (en) Management method for cdn function virtualization, electronic device, and computer readable medium
WO2022160872A1 (en) Service processing method and device
CN113986791A (en) Intelligent network card rapid DMA design method, system, equipment and terminal
CN113472624A (en) Method for realizing virtual network data packet forwarding based on vDPA and application
CN113608834A (en) Resource scheduling method, device and equipment based on super-fusion and readable medium
US20140244875A1 (en) Priority Based Connection Arbitration in a SAS Topology to Facilitate Quality of Service (QoS) in SAS Transport
JP2023532358A (en) Resource scheduling method, resource scheduling system, and equipment
CN115934623A (en) Data processing method, device and medium based on remote direct memory access
CN111611078A (en) OpenStack architecture-based GPU cloud server implementation method
US20120222030A1 (en) Lazy resource management
CN114697215A (en) Method, system, equipment and medium for improving performance of virtualization network
US8095684B2 (en) Intelligent device and media server selection for optimized backup image duplication
CN1829231A (en) Method and apparatus for direct reception of inbound data
CN110781158B (en) Distributed storage method and system based on CEPH
CN115913778A (en) Network strategy updating method, system and storage medium based on sidecar mode
CN112463064B (en) I/O instruction management method and device based on double linked list structure
CN114186163A (en) Application layer network data caching method
US11194742B2 (en) Detecting potentially overlapping input/output queues
CN113157823A (en) Cluster system deployment method and device
CN111885564A (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN111245794A (en) Data transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination