Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and computer device for affinity binding of interrupts of virtual network interface card

A technology of computer equipment and virtual network card, applied in the field of communication, can solve the problems of unpredictable virtual network card interruption of sending and receiving packets, interference, co-location interference of physical machines, etc., to avoid waste, avoid interference, and simplify scheduling operations.

Inactive Publication Date: 2014-04-02
HUAWEI TECH CO LTD
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] If there is no definite virtual network card interrupt sending and receiving packet processing scheduling policy, then in the virtual machine environment, it is impossible to predict the impact of virtual network card interrupt sending and receiving packets
like figure 2 As shown, it is assumed that the application program 3 (Application3, APP3) of VM1 is responsible for the process of sending and receiving packets on the network and runs on the virtual VCPU3 (Virtual Central Processing Unit, virtual central processing unit), and VCPU3 is on the PCPU3 (Physical Central Processing Unit , physical central processing unit), if there is no definite policy control, then the processing of the physical interrupt sending and receiving packet of the virtual network card corresponding to APP3 may occur on PCPU2, and the virtual interrupt sending and receiving packet processing of the virtual network card may occur on VCPU1. Thus causing interference to APP2 and APP1 running on VCPU2 and VCPU1 respectively
In addition, if there is no definite policy control of the physical and virtual interrupt sending and receiving packets of the virtual network card, neighbor interference between VMs of the same physical machine may also occur
As shown in the figure below, assuming that APP5 of VM2 is the process responsible for sending and receiving packets on the network and running on VCPU5, and VCPU5 is scheduled to run on PCPU5, then the physical interrupt processing of the corresponding physical network card may be handled by PCPU4 and cause APP4 of VM1 interference

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and computer device for affinity binding of interrupts of virtual network interface card
  • Method and computer device for affinity binding of interrupts of virtual network interface card
  • Method and computer device for affinity binding of interrupts of virtual network interface card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] When the affinity policy parameter is set to automatically follow the policy, the virtual network card interrupt affinity policy parameter indicates that the affinity binding between the physical interrupt and the PCPU follows the change of the affinity binding between the virtual interrupt and the VCPU. Such as Figure 4 As shown, the method for the virtual network card to interrupt the affinity binding mainly includes steps ①②③, as follows:

[0054] Step 1 mainly includes the following three sub-steps:

[0055] The business resource management system initiates a virtual machine resource request, and its virtual network card interruption affinity policy parameter is automatic follow;

[0056] After the IaaS resource management system receives the request, it finds a computer device that meets the resource requirements, and initiates a request to create a virtual machine to the Host OS running on the computer device, and the request carries an automatically followed vi...

Embodiment 2

[0069] When the affinity policy parameter is set as an automatic balance policy, the interrupt affinity policy parameter of the virtual network card indicates that PCPUs processing physical interrupts are balancedly scheduled. The method of interrupting the affinity binding of the virtual network card is as follows: Figure 6 As shown, it mainly includes steps ①②③, as follows:

[0070] Step 1 mainly includes the following three sub-steps:

[0071] The business resource management system initiates a virtual machine resource request, and its virtual network card interruption affinity policy parameter is automatic balance;

[0072] After the IaaS resource management system receives the request, it finds a computer device that meets the resource requirements, and initiates a request to create a virtual machine to the Host OS running on the computer device, and the request carries an automatically balanced virtual network card interrupt affinity policy;

[0073] The Host OS recor...

Embodiment 3

[0083] When the affinity policy parameter is set to an automatic exclusive policy, the interrupt affinity policy parameter of the virtual network card indicates that a PCPU is reserved for handling physical interrupts. The method of interrupting the affinity binding of the virtual network card is as follows: Figure 8 As shown, it mainly includes steps ①②③, as follows:

[0084] Step 1 mainly includes the following three sub-steps:

[0085] The business resource management system initiates a virtual machine resource request, and its virtual network card interrupt affinity policy parameter is automatic exclusive;

[0086] After receiving the request, the IaaS resource management system finds a computer device that meets the resource requirements, and initiates a request to create a virtual machine to the Host OS running on the computer device, and the request carries an automatic exclusive virtual network card interrupt affinity policy;

[0087] The Host OS records the automat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a computer device for the affinity binding of the interrupts of a virtual network interface card. The method comprises the following steps of: receiving a request message carried with the affinity policy parameter of the interrupts of the virtual network interface card, and sent by an IaaS resource management system; performing affinity binding on a plurality of virtual central processing units (VCPUs) and a plurality of physical central processing units (PCPUs) in one-to-one correspondence; performing affinity binding on the virtual interrupt of the virtual network interface card and the VCPUs; performing affinity binding on the physical interrupt of the virtual network interface card and the corresponding PCPUs according to the affinity policy parameter.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and computer equipment for a virtual network card to interrupt affinity binding. Background technique [0002] Telecom services are generally computing network-intensive applications, and the software and hardware interrupt processing overhead of the CPU for processing packets sent and received by the network card is very prominent (take the Gigabit network card to send and receive 512-byte long UDP, with a fixed rate of 300Mbps as an example, the hardware and software interrupt processing The overhead can reach 30% of the CPU usage of a single core). [0003] In the physical machine scenario, for a multi-core processor, you can control when and which CPU the NIC interrupt processing runs by setting the affinity between the physical NIC interrupt and the physical CPU. In this way, the telecommunication service program can accurately control the network card inter...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F9/50
CPCG06F2009/45595G06F9/4812G06F9/5077H04L12/4641G06F2009/45579G06F9/45558G06F9/45537
Inventor 夏海
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More