Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-core load balancing cooperative processing method and device and storage medium

A load balancing and collaborative processing technology, applied to electrical components, transmission systems, etc., can solve problems such as unbalanced flow distribution of multi-core processors, achieve good performance, improve processing efficiency, and average utilization

Pending Publication Date: 2022-02-01
BEIJING KEDONG ELECTRIC POWER CONTROL SYST +1
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to overcome the deficiencies in the prior art, provide a multi-core load balancing cooperative processing method, device and storage medium, and better solve the problem of unbalanced traffic distribution in multi-core processors by combining dynamic adjustment methods

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
  • Multi-core load balancing cooperative processing method and device and storage medium
  • Multi-core load balancing cooperative processing method and device and storage medium
  • Multi-core load balancing cooperative processing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] This embodiment introduces a multi-core load balancing cooperative processing method, device and storage medium, including:

[0050] Receive the data packet, perform two different HASH algorithm processing on the quaternion of the data packet header plus the serial number, and obtain the HASH calculation result;

[0051] According to the HASH calculation result, query the pre-established first HASH table and the second HASH table to obtain the query results, wherein the first HASH table and the second HASH table are used to store a connection between different cores of the CPU mapping relationship;

[0052] According to the query result, the data packet is sent to the corresponding CPU for processing.

[0053] The application process of the multi-core load balancing cooperative processing method, device, and storage medium provided in this embodiment specifically involves the following contents:

[0054] Use static and dynamic multiple HASH to solve the problem of loa...

Embodiment 2

[0079] This embodiment provides a multi-core load balancing cooperative processing device, including:

[0080] The receiving processing unit is used to receive the data packet, and perform two different HASH algorithm processing on the quaternion of the data packet header plus the serial number to obtain the HASH calculation result;

[0081] The query unit is configured to query the pre-established first HASH table and the second HASH table according to the HASH calculation result, and obtain the query result, wherein the first HASH table and the second HASH table are used to store a connection and The mapping relationship between different CPU cores;

[0082] The judging processing unit is configured to send the data packet to a corresponding CPU for processing according to the query result.

[0083] Further, the judgment processing unit includes a first processing unit and a second processing unit,

[0084] The first processing unit is used to find the mapping relationship...

Embodiment 3

[0094] This embodiment provides a multi-core load balancing cooperative processing device, including a processor and a storage medium;

[0095] The storage medium is used to store instructions;

[0096] The processor is configured to operate in accordance with the instructions to perform the steps of any of the following methods:

[0097] Receive the data packet, perform two different HASH algorithm processing on the quaternion of the data packet header plus the serial number, and obtain the HASH calculation result;

[0098] According to the HASH calculation result, query the pre-established first HASH table and the second HASH table to obtain the query results, wherein the first HASH table and the second HASH table are used to store a connection between different cores of the CPU mapping relationship;

[0099] According to the query result, the data packet is sent to the corresponding CPU for processing.

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 multi-core load balancing cooperative processing method and device and a storage medium, and the method comprises the steps: receiving a data packet, adding a serial number to a tetrad of a data packet header, and carrying out the processing of two different HASH algorithms, and obtaining a HASH calculation result; querying a pre-established first HASH table and a pre-established second HASH table according to the HASH calculation result to obtain a query result, and allocating different network card queues to different CPU cores of the multi-core processor through support of a network card multi-queue technology and by utilizing an interrupt mode. Therefore, the first HASH table and the second HASH table are equivalent to storing a mapping relation between a connection and different cores of the CPU. According to the method, the data messages received subsequently are distributed to other CPUs with light loads by using a static and dynamic combined multiple HASH load balancing algorithm, so that the utilization rates of the CPUs can be relatively average, the performance of the processor can be better exerted, and the processing efficiency of the multi-core processor is improved to a certain extent.

Description

technical field [0001] The invention relates to a multi-core load balancing cooperative processing method, device and storage medium, belonging to the technical field of multi-core processors. Background technique [0002] RSS is a multi-queue supported by the hardware features of the network card. Different connection streams are allocated to different cores of the multi-core processor. The same stream will be on the same core, which can reduce the sequence of data packets and the processor. Parallel conflict. Specifically, RSS is a method that can store the received IP data packets of the same flow into the same network card packet receiving queue, and it can process the received data packets by allowing each CPU core to exclusively access the network card queue. Scalable processing distributes data packets to corresponding CPU cores. [0003] Such as figure 1 As shown, the network card parses the received message, obtains the IP address, protocol and port quintuple inf...

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): H04L47/125H04L45/7453
CPCH04L47/125H04L45/7453
Inventor 杨泽宇王丹计士禹刘锦利马骁李勃高明慧马力张志军徐萌张广文修增哲刘壮佟文强赵梓辰刘新龙姜岩张嵩王会达
Owner BEIJING KEDONG ELECTRIC POWER CONTROL SYST
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