Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multi-thread traversal method and device for map mapping table based on memory pool

A mapping table and multi-threading technology, applied in the field of multi-threaded traversal of the map mapping table based on the memory pool, can solve problems such as service timeout, occupying a large amount of system resources and processing time, and service unavailability, so as to increase the memory access hit rate, The effect of increasing the snapshot generation speed

Active Publication Date: 2021-08-10
广东宜通联云智能信息有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above-mentioned existing implementation methods, the serial method and the introduction of locks, will cause external services to be stuck, and resources will be mutually exclusive to wait, resulting in a decrease in system throughput, and even a paralyzed state such as service unavailability, which cannot be fully utilized. Multi-core parallel computing characteristics; the method of cloning process, when the amount of data in the mapping table is relatively large, a large amount of system resources and processing time will be occupied when cloning the copy of the process, which also causes great impacts such as service lag and service timeout

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-thread traversal method and device for map mapping table based on memory pool
  • Multi-thread traversal method and device for map mapping table based on memory pool
  • Multi-thread traversal method and device for map mapping table based on memory pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0058] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a multi-threaded traversal method of the map mapping table based on the memory pool, refer to figure 1 , the method includes:

[0059]periodically establish a traversal thread, and the traversal thread is used for traversing the stock linked list, and the stock linked list includes the target unit;

[0060] identifying state information of the target unit, the state information including an idle state and a non-idle state;

[0061] Continuously accessing the target l...

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-thread traversal method and device for a map mapping table based on a memory pool, and the method comprises the steps: periodically building a traversal thread, wherein the traversal thread is used for traversing a stock chain table, and the stock chain table comprises a target unit; identifying state information of the target unit, wherein the state information comprises an idle state and a non-idle state; continuously accessing a target linked list item of a memory block according to the state information of the target unit; identifying an indication sign of the target unit according to the target linked list item; obtaining a target instance according to the indication sign; and writing the target instance into a disk snapshot file. The snapshot generation speed can be improved, and the invention can be widely applied to the technical field of communication.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a memory pool-based multi-thread traversal method and device for a map mapping table. Background technique [0002] In the communication system, many functional requirements such as mapping tables are involved, such as DNS mapping tables, routing table relationship mapping tables, and so on. The mapping table is used to store key-value pairs, and the corresponding value can be quickly found through the key. The conventional method is to use the map data structure to implement key-value relationship mapping. The system requires periodic snapshots of the data in the mapping table while ensuring the normal external services of the system. A snapshot (Snapshot) is a fully available copy of a specified data set, which includes an image of the corresponding data at a certain point in time. A snapshot can be either a copy or a replica of the data it represents. The function of ...

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/50G06F3/06
CPCG06F9/5016G06F9/5022G06F3/064G06F3/065G06F3/0652G06F2209/5011G06F2209/5018
Inventor 刘启波黄永陈智亮池仲柏李秀海周先冬叶丽丽
Owner 广东宜通联云智能信息有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products