Multi-core storage device and tracking log output processing method in multi-core environment

A technology of output processing and storage devices, applied in the storage field, can solve problems such as waiting for other Cores to release locks, inconsistent tracelog record management, inconvenience, etc., to achieve the effects of convenient identification and classification, improved utilization, and reduced scheduling times

Active Publication Date: 2018-04-27
RAMAXEL TECH SHENZHEN
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above method has the following disadvantages: 1) When multiple cores write tracelog records to the trace log record buffer at the same time, they must first acquire the lock, so they need to wait for other Cores to release the lock; 2) In the Core where the task with the lowest priority is located When doing trace log record output, it is necessary to lock the trace log record buffer to avoid inconsistency in trace log record management by locking, but this method will directly cause other cores to generate tracelog records at this time, then Must wait for the lowest priority task to release the lock
[0004] In summary, the existing technology obviously has inconvenience and defects in actual use, so it is necessary to improve

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 storage device and tracking log output processing method in multi-core environment
  • Multi-core storage device and tracking log output processing method in multi-core environment
  • Multi-core storage device and tracking log output processing method in multi-core environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the object, technical solution and advantages of the present invention clearer, the present invention 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 invention, not to limit the present invention.

[0041] see figure 1 , the present invention provides a multi-core storage device, the multi-core storage device 100 includes a log processing module 10, a cache configuration module 20, a log processing module 30 and a log output module 40, wherein:

[0042] The log processing module 10 is used to package the trace log data and add timestamp information when the trace log of each core is generated, and the timestamp information is used to identify the sequence of trace log records, and each trace log corresponds to A unique timestamp information.

[0043] corresponds to image 3 In Step1, the tr...

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 present invention is applicable to the field of storage technology, and provides a tracking log output processing method in a multi-core environment. The method includes: when the tracking log of each core is generated, the tracking log data is packaged, and time stamp information is added. Timestamp information is used to identify the sequence of trace log records; configure a lock-free circular cache structure and a static cache structure for each of the multiple cores, which are used to temporarily store the pointer of the trace log and temporarily store the data generated by each core. Tracking logs and corresponding timestamps; obtaining the timestamp information of the tracking logs according to the pointers of the tracking logs, and sorting the tracking logs of different static cache structures according to the timestamp information; when the timer is interrupted, the Trace log output processing. The present invention also correspondingly provides a multi-core storage device for realizing the above method. Thereby, the present invention can make the cache operation and the output operation run simultaneously, reduce the times of scheduling, and improve the utilization rate of resources.

Description

technical field [0001] The invention relates to the field of storage technology, in particular to a multi-core storage device and a tracking log output processing method in a multi-core environment. Background technique [0002] Trace log (trace log) is one of the common user processes in the storage system. In the prior art, a trace log buffer is generally applied for in the storage area, and the trace log is written into the buffer during program execution, and finally a task with the lowest priority is responsible for the output of the trace log. [0003] The above method has the following disadvantages: 1) When multiple cores write tracelog records to the trace log record buffer at the same time, they must first acquire the lock, so they need to wait for other Cores to release the lock; 2) In the Core where the task with the lowest priority is located When doing trace log record output, it is necessary to lock the trace log record buffer to avoid inconsistency in trace ...

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 Patents(China)
IPC IPC(8): G06F17/30
Inventor 周大鹏
Owner RAMAXEL TECH SHENZHEN
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