Load balancing method and apparatus of multi-core CPU

A load balancing, CPU core technology, applied in the field of computer communication, can solve the problems of inability to fully balance multi-core load, low CPU utilization, CPU overhead, etc., to avoid CPU overhead, improve forwarding performance, and real-time load dynamic balancing. Effect

Active Publication Date: 2017-05-24
RAISECOM TECH
View PDF3 Cites 31 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Although the above three schemes can balance the multi-core load to a certain extent, for scheme 1, since the main load of devices such as routers is packet forwarding, the CPU utilization rate occupied by other applications is relatively low. The improved performance of a single-core CPU is limited; for solution 2, although each CPU core can handle packet forwarding, because the pa

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
  • Load balancing method and apparatus of multi-core CPU
  • Load balancing method and apparatus of multi-core CPU
  • Load balancing method and apparatus of multi-core CPU

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] This embodiment provides a multi-core CPU load balancing method, which can be applied to communication equipment, wherein the communication equipment can include a hardware distribution module, a receiving port, and at least two CPU cores, and each receiving port is configured to communicate with at least two CPU cores. Binding, the CPU cores bound to the same receiving port are configured to bind one or more receiving queues of the receiving port respectively.

[0070] Wherein, the receiving queues bound to different CPU cores bound to the same receiving port are different. When a CPU core is bound to multiple receiving queues of a receiving port, the larger the index of the receiving queue, the higher the priority.

[0071] In other words, there is a one-to-many binding relationship between the receiving port and the CPU core, and there is a one-to-one or many-to-one binding relationship between the receiving queue of the receiving port and the CPU core, and the recei...

Embodiment 2

[0148] Embodiment 2. A load balancing device for a multi-core CPU, such as Figure 6 shown, including:

[0149] A hardware distribution module 601, a receiving port 602, and at least two CPU cores (for example, CPU cores 603a and 603b); wherein, each receiving port 602 is configured to be bound to at least two CPU cores (for example, CPU cores 603a and 603b) , the CPU cores bound to the same receiving port 602 are configured to bind one or more receiving queues of the receiving port 602 respectively;

[0150] The hardware distribution module 601 is used to classify the packets according to the distribution rules for each receiving port 602, and forward the packets to the packets to which the packets belong according to the distribution relationship between the receiving queue and the packet type of the receiving port 602 A receive queue with an allocation relationship of type;

[0151]The receiving port 602 is used to generate a hardware interrupt after receiving the message...

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 load balancing method and apparatus of a multi-core CPU. The load balancing method and apparatus are applied to a communication device, the communication device comprises a hardware dispatching module, receiving ports and at least two CPU cores, wherein each receiving port is configured to bind with the at least two CPU cores, the CPU cores bound with the same receiving port are configured to separately bind one or more receiving queues of the receiving port; and the load balancing method comprises the following steps: for each receiving port, the hardware dispatching module classifies messages according to a dispatching rule, and forwards the messages to the receiving queue having a distribution relationship with a belonging message type according to the distribution relationship between the receiving queue of the receiving port and the message type; the receiving port generates hardware interruption after receiving the messages, and reports the hardware interruption to all CPU cores bound with the receiving port; and each CPU core receiving the hardware interruption reads the messages from the receiving queue bound with the CPU core in a soft interruption processing procedure.

Description

technical field [0001] The present invention relates to computer communication technology, in particular to a multi-core CPU (Central Processing Unit, central processing unit) load balancing method and device. Background technique [0002] For devices such as routers and gateways, message forwarding is completed through a central processing unit (CPU, Central Processing Unit). Therefore, the message forwarding performance of such devices is limited by the processing power of the CPU. Balancing the load among multiple cores is the key to improving performance. [0003] Such as figure 1 As shown, the processing flow of the kernel protocol stack message of the Linux operating system includes: when a CPU core (such as CPU0, CPU1) receives the hardware interrupt generated by the interface, it first closes the interface hardware interrupt of the CPU core, and then triggers the CPU The soft interrupt of the core, and then poll and process the message. Among them, from receiving ...

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
IPC IPC(8): H04L12/935H04L12/861G06F9/50H04L49/111
CPCH04L49/3018H04L49/9073G06F9/5083
Inventor 徐清华
Owner RAISECOM TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products