Embedded application log optimization method and system, equipment and storage medium

An optimization method and embedded technology, applied in file systems, file system types, special data processing applications, etc., can solve problems such as small storage space, relieve space, facilitate smooth use, and reduce erasing and erasing time. Effect

Inactive Publication Date: 2022-01-04
绿能慧充数字技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the problem of small flash storage space in the prior art, the present invention provides an embedded application log optimization method, system, device and storage medium, which is convenient for storing multiple running logs, erasing and writing centralized flash, and avoiding abnormal power failure cause file system corruption

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
  • Embedded application log optimization method and system, equipment and storage medium
  • Embedded application log optimization method and system, equipment and storage medium
  • Embedded application log optimization method and system, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0047] Step 1. After the system starts, allocate a part of the system memory as a memory partition. The size of the memory partition is 16M or 32M. It is used to write the log file of the application program, and mount the memory partition in the file system. The specific log system startup process Such as figure 1 shown;

[0048] Step 2, start the application, and define the log file path of the application to the file system node mounted on the memory partition;

[0049] Step 3, the application program writes its own log files into the file system nodes mounted on the memory partition according to its own needs (such as 1M, 2M a file), such as image 3 As shown, the application needs to manage the log files produced by itself in this directory. Each type of log contains at most two files, one of which is the file being written, and the other is the storage file after the packet size is completed.

[0050] Step 4, compress the log files that have been subcontracted;

[005...

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

Disclosed are an embedded application log optimization method and system, equipment and a storage medium. A system memory is allocated to obtain a memory, the log file is written into the file memory, the application load is effectively reduced, the log file is compressed in the file memory through the high compression tool and then transferred into the flash memory. The invention has the advantages that the erasing and writing time of the flash memory is greatly reduced, the space of the flash memory is effectively relieved, more logs can be stored, meanwhile, the file system damage caused by abnormal power failure is greatly avoided due to the reduction of the erasing and writing time of the flash memory, the compression and storage of log files are operated by low-priority scripts, the CPU occupation of application programs is released. And smooth use of the application is facilitated.

Description

technical field [0001] The invention relates to the field of embedded application software, in particular to an embedded application log optimization method, system, equipment and storage medium. Background technique [0002] In embedded system applications, it is necessary to record logs during the running of the application. Then the erasing and writing speed of the flash of the embedded device is relatively slow, and the storage space is relatively small, and power failure during the erasing and writing process will often cause systemic damage (the system cannot be used normally). During the running of the application, the requirement for logging and the limitation of flash are very contradictory. Contents of the invention [0003] Aiming at the problem of small flash storage space in the prior art, the present invention provides an embedded application log optimization method, system, device and storage medium, which is convenient for storing multiple running logs, er...

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): G06F3/06G06F16/174G06F16/18
CPCG06F3/0608G06F3/0611G06F3/0644G06F3/0679G06F16/1744G06F16/1815
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