1. Technical Field
This disclosure relates to non-volatile storage subsystems. More particularly, the disclosure relates to systems and methods for storing and loading system table data.
2. Description of the Related Art
Non-volatile storage systems can include system tables, such as tables containing logical-to-physical address mapping data. Such data may associate logical addresses used by a host system with corresponding physical storage locations in the non-volatile storage system. In certain circumstances, it may be desirable for system table data to be loaded from non-volatile memory into volatile memory, along with log data that indicates changes to a system table. However, loading and updating system table data can incur delays for memory accesses.
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 may include system tables having various sizes and/or characteristics. With respect to system tables of certain sizes, it may be desirable to periodically store table data and/or table change logs, in non-volatile memory in order to avoid unwanted data loss. However, storage of table data may make present various data storage and/or loading efficiency or reliability concerns. Furthermore, loading partial segments of system table data may be difficult in systems with inadequate, or complicated, data coherency characteristics. As used in this application, a “segment” refers broadly to any partition, division, or portion of a whole. Segments may or may not be of equal size and the size of a segment may vary over time.
Certain data storage systems implement progressive copying, or “flushing” of system table data from volatile memory to non-volatile storage. Data coherency may be relatively easier to attain in such systems, though write and/or load time considerations may need to be taken into account. In addition, the ability to load partial segments of table data efficiently may be a concern.
In some embodiments of the present invention, system data is stored in a progressive manner, without the use of log data. In certain embodiments, such a system may allow for satisfactory loading of partial segments of table data, while maintaining satisfactory levels of data coherency.
System Overview
In non-volatile storage devices, such as solid-state storage devices, commands can be received from a host designating a logical memory address. The logical memory address can then be converted into a physical address corresponding to a storage location on the non-volatile media. This logical-to-physical address mapping may be maintained in a mapping table in volatile memory of a controller of the storage device. As changes are made to the mapping table in volatile memory, the controller may periodically save a copy of the mapping table, or pages of the mapping table, to the non-volatile storage array to ensure that the mapping table can be reconstructed in the volatile memory when power is lost. Because the mapping table can comprise a significant amount of data (e.g. 256 Mb for a 256 Gb drive), changes to the mapping table made between saves to the non-volatile storage array can be recorded in a log of mapping table changes and the log can also be saved to non-volatile memory. Alternatively, in certain embodiments disclosed herein, table pages are updated and flushed progressively, such that log pages are unnecessary. Progressive flushing of table pages may allow for recording of changes without the need for log pages. On system power up, table data in the non-volatile memory may be loaded to the volatile memory prior to servicing any media access requests to ensure the logical addresses resolve to the proper locations on the storage array.
The term “non-volatile memory” is used herein according to its broad and ordinary meaning, and may refer to solid-state memory such as NAND flash. However, the systems and methods of this disclosure may also be useful in more conventional hard drives and hybrid drives including both solid-state and hard drive components. Solid-state memory may comprise a wide variety of technologies, such as flash integrated circuits, Chalcogenide RAM (C-RAM), Phase Change Memory (PC-RAM or PRAM), Programmable Metallization Cell RAM (PMC-RAM or PMCm), Ovonic Unified Memory (OUM), Resistance RAM (RRAM), NAND memory, NOR memory, EEPROM, Ferroelectric Memory (FeRAM), or other discrete NVM (non-volatile memory) chips. The solid-state storage devices may be physically divided into planes, blocks, pages, and sectors, as is known in the art. Other forms of storage (e.g., battery backed-up volatile DRAM or SRAM devices, magnetic disk drives, etc.) may additionally or alternatively be used.
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) in a host system 110. Storage access commands communicated by the storage interface 112 can include read and/or write commands issued by the host system 110. Read and write commands can specify a logical block address in the storage system 120. The controller 130 can execute the received commands in the non-volatile memory module 150, for example. In certain embodiments, the controller can include memory (e.g., DRAM) for storing data, such as system table data. In certain embodiments, one or more of the depicted devices or modules may be omitted, such as, for example, magnetic storage 160.
The solid-state memory module 150 may be implemented using NAND flash memory devices. Other types of solid-state memory devices can alternatively be used. In one embodiment, the memory devices are MLC devices, SLC memory devices, or a combination of SLC and MLC devices.
The data storage system 120 can store data communicated by the host system 110. That is, the storage system 120 can act as memory storage for the host system 110. To facilitate this function, the controller 130 can implement a logical interface that can present to the host system 110 storage system's 120 memory as a set of logical addresses (e.g., contiguous address) where data can be stored. Internally, the controller 130 can map logical addresses to various physical memory addresses in the non-volatile memory module 150 and/or the magnetic media 164.
In one embodiment, at least a portion of the solid state memory module 150 can be used as cache. The controller 130 can store data communicated by the host system 110 in the solid-state memory 150. To improve performance of the storage system 120 and/or host system 110, in some embodiments, various types of data can be stored in non-volatile memory cache, including frequently accessed data, data accessed at start-up (e.g., following a reset or power down), system data, sequentially accessed data, etc.
With continued reference to
The controller 130 depicted in
Table Storage Structure
In the example shown, superblocks 0 and 1 contain pages of the system table. In certain embodiments, table data storage in accordance with one or more embodiments of the present disclosure may be desirable for storage of large system tables. For example, superblocks 0 and 1 may contain a large system table, wherein the pages of the table are disposed in sequential order within the superblocks. As shown, superblock 0 includes table pages T0 through T1023, while superblock 1 includes table pages T1024 through T2047. Assuming this is the state at power-up, a copy of the table is loaded into volatile memory.
Superblock 2 contains one or more table pages stored in response to one or more system update triggers. In certain embodiments, superblock 2 may contain table pages according to a pre-defined ratio of table pages flushed for each table update trigger event. For example, in a storage system utilizing a ratio of 2 to 1, whenever a table page is updated in the volatile memory in response to a host request, an additional page of table data is flushed to the non-volatile storage. In such an embodiment, two pages are written per update trigger. The ratio of two pages written per update trigger may require that two times the number of bare minimum superblocks number of operations, plus 1, is required to perform active writes. As shown in
Progressive flushing of table data, as described herein, may allow for large system data to be stored without single block restrictions. Furthermore, such methods may provide bounded segmented system data loading.
Table Reconstruction
When the command involves a system table update, the process 400 includes copying the updated table page to non-volatile memory at block 408. In addition, one or more additional pages of table data are copied to nonvolatile memory in response to the host command. A first additional table page Tn is copied to the non-volatile memory at block 410. At decision block 412, it is determined whether variable n is equal to Ttotal−1, wherein Ttotal is a variable representing the total number of pages of the system table. If not, the variable n is incremented at block 414, and the process 400 is directed to decision block 418, where it is determined whether additional table pages are to be copied to meet a predefined ratio of copied pages to system table update triggers. The process 400 may be implemented according to any suitable ratio of copied pages to system table update triggers. For example, the ratio of copied pages to system table update triggers may be 2 to 1, 3 to 1, 4 to 1, or any other ratio.
When it is determined at block 412 that variable n is equal to Ttotal−1, the process 400 proceeds to block 416, where variable n is reset to zero. When additional table pages are to be copied in order to meet the predefined ratio, the process 400 loops back to block 410, and continues in a loop until the ratio of copied table pages to system table update triggers has been met. Once the ratio has been met, the process 400 proceeds to decision block 420, where it is determined whether the host system command requires additional table pages to be updated. If so, the process 400 is directed back to block 408, and the process 400 proceeds from that point. When additional table pages are to be updated in response to the command received from the host system, the process 400 proceeds back to block 404 where another command is received from the host system. From that point, the process 400 may proceed as described above.
The process 500A proceeds to decision block 510 where it is determined whether the most recently read table page has been previously read in the reconstruction process 500A. If not, at block 512, the system table in volatile storage is updated with respect to the most recently read table page. The process 500A proceeds to decision block 514 where it is determined whether the variable PagesRead is less than the product of Ttotal times ((R+1)/R), wherein R represents a predefined ratio of table pages flushed or copied to nonvolatile memory per system table update trigger, as described above. If not, the process 500A is terminated at block 518, and the system table has been fully reconstructed.
If the variable PagesRead is determined to be less than Ttotal×((R+1)/R), then the process 500A proceeds to block 516 where the next most recently copied table page is read. The process 500A proceeds in the loop until the number of pages read is equal to the bounded value of Ttotal×((R+1)/R). In certain embodiments, the process 500A provides the benefit of bounded system data loading.
In certain embodiments, the process 500B proceeds to decision block 507, though in other embodiments, the process 500B may bypass decision block 507, as well as block 515, and proceed to decision block 509. At decision block 507, it is determined whether a host data access request accessing an address within a yet-to-be-loaded segment is pending. If such a host segment request is pending, the variable n is set to the requested host segment, the process 500B thereafter proceeding to process the requested host segment. At decision block 517 it is determined whether segment Segn has been previously loaded to volatile memory. If it has not, the process 500B progresses to block 505, where Segn is loaded. If it is determined at block 517 that Segn has been previously loaded, the process 500B proceeds to decision block 507 where, as described above, it is determined whether a host segment request is pending.
If at decision block 507 it is determined that no host segment request is currently pending, or if decision block 507 is bypassed, the process 500B proceeds to decision block 509, wherein it is determined whether the variable i is less than two times the value of a variable Ts, wherein Ts represents the this size of the system table in segments. For example, in an embodiment comprising a system table having four segments of table data, it would be determined at decision block 509 whether the variable i is less than eight. If the variable i does meet the condition of decision block 509, process 500B progresses to block 511 where the variable i is incremented. The process further progresses to block 513 where the variable n is set to equal the current value of the variable i. The process 500B further proceeds to decision block 517, where, as discussed above, it is determined whether segment Segn has been previously loaded to volatile memory. If, at decision block 509, it is determined that i is not less than two times the variable Ts, the process 500B terminates at block 518, and the system table is fully reconstructed.
Data storage systems in accordance with one or more embodiments disclosed herein may provide one or more of the following benefits. For example, one embodiment is a progressive flushing approach may keep each executed command at a small bounded execution time. Another embodiment includes a system table storage mechanism that is optimal for large sequential host writes. Another embodiment includes a storage mechanism that can support large system tables; while another embodiment is a method to load segmented data. Some of the embodiments avoid the complexity of logs. The large sequential use case may make this mechanism particularly useful. Furthermore one or more of the following goals may be achieved through implementation of a data storage system in accordance with one or more embodiments disclosed herein: Improved power-up time, by reconstructing in real-time as commands are accepted; necessary segments of system data can be loaded on demand; large system data can use this approach and still maintain a good command response time during reconstruction; large sequential host writes may be optimized, particularly when the table pages updated are also sequential; command response time may be uniform based on the progressive table flushes; and avoidance of large burst writes.
Data storage systems may include system tables having various sizes and/or characteristics. With respect to system tables of certain sizes, it may be desirable to periodically store table data and/or table change logs, in non-volatile memory in order to avoid unwanted data loss. However, storage of table data may make present various data storage and/or loading efficiency concerns. Furthermore, loading partial segments of system table data may be difficult in systems with inadequate, or complicated, data coherency characteristics.
As described herein, certain data storage systems may implement progressive copying, or “flushing,” of system table data to non-volatile storage, wherein one or more additional table pages or segments are flushed to the non-volatile storage for every table update trigger. Such systems may benefit from improved data storage and/or loading efficiency.
As used in this application, “non-volatile memory” typically refers to solid-state memory such as, but not limited to, NAND flash. However, the systems and methods of this disclosure may also be useful in more conventional hard drives and hybrid hard drives including both solid-state and hard drive components. The solid-state storage devices (e.g., dies) may be physically divided into planes, blocks, pages, and sectors, as is known in the art. Other forms of storage (e.g., battery backed-up volatile DRAM or SRAM devices, magnetic disk drives, etc.) may additionally or alternatively be used.
Those skilled in the art will appreciate that in some embodiments, other types of system table storage and/or reconstruction can be implemented. In addition, the actual steps taken in the processes shown 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 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. 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 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 |
---|---|---|---|
5835955 | Dornier et al. | Nov 1998 | A |
6728826 | Kaki et al. | Apr 2004 | B2 |
6856556 | Hajeck | Feb 2005 | B1 |
7126857 | Hajeck | Oct 2006 | B2 |
7212440 | Gorobets | May 2007 | B2 |
7430136 | Merry, Jr. et al. | Sep 2008 | B2 |
7447807 | Merry et al. | Nov 2008 | B1 |
7502256 | Merry, Jr. et al. | Mar 2009 | B2 |
7502259 | Gorobets | 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 |
7913061 | Gorobets et al. | Mar 2011 | B2 |
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 |
8194340 | Boyle et al. | Jun 2012 | B1 |
8194341 | Boyle | Jun 2012 | B1 |
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 |
20020184436 | Kim et al. | Dec 2002 | A1 |
20030065899 | Gorobets | Apr 2003 | A1 |
20040210706 | In et al. | Oct 2004 | A1 |
20050166028 | Chung et al. | Jul 2005 | A1 |
20080098195 | Cheon et al. | Apr 2008 | A1 |
20090150599 | Bennett | Jun 2009 | A1 |
20100106897 | Yoshimura | Apr 2010 | A1 |
20100174849 | Walston et al. | Jul 2010 | A1 |
20100180068 | Matsumoto et al. | Jul 2010 | A1 |
20100250793 | Syu | Sep 2010 | A1 |
20100262799 | Lasser et al. | Oct 2010 | A1 |
20110099323 | Syu | Apr 2011 | A1 |
20110161621 | Sinclair et al. | Jun 2011 | A1 |
20110283049 | Kang et al. | Nov 2011 | A1 |
20110307651 | Wong | Dec 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 |
20130166819 | Yerushalmi et al. | Jun 2013 | A1 |
20130185508 | Talagala et al. | Jul 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 |
Entry |
---|
U.S. Appl. No. 13/468,999, filed May 10, 2012, to Lo, et al., 32 pages. |
U.S. Appl. No. 13/468,946, filed May 10, 2012, to Lo, et al., 29 pages. |
U.S. Appl. No. 13/470,206, filed May 11, 2012, to Lo, et al., 30 pages. |