This disclosure relates to data processing and storage, and more specifically, to management of a data storage system, such as a flash memory system, to support flexible page retirement in memories storing multiple bits per memory cell.
NAND flash memory is an electrically programmable and erasable non-volatile memory technology that stores one or more bits of data per memory cell as a charge on the floating gate of a transistor or a similar charge trap structure. In a typical implementation, a NAND flash memory array is organized in blocks (also referred to as “erase blocks”) of physical memory, each of which includes multiple physical pages each in turn containing a multiplicity of memory cells. By virtue of the arrangement of the word and bit lines utilized to access memory cells, flash memory arrays can generally be programmed on a page basis, but are erased on a block basis.
As is known in the art, blocks of NAND flash memory must be erased prior to being programmed with new data. A block of NAND flash memory cells is erased by applying a high positive erase voltage pulse to the p-well bulk area of the selected block and by biasing to ground all of the word lines of the memory cells to be erased. Application of the erase pulse promotes tunneling of electrons off of the floating gates of the memory cells biased to ground to give them a net positive charge and thus transition the voltage thresholds of the memory cells toward the erased state. Each erase pulse is generally followed by an erase verify operation that reads the erase block to determine whether the erase operation was successful, for example, by verifying that less than a threshold number of memory cells in the erase block have been unsuccessfully erased. In general, erase pulses continue to be applied to the erase block until the erase verify operation succeeds or until a predetermined number of erase pulses have been used (i.e., the erase pulse budget is exhausted).
A NAND flash memory cell can be programmed by applying a positive high program voltage to the word line of the memory cell to be programmed and by applying an intermediate pass voltage to the memory cells in the same string in which programming is to be inhibited. Application of the program voltage causes tunneling of electrons onto the floating gate to change its state from an initial erased state to a programmed state having a net negative charge. Following programming, the programmed page is typically read in a read verify operation to ensure that the program operation was successful, for example, by verifying that less than a threshold number of memory cells in the programmed page contain bit errors. In general, program and read verify operations are applied to the page until the read verify operation succeeds or until a predetermined number of programming pulses have been used (i.e., the program pulse budget is exhausted).
Some NAND flash memories, referred to in the art as Single Level Cell (SLC), support only two charge states, meaning that only one bit of information can be stored per memory cell. Other NAND flash memories, referred to as Multi-Level Cell (MLC), Three Level Cell (TLC) and Quad Level Cell (QLC), respectively enable storage of 2, 3 or 4 bits information per cell through implementation of additional charge states. The higher storage density provided by NAND flash memories capable of storing multiple bits of information per cell often comes at the cost of higher bit error rates, slower programming times, and lower endurance (e.g., in terms of lifetime program/erase (P/E) cycle counts).
One cause of the lower endurance of NAND flash memories capable of storing multiple bits per cell is the enforcement of early retirement of subsets of these memories. In general, it is common for subsets of a NAND flash memory exhibiting relatively high bit error rates to be retired, for example, as an error threshold is reached. Because NAND flash memories supporting multiple bits per cell often utilize the bits of each memory cell to store data of multiple different data pages, retirement of one subset (e.g., data page) of the flash memory that employs a given memory cell to store one of its data bits generally necessitates the retirement of all other like subsets (e.g., data pages) that also employ that memory cell to store additional data bit(s), regardless of the bit error rates of these other subsets of the NAND flash memory. Consequently, subsets of the NAND flash memory can be withdrawn from use prematurely, that is, prior to those subsets exhibiting the bit error rate or other health metric necessitating retirement.
The present application discloses a technique that provides improved endurance in a data storage system by enabling one memory subset (e.g., data page) to be retired, while still keeping active other memory subsets sharing a common multiple-bit memory cell with the retired memory subsets (e.g., data page).
In at least one embodiment, a controller of a non-volatile memory array retires physical pages within the non-volatile memory array on a page-by-page basis. The physical pages retired by the controller include a first physical page sharing a common set of memory cells with a second physical page. While the first physical page is retired, the controller retains the second physical page as an active physical page, writes dummy data to the first physical page, and writes data received from a host to the second physical page.
With reference to the figures and with particular reference to
Each processor system 102 further includes an input/output (I/O) adapter 108 that is coupled directly (i.e., without any intervening device) or indirectly (i.e., through at least one intermediate device) to a data storage system 120 via an I/O channel 110. In various embodiments, an I/O channel 110 may employ any one or a combination of known or future developed communication protocols, including, for example, Fibre Channel (FC), FC over Ethernet (FCoE), Internet Small Computer System Interface (iSCSI), InfiniBand, Transport Control Protocol/Internet Protocol (TCP/IP), Peripheral Component Interconnect Express (PCIe), etc. I/O operations (IOPs) communicated via I/O channel 110 include read IOPs by which a processor system 102 requests data from data storage system 120 and write IOPs by which a processor system 102 requests storage of data in data storage system 120.
In the illustrated embodiment, data storage system 120 includes multiple interface cards 122 through which data storage system 120 receives and responds to input/output operations (IOP) 102 via I/O channels 110. Each interface card 122 is coupled to each of multiple Redundant Array of Inexpensive Disks (RAID) controllers 124 in order to facilitate fault tolerance and load balancing. Each of RAID controllers 124 is in turn coupled (e.g., by a PCIe bus) to each of multiple flash cards 126 including, in this example, NAND flash storage media. In other embodiments, other lossy storage media can be employed.
Gateway 130 is further coupled to multiple flash controllers 140, each of which controls a respective NAND flash memory system 150. Flash controllers 140 can be implemented, for example, by an Application Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA)) having an associated flash controller memory 142 (e.g., DRAM). In embodiments in which flash controllers 140 are implemented with an FPGA, GPP 132 may program and configure flash controllers 140 during start-up of data storage system 120. After startup, in general operation flash controllers 140 receive read and write IOPs from gateway 130 that request to read data stored in NAND flash memory system 150 and/or to store data in NAND flash memory system 150. Flash controllers 140 service these IOPs, for example, by accessing NAND flash memory systems 150 to read or write the requested data from or into NAND flash memory systems 150 or by accessing one or more read and/or write caches (not illustrated in
Flash controllers 140 implement a flash translation layer (FTL) that provides logical-to-physical address translation to enable access to specific memory locations within NAND flash memory systems 150. In general, an IOP received by flash controller 140 from a host device, such as a processor system 102, contains the logical block address (LBA) at which the data is to be accessed (read or written) and, if a write IOP, the write data to be written to data storage system 120. The IOP may also specify the amount (or size) of the data to be accessed. Other information may also be communicated depending on the protocol and features supported by data storage system 120. As is known to those skilled in the art, NAND flash memory, such as that employed in NAND flash memory systems 150, is constrained by its construction such that the smallest granule of data that can be accessed by a read or write IOP is fixed at the size of a single flash memory page, for example, 16 kilobytes (kB). The LBA provided by the host device corresponds to a logical page within a logical address space, the page typically having a size of 4 kilobytes. Therefore, more than one logical page may be stored in a physical flash page. The flash translation layer translates this LBA into a physical address assigned to a corresponding physical location in a NAND flash memory system 150. Flash controllers 140 may perform address translation and/or store mappings between logical and physical addresses in a logical-to-physical translation data structure, such as a logical-to-physical translation table (LPT), which may conveniently be stored in flash controller memory 142.
NAND flash memory systems 150 may take many forms in various embodiments. Referring now to
As shown in
In a preferred embodiment, each of the individual lanes has a respective associated bus coupling it to the associated flash controller 140. Thus, by directing its communications to one of the specific communication buses, flash controller 140 can direct its communications to one of the lanes of memory modules. Because each communication bus for a given lane is independent of the communication buses for the other lanes, a flash controller 140 can issue commands and send or receive data across the various communication buses at the same time, enabling the flash controller 140 to access the flash memory modules corresponding to the individual lanes at, or very nearly at, the same time.
With reference now to
As further shown in
Because NAND flash memory system 150 is implemented is a memory technology supporting multiple bits per cell, it is common for multiple physical pages of each block 500 to be implemented in the same set of memory cells. For example, assuming 512 physical pages per block 500 as shown in
As further shown in
Because the flash translation layer implemented by data storage system 120 isolates the logical address space made available to host devices from the physical memory within NAND flash memory system 150, the size of NAND flash memory system 150 need not be equal to the size of the logical address space presented to host devices. In most embodiments it is beneficial to present a logical address space that is less than the total available physical memory (i.e., to over-provision NAND flash memory system 150). Overprovisioning in this manner ensures that physical memory resources are available when the logical address space is fully utilized, even given the presence of a certain amount of invalid data as described above. In addition to invalid data that has not yet been reclaimed the overprovisioned space can be used to ensure there is enough logical space, even given the presence of memory failures and the memory overhead entailed by the use of data protection schemes, such as Error Correcting Code (ECC), Cycle Redundancy Check (CRC), and parity.
In some embodiments, data is written to NAND flash memory system 150 one physical page at a time. In other embodiments in which more robust error recovery is desired, data is written to groups of associated physical pages of NAND flash memory system 150 referred to herein as “page stripes.” In a preferred embodiment, all pages of a page stripe are associated with different lanes to achieve high write bandwidth. Because in many implementations the smallest erase unit is a block, page stripes can be grouped into a block stripe as is shown in
Once a block from each lane has been selected and a block stripe is formed, page stripes are preferably formed from physical pages with the same page number from all blocks in the block stripe. While the lengths of the various page stripes stored into NAND flash memory system 150 can and preferably do vary, in one embodiment each page stripe includes one to fifteen data pages of write data (typically provided by a host device) and one additional page (a “data protection page”) used to store data protection information for the write data. For example,
The formats for data pages and data protection pages described above protect data stored in a page stripe using multiple different data protection mechanisms. First, the use of the ECC bits in each data page allows the correction of some number of bit errors within the flash page. Depending on the ECC method used it may be possible correct hundreds of bits or even thousands of bits within a NAND flash page. After ECC checking and correction is performed, the corrected CRC field is used to validate the corrected data. Used together, these two mechanisms allow for the correction of relatively benign errors and the detection of more serious errors using only local intra-page information. Should an uncorrectable error occur in a data page, for example, due to failure of the physical page utilized to store the data page, the contents of the data field and LBA field of the failing data page may be reconstructed from the other data pages and the data protection page for the page stripe.
While the physical memory locations in which the data pages and data protection page of a page stripe will vary within NAND flash memory system 150, in one embodiment the data pages and data protection page that comprise a given page stripe are preferably stored in physical memory locations selected to optimize the overall operation of the data storage system 120. For example, in some embodiments, the data pages and data protection page comprising a page stripe are stored such that different physical lanes are employed to store each of the data pages and data protection page. Such embodiments support efficient access to a page stripe because flash controller 140 can access all of the pages of data that comprise the page stripe simultaneously or nearly simultaneously. It should be noted that the assignment of pages to lanes need not be sequential (i.e., data pages can be stored in any lane in any order), and unless a page stripe is a full length page stripe (e.g., containing fifteen data pages and one data protection page), the lanes utilized to store the page stripe need not be adjacent.
Having described the general physical structure and operation of one exemplary embodiment of a data storage system 120, certain operational aspects of data storage system 120 are now described with reference to
As noted above, data storage system 120 does not generally allow external devices to directly address and/or access the physical memory locations within NAND flash memory systems 150. Instead, data storage system 120 is generally configured to present a single contiguous logical address space to the external devices, thus allowing host devices to read and write data to and from LBAs within the logical address space while permitting flash controllers 140 and GPP 132 to control where the data that is associated with the various LBAs actually resides in the physical memory locations comprising NAND flash memory systems 150. In this manner, performance and longevity of NAND flash memory systems 150 can be intelligently managed and optimized. In the illustrated embodiment, each flash controller 140 manages the logical-to-physical translation using a logical-to-physical translation data structure, such as logical-to-physical translation (LPT) table 900, which can be stored in the associated flash controller memory 142.
Flash management code running on the GPP 132 tracks erased blocks of NAND flash memory system 150 that are ready to be used in ready-to-use (RTU) queues 906, which may be stored, for example, in GPP memory 134. In the depicted embodiment, management code running on the GPP 132 preferably maintains one or more RTU queues 906 per channel, and an identifier of each erased block that is to be reused is enqueued in one of the RTU queues 906 corresponding to its channel. For example, in one embodiment, RTU queues 906 include, for each channel, a respective RTU queue 906 for each of a plurality of block health grades. In various implementations, between 2 and 8 RTU queues 906 per lane (and a corresponding number of block health grades) have been found to be sufficient.
A build block stripes function 920 performed by flash management code running on the GPP 132 constructs new block stripes for storing data and associated parity information from the erased blocks enqueued in RTU queues 906. As noted above with reference to
In response to a write IOP received from a host, such as a processor system 102, a data placement function 910 of flash controller 140 determines by reference to LPT table 900 whether the target LBA(s) indicated in the write request is/are currently mapped to physical memory page(s) in NAND flash memory system 150 and, if so, changes the status of each data page currently associated with a target LBA to indicate that it is no longer valid. In addition, data placement function 910 allocates a page stripe if necessary to store the write data of the write IOP and any non-updated data (i.e., in case the write request is smaller than a logical page, there is still valid data which needs to be handled in a read-modify-write manner) from an existing page stripe, if any, targeted by the write IOP, and/or stores the write data of the write IOP and any non-updated (i.e., still valid) data from an existing page stripe, if any, targeted by the write IOP to an already allocated page stripe which has free space left. The page stripe may be allocated from either a block stripe already allocated to hold data or from a new block stripe built by build block stripes function 920. In a preferred embodiment, the page stripe allocation can be based on the health of the blocks available for allocation and the “heat” (i.e., estimated or measured write access frequency) of the LBA of the write data. Data placement function 910 then writes the write data, associated metadata (e.g., CRC and ECC values), and parity information for the page stripe in the allocated page stripe. Flash controller 140 also updates LPT table 900 to associate the physical page(s) utilized to store the write data with the LBA(s) indicated by the host device. Thereafter, flash controller 140 can access the data to service host read IOPs by reference to LPT table 900 as further illustrated in
Once all pages in a block stripe have been written, flash controller 140 places the block stripe into one of occupied block queues 902, which flash management code running on the GPP 132 utilizes to facilitate garbage collection. As noted above, through the write process, pages are invalidated, and therefore portions of the NAND flash memory system 150 become unused. The associated flash controller 140 (and/or GPP 132) eventually needs to reclaim this space through garbage collection performed by a garbage collector 912. Garbage collector 912 selects particular block stripes for garbage collection based on a number of factors including, for example, the health of the blocks within the block stripes and how much of the data within the erase blocks is invalid. In the illustrated example, garbage collection is performed on entire block stripes, and flash management code running on GPP 132 logs the block stripes ready to be recycled in a relocation queue 904, which can conveniently be implemented in the associated flash controller memory 142 or GPP memory 134.
The flash management functions performed by GPP 132 or flash controller 140 additionally include a relocation function 914 that relocates the still valid data held in block stripes enqueued in relocation queue 904. To relocate such data, relocation function 914 updates LPT table 900 to remove the current association between the logical and physical addresses of the data. In addition, relocation function 914 issues relocation write requests to data placement function 910 to request that the data of the old block stripe be written to a new block stripe in NAND flash memory system 150. Once all still valid data has been moved from the old block stripe, the old block stripe is passed to dissolve block stripes function 916, which decomposes the old block stripe into its constituent blocks, thus disassociating the blocks. Flash controller 140 then erases each of the blocks formerly forming the dissolved block stripe and increments an associated program/erase (P/E) cycle count for the block in P/E cycle counts 944. Based on the health metrics of each erased block, each erased block is either retired (i.e., no longer used to store user data) by a block retirement function 918 among the flash management functions executed on GPP 132, or alternatively, prepared for reuse by placing the block's identifier on the appropriate ready-to-use (RTU) queue 906 in the associated GPP memory 134.
As further shown in
Referring now to
In the illustrated embodiment, flash controller 140 includes a compressor 1000 that selectively applies one or more data compression algorithms to data written to the associated NAND flash memory system 150, a decompressor 1002 that decompresses compressed data read from NAND flash memory system 150, and a data scrambler 1004. Flash controller 140 utilizes data scrambler 1004 to apply a predetermined data scrambling (i.e., randomization) pattern to data written to NAND flash memory 150 in order to improve endurance and mitigate cell-to-cell interference.
As further illustrated in
With reference now to
The illustrated process begins at block 1100 and then proceeds to block 1102, which illustrates flash controller 140 awaiting receipt of a read IOP (read request) from an external host device, such as processor system 102. In general, the read IOP received by flash controller 140 will specify an LBA of a target data page that is requested by the host device, where the LBA may itself be the result of one or more levels of translation of an original LBA received by data storage system 120. In response to receipt of the read IOP, flash controller 140 translates the LBA by reference to LPT 900 to determine the physical address of the physical pages that stores the requested data page (block 1104). Once the physical address is determined, flash controller 124 accesses the target data page utilizing the physical address by issuing a read request to read the target data page from the physical page associated with the physical address (block 1106). The read IOP may request various sizes of data, but for simplification it is assumed that the flowchart given in
At block 1108, flash controller 140 performs ECC decoding for the data page to attempt to correct any bit errors in the data page. In the depicted embodiment, if the bit errors, if any, in the data page are correctable, the ECC decoder within flash controller 140 corrects the bit errors and returns the number of such bit errors and a correctable status. For example, the ECC decoder will determine that bit errors are correctable if there are 50 bits in error within the codeword and the ECC is capable of correcting greater than 50 bits in error within the codeword. If, on the other hand, the bit errors in the data page are uncorrectable, the ECC decoder returns an uncorrectable status. It will be appreciated that bit errors in the data page can be caused by a variety of factors including, but not limited to, the physical failure of one or more components within a given memory chip (such as the failure of a charge pump), the physical failure of an entire memory chip or the external support structures for that chip (e.g., the breaking of a power line or an address line to a chip), the physical failure of all or part of a chip as a result of environmental factors (e.g., excessive temperature, magnetic field, humidity, etc), trapped charge in the oxide layer of the physical device, leakage of charge from the floating gate (or similar charge trap device) of a memory cell, and/or electrical noise inflicted by writes or reads of adjacent memory cells. It should also be noted that physical regions within a NAND flash memory system can and do exhibit dramatic variations in the probability of bit errors. For example, the probability of having a bit error occurring in page 5 of a block of a particular flash memory product could be 1%, while the probability of a bit error occurring in page 10 of the same block could be 0.001%. Similar variability in the probability of bit errors can also be observed between modules, dies, planes, and blocks of the same flash memory product.
At block 1110, flash controller 140 determines whether or not the ECC decoder returned a correctable status for the data page. If so, in one embodiment, the process passes directly to block 1130, which is described below. However, in response to a determination at block 1110 that the ECC decoder did not return a correctable status for the data page (i.e., the ECC decoder returned an uncorrectable status for the data page), the process proceeds to block 1116.
At block 1116, flash controller 140 marks only the physical page that stores the target data page as retired (i.e., no longer available for allocation to store a data page of user data in a new page stripe) in PST 946 and/or the PSI 502 of the block containing that physical page.
This exemplary implementation waits until a physical page has one or more codewords containing uncorrectable errors before performing the retirement. However, certain implementations may choose to retire a physical page at some point prior to uncorrectability. For example, in one embodiment, flash controller 140 further determines at block 1112 whether the number of corrected bit errors satisfies (e.g., is less than) a bit error threshold T3 lower than the ECC correction threshold. For example, if an implementation uses BCH ECC over approximately 1024 bytes and can correct 50 bits in error, flash controller 140 may decide to retire a page when the number of corrected bit errors reaches a number less than 50, say 48. In such implementations, the process passes from block 1112 to block 1116 in response to a negative determination at block 1112. Additionally, one skilled in the art will also know that, depending on the flash technology used, that flash controller 140 may elect to perform additional steps at block 1110 before determining that the page is truly uncorrectable and should be retired. For example, the flash manufacturer may require flash controller 140 to change certain parameters for that page or block and perform a re-read of the page. If the bit errors, if any, detected upon the re-read are correctable, then flash controller 140 would follow the “Yes” path from block 1110 (and block 1112, if present) to block 1130. In this way, block 1110 may contain many additional steps that, although not illustrated in detail, are performed in determining that the page contains a truly uncorrectable error.
At block 1118, flash controller 140 further determines by reference to PSI 502 whether or not the number of retired pages of physical memory in a physical memory region containing the physical page retired at block 1116 now satisfies (e.g., is greater than and/or equal to) a first threshold T1. In at least some embodiments, the first threshold T1 is configurable. Performance testing has shown that performance of data storage system 120 is optimized if the first threshold T1 is less than about 10% of the physical pages in the physical memory region and, more particularly, is configured to be about 5% of the physical pages in the physical memory region. Still more particularly, it is preferable if the first threshold T1 is configured to be about 4% of the physical pages in the physical memory region. These numbers are exemplary only and can vary dramatically based on the use and requirements of the data storage system. The physical memory region to which the first threshold T1 pertains can be, for example, a block, plane, die, CE or entire flash module.
In response to flash controller 140 determining at block 1118 that the first threshold is not satisfied, the process passes from block 1118 to block 1130. However, in response to flash controller 140 determining at block 1118 that the first threshold T1 is satisfied, flash controller 140 marks the entire physical memory region containing the retired physical page as retired and thus unavailable for allocation to store new page stripes of user data (block 1120). If the physical memory region for which retirement is determined at block 1118-1120 is a smaller region than an entire flash memory module, flash controller 140 may optionally determine whether or not to retire larger physical memory regions containing the retired physical page, as shown at optional blocks 1122-1124. As indicated, the additional determination regarding retirement of larger physical memory regions can be based on a comparison of the number of retired physical memory regions (e.g., pages, blocks, planes, dies or CEs) within the larger physical memory region and a second threshold T2 (which may differ from threshold T1). The process proceeds from either block 1120 or one of blocks 1122 and 1124 to block 1130. It may also be determined that there are now too many retired memory resources within NAND flash memory system 140 to be able to achieve required performance levels, and flash controller 140 may send a response to the user indicating that it is time to replace the physical resource containing NAND flash memory system 150.
At block 1130, flash controller 140 attempts to validate the data field 702 and LBA field 704 of the target data page by computing a cyclic redundancy code and comparing the computed CRC to that contained in CRC field 706. In response to successful validation of the data page, the process proceeds to block 1134, which is described below. However, in response to failure of the CRC validation, flash controller 140 reads the entire page stripe and recovers the correct content of the target data page from the other data page(s) and the data protection page of the page stripe (block 1132). In addition, flash controller 140 relocates the page stripe (including the recovered target data page) to a different physical location in NAND flash memory system 120, for example, utilizing relocation function 914. From block 1130 or block 1132, the process proceeds to block 1134, which illustrates flash controller 140 decompressing the target data page utilizing decompressor 1002 and transmitting the decompressed target data page to the requesting host device. Thereafter, the process of
As noted above, the order of operations set forth in
With reference now to
The method of
At block 1308, flash controller 140 allocates a write cache line 1012 in write cache 1010 to buffer the write data of the write IOP (write request) and initializes the contents of the allocated write cache line 1012 to all 0s. In addition, at block 1310, flash controller 140 allocates physical pages in NAND flash memory system 150 to form page stripes to store the write data and retrieves the page status information for the allocated physical pages from PST 946. As noted above with reference to
At block 1312, flash controller assigns storage for the data protection (e.g., parity)) page of each page stripe to a physical page that is identified by the page status information as an active (i.e., non-retired) page. Although not required, metadata storage is reduced if corresponding physical pages of each page stripe are utilized to store the parity information (e.g., Dpage15 of each page stripe).
Block 1314 illustrates flash controller 140 utilizing compressor 1000 to compress the logical pages of write data specified by the write IOP and then filing segments 1014a-1014p of write cache line 1012 with the compressed logical pages. In filling segments 1014a-1014p at block 1314, any lanes corresponding to retired physical pages are skipped. Flash controller 140 also computes parity information for each page stripe (e.g., by performing a bit-by-bit XOR of all the data pages in the page stripe) and buffers the resulting data protection pages in the storage locations in segments 1014 corresponding to the allocated data protection pages of the page stripes (block 1316). Because the storage locations in segments 1014 corresponding to retired physical pages have a value of all 0s, the contents of these storage locations can be included in the parity computation without affecting the resulting parity information.
As indicated at block 1318 of
At block 1320, flash controller 140 additionally computes the CRC and ECC values for each data page and stores those values into the CRC field 706 and ECC field 708 of the data page. Flash controller 140 also updates the LPT table 900 to associate the physical pages allocated to store the write data with the LBAs indicated by the host device (block 1320). It should be noted that the retired physical pages remain unmapped by LPT table 900 and are therefore inaccessible to read IOPs. Following block 1322, the process of
It should be noted that blocks 1318 and 1320 will include steps that check whether or not the programming of a physical page completed correctly. If flash controller 140 determines that the write of a physical page did not complete correctly, then flash controller 140 will employ various recovery techniques, such as retrying the write operation. If the write eventually passes, then flash controller 140 will complete successfully. However, if the write is unsuccessful, then flash controller 140 will retire the allocated physical page in the same manner as when a read is unsuccessful. Having retired a physical page, flash controller 140 will change its tables accordingly and allocate an alternative active (i.e., non-retired) physical page to complete either block 1318 or 1320.
With reference now to
At reference numeral 1500 of
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
As has been described, a controller of a non-volatile memory array retires physical pages within the non-volatile memory array on a page-by-page basis. The physical pages retired by the controller include a first physical page sharing a common set of memory cells with a second physical page. While the first physical page is retired, the controller retains the second physical page as an active physical page, writes dummy data to the first physical page, and writes data received from a host to the second physical page.
While the present invention has been particularly shown as described with reference to one or more preferred embodiments, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention. For example, although aspects have been described with respect to a data storage system including a flash controller that directs certain functions, it should be understood that present invention may alternatively be implemented as a program product including a storage device storing program code that can be processed by a processor to perform such functions or cause such functions to be performed. As employed herein, a “storage device” is specifically defined to include only statutory articles of manufacture and to exclude transitory propagating media per se.
In addition, although embodiments have been described that include use of a NAND flash memory, it should be appreciated that embodiments of the present invention can also be used with other types of non-volatile random access memory (NVRAM) including, for example, phase-change memory (PCM) and combinations thereof.
The figures described above and the written description of specific structures and functions below are not presented to limit the scope of what Applicants have invented or the scope of the appended claims. Rather, the figures and written description are provided to teach any person skilled in the art to make and use the inventions for which patent protection is sought. Those skilled in the art will appreciate that not all features of a commercial embodiment of the inventions are described or shown for the sake of clarity and understanding. Persons of skill in this art will also appreciate that the development of an actual commercial embodiment incorporating aspects of the present inventions will require numerous implementation-specific decisions to achieve the developer's ultimate goal for the commercial embodiment. Such implementation-specific decisions may include, and likely are not limited to, compliance with system-related, business-related, government-related and other constraints, which may vary by specific implementation, location and from time to time. While a developer's efforts might be complex and time-consuming in an absolute sense, such efforts would be, nevertheless, a routine undertaking for those of skill in this art having benefit of this disclosure. It must be understood that the inventions disclosed and taught herein are susceptible to numerous and various modifications and alternative forms. Lastly, the use of a singular term, such as, but not limited to, “a” is not intended as limiting of the number of items.