A Cache Memory Replacement Method with Failed Disk Priority

A high-speed buffer and memory technology, applied in the direction of input/output to record carrier, etc., can solve the problem of increasing the number of I/O times, achieve the effect of reducing the number of times of orientation, improving system performance, and improving reliability

Active Publication Date: 2011-12-21
HUAZHONG UNIV OF SCI & TECH
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Cache is widely used and many Cache algorithms are used to solve the problem of disk delay, but the commonly used Cache replacement algorithm only considers that in the error-free mode, if some disks fail in the disk array, the RAID will still fail here Working in the mode, use Spare-rebuilding mode and degraded mode. At this time, the loss cost of the failed disk is completely different from that of the surviving disk. If the missing data resides in the Among the disks, the RAID controller accesses the surviving disks and performs parity checks to reconstruct the invalid data. At this time, the number of I / O requests is determined by the RAID structure. For the commonly used LRU and LFU algorithms, the missing cost of one disk failure among n disks is n-1 (n is a positive integer greater than or equal to 2), at this time, for a cache miss of a failed disk, the remaining n-1 disks need to be reconstructed to obtain the data of the failed disk, and then the data block of the failed disk If the cache is full at this time, the memory block at the bottom of the LRU global stack (the stack stores all the memory blocks of all disks) is directly removed, regardless of whether the memory block belongs to the invalid disk. The memory blocks of the failed disk are removed, and the data still needs to be reconstructed when accessing the failed disk, and n-1 I / O requests are generated again, which greatly increases the number of I / Os

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
  • A Cache Memory Replacement Method with Failed Disk Priority
  • A Cache Memory Replacement Method with Failed Disk Priority
  • A Cache Memory Replacement Method with Failed Disk Priority

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The present invention provides a Victim Disk First (VDF) Cache replacement method. The method preferentially retains the memory blocks in the invalid disk by calculating the weight of the memory block, thereby reducing the number of visits to the invalid disk, thereby reducing the number of I / O requests.

[0025] The following takes the failure of one of n disks in a RAID-5 system as an example (n is greater than or equal to 2), and compares the VDF method with the least recently used page replacement algorithm (Least Recently Used, LFU) and the least frequently used page replacement algorithm (least frequently used page replacement algorithm). used, LRU) algorithm is combined to describe the specific measures of the present invention.

[0026] In the LRU type algorithm, the weight of the memory block is determined by the storage time interval, which represents the last stored timestamp (timestamp), that is, the access sequence number. The access probability of a 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 VDF (Victim Disk First) based cache memory replacement method. The method comprises the following steps: calculating the weight of a bottom memory block in all local stacks, deleting memory blocks with the maximum / or minimum weight in all the local stacks, wherein the weight calculation methods are different for a victim disk and a non-victim disk; putting a disk block in an available memory block obtained after deletion. Since the probability that the weight of the memory block of the victim disk is maximum or minimum is high, the purpose of preferentially retainingthe memory disk of the victim disk is reached. In the method, I / O (Input / Output) request frequency for the whole live disk is reduced by reducing the directing frequency of the cache to the victim disk, and less I / O requests can improve the performance of a disk array.

Description

technical field [0001] The invention belongs to the field of computer storage, and in particular relates to a method for replacing a cache memory (Cache) of a failed disk first (Victim Disk First, VDF). This method is suitable for a failed disk in a disk array, and can reduce the number of I / Os for the failed disk and improve the performance and reliability of the disk array. Background technique [0002] Reliability and availability are important criteria to measure the quality of online storage services. For systems that provide online services for commercial and industrial applications, data loss and intermittent service often means economic losses. Redundant Array of Independent Disk (RAID) is one of the mainstream choices that can provide high reliability and high availability. In earlier RAID specifications, such as RAID-0 through RAID-5, they only provided single-disk fault tolerance. In recent years, various RAID systems with higher fault tolerance have gradually ...

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 Applications(China)
IPC IPC(8): G06F3/06
Inventor 曹强万胜刚黄建忠谢长生周旭
Owner HUAZHONG UNIV OF SCI & TECH
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