1. Technical Field
This disclosure relates to data storage systems for computer systems. More particularly, the disclosure relates to mechanisms for efficient management of system data.
2. Description of the Related Art
Data storage systems maintain various types of system data in the course of their normal operation. System data can include, for example, logical to physical mapping information, listing of defective physical locations, allocation information, and so on. However, managing system data involves substantial overhead, such as during performing data storage operations and housekeeping tasks. This may in turn cause the performance of data storage systems to regress. Accordingly, it is desirable to provide more efficient mechanisms for managing system data.
Systems and methods that embody the various features of the invention will now be described with reference to the following drawings, in which:
While certain embodiments are described, these embodiments are presented by way of example only, and are not intended to limit the scope of protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions, and changes in the form of the methods and systems described herein may be made without departing from the scope of protection.
Overview
Data storage systems generate and maintain various types of system data for performing data storage operations and housekeeping tasks. For example, system data can include allocation information that groups physical locations or data allocation units into sets of data allocation units (e.g., into superblocks) so that at least some data storage operations can be performed concurrently. Data allocation units can correspond to solid-state memory blocks a block, magnetic storage zone, etc. As another example, system data can include memory defect information that records and tracks defective allocation units so that user data is not stored in such defective allocation units. As yet another example, system data can include spare information that records and tracks free (or not associated with any set) memory allocation units. Because system data can be voluminous, reduction of system data redundancy and efficient organization and management of system data can improve performance of data storage systems.
Embodiments of the present invention are directed to mechanisms for managing system data that efficiently organize system data and reduce system data redundancy. In some embodiments, memory allocation information comprises a block allocation map, which can be implemented or represented using any suitable data structure, such as array, graph, table, tree, etc. The map can be configured to track defective physical locations or allocation units (e.g., defective blocks). The map can be further configured to provide information related to the grouping(s) of physical locations or allocation units into sets of physical locations or allocation units (e.g., groupings of blocks into superblocks). The structure of the map can provide information for locating a particular memory location in the physical memory. In some embodiments, separate defective blocks list or table and superblock table are not needed. Further, in some embodiments data allocation units can be grouped at initialization (e.g., blocks can be assigned to respective superblocks) so that a separate spare data allocation unit (e.g., block) list or table is not needed.
In some embodiments of the present invention, a data storage system comprising a non-volatile memory array can be configured to perform memory operations (e.g., program, erase, etc.) by determining whether a particular physical location or data allocation unit (e.g., block) is not marked as defective in the block allocation map. If the block is not marked as defective, the data storage system can be configured to perform the data storage operation (e.g., program, erase, etc.) on that block. If the block is marked as defective, the data storage system can be configured to select another block from the same group of blocks as the block marked as defective and perform the data storage operation (e.g., program, erase, etc.) on the selected block. The arrangement of the defect data in the block allocation map can provide information related to grouping(s) of blocks so that the data storage system does not comprise a separate table configured to record the grouping(s). In some embodiments, the block allocation map can be configured such that a physical location in the non-volatile memory array of a particular block can be inferred from the layout of the block allocation map.
System Overview
The controller 130 can be configured to receive data and/or storage access commands from a storage interface module 112 (e.g., a device driver) of a host system 110. Storage access commands communicated by the storage interface 112 can include write data (or program data) and read data commands issued by the host system 110. Read and write commands can specify a logical address (e.g., LBA) used to access the data storage system 120A. The controller 130 can execute the received commands in the non-volatile memory array 150, magnetic storage 160, etc.
Data storage system 120A can store data communicated by the host system 110. In other words, the data storage system 120A can act as memory storage for the host system 110. To facilitate this function, the controller 130 can implement a logical interface. The logical interface can present to the host system 110 data storage system's memory as a set of logical addresses (e.g., contiguous address) where host data can be stored. Internally, the controller 130 can map logical addresses to various physical memory locations (referenced by addresses) in the non-volatile memory array 150 and/or other storage modules. The controller 130 includes a defect tracking module 132 configured to manage at least some system data (e.g., manage the block allocation map). The controller 130 can include volatile memory 134 for efficiently storing and accessing data, such as frequently used system data. In other embodiments, volatile memory 134 can be located outside the controller 130.
Efficient Management of System Data
In one embodiment, physical addresses corresponding to memory locations configured to store data can be associated with or referenced by a Physical Chunk Number (PCN). The PCN 200 comprises information that indexes into the allocation table 220. In the illustrated embodiment, the SBI (superblock index) field 202 can be utilized as an index into a particular row 228 of the allocation table 220. The row can be associated with a set of data allocation units (e.g., superblock). The remaining fields 204, such as chip, die, channel, plane, and mapping unit, can be utilized as an index into a particular column 229 within the row 228. Accordingly, the PCN 200 can be used to locate information corresponding to the physical location the PCN corresponds to in the allocation table 220. This information can indicate, for example, the logical address with which the physical address is associated.
In one embodiment, the data storage system 120A and/or 120B (e.g., via the controller 130 and/or the defect tracking module 132) can utilize the allocation table 220 to perform a data access operations (e.g., a program and/or erase). The data storage system can also determine whether a particular memory location is defective. This can be accomplished by looking up defect information in the defect table 240. In addition, the data storage system can utilize the spare table 260 to swap out a defective memory location or data allocation unit that comprises the defective memory location with a spare, non-defective one. Accordingly, as the data storage system accesses (and updates) all three system data tables, the overhead associated with storage and searching system data during performance of data access operations can be substantial.
In one embodiment, physical addresses corresponding to memory locations configured to store data can be associated with or referenced by a PCN. The PCN 300 comprises information that indexes into the allocation table 350. In the illustrated embodiment, the SBI (superblock index) or block number field 302 can be utilized as an index into a particular row 358 of the allocation table 350. Rows can correspond to groupings of sets of memory location or data allocation units (e.g., superblocks). The remaining fields 304, such as chip, die, channel, plane, and mapping unit, can be utilized as an index into a particular column 359 within the row 358. Accordingly, the PCN 300 can be used to locate information corresponding to the physical address the PCN identifies in the allocation table 350. This information can indicate, for example, defect information and the logical address with which the physical address is associated.
In one embodiment, the data storage system 120A and/or 120B (e.g., via controller 130 and/or defect tracking module 132) can populate the block allocation map 350 as follows. At initialization of the data storage system 120A and/or 120B, the defective memory locations list (e.g., generated and stored in the non-volatile memory array 150 by the non-volatile memory array vendor) can be used to mark corresponding locations or entries in the block allocation map 350 as defective. Further, locations or entries in the block allocation map 350 corresponding to the memory locations that become defective during operation of the data storage system 120A and/or 120B (e.g., become defective during execution of read, program, and/or erase operations), can be marked as defective. In one embodiment, the data storage system 120A and/or 120B (e.g., via controller 130 and/or defect tracking module 132) can efficiently generate a list of defective memory locations by scanning the block allocation map 350. For example, the block allocation map 350 can be scanned for binary zeroes, which indicate that the corresponding memory location is defective.
In one embodiment, a working copy of the block allocation map 350 can be stored in the volatile memory 134 during normal operation of the data storage system 120A and/or 120B. When there is an interruption and/or loss of power (e.g., restart, shutdown, blackout, brownout, etc.), the data storage system 120A and/or 120B (e.g., via the controller 130 and/or the defect tracking module 132) can store the working copy of the block allocation 350 map in non-volatile memory, such as in the non-volatile memory array 150 and/or magnetic storage 160. This non-volatile copy of the block allocation map 350 can be loaded into the volatile memory 134 when the data storage system 120A and/or 120B is subsequently powered up.
In one embodiment, the block allocation map 550 can comprise entries corresponding to memory locations (e.g., pages) in each set of blocks (e.g., each superblock). As is illustrated, row 560 comprises entries corresponding to the Block 0 superblock and row 570 comprises entries corresponding to the Block 1 superblock. For example, entry 562 can correspond to memory location 502, which is a location (or set of locations or entire) in Block 0 in Plane 0, Chip 0, Die 0, and Channel 0. As another example, entry 572 can correspond to memory location 504, which is a location (or set of locations or entire) Block 1 in Plane 1, Chip 0, Die 0, and Channel 1. Accordingly, each entry in the block allocation map 550 is associated with the physical memory location in the non-volatile memory array 500, and the exact physical locations in memory can be inferred from the layout of the block allocation map 550 (e.g., bitmap).
In one embodiment, as is illustrated, entries in the block allocation map 550 can indicate whether the corresponding memory location is defective. For example, entries having binary 0 can represent defective memory location, while entries having binary 1 can represent non-defective memory locations. In one embodiment, as is illustrated, all memory location of the non-volatile memory array 500 can be associated with a particular group or set of memory locations (e.g., superblocks) when the data storage system 120A and/or 120B is initialized. Accordingly, no spare memory locations may exist after the data storage system has been initialized, and a spare table may not be needed.
If the process 600 determines that the selected physical location is marked as defective, the process can transition to block 630 where it can select another physical location for programming and/or erasing. In one embodiment, the process 600 can select another physical location from the same group or set of physical locations (e.g., the same superblock) as the defective physical location selected in block 610. In another embodiment, the process 600 can select any other physical location whether from the same group or set of physical locations. The process can then transition to block 620 where it determines whether the selected physical location is marked as defective. In other embodiments, the process 600 can be used for performing operations other than programming and/or erasing.
Embodiments of data storage systems disclosed herein are configured to efficiently manage system data. This can be accomplished by efficiently organizing system data and reducing system data redundancy. In one embodiment, memory allocation information (e.g., block allocation map) configured to track defective physical locations or allocation units (e.g., defective blocks) can be maintained. Memory allocation information can be further configured to provide information related to the grouping(s) of physical locations or data allocation units into sets of physical locations or data allocation units (e.g., groupings of blocks into superblocks) and provide information for locating the physical locations in memory. Accordingly, a separate defective blocks list or table and superblock table may not be needed. Further, a spare physical location table may not be needed. Hence, redundancy can be reduced, efficiency can be increased, and improved performance can be attained.
Other Variations
Those skilled in the art will appreciate that in some embodiments, other types of system data can be managed according to the disclosed mechanisms. Although such mechanisms are described in the context of solid-state memory block allocation information, the disclosed mechanisms can be applied to other types of system data, such as memory allocation information, sector allocation information, zone allocation information, and so on. In addition, disclosed mechanisms can be applied to other types of memory, such as magnetic storage. Further, in some embodiments, data allocation units can comprise one or more physical locations. Additional system components can be utilized, and disclosed system components can be combined or omitted. The actual steps taken in the disclosed processes, such as the processes illustrated in
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the protection. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the protection. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the protection. For example, the systems and methods disclosed herein can be applied to hard disk drives, hybrid hard drives, and the like. In addition, other forms of storage (e.g., DRAM or SRAM, battery backed-up volatile DRAM or SRAM devices, EPROM, EEPROM memory, etc.) may additionally or alternatively be used. As another example, the various components illustrated in the figures may be implemented as software and/or firmware on a processor, ASIC/FPGA, or dedicated hardware. Also, the features and attributes of the specific embodiments disclosed above may be combined in different ways to form additional embodiments, all of which fall within the scope of the present disclosure. Although the present disclosure provides certain preferred embodiments and applications, other embodiments that are apparent to those of ordinary skill in the art, including embodiments which do not provide all of the features and advantages set forth herein, are also within the scope of this disclosure. Accordingly, the scope of the present disclosure is intended to be defined only by reference to the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
6856556 | Hajeck | Feb 2005 | B1 |
7126857 | Hajeck | Oct 2006 | B2 |
7430136 | Merry, Jr. et al. | Sep 2008 | B2 |
7447807 | Merry et al. | Nov 2008 | B1 |
7502256 | Merry, Jr. et al. | Mar 2009 | B2 |
7509441 | Merry et al. | Mar 2009 | B1 |
7596643 | Merry, Jr. et al. | Sep 2009 | B2 |
7653778 | Merry, Jr. et al. | Jan 2010 | B2 |
7685337 | Merry, Jr. et al. | Mar 2010 | B2 |
7685338 | Merry, Jr. et al. | Mar 2010 | B2 |
7685374 | Diggs et al. | Mar 2010 | B2 |
7733712 | Walston et al. | Jun 2010 | B1 |
7765373 | Merry et al. | Jul 2010 | B1 |
7898855 | Merry, Jr. et al. | Mar 2011 | B2 |
7912991 | Merry et al. | Mar 2011 | B1 |
7936603 | Merry, Jr. et al. | May 2011 | B2 |
7962792 | Diggs et al. | Jun 2011 | B2 |
8078918 | Diggs et al. | Dec 2011 | B2 |
8090899 | Syu | Jan 2012 | B1 |
8095851 | Diggs et al. | Jan 2012 | B2 |
8108692 | Merry et al. | Jan 2012 | B1 |
8122185 | Merry, Jr. et al. | Feb 2012 | B2 |
8127048 | Merry et al. | Feb 2012 | B1 |
8135903 | Kan | Mar 2012 | B1 |
8151020 | Merry, Jr. et al. | Apr 2012 | B2 |
8161227 | Diggs et al. | Apr 2012 | B1 |
8166245 | Diggs et al. | Apr 2012 | B2 |
8243525 | Kan | Aug 2012 | B1 |
8254172 | Kan | Aug 2012 | B1 |
8261012 | Kan | Sep 2012 | B2 |
8296625 | Diggs et al. | Oct 2012 | B2 |
8312207 | Merry, Jr. et al. | Nov 2012 | B2 |
8316176 | Phan et al. | Nov 2012 | B1 |
8341339 | Boyle et al. | Dec 2012 | B1 |
8375151 | Kan | Feb 2013 | B1 |
8392635 | Booth et al. | Mar 2013 | B2 |
8397107 | Syu et al. | Mar 2013 | B1 |
8407449 | Colon et al. | Mar 2013 | B1 |
8423722 | Deforest et al. | Apr 2013 | B1 |
8433858 | Diggs et al. | Apr 2013 | B1 |
8443167 | Fallone et al. | May 2013 | B1 |
8447920 | Syu | May 2013 | B1 |
8458435 | Rainey, III et al. | Jun 2013 | B1 |
8478930 | Syu | Jul 2013 | B1 |
8489854 | Colon et al. | Jul 2013 | B1 |
8503237 | Horn | Aug 2013 | B1 |
8521972 | Boyle et al. | Aug 2013 | B1 |
8549236 | Diggs et al. | Oct 2013 | B2 |
8583835 | Kan | Nov 2013 | B1 |
8601311 | Horn | Dec 2013 | B2 |
8601313 | Horn | Dec 2013 | B1 |
8612669 | Syu et al. | Dec 2013 | B1 |
8612804 | Kang et al. | Dec 2013 | B1 |
8615681 | Horn | Dec 2013 | B2 |
8638602 | Horn | Jan 2014 | B1 |
8639872 | Boyle et al. | Jan 2014 | B1 |
8683113 | Abasto et al. | Mar 2014 | B2 |
8700834 | Horn et al. | Apr 2014 | B2 |
8700950 | Syu | Apr 2014 | B1 |
8700951 | Call et al. | Apr 2014 | B1 |
8706985 | Boyle et al. | Apr 2014 | B1 |
8707104 | Jean | Apr 2014 | B1 |
8713066 | Lo et al. | Apr 2014 | B1 |
8713357 | Jean et al. | Apr 2014 | B1 |
8719531 | Strange et al. | May 2014 | B2 |
8724422 | Agness et al. | May 2014 | B1 |
8725931 | Kang | May 2014 | B1 |
8745277 | Kan | Jun 2014 | B2 |
8751728 | Syu et al. | Jun 2014 | B1 |
8769190 | Syu et al. | Jul 2014 | B1 |
8769232 | Suryabudi et al. | Jul 2014 | B2 |
8775720 | Meyer et al. | Jul 2014 | B1 |
8782327 | Kang et al. | Jul 2014 | B1 |
8788778 | Boyle | Jul 2014 | B1 |
8788779 | Horn | Jul 2014 | B1 |
8788880 | Gosla et al. | Jul 2014 | B1 |
8793429 | Call et al. | Jul 2014 | B1 |
20090327590 | Moshayedi | Dec 2009 | A1 |
20090327591 | Moshayedi | Dec 2009 | A1 |
20100174849 | Walston et al. | Jul 2010 | A1 |
20100250793 | Syu | Sep 2010 | A1 |
20110099323 | Syu | Apr 2011 | A1 |
20110185113 | Goss et al. | Jul 2011 | A1 |
20110231623 | Goss et al. | Sep 2011 | A1 |
20110283049 | Kang et al. | Nov 2011 | A1 |
20120260020 | Suryabudi et al. | Oct 2012 | A1 |
20120278531 | Horn | Nov 2012 | A1 |
20120284460 | Guda | Nov 2012 | A1 |
20120324191 | Strange et al. | Dec 2012 | A1 |
20130132638 | Horn et al. | May 2013 | A1 |
20130145106 | Kan | Jun 2013 | A1 |
20130290793 | Booth et al. | Oct 2013 | A1 |
20140059405 | Syu et al. | Feb 2014 | A1 |
20140101369 | Tomlin et al. | Apr 2014 | A1 |
20140115427 | Lu | Apr 2014 | A1 |
20140133220 | Danilak et al. | May 2014 | A1 |
20140136753 | Tomlin et al. | May 2014 | A1 |
20140149826 | Lu et al. | May 2014 | A1 |
20140157078 | Danilak et al. | Jun 2014 | A1 |
20140181432 | Horn | Jun 2014 | A1 |
20140223255 | Lu et al. | Aug 2014 | A1 |