Solid-state storage subsystems execute many internal commands in the course of their normal operation. For example, garbage collection is frequently performed on memory blocks that may contain both valid and invalid data. When such a memory block is selected for garbage collection, the garbage collection operation copies valid data within the memory block to a new location in memory and then erases the entire memory block, making the entire block available for future data writes. In addition to garbage collection operations, solid-state storage subsystems also perform read and write operations as dictated by memory commands issued by host systems.
Systems and methods which embody the various features of the invention will now be described with reference to the following drawings, in which:
While certain embodiments of the inventions have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. 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 inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Overview
Solid-state storage subsystems perform internal system operations such as garbage collection and wear leveling to improve performance and longevity. Embodiments of the invention are directed to managing the simultaneous or nearly simultaneous execution of internal system commands (e.g. garbage collection commands) and commands received from host systems. Executing garbage collection commands with host-issued commands improves the performance of the storage subsystem by preventing stalls that can occur as a result of the storage subsystem running out of free blocks and being forced to execute garbage collection commands to free up blocks for pending host-issued commands. However, one challenge of executing internal system commands with host system commands is maintaining data consistency while executing both types of commands. For example, a garbage collection command may be issued to read data from a certain logical location “A” that corresponds to a physical location “X” and write the data to a new physical location “Y.” While the read portion of the garbage collection command is completed and the write portion is awaiting execution, a host write command may cause new data to be written to the logical location “A,” thus rendering the data to be written by the pending garbage collection command outdated. If the pending garbage collection write is allowed to execute, it would write the outdated data and cause data consistency issues.
In one embodiment of the invention, a controller manages the simultaneous or nearly simultaneous execution of internal commands and host commands by maintaining validity information on data residing at physical addresses in the solid-state storage subsystem and selectively cancelling a pending internal command if it is determined that the internal command is attempting to write data that has been rendered invalid by another command (e.g. a host-issued write command or another internal command). As will be further described below, the maintenance of validity information and selective execution of internal commands help ensure data consistency while allowing for the simultaneous or nearly simultaneous execution of internal commands and host commands. Although the present disclosure illustrates various embodiments by using garbage collection command examples, the disclosure is not so limited and is applicable to managing the execution of any type of internal system commands (e.g. wear leveling commands) with host-issued commands.
System Overview
In one embodiment, the controller 150 also maintains several data structures to help ensure that commands from the host command queue 142 and the internal command queue 144 are executed in a manner as further described herein to maintain data consistency. The data structures include, in one embodiment, an invalid page table 152 and a mapping table 154. In one embodiment, the invalid page table 152 keeps track of the validity of data located at physical page addresses throughout the non-volatile solid-state memory arrays 160, while the mapping table 154 keeps track of the correspondence between logical block addresses (LBA) and physical addresses in the non-volatile solid-state memory arrays 160.
Command Execution Examples
Managing Write Locations
In one embodiment, the validity value of a particular entry in the invalid page table can be “valid,” “invalid,” or an un-initialized value. In another embodiment, the validity value of a particular entry can be “valid” or “invalid.” In one embodiment, the invalid page table is implemented as a bitmask, and a bit is used to represent the validity of data at a page address. In one embodiment, the mapping table is implemented as an array of physical chunk addresses, and an index into the array is used to represent logical addresses associated with the physical chunk addresses. In one embodiment, one or both of the data structures employ atomic transactions so that pending changes to the data structures must complete before additional data access requests can be processed. This ensures that multiple controller processes (e.g. one handling host commands and another handling internal commands) that are accessing the data structures can read the most current data, thus preventing a process from executing a command that overwrites valid data with invalid data.
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 |
---|---|---|---|
5093780 | Sunahara | Mar 1992 | A |
5123094 | MacDougall | Jun 1992 | A |
5634099 | Andrews et al. | May 1997 | A |
6088740 | Ghaffari et al. | Jul 2000 | A |
6205521 | Schumann | Mar 2001 | B1 |
6338122 | Baumgartner et al. | Jan 2002 | B1 |
6475062 | Kubota et al. | Nov 2002 | B1 |
6678801 | Greim et al. | Jan 2004 | B1 |
6757781 | Williams et al. | Jun 2004 | B2 |
6760820 | Henson et al. | Jul 2004 | B2 |
6862151 | Hoskins et al. | Mar 2005 | B2 |
6969989 | Mei | Nov 2005 | B1 |
7082494 | Thelin et al. | Jul 2006 | B1 |
7114041 | Hammitt et al. | Sep 2006 | B2 |
7174467 | Helms et al. | Feb 2007 | B1 |
7310699 | Sinclair | Dec 2007 | B2 |
7313641 | Koch et al. | Dec 2007 | B2 |
7315917 | Bennett et al. | Jan 2008 | B2 |
7340580 | Kinoshita | Mar 2008 | B2 |
7363396 | Liu et al. | Apr 2008 | B2 |
7363421 | Di Sena et al. | Apr 2008 | B2 |
7366826 | Gorobets et al. | Apr 2008 | B2 |
7406547 | Haines et al. | Jul 2008 | B2 |
7424587 | Caulkins et al. | Sep 2008 | B2 |
7441054 | Wu et al. | Oct 2008 | B2 |
7441067 | Gorobets et al. | Oct 2008 | B2 |
7457903 | Purdham et al. | Nov 2008 | B2 |
7487286 | Nagano et al. | Feb 2009 | B2 |
7582868 | Jiang et al. | Sep 2009 | B2 |
7831783 | Pandit et al. | Nov 2010 | B2 |
20010034809 | Ogawa | Oct 2001 | A1 |
20020040413 | Okada et al. | Apr 2002 | A1 |
20020083111 | Row et al. | Jun 2002 | A1 |
20040193743 | Byers et al. | Sep 2004 | A1 |
20050193081 | Gruber et al. | Sep 2005 | A1 |
20050204187 | Lee et al. | Sep 2005 | A1 |
20060155917 | Di Sena et al. | Jul 2006 | A1 |
20060161724 | Bennett et al. | Jul 2006 | A1 |
20070016721 | Gay | Jan 2007 | A1 |
20070033332 | Sinclair et al. | Feb 2007 | A1 |
20070043900 | Yun | Feb 2007 | A1 |
20070186032 | Sinclair et al. | Aug 2007 | A1 |
20070186065 | Lee et al. | Aug 2007 | A1 |
20080082736 | Chow et al. | Apr 2008 | A1 |
20080091872 | Bennett et al. | Apr 2008 | A1 |
20080126685 | Danilak | May 2008 | A1 |
20080126719 | Danilak | May 2008 | A1 |
20080126720 | Danilak | May 2008 | A1 |
20080126891 | Danilak | May 2008 | A1 |
20080155166 | James et al. | Jun 2008 | A1 |
20080235443 | Chow et al. | Sep 2008 | A1 |
20080263305 | Shu et al. | Oct 2008 | A1 |
20080282024 | Biswas et al. | Nov 2008 | A1 |
20080288717 | Torabi | Nov 2008 | A1 |
20080307164 | Sinclair | Dec 2008 | A1 |
20090012976 | Kang et al. | Jan 2009 | A1 |
20090017220 | Muller et al. | Jan 2009 | A1 |
20090070502 | Noha et al. | Mar 2009 | A1 |
20090116475 | Krzyzanowski et al. | May 2009 | A1 |
20090119460 | Lin et al. | May 2009 | A1 |
20090129163 | Danilak | May 2009 | A1 |
20090150599 | Bennett | Jun 2009 | A1 |
20090154026 | Jiang et al. | Jun 2009 | A1 |
20090172250 | Allen et al. | Jul 2009 | A1 |
20090172258 | Olbrich et al. | Jul 2009 | A1 |
20090172260 | Olbrich et al. | Jul 2009 | A1 |
20090271562 | Sinclair | Oct 2009 | A1 |
20090313501 | Hallivuori | Dec 2009 | A1 |
20100023672 | Gorobets et al. | Jan 2010 | A1 |
20100037009 | Yano et al. | Feb 2010 | A1 |
20100185806 | Pruthi et al. | Jul 2010 | A1 |
20100262760 | Swing et al. | Oct 2010 | A1 |
20110022778 | Schibilla et al. | Jan 2011 | A1 |
20110055455 | Post et al. | Mar 2011 | A1 |
20110055458 | Kuehne | Mar 2011 | A1 |
20110191566 | Takamiya et al. | Aug 2011 | A1 |
20110231624 | Fukutomi et al. | Sep 2011 | A1 |
20120239851 | Calvert et al. | Sep 2012 | A1 |
20130024595 | Subramaniyan et al. | Jan 2013 | A1 |
Entry |
---|
Taratorin, Alexander M. and Klaas B. Klassen, Observation of Recording Pole Instability in Perpendicular Recording, IEEE Transaction on Magnetics, vol. 42, No. 10, Oct. 2006, pp. 2267-2269. |
http://www.anandtech.com. |
Hu et al., “Write Amplification Analysis in Flash-Based Solid State Drives”, SYSTOR'09, Zurich Research Laboratory, copyright 2009 IBM Corporation, downloaded on May 12, 2010 from https://www.research.ibm.com/haifa/conferences/systor2009/papers/2—2—2.pdf, 13 pages. |
Office Action under U.S. Appl. No. 12/778,740 dated May 22, 2012. |
Office Action under U.S. Appl. No. 12/778,740 dated Sep. 28, 2012. |