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

Method and device for writing data and redundant array of inexpensive disk

A redundant disk array and data writing technology, applied in the communication field, can solve problems affecting SSD writing performance, random writing performance, low sequential writing performance, etc.

Active Publication Date: 2011-04-20
CHENGDU HUAWEI TECH
View PDF0 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the existing technology, the inventor found that in the prior art, because the storage space of the cache unit is small, most of the received data needs to be randomly written into the SSD, and according to the characteristics of the SSD, the SSD The random write performance of the SSD is lower than the sequential write performance of the SSD, thus affecting the write performance of the SSD

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 writing data and redundant array of inexpensive disk
  • Method and device for writing data and redundant array of inexpensive disk
  • Method and device for writing data and redundant array of inexpensive disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] See figure 1 , Is a flow chart of the method for writing data provided in the first embodiment of the present invention, the method includes:

[0035] S101: Obtain the DU (hard disk unit) pointed to by the current pointer.

[0036] For example, if there is SSD0-SSDX in the system (where X is an integer greater than or equal to 1), the SSDs are equally divided according to the DU of the preset size (such as 4MB), and each SSD in the constructed RAID group (such as RAID0) is maintained An idle DU queue is used to receive the data to be written; at the same time, a current pointer is also maintained to point to which DU to which the data to be written should be sent to at the current moment. If RAID0 includes 4 SSDs, 4 DUs from different SSDs are used to receive data to be written at each moment. For example, 4 DUs from different SSDs include: DU0, DU4, DU8 and DU12, and the current pointer points to DU0, then Get the DU0 pointed to by the current pointer.

[0037] S102: Determ...

Embodiment 2

[0049] See figure 2 , Is a flowchart of the method for writing data provided in the second embodiment of the present invention, and the method includes:

[0050] S201: Obtain the DU pointed to by the current pointer.

[0051] For example, the DUs to be received include: DU0, DU4, DU8, and DU12. If the current pointer points to DU0, the DU0 pointed to by the current pointer is obtained.

[0052] S202: If the pre-occupied space of the data to be written does not exceed the preset striping depth (for example, 16K), determine whether the space of the remaining pages in the DU pointed to by the current pointer is greater than the pre-occupied space of the data to be written, and if so, execute S203 ; Otherwise, execute S204.

[0053] S203: Write the data to be written in the DU pointed to by the current pointer in units of pages.

[0054] For example, the DUs to receive data include: DU0, DU4, DU8, and DU12, the current pointer points to DU0, the data to be written does not exceed the pres...

Embodiment 3

[0064] See image 3 , Is a flowchart of the method for writing data provided in the third embodiment of the present invention, and the method includes:

[0065] S301: Obtain the DU pointed to by the current pointer.

[0066] For example, the DUs to be received include: DU0, DU4, DU8, and DU12. If the current pointer points to DU0, the DU0 pointed to by the current pointer is obtained.

[0067] S302: If the pre-occupied space of the data to be written exceeds the preset striping depth (such as 16K), divide the data to be written into the first data to be written and the second data to be written, and determine what the current pointer points to Whether the space of the remaining pages in the DU is greater than the space pre-occupied by the first data to be written, if yes, execute S303; otherwise, execute S306.

[0068] S303: When the space of the remaining page in the DU pointed to by the current pointer is greater than the space pre-occupied by the first data to be written, it is fur...

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 method for writing data, which comprises the following steps of: acquiring a disk unit (DU) pointed by a pointer currently; when space pre-occupied by data to be written does not exceed preset striping depth, writing the data to be written into a solid state disk (SSD) the DU belongs to by page; and when the space pre-occupied by data to be written exceeds the preset striping depth, writing the data to be written into at least two SSDs that the DU belongs to in a redundant array of inexpensive disk (RAID) group by pages. The embodiment of the invention also provides a device for writing the data and the redundant array of inexpensive disk. In the technical scheme, the data are written into the SSDs sequentially, so the processing process of a controller is simplified, and the writing performance of the SSDs is improved.

Description

Technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for writing data and a cheap redundant disk array. Background technique [0002] In the storage system, solid state disks (SSD, Solid State Disk) are more and more widely used in the storage industry due to their superior read and write performance, low power consumption, and high security. The basic unit of SSD read and write operations is 1 page, and the basic unit of erasure is 1 block. At the same time, compared with traditional disks, the SSD uses cache technology to accelerate read and write operations. At present, the inexpensive Redundant Arrays of Inexpensive Disks (RAID, Redundant Arrays of Inexpensive Disks) that SSDs can support include: RAID0, RAID1 and RAID10 levels. It should be noted that in the prior art, an inexpensive redundant disk array is also called a redundant array of independent disks (Redundant Array of Independent Disks)....

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 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