1. Field of the Invention
Embodiments of the present invention generally relate to flash memory devices and, more particularly, to configuring multiple flash memory devices to form a single storage device.
2. Description of the Related Art
Conventional redundant array of independent disks/drives (RAID) systems use hard disk drives to store data rather than using inexpensive flash storage devices. Flash storage devices are not able to provide the necessary bandwidth for read and writes and have high error rates due to read disturb times and write disturb times. Furthermore, the need for managing wear leveling complicates the distribution of data on the flash storage devices. Additionally, flash memory devices have long erase and program times. Therefore, flash storage devices have not displaced magnetic media storage devices.
This presents the need for a system configured to use multiple flash storage devices to form a single storage device, reducing the system cost while overcoming some of the limitations of the flash storage devices.
Flash storage devices are configured to form a single storage device to improve the reliability and performance while keeping the power consumption benefits compared to conventional hard disk drives. Using the flash storage devices provides flexibility and scalability by storing data in a first portion of the flash storage devices and storing redundancy information, such as error correction codes, parity, or metadata, in a second portion of the flash storage devices.
Various embodiments of the invention provide a method for configuring multiple flash storage devices to form a single storage device include configuring a first portion of the multiple flash storage devices to store data in stripes and configuring a second portion of the multiple flash storage devices to store error correction information. The error correction information for a stripe of data is computed as the stripe of data is written to the first portion of the multiple flash storage devices and the error correction information for the stripe of data is stored in the second portion of the multiple flash storage devices.
Various embodiments of the invention provide a system for configuring multiple flash storage devices to form a single storage device that includes of the multiple flash storage devices and a flash storage controller. The multiple flash storage devices include a first portion of the flash storage devices configured to store data in stripes and a second portion of the multiple flash storage devices configured to store error correction information. The flash storage controller is configured to store the data in the stripes in the first portion of the multiple flash storage devices, compute the error correction information, and store the error correction information in the second portion of the multiple flash storage devices.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
In the following, reference is made to embodiments of the invention. However, it should be understood that the invention is not limited to specific described embodiments. Instead, any combination of the following features and elements, whether related to different embodiments or not, is contemplated to implement and practice the invention. Furthermore, in various embodiments the invention provides numerous advantages over the prior art. However, although embodiments of the invention may achieve advantages over other possible solutions and/or over the prior art, whether or not a particular advantage is achieved by a given embodiment is not limiting of the invention. Thus, the following aspects, features, embodiments and advantages are merely illustrative and, unless explicitly present, are not considered elements or limitations of the appended claims.
Flash storage controller 140 is coupled to CPU 120 via a high bandwidth interface. In some embodiments of the present invention the high bandwidth interface is a standard conventional interface such as a peripheral component interface (PCI) hypertransport protocol. Flash storage controller 140 may be configured to function as a RAID 5 controller, a RAID 0 controller, a RAID 1 controller, or the like. In other embodiments of the present invention, the I/O interface, bridge device, or flash storage controller 140 may include additional ports such as universal serial bus (USB), accelerated graphics port (AGP), and the like.
Flash storage device 130 includes one or more storage devices, specifically flash memory devices that are each directly coupled to flash storage controller 140 to provide a high bandwidth interface for reading and writing the flash memory devices. In some configurations of the present invention, N flash devices 150(0) through 150(N−1) are configured to store data and M flash devices 160(0) through 160(M−1) are configured to store redundancy and metadata information. The redundancy may be parity or error code correction (ECC) information for error detection and correction. The metadata may also include wear leveling information, bad sector information, directory information, journal data, and the like.
Each flash device within flash storage device 130, e.g., flash device 150(0), 150(1), 150(N−1), 160(0), 160(M−1), and the like, may be replaced or removed, so at any particular time, system 100 may include fewer or more flash devices. Flash storage controller 140 facilitates data transfers between CPU 120 and flash storage device 130, including transfers for performing parity functions. Alternatively, parity computations are performed by flash storage controller 140. In some embodiments of the present invention, multiple flash devices 150(0) through 150(N−1) and 160(0) through 160(M−1) are packaged in a multi-chip-module with or without flash storage controller 140. Alternatively, flash devices 150(0) through 150(N−1) and 160(0) through 160(M−1) are interconnected on a printed circuit board, or integrated on a single silicon chip, with or without flash storage controller 140. Flash devices 150(0) through 150(N−1) are collectively referred to as flash devices 150. Likewise, flash devices 160(0) through 160(M−1) are collectively referred to as flash devices 160. Flash devices 150 and 160 may also include some or all functions of 140 that may or may not be utilized.
In some embodiments of the present invention, flash storage controller 140 performs block striping and/or data mirroring based on instructions received from storage driver 112. Each flash device 150 or 160 coupled to flash storage controller 140 includes drive electronics that control storing and reading of data within the flash device 150 or 160. Data is passed between flash storage controller 140 and each flash device 150 or 160 via a bidirectional bus. Each flash device 150 or 160 may also include circuitry that controls detection and mapping out of failed portions of the storage circuitry based on bad sector information.
System memory 110 stores programs and data used by CPU 120, including storage driver 112. Storage driver 112 communicates between the operating system (OS) and flash storage controller 140 to perform RAID management functions such as detection and reporting of flash device failures, maintaining state data, e.g., bad sectors, address translation information, and the like, for each flash device within flash storage device 130, and transferring data between system memory 110 and flash storage device 130.
An advantage of using flash storage devices within flash storage device 130 is that the configuration is flexible and scalable. Additional flash storage devices may be included in flash storage device 130 to increase the storage capacity and flash storage controller 140 may configure flash devices 150 and 160 to implement a variety of different RAID systems, e.g., RAID 0, RAID 1, and the like. Multi level cell (MLC) flash devices may be used for flash devices 150 and 160 instead of more expensive single level cell (SLC) flash devices in order to reduce cost while not increasing the overall error rate. Alternatively, a combination of MLC and SLC flash devices can be used within flash storage device 130. Furthermore, the different flash devices may have different page and block sizes and be provided by different device vendors. Flash storage controller 140 may manage wear leveling on flash devices 150 and 160 at the device, page, block, or array level. Additionally, flash storage controller 140 may map out failing flash devices or portions of those devices without suffering a loss of data and/or capacity.
When Flash devices 150(0) through 150(N−1) are configured to support RAID5, RAID6, RAID 10, RAID50, RAID60, and the like, parity is computed by flash storage controller 140 and stored as metadata in each one of flash devices 150(0) through 150(N−1). Alternatively, parity may be computed by CPU 120. Specifically, parity for the first stripe is computed as the XOR of Byte0, and Byte1 through ByteN−1 and stored as metadata in each one of flash devices 150(0) through 150(N−1). Parity is also computed for other stripes and stored as metadata. If any one of flash devices 150(0) through 150(N−1) is degraded, the data stored on that device may be recovered using the data stored on the other flash devices and the parity that was computed for the data. For example, Byte1 may be reconstructed by computing the XOR of parity for the first stripe, Byte0, and Byte2 through ByteN−1.
In some embodiments of the present invention, parity is computed by flash storage controller 140 and stored in some of the flash devices. For example, as shown in
Flash storage controller with parity engine 440 configures a first portion of flash devices 450 and 460 to store data and configures a second portion of flash devices 450 and 460 to store error correction information. In some embodiments of the present invention, the second portion is distributed between all flash devices 450 and in other embodiments of the present invention, the second portion is stored in flash devices 460.
Although four flash devices 450 are shown in flash storage device 430 of
One embodiment of the invention may be implemented as a program product for use with a computer system. The program(s) of the program product define functions of the embodiments (including the methods described herein) and can be contained on a variety of computer-readable storage media. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive, flash memory, ROM chips or any type of solid-state non-volatile semiconductor memory) on which information is permanently stored; and (ii) writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive or any type of solid-state random-access semiconductor memory) on which alterable information is stored.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow. The foregoing description and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. The listing of steps in method claims do not imply performing the steps in any particular order, unless explicitly stated in the claim.