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

Data storage method and device, terminal equipment and storage medium

A data storage and data cache technology, applied in the field of log management, can solve problems such as increased system power consumption, lost data, memory consumption, etc., to achieve the effects of reducing system power consumption, ensuring integrity, and improving system performance

Active Publication Date: 2019-04-09
脸萌技术(深圳)有限公司
View PDF10 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will inevitably lead to frequent I / O operations, not only wasting too much time, but also increasing the power consumption of the system
And because the data writing process uses the common I / O method, there will be duplicate physical memory pages in the physical memory of the mobile terminal, resulting in unnecessary memory consumption
In the second method, although I / O operations are effectively reduced, due to the defects of the memory cache technology itself, data loss may occur in some cases

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
  • Data storage method and device, terminal equipment and storage medium
  • Data storage method and device, terminal equipment and storage medium
  • Data storage method and device, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The present disclosure will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present disclosure, but not to limit the present disclosure. In addition, it should be noted that, for ease of description, only a part of the structure related to the present disclosure is shown in the accompanying drawings instead of all of the structure.

[0049] figure 1 This is a flowchart of a data storage method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of data storage. The method may be executed by a data storage device, and the device may adopt software and / or hardware. Implementation, the device can be configured in a terminal device, for example, a mobile terminal. Such as figure 1 As shown, the method may include the following steps:

[0050] Step 101: According to the detected data to be stored, the da...

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 data storage method and device, terminal equipment and a storage medium. The method comprises the steps that according to detected to-be-stored data, writting the to-be-stored data into a data caching area in a memory; Synchronously writing the to-be-stored data as cache data into a disk cache file according to a memory mapping relation between the data cache area and thedisk cache file in the disk; And when it is determined that the data size of the disk cache file meets the capacity threshold condition, writing the cache data currently stored in the disk cache fileinto a disk storage file in a disk, and correspondingly deleting the cache data currently stored in the disk cache file. The embodiment of the invention can avoid the condition of data loss caused byusing a memory caching technology in the prior art, and can effectively reduce the frequency of input / output operation, reduce the system power consumption and improve the system performance while ensuring the integrity of the data.

Description

Technical field [0001] The embodiments of the present disclosure relate to log management technology, and in particular to a data storage method, device, terminal device, and storage medium. Background technique [0002] Generally, the mobile terminal writes data into the disk of the mobile terminal to store and manage the data. For example, the data may be log data generated during the running of an application installed on the mobile terminal. [0003] There are mainly two data storage methods in the prior art. The first method is to write data directly to a disk file. For example, as long as an application generates a log, it directly writes the log to a disk file. The second method is to create a fixed-size memory cache on the mobile terminal and write all data into the memory cache. When the memory cache capacity is full, the data in the memory cache is written to the disk file at one time, and the memory cache is cleared. For example, a fixed-size memory cache is created...

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/06
CPCG06F3/0619G06F3/0643G06F3/0652G06F3/0656G06F3/0679
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