Unlock instant, AI-driven research and patent intelligence for your innovation.

Data synchronization method and device for write cache

A data synchronization and write cache technology, applied in the field of electronic information, can solve problems such as system crash, real-time data loss, synchronous operation blocking, etc., and achieve the effect of avoiding misjudgment, loss, and blocking

Active Publication Date: 2018-02-23
SHENZHEN STREAMING VIDEO TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, an embodiment of the present invention provides a method and device for synchronizing data in a write cache to solve the problem of long-term blockage of the synchronization operation caused by damage to the storage device when synchronizing data in the write cache to the storage device in the prior art. problem; and, in the prior art, when synchronizing the data in the write cache to the storage device, if the master-slave storage device is used and the currently used storage device is damaged, it will lead to a misjudgment of system crash, and therefore restart the system by mistake, Problems causing real-time data loss

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 synchronization method and device for write cache
  • Data synchronization method and device for write cache
  • Data synchronization method and device for write cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] 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.

[0018] figure 1 It shows the implementation flowchart of the write cache data synchronization method provided by the embodiment of the present invention, and the details are as follows:

[0019] In step S101, when there is a SCSI command to be executed in the small computer system interface SCSI command queue, obtain the SCSI execution state value;

[0020] In step S102, when the acquired SCSI execution state value is a first preset value, all pending SCSI commands in the SCSI command queue are discarded.

[0021] When the preset condition is satisfied, the operating system will synchronize the d...

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 is applicable to the technical field of electronic information, and provides a data synchronization method and device for write cache. The method includes: when there is a SCSI command to be executed in the small computer system interface SCSI command queue, acquiring a SCSI execution state value; when the acquired SCSI execution state value is a first preset value, discarding the SCSI command queue All pending SCSI commands in . When the present invention synchronizes the data in the write cache to the storage device, if the storage device is damaged, the SCSI command to be executed in the SCSI command queue is discarded in time, thereby avoiding blocking; when the data in the write cache is synchronized to the storage device , if the master-slave storage device is used and the currently used storage device is damaged, the currently used storage device will be switched to the backup storage device in time, so as to avoid misjudgment of system crash and avoid loss of real-time data.

Description

technical field [0001] The invention belongs to the technical field of electronic information, and in particular relates to a data synchronization method and device for write cache. Background technique [0002] In order to improve the speed of reading and writing files, the operating system (such as Linux or Windows, etc.) adopts a cache mechanism. When an application program calls system calls such as read or write to read and write files, the operating system does not immediately interact with the storage device. When the application calls the read system call to read and write files, it first checks whether the data to be read is already in the read cache, if so, reads the data directly from the read cache; if not, reads the data from the storage device. When reading data from a storage device, the data is first written to the write cache. Wherein, the storage device may be, for example, a hard disk or an SD card (Secure Digital Memory Card, secure digital card). [0...

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): G06F11/14G06F17/30
Inventor 黄凯明刘文涛
Owner SHENZHEN STREAMING VIDEO TECH