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

Data caching method and related product

A data caching and metadata technology, applied in the direction of electrical digital data processing, memory systems, instruments, etc., can solve the problems of random location, inability to do combined writing, poor read and write performance, etc.

Pending Publication Date: 2021-07-20
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, such an algorithm writes data to a random position in the Cache each time, and cannot perform merged writes.
In this way, when the data at the end of the queue is distributed in different storage locations, the newly written data may be divided into multiple blocks and cached in different locations, resulting in poor read and write performance.

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 caching method and related product
  • Data caching method and related product
  • Data caching method and related product

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The technical solution in this application will be described below with reference to the accompanying drawings.

[0059] see figure 1 , figure 1 It is a frame diagram of the storage system 1000 according to the embodiment of the present application. The storage system 1000 includes a terminal device 100 and a remote device 200 . The remote device 200 deploys an active database. The terminal device 100 can acquire data from the source database.

[0060] Specifically, the terminal device 100 includes a memory 10 and a storage disk 20 . The memory 10 may include a memory cache 11 and a cache controller 12 . The cache controller 12 can obtain data from the source database and store it in the memory cache 11 . When the storage space available for storing new data in the memory buffer 11 is not enough, or when the storage space occupied by the cached data in the memory buffer 11 is too large, the cache controller 12 controls to store some or all of the data in the memor...

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 data caching method and a related product. The data caching method is applied to the terminal equipment, the terminal equipment comprises a memory and a storage disk, the storage disk is used for caching data blocks stored in remote equipment, and the method comprises the steps that the memory determines M first cached data blocks with continuous storage address sequences from N cached data blocks of the storage disk according to a metadata chain table of the storage disk, wherein the storage address sequence of the N cached data blocks is recorded in the metadata chain table, the data size and the storage address of each cached data block in the N cached data blocks are further recorded in the metadata chain table, the sum of the data sizes corresponding to the M first cached data blocks is larger than or equal to the data size of the to-be-cached data, M and N are positive integers, and N is larger than or equal to M; and the memory writes the to-be-cached data into a storage space corresponding to the storage address of the first cached data block in the storage disk. In this way, the memory can continuously write the to-be-cached data into the memory disk, and the read-write efficiency is improved.

Description

technical field [0001] The present application relates to the cache field, in particular to a data cache method and related products. Background technique [0002] In related technologies, the memory can write part of the data into the cache, and when the data needs to be used, the memory reads the data from the cache. However, the cache space is limited. When there is no space left in the cache, some data needs to be eliminated before new data can be written. [0003] In the prior art, the principle of eliminating data in the cache (Cache) is that when the data read by the memory request does not exist in the cache, the data is considered to be a miss. The memory gets data from the data source and writes it into the Cache. When the Cache is full, each time the cache miss returns to the source, data of the corresponding size needs to be eliminated from the Cache so that there is enough space in the Cache to write the data obtained from the metadata. The key to ensuring th...

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): G06F12/0871G06F12/0868G06F12/1009
CPCG06F12/0868G06F12/0871G06F12/1009
Inventor 艾拓孙涛刘加财单卫华刘晓
Owner HUAWEI CLOUD COMPUTING TECH CO LTD