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

Method and device for configurating cache and electronic equipment and data read-write equipment

An electronic device and cache technology, applied in the information field, can solve the problems of wasting system bandwidth, fixed computing bandwidth, fixed RAID engine structure, etc., and achieve the effect of improving efficiency

Active Publication Date: 2012-07-04
CHENGDU HUAWEI TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the process of realizing the present invention, the inventors found that the defects in the prior art are: since the structure of the RAID engine is fixed, its computing bandwidth is also relatively fixed.
Once the bottleneck of data transmission is reached, the RAID engine will often work discontinuously, thereby affecting the working efficiency of the system.
Although the existing technology has also proposed some solutions to this, such as improving the efficiency of the system to read and write data by serially reading and writing data through the RAID engine and the DMA engine, this method cannot make the RAID engine and the DMA engine work at the same time , a serious waste of system bandwidth; so how to make the RAID engine and the DMA engine work at the same time, thereby improving the efficiency of the RAID computing system to read and write data has become a technical problem that those skilled in the art wish to solve

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
  • Method and device for configurating cache and electronic equipment and data read-write equipment
  • Method and device for configurating cache and electronic equipment and data read-write equipment
  • Method and device for configurating cache and electronic equipment and data read-write equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Embodiments of the present invention provide a method for configuring a cache in a RAID computing system, such as figure 1 as shown, figure 1 It is a block flow diagram of a method for configuring a cache in a RAID computing system according to Embodiment 1 of the present invention, and the flow includes the following steps:

[0033] 101. Obtain the number of hard disks in the RAID computing system and the amount of data read and written in a single time;

[0034] 102. Divide the storage area of ​​the cache in the RAID computing system according to the size of the cache in the RAID computing system, the number of the hard disks, and the amount of data read and written in a single time.

[0035] In this embodiment, step 101 can obtain the number of hard disks in the RAID computing system and the data volume of a single read and write through the software configuration register, and the data volume of the single read and write is a single time for each storage area in th...

Embodiment 2

[0041] Embodiments of the present invention provide a method for configuring a cache in a RAID computing system, such as figure 2 as shown, figure 2 It is a block flow diagram of a method for configuring a cache in a RAID computing system according to Embodiment 2 of the present invention, and the flow includes the following steps:

[0042] 201. Obtain the number n of hard disks in the RAID computing system and the amount p of data read and written in a single time.

[0043] Specifically, the number of hard disks in the RAID computing system and the data volume of a single read and write can be obtained through the software configuration register, and the data volume of a single read and write is based on the preset cache status in the RAID computing system The value of , which represents the size of the data volume for a single read and write of the storage area in the cache, and the strategy set by it will not be discussed in the present invention. The number of hard dis...

Embodiment 3

[0061] Embodiments of the present invention provide a method for reading and writing data in a cache in a RAID computing system, such as Figure 3a as shown, Figure 3a It is a flow chart of Embodiment 3 of the present invention, and the flow includes the following steps:

[0062] 301. Obtain the number n of hard disks in the RAID computing system and the amount p of data read and written in a single time.

[0063] 302. Acquire cache address line widths x1 and x2 corresponding to the number n of hard disks and the amount p of data read and written in a single time.

[0064] 303. According to the total address line width X of the cache, the address line width corresponding to the number of hard disks in the system, and the address line width corresponding to the amount of data read and written in a single time, obtain the number K of storage areas divided in the cache, where K=2 (x-x1-x2) .

[0065] 304. Divide storage areas in the cache according to the obtained number of ...

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 embodiment discloses a method and a device for configurating cache and electronic equipment and data read-write equipment. The method comprises: acquiring the hard disk number in an independent RAID arithmetic system and the data bulk of read-and-write once; assigning the caching memory area in the independent RAID arithmetic system according to the cache magnitude in the independentRAID arithmetic system and the acquired hard disk number and the preset data bulk of read-and-write once. The invention dynamically assigns the memory area in the cache based on the hard disk numberand the preset data bulk of read-and-write once in the condition that the cache in the independent RAID is constant to make the arranged memory area in the cache provide adequate data depth corresponding to the hard disk number and the necessary read-and-write data bulk, thus improving the efficiency of the independent RAID to read and write data.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a method and device for configuring a cache, an electronic device and a device for reading and writing data through the cache. Background technique [0002] RAID (Redundant Array of Independent Disks) is a virtual single large-capacity hard disk formed by combining multiple hard disks through the controller. Different algorithms improve the redundancy and fault tolerance of data in the hard disk. [0003] In the prior art, in order to save the consumption of CPU (central processing unit) resources, the access of data is completed by DMA (Direct Memory Address, direct memory access), which not only greatly improves the data transmission bandwidth of the DMA engine, but also improves the RAID engine The data bandwidth, thereby improving the efficiency of the system to read and write data. [0004] However, the inventor found a defect in the prior art during the process of im...

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/08
Inventor 熊吉
Owner CHENGDU HUAWEI TECH
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