RSS-based concurrent process data processing method

A process data and process technology, applied in the computer field, can solve problems such as process failure, process processing efficiency reduction, message processing efficiency reduction, etc.

Pending Publication Date: 2021-07-06
福建星瑞格软件有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Disadvantage 1: When the number of processes is less than the number of RSS queues, it is impossible to read all the receiving queue data at the same time, and the highest concurrency cannot be guaranteed
And when the number of multiple processes is greater than the number of RSS, it will cause some processes to be unable to read the receiving queue and waste resources
[0005] Disadvantage 2: When the process is not bound to the CPU, the system schedules the process. When multiple processes may run on one CPU, mutual exclusion locks are required to ensure access to shared resources, and the processing of locks is reduced. Packet Processing Efficiency
[0006] Similarly, when the system performs multi-process scheduling, the process needs to be switched between multiple CPUs, and each time the process is loaded into the kernel, the process environment variable needs to be re-introduced, which also reduces the processing efficiency of the process.

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
  • RSS-based concurrent process data processing method
  • RSS-based concurrent process data processing method
  • RSS-based concurrent process data processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Please refer to figure 1 , a method for RSS-based concurrent process data processing, comprising steps:

[0032] S1. When the process is started, it is judged whether the network card supports RSS, if so, then execute step S2, otherwise, execute step S3;

[0033] S2. Read the configuration file to obtain the number n of processes, and perform the first processing according to the number n of processes;

[0034] The first treatment is specifically:

[0035] Fork the process into n-1 child processes.

[0036] S3. Read the number j of RSS receiving queues and the number m of CPUs, and perform a second process according to the number of queues and the number of CPUs.

[0037] The second processing is specifically:

[0038] Determine whether the number of CPUs m is greater than or equal to j, if so, fork the process into j-1 child processes, and bind the process to the CPU ID, otherwise, set the number of RSS receiving queues to m, and The above process forks out m-1 c...

Embodiment 2

[0041] Please refer to figure 2 , a device 1 for RSS-based concurrent process data processing, comprising a memory 2, a processor 3 and a computer program stored on the memory 2 and operable on the processor 3, the processor 3 implements the program when executing the program Each step in the first embodiment.

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 provides a RSS-based concurrent process data processing method and device. The concurrent degree of the processes can be maximized by dynamically starting the processes of which the number is the same as that of the RSS receiving queues, and resource waste is avoided. Meanwhile, the processes are bound with different CPU IDs respectively, the situation that when multiple processes run on the same CPU, mutual exclusion access to the same receiving queue can be guaranteed only by adopting an additional lock scheme is avoided, and meanwhile resource consumption caused when the processes are switched between CPUs is also avoided.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to an RSS-based concurrent process data processing method. Background technique [0002] The receiver scaling (Receive Side Scaling, RSS) of multi-network card receiving queue technology is a method of placing multiple tuples carried by the IP header of the network card received message in different receiving queues through hash mapping, and the queues are passed through Interrupts are bound to different CPUs. In this way, multiple CPUs can process packets concurrently, improving packet processing efficiency. [0003] When multiple processes concurrently process messages, the number of processes started is usually through the configuration file, or according to the number of CPUs, fork out the corresponding number of processes. The number of processes has nothing to do with the number of RSS queues. At runtime, Linux dynamically schedules processes, so multiple processes may run ...

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/54G06F9/52
CPCG06F9/526G06F9/546G06F2209/548
Inventor 郑荣颖
Owner 福建星瑞格软件有限公司
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