A portion of the disclosure of this patent document may contain command formats and other computer language listings, all of which are subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
This application relates to caching using flash memory.
Flash memory is valued in many applications as a storage medium due to its fast access speeds, low-power, nonvolatility, and rugged operation. The flash translation layer (FTL) is the driver that works in conjunction with an existing operating system (or, in some embedded applications, as the operating system) to make linear flash memory appear to the system like a disk drive. It does that be doing a number of things. First, it creates “virtual” small blocks of data, or sectors, out of flash's large erase blocks. Next, it manages data on the flash so that it appears to be “write in place” when in fact it is being stored in different spots in the flash. Finally, FTL manages the flash so there are clean/erased places to store data.
Example embodiments of the present invention relate to a method and a system for improving performance of flash cache memory, such as in a host of a storage environment, for example, by preventing a cache cell from reaching an operation limit. The method includes determining that a number of operations to a first cell of a flash memory has reached a threshold and managing the flash memory according to the determination to prevent a failure of a second cell of the flash memory.
The above and further advantages of the present invention may be better under stood by referring to the following description taken into conjunction with the accompanying drawings in which:
The flash translation layer (FTL) remaps the data to the physical location at which the data is to be written. This allows the file system to treat flash like any other block storage device and remain ignorant of flash device characteristics. FTL appears to simply take the data from the file system and write it at the specified location (sector). In reality, however, FTL places the data at a free/erased location on the flash media and notes the real location of the data. It also invalidates the cell that previously contained the cell's data (if any). So when the file system asks for the data that was written out, FTL finds and reads back the proper data.
However, flash storage has a number of inherent limitations. Such limitations include is the read-disturb and write-disturb effects, in which the respective methods used to read from and write to flash memory can cause nearby cells in the same memory block to change over time (i.e., become programmed unintentionally). While the threshold number of read/write operations generally may be in the hundreds of thousands between intervening erase operations, if performing continuous operations on one cell, that cell will not fail but rather one of the surrounding cells will fail on a subsequent operation.
Traditional solutions to flash limitations, many of which are handled by FTL, come with a significant performance penalty. For example, to avoid the read-disturb effect, the flash controller typically will count the total number of reads to a cell since the last erase of that cell (or the block containing that cell if the flash memory is limited to block erasure). When the count exceeds a target limit, the affected cell/block is copied over to a new block, erased, and then released to the block pool, thereby leaving the original block as good as new after the erase.
However, such traditional solutions impart a performance penalty by requiring the flash controller find a place in the flash memory to move the data based on the block size (i.e., the flash controller must move not only the data for the affected cell but also all cells on its block). Example embodiments of the present invention overcome these and other deficiencies by providing a method and an apparatus that improve performance of flash cache memory, such as in a host of a storage environment, for example, by preventing a cache cell from reaching a read-disturb limit.
As illustrated in
The manager module 244 then may manage the flash memory 260/360 according to the determination by the counter module 242 to prevent a disturb failure of a second cell of the flash memory 260/360 (i.e., one of the adjacent cells 3620 and 3622) (420). At a time when the counter module 242 reaches a pre-defined value where a disturb effect's risk becomes high but is still below the threshold at which the disturb effect would affect the adjacent cells 3620 and 3622, (2) the counter module 242 may send a limit notification 268 to the manager module 244.
As illustrated in
It should be understood that, at a later time, the host 230 may receive a read operation for the data evicted from the first cell 3621 and the controller 240 may determine that the data previously cached in the first cell 3621 is no longer cached at the first cell 3621 (540). As illustrated in
As illustrated in
It should be understood that, similar to the operation of the manager module 244, at a later time, the host 230 may receive a read operation for the data evicted from the first cell 3621 and the cache manager 280 may determine that the data previously cached in the first cell 3621 is no longer cached at the first cell 3621 (640). As illustrated in
Accordingly, as illustrated in
The methods and apparatus of this invention may take the form, at least partially, of program code (i.e., instructions) embodied in tangible non-transitory media, such as floppy diskettes, CD-ROMs, hard drives, random access or read only-memory, or any other machine-readable storage medium. When the program code is loaded into and executed by a machine, such as the computer of
The logic for carrying out the method may be embodied as part of the aforementioned system, which is useful for carrying out a method described with reference to embodiments shown. For purposes of illustrating the present invention, the invention is described as embodied in a specific configuration and using special logical arrangements, but one skilled in the art will appreciate that the device is not limited to the specific configuration but rather only by the claims included with this specification.
Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Accordingly, the present implementations are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
8595593 | Joo | Nov 2013 | B2 |
8599617 | Shiino et al. | Dec 2013 | B2 |
8929170 | Park et al. | Jan 2015 | B2 |
20130173972 | Kubo | Jul 2013 | A1 |