Patent application title:

Hybrid drive converting non-volatile semiconductor memory to read only based on life remaining

Publication number:

-

Publication date:
Application number:

13/105,785

Filed date:

2011-05-11

βœ… Patent granted

Patent number:

US 9,146,875 B1

Grant date:

2015-09-29

PCT filing:

-

PCT publication:

-

Examiner:

Charles Rones | Andrew Russell

Adjusted expiration:

2032-05-23

Smart Summary: A hybrid drive combines a traditional disk with non-volatile semiconductor memory (NVSM) to enhance performance. When the NVSM's lifespan gets low, it is switched to read-only mode to protect its remaining life. If a write command is received while in this mode, the new data is saved to the disk instead of the NVSM, and the corresponding memory segment in the NVSM is marked as invalid. This process helps manage data efficiently and prolongs the life of the memory. The drive also includes control circuitry that ensures the read/write operations are accurately executed. πŸš€ TL;DR

Abstract:

A hybrid drive is disclosed comprising a head actuated over a disk comprising a plurality of data tracks, and a non-volatile semiconductor memory (NVSM) comprising a plurality of memory segments. When a life remaining of the NVSM falls below a threshold, the NVSM is marked as read only. When a write command is received from a host including write data, and when the NVSM is marked as read only, the write data is written to the disk and a corresponding memory segment in the NVSM is invalidated.

Inventors:

Assignee:

Applicant:

Interested in similar patents?

Get notified when new applications in this technology area are published.

Classification:

G06F12/0866 »  CPC main

Accessing, addressing or allocating within memory systems or architectures; Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems; Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache

G06F3/068 »  CPC further

Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements; Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers; Interfaces specially adapted for storage systems adopting a particular infrastructure; In-line storage system; Single storage device Hybrid storage device

G06F3/0679 »  CPC further

Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements; Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers; Interfaces specially adapted for storage systems adopting a particular infrastructure; In-line storage system; Single storage device Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

G06F12/0246 »  CPC further

Accessing, addressing or allocating within memory systems or architectures; Addressing or allocation; Relocation; User address space allocation, e.g. contiguous or non contiguous base addressing; Free address space management; Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory

G06F2212/1036 »  CPC further

Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures; Providing a specific technical effect; Reliability improvement, data loss prevention, degraded operation etc Life time enhancement

G06F2212/7205 »  CPC further

Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures; Details relating to flash memory management Cleaning, compaction, garbage collection, erase control

G06F12/08 IPC

Accessing, addressing or allocating within memory systems or architectures; Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

G06F3/06 IPC

Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers

G06F12/02 IPC

Accessing, addressing or allocating within memory systems or architectures Addressing or allocation; Relocation

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority from provisional U.S. Patent Application Ser. No. 61/372,049, filed on Aug. 9, 2010, the specification of which is incorporated herein by reference.

BACKGROUND

Hybrid drives are conventional disk drives augmented with a non-volatile semiconductor memory (NVSM) such as a flash which helps improve certain aspects of the disk drive. For example, the non-volatile semiconductor memory may store boot data in order to expedite the boot operation of a host computer. Another use of a NVSM may be to store frequently accessed data and/or non-sequential data for which the access time is typically much shorter than the disk (which suffers from mechanical latency including seek and rotational latency). Other policies may reduce write amplification of the NVSM in order to maximize its longevity, such as storing frequently written data to the disk (or data having a write/read ratio that exceeds a predetermined threshold).

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A shows a hybrid drive according to an embodiment of the present invention comprising a head actuated over a disk and a non-volatile semiconductor memory (NVSM).

FIG. 1B is a flow diagram according to an embodiment of the present invention wherein when a life remaining of the NVSM falls below a threshold, the NVSM is marked as read only.

FIG. 2A is a flow diagram according to an embodiment of the present invention wherein a life remaining of the NVSM is determined based on a number of program/erase cycles.

FIG. 2B is a flow diagram according to an embodiment of the present invention wherein a life remaining of the NVSM is determined based on a change in the program/erase time.

FIG. 2C is a flow diagram according to an embodiment of the present invention wherein a life remaining of the NVSM is determined based on a number of error correction code (ECC) errors detected during read operations.

FIG. 3A shows an embodiment of the present invention wherein the NVSM comprises a plurality of blocks that are garbage collected before being erased in a unitary operation.

FIG. 3B is a flow diagram according to an embodiment of the present invention wherein when the number of ECC errors for a target block exceeds a threshold, the garbage collection of the target block is disabled.

FIG. 4A is a flow diagram according to an embodiment of the present invention wherein when the life remaining of the NVSM falls below the threshold, data recorded on the disk is copied into the free space of the NVSM and then the NVSM is marked as read only.

FIG. 4B is a flow diagram according to an embodiment of the present invention wherein when the life remaining of the NVSM falls below the threshold, the garbage collection of the blocks in the NVSM is disabled.

FIG. 5 is a flow diagram according to an embodiment of the present invention wherein when the life remaining of the NVSM falls below the threshold, a NVSM write cache is disabled and flushed to the disk, the NVSM write cache is erased, and the garbage collection of the NVSM is disabled.

DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION

FIG. 1A shows a hybrid drive according to an embodiment of the present invention comprising a head 2 actuated over a disk 4 comprising a plurality of data tracks 6, and a non-volatile semiconductor memory (NVSM) 8 comprising a plurality of memory segments. The hybrid drive further comprises control circuitry 10 for executing the flow diagram of FIG. 1B, wherein when a life remaining of the NVSM falls below a threshold (step 12), the NVSM is marked as read only (step 14). When a write command is received from a host including write data (step 16), and when the NVSM is marked as read only (step 18), the write data is written to the disk (step 20) and a corresponding memory segment in the NVSM is invalidated (step 22).

In the embodiment of FIG. 1A, the disk 4 comprises embedded servo sectors 240-24N that define the data tracks 6. The control circuitry 10 processes a read signal 26 emanating from the head 2 to demodulate the servo sectors 240-24N and generate a position error signal (PES) representing an error between the actual position of the head and a target position relative to a target track. The control circuitry 10 filters the PES using a suitable compensation filter to generate a control signal 28 applied to a voice coil motor (VCM) 30 which rotates an actuator arm 32 about a pivot in order to actuate the head 2 radially over the disk in a direction that reduces the PES.

Any suitable NVSM 8 may be employed in the embodiments of the present invention such as a suitable Flash memory. In one embodiment, the NVSM 8 comprises a plurality of blocks, wherein each block comprises a plurality of memory segments referred to as pages. The blocks are programmed a page at a time, and an entire block is erased in a unitary operation. In embodiments described in more detail below, a garbage collection operation may be executed on previously written blocks in order to copy valid pages to new blocks so that the previously written blocks may be erased and re-used.

In one embodiment, the number of program/erase cycles that may be performed on any given block is limited (referred to as endurance). Therefore, a wear leveling algorithm is typically executed which attempts to re-program the blocks evenly over the life of the NVSM so that the blocks tend to wear out together. In an embodiment shown in the flow diagram of FIG. 2A, access commands (write/read) are serviced using the NVSM (step 33) and the blocks in the NVSM garbage collected (step 34). The life remaining of the NVSM is determined (step 12 of FIG. 1B) based on the number of program/erase cycles executed on the NVSM. When the number of program/erase cycles exceeds a threshold (step 36), it is determined that the NVSM is approaching end of life and is therefore marked as read only (step 38).

FIG. 2B is a flow diagram according to an alternative embodiment of the present invention for determining when the life remaining of the NVSM falls below a threshold. When the hybrid drive is initially deployed in the field, an initial program/erase time is measured (step 40). As access commands are serviced using the NVSM, the program/erase times are monitored (step 42), and when at least one of the program and erase times changes beyond a threshold (step 44), it is determined that the NVSM is approaching end of life and is therefore marked as read only (step 46). In one embodiment, the entire NVSM may be marked as read only when the average change in the program or erase time exceeds the threshold, and in another embodiment, each individual block may be marked as read only when its corresponding program or erase time changes beyond the threshold.

FIG. 2C is a flow diagram according to an alternative embodiment of the present invention for determining when the life remaining of the NVSM falls below a threshold. As read commands are serviced using the NVSM (step 48), the number of ECC errors is monitored (step 50), and when the number of ECC errors exceeds a threshold (step 52), it is determined that the NVSM is approaching end of life and is therefore marked as read only (step 54). In one embodiment, the entire NVSM may be marked as read only when the average ECC errors exceeds the threshold, and in another embodiment, each individual block may be marked as read only when its corresponding ECC errors exceeds the threshold.

FIG. 3A shows an embodiment of the present invention wherein the NVSM comprises a plurality of blocks, and each block comprises a plurality of memory segments referred to as pages. Each page may comprise one or more data sectors, wherein each data sector is assigned a physical block address (PBA) accessed indirectly through a logical block address (LBA). When an LBA is overwritten, the write data is written to a new page and the old page becomes invalid. If all the pages of a block become invalid (due to overwriting the corresponding LBAs), the block may be erased and re-used. To facilitate the wear leveling algorithm, a garbage collection algorithm is typically executed periodically in order to copy valid pages in old blocks to new blocks so that the old blocks can be erased and re-used.

FIG. 3B is a flow diagram according to an embodiment of the present invention wherein when a read command is received from a host (step 56), data is read from a target block in the NVSM (step 58) and the number of ECC errors detected (step 60). If the number of ECC errors exceeds a threshold (step 62), it is determined that the target block is reaching end of life and therefore the garbage collection on the target block is disabled (step 64). In this manner, the valid pages (FIG. 3A) will remain in the target block until the corresponding LBAs are overwritten, thereby maximizing the use of the target block. In one embodiment, the valid pages of a degrading block are copied to the disk 4 as a backup in the event the pages in the NVSM become unrecoverable.

FIG. 4A is a flow diagram according to an embodiment of the present invention wherein when the life remaining of the NVSM falls below the threshold (step 66), data is copied from the disk to the free memory segments of the NVSM (step 68) prior to marking the NVSM as read only (step 70). In this embodiment, the threshold at step 66 is selected relative to the amount of free memory segments available as well as the life of the NVSM so as to ensure the NVSM is able to perform the write operations needed to fill the free memory segments prior to converting the NVSM to read only. Any suitable data may be copied from the disk to the free memory segments of the NVSM, wherein in one embodiment, the data may be selected using a suitable migration algorithm that routes data to the NVSM or the disk based on predetermined criteria. For example, the migration algorithm may store frequently read, non-sequentially accessed LBAs in the NVSM and infrequently read, sequentially accessed LBAs on the disk. When the NVSM approaches end of life, the LBAs that were closest to being written to the NVSM originally (but were instead stored on the disk) are read from the disk and written to the free memory segments of the NVSM. In this manner, the free memory segments of the NVSM may further enhance performance by decreasing the access time to LBAs that would otherwise be read from the disk.

FIG. 4B is a flow diagram according to an embodiment of the present invention wherein after servicing a number of access commands using the NVSM (step 72), the valid pages in the previously written blocks are garbage collected (step 74) as described above with reference to FIG. 3A. When the life remaining of the NVSM falls below a threshold (step 76), the garbage collection of the blocks is disabled (step 78). With the garbage collection disabled, the free pages in the blocks of the NVSM are eventually filled with data during normal operation of the hybrid drive (e.g., using a suitable migration algorithm that routes data to the NVSM or to the disk based on any suitable criteria as described above). When all of the blocks are full of data (valid and invalid data), the NVSM is effectively converted to read only since there are no remaining free pages to service new write commands. The valid data may continue to be read from the NVSM until the corresponding LBAs are overwritten (by performing write operations to the disk) or until the valid data in the NVSM degrades so as to become unrecoverable. Similar to the embodiment described above, the valid data in the NVSM may be copied to the disk prior to degrading too far, thereby providing a backup copy that can still be recovered in the event the NVSM copy becomes unrecoverable.

FIG. 5 is a flow diagram according to an embodiment of the present invention wherein a write cache is defined (step 72) in the NVSM (e.g., a percentage of the capacity of the NVSM is reserved for the write cache). When a write command is received from a host (step 74), at least some of the write data is written to the NVSM write cache (step 76). This may improve performance of the hybrid drive by avoiding the mechanical latency in accessing the disk (seek latency of the head and rotational latency of the disk). A NVSM write cache may also improve performance of a hybrid drive by concurrently writing data to both the NVSM and the disk (i.e., using both channels simultaneously to increase bandwidth). When the disk drive is idle (not servicing host commands), the write data cached in the NVSM write cache is flushed to the disk (step 78) and the invalid pages in the blocks of the NVSM are garbage collected (step 80). When the life remaining of the NVSM falls below a threshold (step 82), the NVSM write cache is disabled (step 84) so that all write data targeted for the disk is written directly to the disk. When the disk drive is idle, the write data previously cached in the NVSM write cache is flushed to the disk (step 86), and the blocks allocated to the NVSM write cache are erased (step 88). The garbage collection of the blocks is disabled (step 90) so that the free blocks in the NVSM (including the NVSM write cache) are eventually filled with write data using a conventional migration algorithm as described above. When all of the free blocks have been written, the NVSM is converted into a read only memory. The valid data stored in the NVSM may still be accessed during read operations, thereby realizing the performance benefit of the NVSM until all of the data becomes invalid, or unrecoverable through degradation.

Any suitable control circuitry may be employed to implement the flow diagrams in the embodiments of the present invention, such as any suitable integrated circuit or circuits. For example, the control circuitry may be implemented within a read channel integrated circuit, or in a component separate from the read channel, such as a disk controller and/or NVSM controller, or certain steps described above may be performed by a read channel and others by a disk controller and/or NVSM controller. In one embodiment, the read channel and controllers are implemented as separate integrated circuits, and in an alternative embodiment they are fabricated into a single integrated circuit or system on a chip (SOC). In addition, the control circuitry may include a suitable preamp circuit implemented as a separate integrated circuit, integrated into the read channel or disk controller circuit, or integrated into an SOC.

In one embodiment, the control circuitry comprises a microprocessor executing instructions, the instructions being operable to cause the microprocessor to perform the steps of the flow diagrams described herein. The instructions may be stored in any computer-readable medium. In one embodiment, they may be stored on a non-volatile semiconductor memory external to the microprocessor, or integrated with the microprocessor in a SOC. In another embodiment, the instructions are stored on the disk and read into a volatile semiconductor memory when the hybrid drive is powered on. In yet another embodiment, the control circuitry comprises suitable logic circuitry, such as state machine circuitry.

Claims

What is claimed is:

1. A hybrid drive comprising:

a disk comprising a plurality of data tracks;

a head actuated over the disk;

a non-volatile semiconductor memory (NVSM) comprising a plurality of blocks, each block comprising a plurality of memory segments; and

control circuitry operable to:

when a life remaining of the NVSM falls below a threshold, mark the NVSM as read only;

receive a write command from a host including write data;

concurrently write the write data to both the disk and the NVSM;

when the NVSM is marked as read only, write the write data to the disk and permanently invalidate a corresponding memory segment in the NVSM;

garbage collect the blocks comprising invalid memory segments; and

when a number of error correction code (ECC) errors exceeds a threshold during a read operation of a target block, disable the garbage collection of the target block.

2. The hybrid drive as recited in claim 1, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a number of program/erase cycles executed on the NVSM.

3. The hybrid drive as recited in claim 1, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a change in at least one of a program time and an erase time of the NVSM.

4. The hybrid drive as recited in claim 1, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a number of error correction code (ECC) errors detected during read operations.

5. The hybrid drive as recited in claim 1, wherein prior to marking the NVSM as read only, the control circuitry is further operable to copy data from the disk to free memory segments of the NVSM.

6. The hybrid drive as recited in claim 1, wherein the control circuitry is further operable to:

cache write data received from a host in the NVSM;

flush the write data cached in the NVSM to the disk; and

prior to marking the NVSM as read only, disable the caching of write data in the NVSM.

7. A hybrid drive comprising:

a disk comprising a plurality of data tracks;

a head actuated over the disk;

a non-volatile semiconductor memory (NVSM) comprising a plurality of blocks, wherein each block comprises a plurality of memory segments; and

control circuitry operable to:

receive write data from a host;

concurrently write the write data to both the disk and the NVSM;

garbage collect the blocks comprising invalid memory segments; and

when a life remaining of the NVSM falls below a threshold, permanently disable the garbage collection of the blocks.

8. The hybrid drive as recited in claim 7, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a number of program/erase cycles executed on the NVSM.

9. The hybrid drive as recited in claim 7, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a change in at least one of a program time and an erase time of the NVSM.

10. The hybrid drive as recited in claim 7, wherein the control circuitry is further operable to determine the life remaining of the NVSM based on a number of error correction code (ECC) errors detected during read operations.

11. The hybrid drive as recited in claim 7, wherein the control circuitry is further operable to:

cache write data received from a host in the NVSM;

flush the write data cached in the NVSM to the disk; and

when the life remaining of the NVSM falls below the threshold, disable the caching of write data in the NVSM.

12. A hybrid drive comprising:

a disk comprising a plurality of data tracks;

a head actuated over the disk;

a non-volatile semiconductor memory (NVSM) comprising a plurality blocks, wherein each block comprises a plurality of memory segments; and

control circuitry operable to:

receive write data from a host;

concurrently write the write data to both the disk and the NVSM;

garbage collect the blocks comprising invalid memory segments;

when a life remaining of a target block falls below a threshold, the control circuitry is further operable to permanently disable the garbage collection of the target block while a valid page remains in the target block until a corresponding logical block address is overwritten; and

determine the life remaining of the target block based on a change in at least one of a program time and an erase time of the target block.

13. The hybrid drive as recited in claim 12, wherein the control circuitry is further operable to determine the life remaining of the target block based on a number of error correction code (ECC) errors detected when reading the target block.

14. A method of operating a hybrid drive, the hybrid drive comprising a disk comprising a plurality of data tracks, a head actuated over the disk, and a non-volatile semiconductor memory (NVSM) comprising a plurality of blocks, each block comprising a plurality of memory segments, the method comprising:

when a life remaining of the NVSM falls below a threshold, marking the NVSM as read only;

receiving a write command from a host including write data;

concurrently writing the write data to both the disk and the NVSM;

when the NVSM is marked as read only, writing the write data to the disk and permanently invalidating a corresponding memory segment in the NVSM;

garbage collecting the blocks comprising invalid memory segments; and

when a number of error correction code (ECC) errors exceeds a threshold during a read operation of a target block, disabling the garbage collection of the target block.

15. The method as recited in claim 14, further comprising determining the life remaining of the NVSM based on a number of program/erase cycles executed on the NVSM.

16. The method as recited in claim 14, further comprising determining the life remaining of the NVSM based on a change in at least one of a program time and an erase time of the NVSM.

17. The method as recited in claim 14, further comprising determining the life remaining of the NVSM based on a number of error correction code (ECC) errors detected during read operations.

18. The method as recited in claim 14, wherein prior to marking the NVSM as read only, further comprising copying data from the disk to free memory segments of the NVSM.

19. The method as recited in claim 14, further comprising:

caching write data received from a host in the NVSM;

flushing the write data cached in the NVSM to the disk; and

prior to marking the NVSM as read only, disabling the caching of write data in the NVSM.

20. A method of operating a hybrid drive, the hybrid drive comprising a disk comprising a plurality of data tracks, a head actuated over the disk, and a non-volatile semiconductor memory (NVSM) comprising a plurality of blocks, wherein each block comprises a plurality of memory segments, the method comprising:

receive write data from a host;

concurrently write the write data to both the disk and the NVSM;

garbage collecting the blocks comprising invalid memory segments; and

when a life remaining of the NVSM falls below a threshold, permanently disabling the garbage collection of the blocks.

21. The method as recited in claim 20, further comprising determining the life remaining of the NVSM based on a number of program/erase cycles executed on the NVSM.

22. The method as recited in claim 20, further comprising determining the life remaining of the NVSM based on a change in at least one of a program time and an erase time of the NVSM.

23. The method as recited in claim 20, further comprising determining the life remaining of the NVSM based on a number of error correction code (ECC) errors detected during read operations.

24. The method as recited in claim 20, further comprising:

caching write data received from a host in the NVSM;

flushing the write data cached in the NVSM to the disk; and

when the life remaining of the NVSM falls below the threshold, disabling the caching of write data in the NVSM.

25. A method of operating a hybrid drive, the hybrid drive comprising a disk comprising a plurality of data tracks, a head actuated over the disk, and a non-volatile semiconductor memory (NVSM) comprising a plurality of blocks, wherein each block comprises a plurality of memory segments, the method comprising:

receive write data from a host;

concurrently write the write data to both the disk and the NVSM;

garbage collecting the blocks comprising invalid memory segments;

when a life remaining of a target block falls below a threshold, permanently disabling the garbage collection of the target block while a valid page remains in the target block until a corresponding logical block address is overwritten; and

determining the life remaining of the target block based on a change in at least one of a program time and an erase time of the target block.

26. The method as recited in claim 25, further comprising determining the life remaining of the target block based on a number of error correction code (ECC) errors detected when reading the target block.

Resources

Images & Drawings included:

Sources:

Recent applications in this class:

Recent applications for this Assignee: