Disk cache management method and device

A disk cache and management method technology, applied in memory systems, electrical digital data processing, instruments, etc., can solve problems such as inability to dynamically expand and contract, fixed space size, reduce disk cache space usage and cache hit rate, etc., to improve cache The effect of improving hit rate, improving space utilization, and improving system input and output performance

Active Publication Date: 2015-08-19
HUAWEI TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the solution of the above-mentioned prior art, the space size of each group set in the disk cache is fixed and cannot be dynamically expanded. When the system application programs are concentrated in a small number of sets for frequent access, the utilization rate among the sets is uneven, which reduces the disk capacity. Cache space usage and cache hit rate affect system input and output 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
  • Disk cache management method and device
  • Disk cache management method and device
  • Disk cache management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The embodiment of the present invention provides a disk cache management method and device, based on the disk cache cache pre-allocation group set and the reserved block chunk to realize the dynamic adjustment of the group, the method can dynamically adjust the disk cache group associated with the disk area increase the cache hit rate of disk data used by applications, improve the space utilization of disk cache, and improve system input and output performance.

[0022] In order to better describe the embodiments of the present invention, the specific embodiments of the present invention are now described in conjunction with the accompanying drawings, as figure 1 Shown is a schematic flowchart of a disk cache management method provided by an embodiment of the present invention, and the method includes:

[0023] Step 11: Divide the disk cache into a first area and a second area.

[0024] In this step, the disk cache is first divided into two areas, wherein: the first ar...

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 and device for managing disk cache. The management method includes: firstly, dividing a disk cache into a first area and a second area, wherein the first area is used for generating several pre-allocated sets when establishing the disk cache, and establishing a mapping for each set to an inner area of the disk; organizing the space of the second area into a series of chunks; and setting the size of the chunk so that the chunk is used for performing dynamic expansion or constriction of the sets in the first area. By way of the management method above, the size of the disk cache set associated with a disk area can be adjusted dynamically, improving the cache hit rate for an application using the disk data, and improving the space utilization rate of the disk cache, and in turn improving the input / output performance of the system.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a disk cache management method and device. Background technique [0002] At present, the input and output IO speed between disk and memory has always been an important bottleneck of system performance. In IO-intensive application scenarios, the CPU often needs to wait for disk IO. Many systems use memory or similar validate memory media as disk cache to improve IO speed, but memory is expensive and data is lost after power off. SSD is a flash memory medium suitable for disk / memory cache. The speed is between memory and disk, and it is non-validate memory, which can basically avoid data loss. [0003] In order to improve the IO performance of the disk, in the prior art, a disk cache, such as SSD, PCM, etc., can be used as the disk cache, and the disk cache is organized in the same mode as the cpu cache. Taking SSD as an example, the group associative mode is used as the address mappi...

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/06G06F12/0866
CPCG06F12/0866
Inventor 温正湖秦岭王婷章晓峰
Owner HUAWEI TECH CO LTD
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