State machine based write back method for external disk Cache

A state machine and disk technology, which is applied in the field of disk external Cache optimization, can solve problems such as disk data loss, and achieve the effect of improving performance

Active Publication Date: 2014-08-13
DAWNING INFORMATION IND BEIJING +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the data that the user wants to write to the disk is not actually written to the disk, but only temporarily stored in the kernel space, so when the system crashes, all the disk data temporarily stored in the memory will be lost

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
  • State machine based write back method for external disk Cache
  • State machine based write back method for external disk Cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention is a write-back mechanism based on application access mode, disk and external cache state.

[0027] Application access mode: Users can set various write-back policies as needed, such as not automatically writing back dirty data, writing back when there is no IO request, or writing back whenever there is dirty data in any case. request to perform different processing procedures;

[0028] Disk status: When the disk is in an idle state, you can select some dirty data in the external cache of the disk to write back to the disk, which not only completes the refresh operation, avoids the possibility of data loss, but also makes full use of the disk bandwidth. higher cost performance;

[0029] External Cache state: If there is too much dirty data in the external cache, some dirty data needs to be written back to the disk. In particular, when a cache block is available and the previous block must be replaced, if part of the replaced data is dirty data Th...

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 write back mechanism based on states of an application access mode, a disk and an external Cache. In the write back mechanism, a state machine is used for performing write back on a DIRTY block, CLEAN shows that an external disk Cache block has no DIRTY data, DIRTY shows that the external disk Cache block has DIRTY data, FLUSH shows the entire process where one write back flow processes one Cache block. The write back mechanism not only reflects the requirements of users, but also ensures that DIRTY data are also written back in a disk, thereby avoiding losing lots of data not written back in the disk; in addition, the write back mechanism fully considers the overall performance of a system, the system does not execute extra write back operation to disturb the reading and writing of data stream when a certain amount of orderly reading and writing exists, thereby improving the performance of IO (Input / Output).

Description

technical field [0001] The invention relates to the field of disk external cache optimization, in particular to a method for controlling the write-back of a disk external cache by combining an application access mode, a disk load and a disk external cache load. Background technique [0002] The data transfer rate of the disk refers to the speed at which the disk reads and writes data, including the internal data transfer rate and the external data transfer rate. The internal transfer rate is also known as the sustained transfer rate, which reflects the performance of the disk buffer when it is not in use. The internal transfer rate mainly depends on the rotational speed of the disk; the external transfer rate is also called the burst data transfer rate or the interface transfer rate, which marks the It refers to the data transfer rate between the system bus and the disk buffer. The external data transfer rate is related to the hard disk interface type and the size of the har...

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/06
Inventor 袁清波骆志军邵宗有
Owner DAWNING INFORMATION IND BEIJING
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