Solid state drive with bad block re-mapping

By organizing superblocks based on bad block counts and swapping blocks efficiently, the remapping technique in SSDs reduces lookup rates and latency, improving SSD performance.

US12817516B1Active Publication Date: 2026-12-01AMAZON TECH INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
US18/901309
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2026-12-01
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

Existing flash memory remapping techniques, such as the nearest donor scheme, result in high remapping lookup rates exceeding 90%, leading to increased latency in solid state drives (SSDs).

Method used

Implementing a remapping technique that organizes superblocks based on bad block counts, swapping bad blocks within superblocks with good blocks from other superblocks with fewer bad blocks, limiting remapping to superblocks with only a single bad block, and using two pointers to efficiently swap blocks.

Benefits of technology

Reduces remapping table lookup rates to 25%, thereby decreasing overall latency in SSDs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12817516-D00000_ABST
    Figure US12817516-D00000_ABST
Patent Text Reader

Abstract

Remap table (RMT) lookup rates in an SSD can be over 90% due to remapping techniques, such as a nearest donor scheme. A remapping technique is disclosed to reduce the RMT lookup rates, thereby increasing SSD speed and reducing latency. An SSD includes a plurality of flash memory Integrated Circuits (ICs) and each IC includes an array of memory blocks. To reduce the RMT lookup rate, a count is generated for each bad block in a superblock. The superblocks are then organized in a priority order based upon the counts. Superblocks with a low number of bad blocks have bad blocks swapped with good blocks from superblocks with a high number of bad blocks. The resulting RMT has a large number of superblocks with only a single remapped block. As a result, the lookup rates are greatly reduced, thereby reducing overall latency of the SSD.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND

[0001] Cloud computing is the use of computing resources (hardware and software) which are available in a remote location and accessible over a network, such as the Internet. Users are able to consume these computing resources (including storage and computing power) as a utility on demand. Cloud computing entrusts remote services with a user's data, software and computation.

[0002] The cloud computing environment is supported by storage systems, such as block-based storage systems, which increasingly use solid state drives (SSD). SSDs provide a non-volatile storage using flash memory rather than traditional spinning hard drives. The SSD includes a controller and a Flash Translation Layer (FTL) is typically part of the controller and provides a logical-to-physical mapping of the flash memory. For example, the flash memory can be divided into blocks and planes, and the FTL can map logical addresses (used by the operating system) to physical addresses on the flash memory.

[0003] The FTL can also remap the flash memory to remove defective blocks. The defective blocks in the flash memory can be caused by manufacturing imperfections or wear over time. In any event, the FTL can re-map the flash memory using a garbage collection scheme, such as a nearest donor scheme. The nearest donor scheme refers to a logical remapping of the flash memory by replacing a bad block with a donor block from a different part of the flash memory. One problem with the nearest donor remapping scheme is that a large majority of the blocks require a remapping lookup to resolve the address. Indeed, in some examples the remapping lookup rate is better than 90% because both good and bad blocks are moved. A higher remapping lookup rate equates to a higher latency, which is undesirable. A more efficient remapping scheme with a lower remapping lookup rate is needed.BRIEF DESCRIPTION OF THE DRAWINGS

[0004] FIG. 1 shows a system including a storage service including solid state drives (SSDs), wherein a Flash Translation Layer (FTL) logically remaps an array of blocks of memory.

[0005] FIG. 2 shows further details of the array of blocks of memory of FIG. 1.

[0006] FIG. 3 shows a remapping of the array of blocks of memory, wherein the FTL of FIG. 1 performs the remapping.

[0007] FIG. 4 shows a plane-by-plane remapping of the array of blocks of memory.

[0008] FIG. 5 shows a remapped table lookup rate for a remapped table.

[0009] FIG. 6 shows the initial table and the final table after the remapping of FIGS. 3-5.

[0010] FIG. 7 is a flowchart according to one embodiment for remapping the array of blocks of memory.

[0011] FIG. 8 is a flowchart according to another embodiment for remapping the array of blocks of memory.

[0012] FIG. 9 is a flowchart according to still another embodiment for remapping the array of blocks of memory.

[0013] FIG. 10 is an example system diagram showing a plurality of virtual machine instances running in the multi-tenant environment with the storage service executing on one or more server computers.

[0014] FIG. 11 depicts a generalized example of a suitable computing environment in which the described innovations may be implemented.DETAILED DESCRIPTION

[0015] Remap table (RMT) lookup rates in an SSD can be over 90% due to remapping techniques, such as a nearest donor scheme. A remapping technique is disclosed to reduce the RMT lookup rates, thereby increasing SSD speed and reducing latency. An SSD includes a plurality of flash memory Integrated Circuits (ICs) and each IC includes an array of memory blocks. The array is divided into planes and each plane includes block 0 to block N (where N is any integer number). A superblock is a group of corresponding blocks from each plane. For example, block 0 from each plane forms a row of block 0s called a superblock. To reduce the RMT lookup rate, a count is generated for each bad block in a superblock. The superblocks are then organized in a priority order based upon the counts. Superblocks with a low number of bad blocks have bad blocks swapped with good blocks from superblocks with a high number of bad blocks. The resulting RMT has a large number of superblocks with only a single remapped block. Indeed, the FTL can limit use of the RMT to only superblocks having a single bad block. As a result, the lookup rates are greatly reduced, thereby reducing overall latency of the SSD.

[0016] FIG. 1 is an example environment 100 in which various embodiments described herein can be implemented. A block-based storage service 110 uses block-based storage devices 120 in a data center 130. Each block-based storage device 120 includes a controller 140 and a plurality of SSDs 142. Each controller 140 includes an FTL 142, which can be implemented using a processor or other type of remapping logic. As further described below, each SSD 142 also includes a flash memory array (described in FIG. 2). The FTL 142 manages flash memory in the SSDs 142 by performing a variety of management functions, such as distributing writes and erase operations across memory blocks to extend a lifespan of the memory, tracking bad blocks and ensuring that such bad blocks are not written to, and logical-to-physical mapping by translating logical block addresses (LBA) to physical block addresses (PBAs) of the flash memory. The FTL 142 includes a re-map table 150 that provides the logical-to-physical mapping between logical addresses received from the storage service 110 and actual locations of the storage in the SSD 142.

[0017] As further described below, the FTL can produce a count of bad blocks per superblock in the re-map table 150 and sort the re-map table based upon the count. Then bad blocks within superblocks (having a low count) can be logically remapped using good blocks from other superblocks, which have a high count. Thus, a number of bad blocks within a superblock controls whether the superblock is a donor superblock or a receiver superblock. Additionally, superblocks with only a single bad block have only that bad block re-mapped. As a result, the overall RMT lookup rate is reduced. The block-based storage service 110 can provision storage services for one or more client server computers 158, 159 via a network 160. The network 160 may include public networks, private networks, or a combination thereof. Furthermore, the network 160 may include, but is not limited to, personal area networks (PANs), local area networks (LANs), wide area networks (WANs), and so forth.

[0018] The client devices 158 can communicate with the storage service 110 using a variety of protocols used for network services. For example, network services are commonly used in cloud computing. A network service is a software function provided at a network address over the web or the cloud. Clients initiate network service requests to servers and servers process the requests and return appropriate responses. The client network service requests are typically initiated using, for example, an API request. For purposes of simplicity, network service requests will be generally described below as API requests, but it is understood that other network service requests can be made. An API request is a programmatic interface to a defined request-response message system, typically expressed in JSON or XML, which is exposed via a network—most commonly by means of an HTTP-based web server. Thus, in certain implementations, an API can be defined as a set of Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages, which can be in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format. The API can specify a set of functions or routines that perform an action, which includes accomplishing a specific task or allowing interaction with a software component. When a network service, such as the storage service 110, receives the API request from a client device or from the host computer, the network service can generate a response to the request and send the response to the endpoint identified in the request. In the case of the storage service 110, data can either be retrieved from the storage devices 120 or stored in the storage devices 120.

[0019] FIG. 2 illustrates an embodiment of a flash memory IC 200. The flash memory IC 200 can be one of a plurality of flash memory ICs within an SSD 142 (FIG. 1). The flash memory IC 200 includes an array of storage blocks, shown generally at 210. The array 210 includes a plurality of columns formed by planes 220 and a plurality of rows formed by the blocks 222. More particularly, the plurality of planes 220 include plane 0 to plane K, where K is any integer number, and a plurality of blocks 222 include block 0 through block N (where N is any integer number). Corresponding blocks (blocks having a same block number) across all planes are called superblocks. For example, a superblock 230 is shown as including all blocks having block number N. In some flash memories, individual NAND cells are combined on Strings and Pages that are configured into the columns and rows of the array. In one example, NAND components have block sizes of 8 Mbytes, but other sizes can be used. A plane is a subdivision within a NAND flash die. The multiple planes allow parallel operations to increase throughput. For instance, a memory controller might simultaneously write to or erase blocks on different planes, which enhances the overall performance and speed of operations in the flash memory. However, the parallel operations across planes typically occur on blocks within a same superblock. As explained further below, the FTL 142 can count a number of bad blocks in a superblock and perform remapping of the RMT 150 using the bad-block count. In particular, the FTL can determine a count of bad blocks for each superblock and then sort the RMT based upon the count. Then superblocks with a higher number of bad blocks can be used as donors to recipient superblocks with a lower number of bad blocks.

[0020] FIGS. 3-5 show a three-step remapping of the RMT 150. In FIG. 3, the initial table 310 includes a list of Factory Bad Blocks (FBB) addresses and planes. Such a table 310 can be provided from a manufacturer of the IC. The FTL 142 can add a percent bad block density (PBBD) 312 column to the RMT, wherein the PBBD represents a bad block density for each superblock and each block including a “B” is considered a bad block. The FTL 142 can compute the PBBD 312 for each row of the table and each row of the table is a superblock, such as at 230. For example, the first row starts at a physical address 1208 and has 2 bad blocks. Accordingly, the PBBD 312 for the first row is 50%. The FTL 142 computes the PBBD 312 by determining how many bad blocks are in each row divided by the number of planes. Once the PBBD is determined for each row, as a first step, the FTL 142 can sort the RMT 150 in a priority order from lowest PBBD to highest PBBD, which equates to superblocks with the least bad blocks to superblocks with the most bad blocks. The priority order can be ascending or descending, but the table is divided into groups of superblocks wherein a first group 320 has only 1 bad block per superblock, corresponding to a PBBD of 25%, and a second group 322 with more than 1 bad block per superblock. Thus, the FTL counts a number of bad blocks per superblock and sorts the RMT based upon the count associated with each superblock. Accordingly, corresponding blocks on all planes are sorted together.

[0021] FIG. 4 shows a second step in generating a modified RMT after the sorting of FIG. 3. Each plane in FIG. 4 is treated independently of the other planes. Accordingly, before and after columns are shown for plane 0, plane 1, etc. With bad blocks labeled “B” and donor blocks labeled “D”, a donor block from row 5692 (pointed to by a tail pointer 420) is shown being remapped to row 3592 (pointed to by a head pointer 422) at 410, whereas another donor block from row 5688 is shown being remapped to row 5304 at 412. As explained more fully below, one technique for logically swapping blocks within a plane includes using a head pointer that starts at the top of the list and moves towards the bottom of the list checking each block for whether the block is bad. Meanwhile, a tail pointer moves from the bottom of the list towards the top of the list searching for blocks that are good. The first found bad block in row 3592 is then replaced with the first found good block in row 5692. The process is repeated for the same plane and then for the other planes in sequence.

[0022] FIG. 5 shows a resultant generated RMT 500 with a first set of final reclaimed blocks 510. Each reclaimed block in the first set 510 has no bad blocks and only one swapped block requiring a single lookup. As each superblock in the set 510 has no bad blocks, the bad block density parameter 520 is 0. A second set 530 of superblocks has bad blocks or blocks that were donated to the first set 510. As such, the second set 530 of donor blocks are not usable. However, the grouping into the first and second sets, 510, 530, reduces the overall RMT lookup rate to 25% that reduces the overall latency associated with the SSD.

[0023] FIG. 6 shows the initial RMT 310 (see also FIG. 3) compared to the final RMT 500 (see also FIG. 5). The letter “C” designates blocks that were swapped for donor blocks and are therefore now blocks that can be used for storage but still require a lookup. All donor blocks for a bad block belong to the same plane, such that a bad block is only replaced with good blocks from the same plane. Additionally, the FTL can use superblocks having 1 bad block or less, whereas superblocks having 2 or more bad blocks are not used for storage. Finally, superblocks with a lower PBBD are prioritized for bad block replacements to lower the overall RMT lookup rate. The result is a remapped table with a reduced lookup rate thereby reducing latency of the SSD.

[0024] FIG. 7 is a flowchart according to one embodiment for remapping an RMT, which is used for determining physical addresses for storing and retrieving data from a SSD or other storage device. At process block 710, a remapping is initiated for a target IC. For example, in FIG. 2, a target IC 200 is shown as being a flash memory die, which can be one of a plurality of ICs within the SSD 142 of FIG. 1. In process block 712, a table is received of superblocks including a field having a bad block count per superblock. For example, in FIG. 3, the bad block count is shown as a percentage 312 of the planes in the superblock that contain bad blocks. The count can also be an integer number instead of a percentage. In either case, the field 312 represents a count of a number of bad blocks in each superblock. In process block 716, the table is sorted in a descending order based upon a bad block count. For example, in FIG. 3, the field 312 is sorted such that the PBBD is low-to-high to divide the superblocks into groups 320, 322. Although shown as descending, the table can also be sorted as ascending and the same groups can be defined. In decision block 720, a check is made whether each plane has been independently remapped. Thus, a parameter is maintained that tracks which plane is currently being remapped. For example, in FIG. 2, there are K planes and the parameter would track the plane that is currently being remapped. As previously described, each plane can be remapped in sequential order. If decision block is answered in the negative, then at process block 726, the remapping is completed. Alternatively, the remapping continues at process block 730 wherein two pointers are used to traverse the plane. More specifically, a head pointer can start at the top of the list and tail pointer can start at the end of the list for each plane. For example, in FIG. 4, the head pointer can start at the first entry 1300 in the list and the tail pointer can point at the last entry 1296. In process block 736, the head pointer is incremented until a next bad block entry is identified. For example, in FIG. 4, the head pointer moves through each block in plane 0 starting from entry 1300 and checking every block to determine if the block is flagged as being a bad block. When the head pointer reaches entry 3592, the block is determined to be bad. In process block 740, the tail pointer is decremented until a next good block entry is determined. For example, in FIG. 4, the tail pointer starts at entry 1296 and moves up to entry 5692 (which does not have a B designation for a bad block). At decision block 746, a determination is made whether the tail pointer exceeds the head pointer. If not, then the tail pointer and have pointer have crossed and the current plane has been fully analyzed. Accordingly, the plane parameter is incremented (process block 750) to remap the next plane in sequence. Otherwise, if decision block 746 is answered in the affirmative, then at process block 760, the entries are swapped. For example, in FIG. 4, at 410, the entry at 5692 pointed at by the tail pointer is logically swapped to entry 3592. At process block 770, the bad block counts are updated. For example, the PBBD field for each entry can then be updated to reflect that entry 3592 no longer has a bad block and entry 5692 has an additional bad block. The process then repeats for each block in the plane until the plane is complete and then the same process is repeated on the next plane until the entire IC is remapped.

[0025] FIG. 8 is another embodiment for bad block remapping in an SSD. In process block 810, a table of good and bad blocks is received. For example, in FIG. 3, data can be provided by the manufacturer of the SSD and that data can include which blocks are bad in each IC of the SSD. Such a table can be stored in the SSD and retrieved by the FTL. In process block 820, a count can be generated for a number of bad blocks per superblock. For example, in FIG. 3, the FTL can add the PBBD field 312 that includes a count of a number of bad blocks per superblock, such as at superblock 230. The count can be stored as a number of bad blocks or a percentage of bad blocks per plane in a superblock. In process block 830, the table can be sorted based upon the number of bad blocks per superblock. For example, in FIG. 3, the table on the left side is sorted and rearranged based upon the PBBD number as shown on the right side of FIG. 3. In process block 840, at least one of the multiple planes is remapped using two pointers, one pointer to bad blocks and a second pointer to good blocks. For example, in FIG. 4, a head pointer 422 and tail pointer 420 point at bad and good blocks, respectively. In process block 850, data in the SSD is stored using the remapped table. For example, in FIG. 1, the FTL 142 can use the table 150, as remapped, to retrieve or store data.

[0026] FIG. 9 is a flowchart according to another embodiment for bad block remapping in an SSD. In process block 910, a table of bad blocks is retrieved, wherein the bad blocks are of a flash memory in a SSD. For example, a table at 310 is a table that can be provided from the manufacturer and can be stored in the IC. In process block 920, a count can be computed for a number of bad blocks in each superblock. For example, in FIG. 3, the FTL can compute the PBBD 312 by determining how many bad blocks are in each superblock. The number can be a percentage as shown at 312 in FIG. 3 or a different way of representing how many blocks are bad in a superblock. In process block 930, the table can be sorted based upon the number of bad blocks. Whether ascending or descending, the table can be sorted to form groups 320, 322 (FIG. 3) wherein the groups relate to how many bad blocks are in a superblock. In process block 940, the flash memory is remapped using the sorted table. For example, FIG. 6 shows the final remapped table that provides a logical-to-physical remapping of the IC. Using this map, the FTL can obtain the correct physical address to store or retrieve data. The designations including “C” represent an address that was swapped and are represented as a “C” for simplicity.

[0027] FIG. 10 is a computing system diagram of a network-based compute service provider 1000 that illustrates one environment in which embodiments described herein can be used. By way of background, the compute service provider 1000 (i.e., the cloud provider) is capable of delivery of computing and storage capacity as a service to a community of end recipients. In an example embodiment, the compute service provider can be established for an organization by or on behalf of the organization. That is, the compute service provider 1000 may offer a “private cloud environment.” In another embodiment, the compute service provider 1000 supports a multi-tenant environment, wherein a plurality of users operate independently (e.g., a public cloud environment). Generally speaking, the compute service provider 1000 can provide the following models: Infrastructure as a Service (“IaaS”), Platform as a Service (“PaaS”), and / or Software as a Service (“SaaS”). Other models can be provided. For the IaaS model, the compute service provider 1000 can offer computers as physical or virtual machines and other resources. The virtual machines can be run as guests by a hypervisor, as described further below. The PaaS model delivers a computing platform that can include an operating system, programming language execution environment, database, and web server. Application developers can develop and run their software solutions on the compute service provider platform without the cost of buying and managing the underlying hardware and software. The SaaS model allows installation and operation of application software in the compute service provider. In some embodiments, end users access the compute service provider 1000 using networked client devices, such as desktop computers, laptops, tablets, smartphones, etc. running web browsers or other lightweight client applications. Those skilled in the art will recognize that the compute service provider 1000 can be described as providing a “cloud” environment.

[0028] In some implementations of the disclosed technology, the computer service provider 500 can provide a cloud provider network. A cloud provider network (sometimes referred to simply as a “cloud”) refers to a pool of network-accessible computing resources (such as compute, storage, and networking resources, applications, and services), which may be virtualized or bare-metal. The cloud can provide convenient, on-demand network access to a shared pool of configurable computing resources that can be programmatically provisioned and released in response to user commands. These resources can be dynamically provisioned and reconfigured to adjust to variable load. Cloud computing can thus be considered as both the applications delivered as services over a publicly accessible network (e.g., the Internet, a cellular communication network) and the hardware and software in cloud provider data centers that provide those services.

[0029] With cloud computing, instead of buying, owning, and maintaining their own data centers and servers, organizations can acquire technology such as compute power, storage, databases, and other services on an as-needed basis. The cloud provider network can provide on-demand, scalable computing platforms to users through a network, for example allowing users to have at their disposal scalable “virtual computing devices” via their use of the compute servers and block store servers. These virtual computing devices have attributes of a personal computing device including hardware (various types of processors, local memory, random access memory (“RAM”), hard-disk and / or solid state drive (“SSD”) storage), a choice of operating systems, networking capabilities, and pre-loaded application software. Each virtual computing device may also virtualize its console input and output (“I / O”) (e.g., keyboard, display, and mouse). This virtualization allows users to connect to their virtual computing device using a computer application such as a browser, application programming interface, software development kit, or the like, in order to configure and use their virtual computing device just as they would a personal computing device. Unlike personal computing devices, which possess a fixed quantity of hardware resources available to the user, the hardware associated with the virtual computing devices can be scaled up or down depending upon the resources the user requires. Users can choose to deploy their virtual computing systems to provide network-based services for their own use and / or for use by their users or clients.

[0030] A cloud provider network can be formed as a number of regions, where a region is a separate geographical area in which the cloud provider clusters data centers. Each region can include two or more availability zones connected to one another via a private high-speed network, for example a fiber communication connection. An availability zone (also known as an availability domain, or simply a “zone”) refers to an isolated failure domain including one or more data center facilities with separate power, separate networking, and separate cooling from those in another availability zone. A data center refers to a physical building or enclosure that houses and provides power and cooling to servers of the cloud provider network. Preferably, availability zones within a region are positioned far enough away from one other that the same natural disaster should not take more than one availability zone offline at the same time. Users can connect to availability zones of the cloud provider network via a publicly accessible network (e.g., the Internet, a cellular communication network) by way of a transit center (TC). TCs are the primary backbone locations linking users to the cloud provider network, and may be collocated at other network provider facilities (e.g., Internet service providers, telecommunications providers) and securely connected (e.g. via a VPN or direct connection) to the availability zones. Each region can operate two or more TCs for redundancy. Regions are connected to a global network which includes private networking infrastructure (e.g., fiber connections controlled by the cloud provider) connecting each region to at least one other region. The cloud provider network may deliver content from points of presence outside of, but networked with, these regions by way of edge locations and regional edge cache servers. This compartmentalization and geographic distribution of computing hardware enables the cloud provider network to provide low-latency resource access to users on a global scale with a high degree of fault tolerance and stability.

[0031] The cloud provider network may implement various computing resources or services that implement the disclosed techniques for TLS session management, which may include an elastic compute cloud service (referred to in various implementations as an elastic compute service, a virtual machines service, a computing cloud service, a compute engine, or a cloud compute service), data processing service(s) (e.g., map reduce, data flow, and / or other large scale data processing techniques), data storage services (e.g., object storage services, block-based storage services, or data warehouse storage services) and / or any other type of network based services (which may include various other types of storage, processing, analysis, communication, event handling, visualization, and security services not illustrated). The resources required to support the operations of such services (e.g., compute and storage resources) may be provisioned in an account associated with the cloud provider, in contrast to resources requested by users of the cloud provider network, which may be provisioned in user accounts.

[0032] The particular illustrated compute service provider 1000 includes a plurality of server computers 1002A-1002D. While only four server computers are shown, any number can be used, and large centers can include thousands of server computers. The server computers 1002A-1002D can provide computing resources for executing software instances 1006A-1006D. In one embodiment, the instances 1006A-1006D are virtual machines. As known in the art, a virtual machine is an instance of a software implementation of a machine (i.e. a computer) that executes applications like a physical machine. In the example of virtual machine, each of the servers 1002A-1002D can be configured to execute a hypervisor 1008 or another type of program configured to enable the execution of multiple instances 1006 on a single server. Additionally, each of the instances 1006 can be configured to execute one or more applications.

[0033] It should be appreciated that although the embodiments disclosed herein are described primarily in the context of virtual machines, other types of instances can be utilized with the concepts and technologies disclosed herein. For instance, the technologies disclosed herein can be utilized with storage resources, data communications resources, and with other types of computing resources. The embodiments disclosed herein might also execute all or a portion of an application directly on a computer system without utilizing virtual machine instances.

[0034] One or more server computers 1004 can be reserved for executing software components for managing the operation of the server computers 1002 and the instances 1006. For example, the server computer 1004 can execute a management component 1010. A user can access the management component 1010 to configure various aspects of the operation of the instances 1006 purchased by the user. For example, the user can purchase, rent or lease instances and make changes to the configuration of the instances. The user can also specify settings regarding how the purchased instances are to be scaled in response to demand. The management component can further include a policy document to implement user policies. An auto scaling component 1012 can scale the instances 1006 based upon rules defined by the user. In one embodiment, the auto scaling component 1012 allows a user to specify scale-up rules for use in determining when new instances should be instantiated and scale-down rules for use in determining when existing instances should be terminated. The auto scaling component 1012 can consist of a number of subcomponents executing on different server computers 1002 or other computing devices. The auto scaling component 1012 can monitor available computing resources over an internal management network and modify resources available based on need.

[0035] A deployment component 1014 can be used to assist users in the deployment of new instances 1006 of computing resources. The deployment component can have access to account information associated with the instances, such as who is the owner of the account, credit card information, country of the owner, etc. The deployment component 1014 can receive a configuration from a user that includes data describing how new instances 1006 should be configured. For example, the configuration can specify one or more applications to be installed in new instances 1006, provide scripts and / or other types of code to be executed for configuring new instances 1006, provide cache logic specifying how an application cache should be prepared, and other types of information. The deployment component 1014 can utilize the user-provided configuration and cache logic to configure, prime, and launch new instances 1006. The configuration, cache logic, and other information may be specified by a user using the management component 1010 or by providing this information directly to the deployment component 1014. The instance manager can be considered part of the deployment component.

[0036] User account information 1015 can include any desired information associated with a user or user of the multi-tenant environment. For example, the user account information can include a unique identifier for a user, a user address, billing information, licensing information, customization parameters for launching instances, scheduling information, auto-scaling parameters, previous IP addresses used to access the account, etc.

[0037] The compute service provider 1000 can include a storage service 1050 and an SSD-based storage 1052 similar to what is described in FIG. 1. Users can access the storage service 1050 in order to store and retrieve data from the SSD-based storage 1052.

[0038] A network 1030 can be utilized to interconnect the server computers 1002A-1002D and the server computer 1004. The network 1030 can be a local area network (LAN) and can be connected to a Wide Area Network (WAN) 1040 so that end users can access the compute service provider 1000. It should be appreciated that the network topology illustrated in FIG. 10 has been simplified and that many more networks and networking devices can be utilized to interconnect the various computing systems disclosed herein.

[0039] FIG. 11 depicts a generalized example of a suitable computing environment 1100 in which the described innovations may be implemented. The computing environment 1100 is not intended to suggest any limitation as to scope of use or functionality, as the innovations may be implemented in diverse general-purpose or special-purpose computing systems. For example, the computing environment 1100 can be any of a variety of computing devices (e.g., desktop computer, laptop computer, server computer, tablet computer, etc.)

[0040] With reference to FIG. 11, the computing environment 1100 includes one or more processing units 1110, 1115 and memory 1120, 1125. In FIG. 11, this basic configuration 1130 is included within a dashed line. The processing units 1110, 1115 execute computer-executable instructions. A processing unit can be a general-purpose central processing unit (CPU), processor in an application-specific integrated circuit (ASIC) or any other type of processor. In a multi-processing system, multiple processing units execute computer-executable instructions to increase processing power. For example, FIG. 11 shows a central processing unit 1110 as well as a graphics processing unit or co-processing unit 1115. The tangible memory 1120, 1125 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the processing unit(s). The memory 1120, 1125 stores software 1180 implementing one or more innovations described herein, in the form of computer-executable instructions suitable for execution by the processing unit(s).

[0041] A computing system may have additional features. For example, the computing environment 1100 includes storage 1140, one or more input devices 1150, one or more output devices 1160, and one or more communication connections 1170. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing environment 1100. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing environment 1100, and coordinates activities of the components of the computing environment 1100.

[0042] The tangible storage 1140 may be removable or non-removable, and includes magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium which can be used to store information in a non-transitory way and which can be accessed within the computing environment 1100. The storage 1140 stores instructions for the software 1180 implementing one or more innovations described herein. Any components in the computing environment 1100 can be used to implement the storage service 110, the controller 140, or the FTL 142.

[0043] The input device(s) 1150 may be a touch input device such as a keyboard, mouse, pen, or trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 1100. The output device(s) 1160 may be a display, printer, speaker, CD-writer, or another device that provides output from the computing environment 1100.

[0044] The communication connection(s) 1170 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can use an electrical, optical, RF, or other carrier.

[0045] Although the operations of some of the disclosed methods are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed methods can be used in conjunction with other methods.

[0046] Any of the disclosed methods can be implemented as computer-executable instructions stored on one or more computer-readable storage media (e.g., one or more optical media discs, volatile memory components (such as DRAM or SRAM), or non-volatile memory components (such as flash memory or hard drives)) and executed on a computer (e.g., any commercially available computer, including smart phones or other mobile devices that include computing hardware). The term computer-readable storage media does not include communication connections, such as signals and carrier waves. Any of the computer-executable instructions for implementing the disclosed techniques as well as any data created and used during implementation of the disclosed embodiments can be stored on one or more computer-readable storage media. The computer-executable instructions can be part of, for example, a dedicated software application or a software application that is accessed or downloaded via a web browser or other software application (such as a remote computing application). Such software can be executed, for example, on a single local computer (e.g., any suitable commercially available computer) or in a network environment (e.g., via the Internet, a wide-area network, a local-area network, a client-server network (such as a cloud computing network), or other such network) using one or more network computers.

[0047] For clarity, only certain selected aspects of the software-based implementations are described. Other details that are well known in the art are omitted. For example, it should be understood that the disclosed technology is not limited to any specific computer language or program. For instance, aspects of the disclosed technology can be implemented by software written in C++, Java, Perl, or any other suitable programming language. Likewise, the disclosed technology is not limited to any particular computer or type of hardware. Certain details of suitable computers and hardware are well known and need not be set forth in detail in this disclosure.

[0048] It should also be well understood that any functionality described herein can be performed, at least in part, by one or more hardware logic components, instead of software. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0049] Furthermore, any of the software-based embodiments (comprising, for example, computer-executable instructions for causing a computer to perform any of the disclosed methods) can be uploaded, downloaded, or remotely accessed through a suitable communication means. Such suitable communication means include, for example, the Internet, the World Wide Web, an intranet, software applications, cable (including fiber optic cable), magnetic communications, electromagnetic communications (including RF, microwave, and infrared communications), electronic communications, or other such communication means.

[0050] The disclosed methods, apparatus, and systems should not be construed as limiting in any way. Instead, the present disclosure is directed toward all novel and nonobvious features and aspects of the various disclosed embodiments, alone and in various combinations and subcombinations with one another. The disclosed methods, apparatus, and systems are not limited to any specific aspect or feature or combination thereof, nor do the disclosed embodiments require that any one or more specific advantages be present or problems be solved.

[0051] In view of the many possible embodiments to which the principles of the disclosed invention may be applied, it should be recognized that the illustrated embodiments are only examples of the invention and should not be taken as limiting the scope of the invention. We therefore claim as our invention all that comes within the scope of these claims.

Claims

1. A method of generating a logical-to-physical mapping of a solid state drive (SSD), the method comprising:receiving a table of bad blocks and good blocks for multiple planes in an Integrated Circuit (IC) of the SSD, wherein the bad blocks are defective memory areas and the good blocks are usable memory areas;counting a number of bad blocks in each superblock in the table, wherein each superblock includes a corresponding block from each plane of the IC;sorting the table based upon the number of bad blocks in each superblock;remapping at least one of the multiple planes in the sorted table using two pointers pointing at different blocks in a same plane, wherein a first of the two pointers is used to find entries of bad blocks and a second of the two pointers is used to find entries of good blocks, wherein the remapping includes logically swapping a bad block pointed at by the first pointer with a good block pointed at by the second pointer to generate a remapped table; andstoring data in the SSD using the remapped table, and limiting the use of the remapped table to superblocks that have only a single remapped block to reduce latency;wherein the remapping includes using the first pointer as a head pointer and the second pointer as a tail pointer, wherein the head pointer points to a first entry in the sorted table and the tail pointer points to a last entry in the sorted table, wherein the head pointer points at a bad block and the tail pointer points at a good block, and swapping entries of the head and tail pointers.

2. The method of claim 1, further including repeating the remapping for each of the multiple planes so that each plane is remapped independently of the other planes.

3. The method of claim 1, wherein the sorting includes placing superblocks in the table in priority order from a smallest number of bad blocks to a highest number of bad blocks.

4. The method of claim 1, wherein the first of the two pointers is incremented and the second of the two pointers is decremented until the second pointer is less than the first pointer.

5. The method of claim 1, wherein the remapped table is used by a Flash Translation Layer (FTL) of the SSD to store the data.

6. One or more computer-readable storage media, which is non-transitory, comprising computer-executable instructions that, when executed, cause a computing system to perform a method comprising:receiving a table of bad blocks of a flash memory of a solid state drive (SSD), wherein the flash memory includes multiple planes and each plane includes a plurality of blocks of memory storage and wherein corresponding blocks across the multiple planes form a superblock;counting a number of bad blocks in each superblock of the flash memory;sorting the table in a priority order based on the counted number of bad blocks in each superblock to generate a sorted table; andremapping the flash memory using the sorted table;wherein the remapping includes using a head pointer and a tail pointer, wherein the head pointer points to a first entry in the sorted table and the tail pointer points to a last entry in the sorted table and swapping entries of the head and tail pointers when the head pointer points at a bad block and the tail pointer points at a good block.

7. The computer-readable storage medium according to claim 6, wherein superblocks are sorted in the priority order such that superblocks with a lowest number of bad blocks are first and superblocks with a highest number of bad blocks are last.

8. The computer-readable storage medium according to claim 6, wherein the remapping of the flash memory results in a remapped table that is used by a Flash Translation Layer (FTL) of the SSD to store data.

9. The computer-readable storage medium according to claim 6, wherein the instructions, upon execution, further cause the computer system to perform the method comprising:receiving a request to store data in the SSD;using a remapped table resulting from the remapping to determine a physical location in the SSD; andstoring the data in the SSD.

10. The computer-readable storage medium according to claim 6, wherein the head pointer is incremented and the tail pointer is decremented until the tail pointer is less than the head pointer.

11. The computer-readable storage medium according to claim 6, wherein the instructions, upon execution, further cause the computer system to perform the method comprising:repeating the remapping for each of the multiple planes so that each plane is remapped independently of the other planes.

12. The computer-readable storage medium according to claim 6, wherein a bad block in a superblock is only replaced by a good block in a same plane.

13. A storage system, comprising:an array of blocks of storage, the array including multiple planes and superblocks, wherein each superblock includes a set of blocks in the array of blocks that share a same position in each plane of the multiple planes;a Flash Translation Layer (FTL) coupled to the array of blocks, the FTL including remapping logic arranged to perform the following:receiving a table that identifies locations of bad blocks in the array of blocks;calculating a count of bad blocks in each superblock of the array of blocks;sorting the table based upon the count to create a sorted table including a group of superblocks with a lowest number of bad blocks; andremapping the bad blocks in the group of superblocks using donor blocks from superblocks not within the group to generate a remapped table, wherein the remapping of the bad blocks includes using a head pointer and a tail pointer, wherein the head pointer points to a first entry in the sorted table and the tail pointer points to a last entry in the sorted table and swapping entries of the head and tail pointers when the head pointer points at a bad block and the tail pointer points at a good block.

14. The storage system of claim 13, wherein the remapping logic is further arranged to perform the following:storing data in the array of blocks of storage using the remapped table.

15. The storage system of claim 13, wherein the group of superblocks include at most one bad block.

16. The storage system of claim 13, wherein the head pointer is incremented and the tail pointer is decremented until the tail pointer is less than the head pointer.

17. The storage system of claim 13, wherein the remapping is performed independently for each plane of the sorted table.

Citation Information

Patent Citations

  • Solid state storage system for controlling reserved area and method of controlling the same

    US20110161727A1

  • Memory system and method

    US20150339223A1

  • Memory system and operating method thereof

    US20180151251A1

  • Data storage apparatus and operation method thereof

    US20220197534A1

  • Partial superblock memory managment

    US20220413699A1