Adaptive cache mixed reading/writing method

A write cache and self-adaptive technology, applied in the direction of input/output to record carrier, etc., can solve the problems of wasting memory resources, invalidation or deletion of read cache, and achieve the effects of reasonable utilization, fast search speed, and guaranteed read and write consistency

Inactive Publication Date: 2015-12-23
深圳神州数码云科数据技术有限公司
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The advantage of the above-mentioned reading and writing method is that it is easier to manage, but it has the following disadvantages: (1) If the same piece of data is read first and then written, then e

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
  • Adaptive cache mixed reading/writing method
  • Adaptive cache mixed reading/writing method
  • Adaptive cache mixed reading/writing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0039] figure 1 A flow chart of the method for adaptive hybrid read / write caching of the present invention is shown.

[0040] refer to figure 1 , the method for self-adaptive mixed read / write caching of the present invention comprises steps:

[0041] S1. Divide the cache into multiple blocks according to a set size, and set each cache node as a block; thereby converting the address of each sector of the cache into a block address.

[0042] S2. Using a red-black tree to index each of the cache nodes, thereby speeding up the search speed.

[0043] S3. When writing or reading the cache, find the corresponding cache node, and then perform corresponding writing or reading on the cache node;

[0044] Specifically, when writing to the cache, find the corresponding cache node, and then fill the data into the found cache node;

[0045] When reading the cache...

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 relates to an adaptive cache mixed reading/writing method and system. The method comprises: S1, dividing a cache of a memory into a plurality of blocks according to a set size, and setting each cache node to be a block; S2, indexing each cache node by using a red black tree; and S3, during cache writing or reading, finding the corresponding cache node and then performing corresponding writing or reading on the cache node, wherein during cache writing or reading, the reading or writing state and ratio of the cache are subjected to statistics, and the cache writing or reading ratio is adjusted. According to the method, the cache reading or writing ratio is adaptively adjusted by controlling cache reading or writing size.

Description

technical field [0001] The invention relates to computer storage technology, in particular to an adaptive mixed read / write cache method. Background technique [0002] At present, the caches of most storage products on the market are separated from reading and writing. The data structure of the read cache and the data structure of the write cache are not reused. They are represented as two areas and two copies of data in the memory. [0003] The advantage of the above reading and writing method is that it is relatively easy to manage, but it has the following disadvantages: (1) If the same piece of data is read first and then written, then either the two caches must be updated at the same time, or the read cache must be set to be invalid or deleted. (2) If the same piece of data is written first and then read, then either the dirty data in the write cache is written back before reading can be performed, or the write cache is copied to the read cache, and then the read cache i...

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
IPC IPC(8): G06F3/06
Inventor 李浩然
Owner 深圳神州数码云科数据技术有限公司
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