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

Method for writing data through buffer, buffer system and device

A technology for writing data and data, applied in the storage field, can solve problems such as adding operations, target storage medium misoperation, data size matching, etc., to achieve the effect of reducing operation errors, reducing the probability of misoperation, and improving response speed

Active Publication Date: 2009-08-12
NEW H3C TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the above scheme, after the refresh control unit reads the data in the target storage medium back to the cache block, the flag bit in the cache block is set as a mark representing the data to be refreshed, that is, it cannot respond to the user immediately
[0014] Moreover, after the application program writes the data to be refreshed that is smaller than the size of the cache block into the cache block, the refresh control unit does not necessarily immediately read back the corresponding data in the target storage medium, but may wait until the system is idle before reading it back. back
In this way, after the user writes the data to be refreshed into the cache block through the application program, it may not be able to get a response indicating that the write is successful for a long time, so that the user mistakenly believes that the write is unsuccessful and re-initiates the write operation, which increases the Unnecessary operations and increased system load
[0015] In the above solution, it is also possible that the refresh control unit loses the location information of the data that it needs to read back from the target storage medium due to the long-term busy system, so that after the system returns to idle, the refresh control unit cannot retrieve the data from the target storage medium. Read back the corresponding data, so invalid data may still be refreshed to the target storage medium, resulting in misoperation of the target storage medium
[0016] Due to the slow response speed of the above solution and the inability to completely avoid misoperation of the target storage medium, some users have to give up the advantage of writing data through the cache, but use the application program to directly write the data to be refreshed to the target storage medium
[0017] It can be seen that in the existing scheme of writing data to the target storage medium through the cache, when the data cannot fill the cache block, the target storage area will be misoperated, resulting in various hidden troubles
Moreover, since the data size usually does not match the cache block size, the probability of misoperation on the target storage medium is very high

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
  • Method for writing data through buffer, buffer system and device
  • Method for writing data through buffer, buffer system and device
  • Method for writing data through buffer, buffer system and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] 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 with reference to the accompanying drawings and examples.

[0057] In the embodiment of the present invention, the cache block in the cache is divided into multiple logical areas, and an information bit is set for each logical area to indicate whether the logical area is data to be refreshed, and the application program will need to write to After the data to be refreshed in the target storage area is written into the cache block, the information bit corresponding to the logical area occupied by the data is set as a flag representing the data to be refreshed.

[0058] In this embodiment, information bits corresponding to all logical areas in a cache block may be expressed as a bitmap.

[0059] image 3 It is a schematic diagram of logical regions and information bits in a cache block in an embodiment of the pre...

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

A method for writing data through buffer storage includes dividing buffer storage block to be multiple logic region and setting relevant information bit for each logic region for labeling out whether there is data to be updated in logic region or not, setting information bit corresponding to said logic region to be mark presenting that there is data to be updated when data to be updated is written into logic region, making response of successful writing-in without data being red back for raising response speed and ensuring that there is no ineffective data to be written into object storage region when update is carried out.

Description

technical field [0001] The invention relates to storage technology, in particular to a method for writing data through cache, a cache system and a cache device. Background technique [0002] In the prior art, the storage medium is usually accessed through a cache (Cache), so as to reduce the number of accesses to the storage medium, thereby improving the operating efficiency of the application program. [0003] Specifically, in a certain system, the application program in the application host / server first writes data such as various instructions into the cache, and then when the refresh time comes, for example, the target storage medium is relatively idle or the data needs to be processed urgently, etc. occurs, the data stored in the cache is refreshed to the target storage medium by the refresh control unit implementing the refresh function in the system. Among them, the cache can also be referred to as an intermediate storage medium, and its read and write speed is usuall...

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): G06F12/08G06F3/06
Inventor 李至哲薛国良
Owner NEW H3C TECH CO LTD