Disk-based data writing method, data writing device and terminal equipment

A technology of data writing and terminal equipment, applied in the direction of input/output to record carrier, memory address/allocation/relocation, etc., which can solve problems such as system stuck

Active Publication Date: 2019-05-24
SUNELL TECH CORP
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a disk-based data writing method, data writing device, terminal equipment, and computer-readable storage medium, which can solve the technical problem that the traditional method of writing disks easily causes the system to freeze

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
  • Disk-based data writing method, data writing device and terminal equipment
  • Disk-based data writing method, data writing device and terminal equipment
  • Disk-based data writing method, data writing device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] A disk-based data writing method provided in Embodiment 1 of the present application is described below. This data writing method is applied to terminal equipment (such as a video recorder). Please refer to the attached figure 1 , the data writing method provided in Embodiment 1 of the present application includes:

[0037] In step S101, when the data to be written to be written to the disk is acquired, the data to be written is written into the first memory block in the memory area of ​​the terminal device, wherein the first memory block is used to store the data to be written Each data entered into the disk;

[0038] In the embodiment of the present application, the terminal device can inquire whether there is data to be written to the above-mentioned disk in the preset storage space at intervals of a preset duration (for example, every interval of 20 milliseconds); To write data to the disk, step S101 is executed to write the data to be written to the disk found in ...

Embodiment approach

[0042] After step S101 is executed, the terminal device needs to determine whether the first memory block is full of data to be written to the disk. This step S102 can have multiple specific implementation manners, such as:

Embodiment approach 1

[0043] Embodiment 1. Judging whether the first memory block is full of data to be written to the disk may include: judging whether the remaining storage space of the first memory block is greater than a preset threshold, and the remaining storage space of the first memory block is The saved data is not the storage space of the data to be written to the disk; if it is greater than or equal to the above-mentioned preset threshold, then confirm that the first memory block is not filled with the data to be written to the above-mentioned disk; if it is less than the above-mentioned preset threshold, Then it is confirmed that the first memory block is filled with data to be written to the disk. For example, if the above preset threshold is 40KB, then after step S101, it can be judged whether the remaining storage space of the first memory block is greater than 40KB, if it is greater than or equal to 40KB, then it is considered that the first memory block is not full, if If it is les...

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 provides a disk-based data writing method, a disk-based data writing device and terminal equipment, and the method comprises the steps: writing to-be-written data of a to-be-written diskinto a first memory block in a memory area of the terminal equipment when the to-be-written data of the to-be-written disk is obtained; judging whether the first memory block is fully written with data to be written into the disk or not; if it is confirmed that the first memory block is not fully written with the data to be written into the disk, writing the obtained data to be written into the disk into the remaining storage space of the first memory block again, and then returning to execute and judge whether the first memory block is fully written with the data to be written into the diskor not; and if it is determined that the first memory block is filled with the data to be written into the disk, writing the data to be written into the disk stored in the first memory block into thedisk by adopting a direct IO access method. The technical problem that a traditional disk writing mode easily causes system jamming can be solved to a certain extent.

Description

technical field [0001] The present application belongs to the technical field of data storage, and in particular relates to a disk-based data writing method, a data writing device, a terminal device, and a computer-readable storage medium. Background technique [0002] At present, the traditional way of writing data to the disk is: the operating system of the terminal device first copies the data stored in the memory to be written to the disk to the page cache of the file system, and then the operating system writes the data in the page cache to disk. [0003] When the data to be written to the disk is stream data collected in real time (such as image data continuously collected by a camera), the operating system of the terminal device needs to continuously copy the stream data collected in real time from the memory to the page cache of the file system, which will As a result, the memory consumption and CPU usage of the terminal device are very high, so that the terminal de...

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): G06F12/06G06F3/06
Inventor 吴汉俊陈龙
Owner SUNELL TECH CORP
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