Supercharge Your Innovation With Domain-Expert AI Agents!

A log storage method, system and storage device

A storage system and log technology, which is applied in the direction of memory system, memory architecture access/allocation, memory address/allocation/relocation, etc., and can solve the problems of multiple times of memory block erasure and shortened life of memory blocks

Active Publication Date: 2021-06-25
HISENSE BROADBAND MULTIMEDIA TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a log storage method, system and storage device to solve the problem of shortening the life of the storage block due to the large number of erasing times of the storage block in the traditional embedded system log storage method

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
  • A log storage method, system and storage device
  • A log storage method, system and storage device
  • A log storage method, system and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The application will be described in detail below in conjunction with the accompanying drawings.

[0016] Such as figure 1 Shown is an embodiment of a log storage method provided by the present application, the method comprising:

[0017] S101. Acquire the first subscript of the ring storage queue.

[0018] Since the storage space does not have a ring structure, the ring storage queue in this application is actually implemented through the linear space of the array, and each array element corresponds to each storage block. If the system log is stored in the ring storage queue, when the storage space reaches the tail storage block of the ring storage queue, it needs to switch back to the head storage block of the ring storage queue. The modulo operation of the array realizes jumping from the tail storage block to the head storage block. The above-mentioned circular storage queue is actually a flash ring space that connects multiple storage blocks to form a storage queu...

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 embodiment of the present application discloses a log storage method, system and storage device, including: obtaining the first subscript of the ring storage queue; determining the first storage offset address corresponding to the first subscript; if the current The storage capacity is equal to the storage upper limit of the log buffer area, the system log in the log buffer area is stored in the storage block indicated by the first storage offset address in the ring storage queue, and the log buffer area is cleared, based on the first subscript Determine the second subscript and its corresponding second storage offset address. After the system log in the log buffer area is saved to the first storage offset address, the second offset address corresponding to the storage block used to save the system log when the log buffer area reaches the storage upper limit at the next moment is obtained, which ensures that the flash The writing is balanced, and the same storage block in the flash will not be erased and written multiple times, which improves the life of the storage block.

Description

technical field [0001] The present application relates to the technical field of embedded systems, in particular to a log storage method, system and storage device. Background technique [0002] Embedded system logs are information that records hardware, software, and system problems in embedded systems, and can also monitor events that occur in embedded systems. Users can check the cause of embedded system errors through the system log, or look for traces left by the attacker when the system is attacked. Especially for the tracking and positioning of some embedded devices whose bugs are not easy to reproduce, it provides a strong basis. [0003] Existing embedded system log preservation generally relies on existing file system partitions, such as the jsff2 partition in the embedded system. Since the log saving of the embedded system is only a part of the operation of the embedded system, in order to ensure the normal operation of the embedded system, it is necessary to in...

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): G06F3/06G06F12/02
CPCG06F3/0616G06F3/0635G06F3/0656G06F3/0679G06F12/0246G06F2212/7211
Inventor 雷鹏
Owner HISENSE BROADBAND MULTIMEDIA TECH
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