Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data hotness and data density based cache back-writing method and system

A technology of data density and caching, applied in the direction of input/output to record carrier, etc., can solve the problems of low average data heat and no guarantee of data density, and achieve the effect of improving cache write-back efficiency

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

AI Technical Summary

Problems solved by technology

[0003] In the case of random writing and many parts hit the cache (for example, the random interval is 10GB, and the cache size is 5GB), the LRU algorithm has the following problems: (1) Since the data is very random, the average heat of all data is very low, so There is no difference between the write-back data selected at the time and the write-back data randomly selected, which degenerates into a random algorithm; (2) The data density is not guaranteed, and the write-back speed of the buffer block with higher data density is significantly faster than that of the buffer block with low data density

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 hotness and data density based cache back-writing method and system
  • Data hotness and data density based cache back-writing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0026] figure 1 A flow chart of a cache write-back method based on data heat and data density is shown in the present invention.

[0027] The present invention provides a cache write-back algorithm based on data heat and data density, the method comprising:

[0028] S1. Create an LRU linked list array with n+1 elements for each cache of the disk array group;

[0029] S2. Calculate the data density of each cache block in the cache;

[0030] The calculation formula of data density is as follows:

[0031] Data density = effective data volume of the cache block * n / maximum data volume of the cache block,

[0032] Wherein, the value range of the data density is [0-n].

[0033] S3. Link the cache block to the LRU linked list corresponding to the array subscript according to the data density; for example, link the mth buffer block arranged in order of da...

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 a data hotness and data density based cache back-writing method and system. The method comprises: S1, creating a least recently used (LRU) list array with n+1 elements for each cache of a disk array group; S2, calculating the data density of each cache block of the cache; S3, according to the data density, linking the cache block to an LRU list corresponding to an array subscript; and S4, when the cache block to be subjected to back-writing is selected, traversing the LRU list array in an inverted order, selecting the cache block with highest data density, and performing back-writing. With the method, relatively high cache back-writing efficiency is achieved when the hit rate of random write is medium.

Description

technical field [0001] The invention relates to disk storage technology, in particular to a cache write-back method and system based on data heat and data density. Background technique [0002] The least recently used LRU (Least Recently Used) algorithm is used to select the cache block that needs to be written back, because when the cache is large enough, the least recently used cache data block is the data with the lowest heat. This method has a good effect when performing sequential writing, because the earliest written data will not be written again, the heat is the lowest, and its data continuity, that is, the data density must be the highest. [0003] In the case of random writing and many parts hit the cache (for example, the random interval is 10GB, and the cache size is 5GB), the LRU algorithm has the following problems: (1) Since the data is very random, the average heat of all data is very low, so There is no difference between the write-back data selected at ran...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products