Dynamic resizing of logical memory blocks

By dynamically adjusting the size of logical memory blocks to maintain a consistent variation threshold, the memory device optimizes the use of erase blocks, enhancing parallelism and performance by ensuring all blocks are efficiently utilized.

DE102018105854B4Active Publication Date: 2024-10-24SANDISK TECHNOLOGIES LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE102018105854
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-06-26
Filing Date
2018-03-14
Publication Date
2024-10-24
Estimated Expiration
2038-03-14

AI Technical Summary

Technical Problem

The sizes of logical memory blocks in memory devices vary due to manufacturing defects and over time, leading to inefficiencies and reduced performance due to high concurrency variation and unused erase blocks.

Method used

A control unit dynamically adjusts the size of logical memory blocks by ensuring that the number of erase blocks in each block varies by less than a predetermined threshold, such as 25%, using a memory management module to allocate and reallocate erase blocks based on availability and wear levels.

Benefits of technology

This approach maintains consistent parallelism and performance by minimizing variations in the size of logical memory blocks, ensuring that all available erase blocks are utilized efficiently, thereby improving the overall efficiency and reliability of the memory device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Device comprising: a control unit (124) for a non-volatile storage device (120, 210, 300), wherein the control unit comprises: a block component (402) configured to determine a total number of available erase blocks (302) of the non-volatile storage device (300) (702); a size component (404) configured to determine the number of erase blocks from the available erase blocks to be included in each of several logical blocks (306) as a function of the total number of available erase blocks (702), wherein the number of erase blocks for each of the logical blocks (306) differs from each other by less than a predetermined deviation limit; a mapping component (406) configured to generate the logical blocks (306) for the non-volatile storage device (300) by assigning the determined number of erase blocks to each of the logical blocks (306) (706);and an update component (502) configured to: track a refresh condition (708) associated with each logical block (306), wherein the refresh condition includes one or more of a program / erase cycle count for the logical block's erase blocks, a logical block's age, and a faulty bit count for the logical block's erase blocks; and resolve (710) the logical grouping of erase blocks contained in the logical block in response to determining one of the following: the program / erase cycle count meets a predetermined program / erase cycle threshold; the logical block's age meets a logical block age threshold; and the faulty bit count for the erase blocks meets a faulty bit count threshold.wherein the block component (402) is further configured to determine a new total number of available delete blocks that are candidates for inclusion in new logical blocks in response to the update component resolving the old logical blocks; wherein the size component (404) is further configured to determine a new number of delete blocks from the available delete blocks to be included in each of the new logical blocks as a function of the total number of available delete blocks, such that the number of delete blocks for each of the new logical blocks deviates by less than a predetermined deviation limit; and wherein the mapping component (406) is further configured to create the new logical blocks by assigning the predetermined number of delete blocks to each of the new logical blocks.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates in various embodiments to memory devices and refers in particular to the dynamic resizing of logical memory blocks. BACKGROUND

[0002] Erase blocks of a storage device may be grouped together locally to form logical storage blocks The number of erase blocks contained in each logical memory block can be set based on the number faulty blocks that are present in the storage device due to manufacturing defects may vary and may adapt over time as erase blocks become unusable, which can cause the sizes of the change logical memory blocks.

[0003] US 9 298 534 B2 relates to a memory system in which a unit for forming logical blocks based on Information about bit error rates for physical blocks is provided. SUMMARY

[0004] According to the invention, devices having the features of the independent claims are provided; dependent Claims relate to preferred embodiments. Means are provided for reducing the size of logical memory blocks dynamically. In one embodiment, a device includes a control unit for a non-volatile memory device. A control unit for a non-volatile memory device contains in a Embodiment, a block component that represents a total number of available erase blocks of the non-volatile A control unit for a non-volatile memory device contains in further Embodiments, a size module that determines the number of erase blocks from available erase blocks that can be written to each of several logical blocks, as a function of a total number of available erase blocks determined so that the number of erase blocks for each of the logical blocks is less than a predetermined A control unit for a non-volatile memory device contains specific embodiments, a mapping module that maps logical blocks for the non-volatile memory device by Assigning the specific number of erase blocks to each of the logical blocks.

[0005] In a further embodiment, a device includes means for identifying a pool of erase blocks of a non-volatile recording medium to be assigned to multiple virtual blocks. In some Embodiments, each of a plurality of virtual blocks includes a plurality of erase blocks that are logically combined to to form a single storage unit of a non-volatile recording medium. In one embodiment, a Establishment means for calculating the sizes for each of a plurality of virtual blocks, the sizes being a number of Define erase blocks to be assigned to each of the multiple virtual blocks. In one embodiment a device includes means for allocating erase blocks from a pool of erase blocks to virtual blocks, so that variations in size between each virtual block are less than twenty-five percent.

[0006] Systems are specified to dynamically adjust the size of logical memory blocks. A system contains In one embodiment, a non-volatile data storage device including a plurality of erase blocks. In specific Embodiments, a control unit for a non-volatile data storage device is configured to perform operations for Determine how many of several erase blocks are available to create superblocks. In some Embodiments are superblocks storage units of a non-volatile data storage device [engl.: memory device] consisting of a combination of multiple erase blocks. In one embodiment, a Control unit configured for a non-volatile data storage device, operations for generating an image usable erase blocks to the superblocks, so that a number of usable erase blocks that are applied to each of the superblocks are mapped varies by less than a threshold value. In one embodiment, a Control unit for a non-volatile data storage device configured to periodically modify operations a mapping of usable erase blocks to superblocks, ensuring that a number of usable erase blocks mapped to each of the superblocks by less than a threshold size varies. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] A more specific description is given below with reference to specific figures shown in the accompanying drawings illustrated embodiments. Naturally, these drawings are intended to show only specific embodiments of the disclosure and therefore should not be considered as limiting its scope of protection if the Disclosure described with additional specificity and detail through the use of the accompanying drawings and is explained; show: Fig. 1 is a schematic block diagram illustrating one embodiment of a system that includes a Contains memory management module; Fig. 2 is a schematic block diagram illustrating one embodiment of a data storage element; Fig. 3 is a schematic block diagram showing another embodiment of a data storage element represents; Fig. 4 is a schematic block diagram illustrating one embodiment of a memory management module; Fig. 5 is a schematic block diagram showing another embodiment of a memory management module represents; Fig. 6 is a schematic flow chart illustrating an embodiment of a method for dynamic Represents resizing of logical memory blocks; Fig. 7 is a schematic flow chart showing another embodiment of a method for dynamic Represents resizing of logical memory blocks; Fig. 8A is a schematic flow diagram illustrating another embodiment of a method for dynamic Resizes logical memory blocks; and Fig. 8B is a schematic flow diagram illustrating another embodiment of a method for dynamic Represents resizing of logical memory blocks. DETAILED DESCRIPTION

[0008] Aspects of the present disclosure may be considered as a device, a system, a method or a computer program product. Accordingly, aspects of the present disclosure may take the form a complete hardware embodiment, a complete software embodiment (the firmware, resident software, microcode or the like) or an embodiment that combines software and hardware aspects combined, assume all of which are generally referred to herein as a ´´circuit´´, a ´´module´´, a ´´device´´ or a ´´System´´. Furthermore, aspects of the present disclosure may take the form of a computer program product encoded in one or more non-transitory computer-readable storage media that store computer-readable and / or executable program code.

[0009] Many of the functional units described in this specification have been referred to as modules to describe their Independence from the implementation is particularly important. For example, a module can be a hardware Circuitry can be implemented using specifically customized VLSI circuits or gate arrays, standard semiconductors such as logic chips, transistors, or other discrete components. A module can also be used in programmable hardware Devices such as field-programmable gate arrays, programmable array logic, programmable logic devices or the like.

[0010] Modules may also be implemented at least partially in software for execution by different types of processors An identified module of executable code may, for example, contain one or more physical or logical blocks of computer instructions that can be used, for example, as an object, a procedure or a function. Nevertheless, the executable units of an identifiable module need not physically be in the same place, but can contain disparate instructions that are executed in different places which, when logically combined, contain the module and fulfill the specified purpose for the Reach module.

[0011] In fact, a module of executable code may contain a single instruction or many instructions and can even span several different code segments, under different program distributed across multiple data storage devices, etc. Where a module or sections of a module implemented in software, the software sections may be embodied in one or more computer-readable and / or executable storage media. Any combination of one or more computer-readable Storage media can be used. A computer-readable storage medium can be, for example, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or apparatus or any suitable combination of the foregoing, but would not be limited to propagating signals. In the context of this document, a computer-readable and / or executable Storage medium means any tangible and / or non-transitory medium that carries a program for use by or in connection with an instruction execution system, device, processor or apparatus or in connection with it.

[0012] Computer program code for performing operations for aspects of the present disclosure may be written in any combination of one or more programming languages ​​that provide an object-oriented Programming language such as Python, Java, Smalltalk, C++, C#, Objective C or similar, conventional procedural Programming languages ​​such as the ´´C´´ programming language, script programming languages ​​and / or other similar programming languages. The program code can be partially or completely executed on one or more computers a user and / or on a remote computer or server via a data network or the like.

[0013] A component, as used herein, includes a tangible, physical, non-transitory device. For example, a component may be implemented as a hardware logic circuit that uses customized VLSI Circuits, gate arrays or other integrated circuits; standard semiconductors such as logic chips, transistors or other discrete devices; and / or other mechanical or electrical devices. A Component can also be used in programmable hardware devices such as field-programmable gate arrays, programmable array logic, programmable logic devices, or the like. Component may be one or more silicon integrated circuit devices (e.g., chips, components, chip levels, housing) or other discrete electrical devices in electrical communication with one or more other Components via electrical lines of a printed circuit board (PCB) or the like. Each of the Modules can in special embodiments alternatively be realized by a component or as a component be implemented.

[0014] Throughout this specification, reference to ''one embodiment'' or similar Expression that a special feature, structure or characteristic associated with the embodiment described is included in at least one embodiment of the present disclosure. Thus, the The appearance of the phrase ´´in one embodiment´´ or a similar expression throughout this Specification always refers to the same embodiment, but this does not necessarily have to be the case, but can be a or more, but not all, embodiments, unless expressly stated otherwise. The terms ´´contain´´, ´´contain´´, ´´have´´ and variations thereof mean ´´include, but not limited to´´, unless expressly stated otherwise. A numbered list of items does not imply that any of the or all elements are mutually exclusive and / or mutually inclusive, unless expressly stated otherwise The terms ´´a / an´´ and ´´the´´ also refer to ´´one or more´´, provided unless expressly stated otherwise.

[0015] Aspects of the present disclosure are described below with reference to schematic flow diagrams and / or schematic block diagrams of methods, devices, systems and computer program products according to Embodiments of this disclosure are described. It is to be understood that each block of the schematic Flowcharts and / or schematic block diagrams and combinations of blocks in the schematic Flowcharts and / or schematic block diagrams may be implemented by computer program instructions These computer program instructions may be for a processor of a computer or another programmable data processing device is provided to produce a machine so that the Instructions executed by the processor or other programmable data processing device, means to implement the functions and / or actions described in the block or blocks of the schematic Generate flowcharts and / or schematic block diagrams as specified.

[0016] It is also noted that in some alternative implementations, the functions described in the Blocks are mentioned, may occur outside the order shown in the figures For example, two blocks shown one after the other may actually be executed essentially simultaneously, or the blocks can sometimes be executed in reverse order, depending on the involved Functionality. Other steps and procedures may be conceivable which, in function, logic or effect, are similar to one or several blocks, or sections thereof, of the figures shown. Although different arrow types and Line types can be used in flow and / or block diagrams, they are to be understood as representing the The scope of the corresponding embodiments is not limited. For example, an arrow may indicate a waiting or Monitoring period of an unspecified duration between enumerated steps of the depicted Specify the design.

[0017] In the following detailed description, reference is made to the accompanying drawings, which show a form part of it. The foregoing summary is illustrative only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, Further aspects, embodiments and features by reference to the drawings and the following detailed Description is obvious. The description of elements in each figure may refer to elements of further figures Like numbers may refer to like elements in the figures, including alternative Embodiments of the same elements.

[0018] Fig. 1 is a block diagram of an embodiment of a system 100 including a memory management module 150 The memory management module 150 may be a part of and / or in communication with one or more of a control unit 124 of the non-volatile data memory, a control unit 126 of non-volatile data storage media, a device driver or a memory management layer (SML) 130 or the like. The Memory management module 150 may be implemented on a non-volatile data storage system 102 of a computing device 110, which includes a processor 111, a volatile data memory 112 and a communication interface 113 The processor 111 may include one or more central processing units, one or more general-purpose Processors, one or more application-specific processors, one or more virtual processors (e.g., the computing device 110 may be a virtual machine operating within a host), one or more Processor cores or the like. The communication interface 113 may contain one or more network interfaces which are configured to control the computing device 110 and / or the control unit 124 of the non-volatile Data storage with a communication network 115 such as an Internet Protocol network, a storage area network or the like communicatively.

[0019] The computing device 110 may further comprise a non-transitory computer-readable storage medium 114 The computer-readable storage media 114 may contain executable instructions configured to Calculation device 110 (e.g., processor 111) to perform steps of one or more of the methods disclosed herein Alternatively or additionally, the memory management module 150 may be configured as one or more computer-readable instructions stored on the non-transitory storage media 114.

[0020] The non-volatile data storage system 102 includes, in the illustrated embodiment, a Memory management module 150. The memory management module 150 is configured in one embodiment to Determine the total number of available or usable erase blocks of a non-volatile data storage device 120 and determine how many of the available erase blocks can be grouped together to create multiple logical memory blocks so that the number of erase blocks contained in each logical memory block is not by less than a predetermined amount, percentage or the like. In another embodiment, memory management module 150 creates multiple logical memory blocks by Assigning the specified number of erase blocks to each of the multiple logical memory blocks.

[0021] In this way, in specific embodiments, the memory management module 150 may logical memory blocks maintain small variations in their size (e.g. the number of usable erase blocks that exceed the logical memory blocks) and therefore small variations in parallelism (e.g. to ensure consistent provide bandwidth to a host device) to perform parallel operations such as reading, writing, programming and / or the like with a consistent degree of parallelism. In addition, the Memory management module 150 by reducing the variation in the number of erase blocks assigned to each of the logical Memory blocks are allocated, ensure that substantially all available and usable erase blocks, e.g. the capacity of error-free erase blocks is allocated to logical memory blocks. This is different from conventional Method for generating logical memory blocks, which comprises generating as many logical memory blocks as possible and only from full-size memory blocks or creating as many full-size logical memory blocks as possible and then use the remaining erase blocks to create smaller, up to half the size, logical In both cases, a number of remaining error-free erase blocks that cannot be used to form logical memory blocks, and there may be a large Variation in the size of logical memory blocks may occur, resulting in high parallelism variation and reduced performance can generate.

[0022] In one embodiment, the memory management module 150 may execute executable software code, such as a Device driver, SML 130 or the like stored on the computer-readable storage media 114 for Execution on the processor 111. In another embodiment, the memory management module 150 Logic hardware of one or more non-volatile data storage devices 120, such as a control unit 126 for non-volatile data storage media, a control unit 124 for non-volatile data storage, a Device control unit, a field programmable gate array (FPGA) or other programmable logic, firmware for an FPGA or other programmable logic, microcode for execution on a microcontroller, a application-specific integrated circuit (ASIC) or the like. In a further embodiment, the Memory management module 150 a combination of both executable software code and logic hardware contain.

[0023] In one embodiment, the memory management module 150 is configured to receive memory requests from the SML 130 via a module 125 or the like. The memory management module 150 may further be configured be able to transfer data to / from the SML 130 and / or storage clients 116 via the bus 125. Accordingly, the memory management module 150 in some embodiments one or more data memory direct access modules (DMA modules), remote DMA modules, bus control units, bridges, buffers and so on and / or in Communication with it to support the transfer of storage requests and associated data. In In another embodiment, the memory management module 150 may process the memory request as an API call from a storage client 116, as an IO-CTL command or the like. The storage management module 150 is described in more detail below with reference to Fig. 4 and Fig. 5.

[0024] According to various embodiments, a control unit 124 of a non-volatile data memory, the the memory management module 150 contains one or more non-volatile data storage devices 120. The non-volatile data storage device(s) 120 may include recording, data storage and / or Storage devices, such as solid-state storage device(s), which can be divided into multiple addressable Media storage locations are arranged and / or partitioned. As used here, a media storage location refers to any physical data storage unit (e.g., any quantity of physical storage media on a non-volatile data storage device 120). Data storage units may include, but are not limited to: Pages, data storage areas, erase blocks, sectors, blocks, collections, or groups of physical storage locations (e.g. B. logical pages, logical erase blocks, described below) or the like.

[0025] The control unit 124 of the non-volatile data memory may include an SML 130 that provides a logical Address space 134 for one or more storage clients 116. An example of an SML is the ´´Virtual Storage Layer® from SanDisk Corporation of Milpitas, California. Alternatively, any non-volatile Data storage device 120 may include a non-volatile data storage media control unit 126 that includes a logical address space 134 for the storage clients 116. As used herein, a logical Address space 134 refers to a logical representation of data storage resources. The logical address space 134 can contain multiple (e.g., a range of) logical addresses. As used here, a logical address refers to any identifier for referencing a data storage resource (e.g. data) that, without to be limited, contains: a logical block address (LBA), cylinder / head / sector address (CHS address), a File name, an object identifier, an inode, a universal unique identifier (UUID), a global unique identifier (GUID), a hash code, a signature, an index entry, a range, a scope or the like.

[0026] The SML 130 may maintain metadata 135, such as a forward index to determine logical addresses of the logical address space 134 to media storage locations on the non-volatile data storage device(s) 120. The SML 130 can perform any-to-any mappings from logical addresses to physical memory resources As used here, an ´´any-to-any´´ mapping can map any logical address to any physical storage resource. Accordingly, There are no predefined and / or preset mappings between logical addresses and special Media storage locations and / or media addresses may exist. As used here, a media address refers to an address of a data storage resource that is a data storage resource from another for a Control unit that manages multiple data storage resources is uniquely identified. As an example, a Media address includes, but is not limited to: the address of a media storage location, a physical Data storage unit, a collection of physical data storage units (e.g., a logical data storage unit), a section of a data storage unit (e.g., an address and offset, range and / or extent of a logical data storage unit) or the like. Accordingly, the SML 130 can map logical addresses to physical Map data resources of any size and / or granularity that correspond to the underlying may or may not correspond to the data partitioning scheme of the non-volatile data storage device(s) 120. For example, in some embodiments, the non-volatile data storage control unit 124 is configured Data within logical data storage units created by logically combining multiple physical Data storage units are formed, which may allow the control unit 124 of the non-volatile Data storage supports many different sizes and / or granularities of virtual data storage units.

[0027] As used herein, a logical data storage element refers to a group of two or more non-volatile data storage elements that are managed in parallel (e.g. via an I / O or control bus) or which would otherwise be managed as a logical memory block, a virtual memory block and / or a Superblock. A logical data storage element can contain several logical data storage units such as logical pages, logical data storage areas (e.g. logical erase blocks), and so on. As shown here used, a logical data storage unit refers to a logical construct that combines two or more physical Data storage units combined, with each physical data storage unit on a corresponding non-volatile data storage element in the respective logical data storage element (e.g., each non-volatile data storage element is accessible in parallel). As used here, a logical data storage area refers to a Group of two or more physical data storage areas, where each physical data storage area is a corresponding non-volatile data storage element in the respective logical data storage element.

[0028] The logical address space 134 presented by the SML 130 may have a logical capacity that the number of available logical addresses in the logical address space 134 and the size and / or granularity of the data referenced by the logical addresses. For example, the logical capacity a logical address space 134, which contains 2^32 unique logical addresses, each of which contains 2048 bytes (2KiB) of data referenced, 2^43 bytes. As used here, a kibibyte (kiB) refers to 1023 bytes. In some Embodiments, the logical address space 134 may be sparsely provided. As used herein, a ´´thinly provided´´ logical address space 134 to a logical address space 134 which has a logical capacity which exceeds the physical capacity of the underlying non-volatile data storage device(s) For example, the SML 130 may allocate to the storage clients 116 a logical 64-bit address space 134 (e.g., a logical address space 134, which is referenced by logical 64-bit addresses), which represents the physical Capacity of the underlying non-volatile data storage devices may exceed 120. The large logical Address space 134 may allow memory clients 116 to allocate contiguous ranges of logical addresses and / or reference, while reducing the likelihood of naming conflicts. The SML 130 can support the Any- to-any mappings between logical addresses and physical memory resources to logical address space 134 independent of the underlying physical storage devices 120 For example, the SML 130 can seamlessly add physical storage resources as needed and / or remove without changing the logical addresses used by the storage clients 116.

[0029] The control unit 124 of the non-volatile data memory may be configured to store data in a context-dependent format. As used here, a context-dependent format refers to a self-describing Data format in which persistent context-dependent metadata is associated with the data on the physical storage media 122 The persistent context-dependent metadata provides the context for the data with which they In specific embodiments, the persistent context-dependent metadata identifies the data unique with which the persistent context-dependent metadata is stored. For example, the persistent context-dependent metadata a sector or block of data belonging to a storage client 116 under other sectors or blocks belonging to the storage client 116. In another embodiment The persistent context-dependent metadata identifies an operation performed on the data. In a In another embodiment, the persistent context-dependent metadata identifies a sequence of operations that executed on the data. In another embodiment, the persistent context-dependent Metadata security controls, a data type, or other attributes of the data. In a special Embodiment, the persistent context-dependent metadata identifies at least one of several aspects, which defines the data type, a unique data identifier, an operation and a sequence of operations that can be performed on the data are executed.

[0030] The persistent context-dependent metadata may include, but is not limited to: a logical Address of the data, an identifier of the data (e.g. a file name, an object ID, a label, a unique identifier or the like), reference(s) to other data (e.g. an indication that the data is similar to other data assigned), a relative position or offset of the data with respect to other data (e.g. file offset, etc.), Data size and / or range, and the like. The context-dependent data format may include a packet format that data segment and one or more headers. Alternatively, a context-dependent data format can contain data Assign context information in another way (e.g. in a dedicated index on the non-volatile data storage media 122, a data storage area index, or the like).

[0031] In some embodiments, the context-dependent data format may enable data context to be based on the contents of the non-volatile data storage media 122 and independent of other metadata such as the any-to-any mappings discussed above. Since the Since the media location of data is independent of the logical address of the data, it may be inefficient or impossible to Determine the context of data based only on the media location or media address of the data. Storing Data in a context-dependent format on the non-volatile data storage media 122 may enable the data context is determined without reference to other metadata. For example, it can be the context-dependent Data format allows metadata to be read only based on the contents of the non-volatile data storage media 122 be reconstructed (e.g. reconstructing the any-to-any mappings between logical addresses and media locations).

[0032] In some embodiments, the non-volatile data storage control unit 124 may be configured Data on one or more asymmetric write-once media 122 such as solid-state storage media As used herein, a ´´write-once´´ storage medium refers to a storage medium that is reinitialized (e.g. erased) every time new data is written or programmed onto it. As shown here used, an ´´asymmetric´´ storage medium refers to a storage medium 122 that has different latencies for different storage operations. Many types of solid-state storage media are asymmetric; for example, a read operation can be much faster than a write / program operation, and a Write / program operation can be much faster than an erase operation (e.g. reading the media can be hundreds of times faster than deleting and several tens of times faster than programming the media).

[0033] The data storage media 122 may be partitioned into data storage areas that can be deleted as a group can be used (e.g. erase blocks) to, among other things, compensate for the asymmetric properties of the media 122 or Thus, modifying a single data segment locally may result in the deletion of the entire erase block containing the data and rewriting the modified data into the erase block together with the original unchanged data. This can lead to inefficient ´´write factors´´ that the media 122 may wear excessively. Therefore, in some embodiments, the control unit 124 of the non-volatile data store may be configured to write data to a different location. As used here, writing refers to of data ´´in another location´´ to writing data to other media storage location(s) instead of overwriting of the data ´´in place´´ (e.g. overwriting the original physical location of the data). Modifying data at another location can avoid the write factor because existing valid data on the erase block with the Data that needs to be modified does not need to be deleted and copied again. In addition, writing Data in another location removes deletion from the latency path of many storage operations (e.g., the Erase latency is no longer part of the critical path of a write operation).

[0034] The non-volatile data storage control unit 124 may contain one or more processes that are external to the regular path for servicing memory operations (e.g. the ´´path´´ for executing a memory operation and / or servicing a memory request). As used here, the ´´path to serve a Memory request or the path to serve a memory operation (also called the critical path) to a series of processing operations required to complete the storage operation or request such as reading, writing, modifying, or the like. The path for servicing a memory request may include receiving the request from a storage client 116, identifying the logical addresses of the Request, performing one or more storage operations on non-volatile data storage media 122 and Return a result such as a receipt or data. Processes that are outside the path to the Serving storage requests may include, but are not limited to: a ´´Groomer´´, Deduplication, etc. These processes can be implemented autonomously and in the background, so that they interfere with or affect the performance of other memory operations and / or requests. Accordingly, these processes operate independently of servicing memory requests.

[0035] In some embodiments, the non-volatile data storage control unit 124 includes a groomer that is configured to allocate data storage areas (e.g. logical or physical erase blocks) for reuse under Using a garbage collection or other memory capacity recovery process. The write-to-another-location paradigm implemented by the non-volatile data storage control unit 124 implemented may result in obsolete or invalid data stored on the non-volatile data storage media 122 For example, overwriting data X with data Y can save Y to a new Data storage area (e.g., instead of overwriting X in the same location) and updating the any-to-any Metadata mappings to identify Y as the valid, current version of the data. The obsolete version of the data X can be marked as invalid, but cannot be removed (e.g. deleted) immediately, because, as As discussed above, deleting X may involve deleting an entire data storage area, which may time-consuming operation and can lead to a write factor. Similarly, data that is no longer used (e.g. deleted or truncated data) are not removed immediately. The non-volatile data storage media 122 can accumulate a significant amount of invalid data.

[0036] A groomer process may operate outside the critical path to service memory operations. Groomer process can reclaim data memory areas so that they are available for other memory operations can be reused. As used here, reclaiming a data storage area refers to erasing the data storage area so that new data can be stored / programmed on it. Reclaiming a data storage area can involve moving valid data on the data storage area to a new location. The groomer can contain data storage areas for recovery based on one or more Identify factors that include, but are not limited to: the amount of invalid data in the Data storage area, the amount of valid data in the data storage area, the wear and tear of the data storage area (e.g. B. the number of erase cycles), the time since the data storage area was programmed or refreshed, and so further.

[0037] The control unit 124 of the non-volatile data memory may further be configured to store data in a log format As described above, a log format refers to a data format that contains an ordered sequence of memory operations performed on a non-volatile data storage medium 122. In some In embodiments, the log format includes storing data in a predetermined sequence of media addresses the non-volatile data storage media 122 (e.g., within continuous pages and / or erase blocks of the media 122). The log format can also map data (e.g. each packet or data segment) to corresponding Sequence indicators can be applied to data individually (e.g., to each data packet) and / or applied to data groupings (e.g. packets that are consecutively a data storage area such as an erase block). In some embodiments, Sequence indicators are applied to data storage areas when the data storage areas are reclaimed (e.g. deleted) as described above, or when the data storage areas are used for the first time to to store data.

[0038] In some embodiments, the log format may allow storing data in an append-only paradigm The control unit 124 of the non-volatile data memory, which contains the described log storage module 137 or the like, can store a current attachment point at a Maintain the media address of the non-volatile data storage device 120. The attach point may be a current Data storage area and / or offset within a data storage area. Data can be from the append point The sequential order of the data can therefore be determined based on the sequence indicator the data storage area of ​​the data in combination with the sequence of the data within the data storage area When the end of a data storage area is reached, the control unit 124 of the non-volatile data storage the ´´next´´ available data storage area (e.g. the next data storage area that initialized and ready to store data). The groomer can identify data storage areas that contain invalid, containing old and / or deleted data to ensure that data continues to be sent to the media log can be attached.

[0039] The log format described here can enable valid data to be generated based on the contents of the non-volatile Data storage media 122 and can be distinguished from invalid data independently of other metadata. How As discussed above, invalid data cannot be removed from the non-volatile data storage media 122 until the data storage area containing the data is recovered. Therefore, multiple ´´versions´´ of data, that have the same context on the non-volatile data storage media 122 exist (e.g., multiple versions of Data that has the same logical addresses). The sequence indicators associated with the data can used to distinguish invalid versions of the data from current, up-to-date versions of the data; the Data that is the most recent in the log is the current version, and earlier versions may be identified as invalid become.

[0040] The storage management layer 130 may be configured to provide storage services for one or more storage Clients 116. The storage clients 116 may be local storage clients 116 located on the computing device 110, and / or remote storage clients 116, which are connected via the network 115 and / or the Network interface 113. The storage clients 116 may, but are not limited to, include: operating systems, file systems, database applications, server applications, kernel-level processes, User-level processes, applications, and the like.

[0041] The memory management layer 130 includes one or more non-volatile data storage devices 120 and / or is communicatively coupled thereto. The one or more non-volatile data storage devices 120 may include different types of non-volatile data storage devices, including, but not limited to, include: solid-state data storage devices, hard disks, SAN storage resources, or the like. or the plurality of non-volatile data storage devices 120 may include one or more corresponding Control units 126 for non-volatile data storage media and non-volatile data storage media 122 are included. As in As shown in Fig. 1, the SML 130 may access the one or more non-volatile data storage devices 120 via a conventional block I / O interface 131. In addition, the SML 130 can provide access to improved Provide functionality (e.g., a large virtual address space 134) via the SML interface 132. The metadata 135 can be used to perform memory operations via any of the block I / O interface 131, the SML Interface 132, cache interface 133 or other associated interfaces, and / or to pursue.

[0042] The cache interface 133 may exhibit cache-specific features that are provided via the memory management layer 130 are accessible. In addition, in some embodiments, the SML interface 132 provided to the storage clients 116 presented, provides access to data transformations performed by the one or more non-volatile Data storage devices 120 and / or the one or more control units 126 of the non-volatile Data storage media are implemented.

[0043] The SML 130 may provide storage services through one or more interfaces including, but not limited to, to be included: a block I / O interface, an extended memory management layer interface, a Cache interface and the like. The SML 130 may provide a logical address space 134 for the storage clients 116 via one or more interfaces. As discussed above, the logical address space 134 can contain several logical addresses, each of which corresponds to the respective media locations of the one or more non-volatile Data storage devices 120. The SML 130 can maintain metadata 135 that contains any-to-any mappings between logical addresses and media locations, as described above.

[0044] The SML 130 may further include a log storage module 137 configured to store data in a context-dependent log The context-dependent log data format can facilitate the mapping of data to persistent context-dependent metadata such as the logical address of the data and the like. The context-dependent Log format can further assign the data to respective sequence identifiers on the non-volatile Contain data storage media 122 that define an ordered sequence of storage operations that are performed on one or the plurality of non-volatile data storage devices 120, as described above.

[0045] The SML 130 may further include a non-volatile data storage device interface 130 that configured to send data, commands and / or queries to the one or more non-volatile data storage devices 120 via a bus 125, which may include, but is not limited to: a ´´Peripheral Component Interconnect Express´´ (PCI Express or PCIe) bus, a serial ´´Advanced Technology Attachment (ATA) bus, a parallel ATA bus, a Small Computer System (SCSI) interface, FireWire, Fibre Channel, a ´´Universal Serial Bus´´ (USB), a ´´PCIe Advanced Switching´´ (PCIe-AS) bus, a network 115, Infiniband, SCSI RDMA or the like. The interface 139 of the non-volatile data storage device can be the one or more non-volatile data storage devices 120 using input-output Control command(s) (IO-CTL command(s), IO-CTL command extension(s), remote memory direct access or the like communicate.

[0046] The communication interface 113 may include one or more network interfaces configured to Calculation device 110 and / or the control unit 124 of the non-volatile data memory with a network 115 and / or communicatively coupled with one or more storage clients 116 accessible via the network. The storage Clients 116 may be local storage clients 116 operating on the computing device 110 and / or remote Storage clients 116 accessible via the network 115 and / or the network interface 113. The control unit 124 of the non-volatile data memory contains one or more non-volatile data storage devices 120. Although Fig. 1 depicts a single non-volatile data storage device 120, the disclosure is not limited and could be adapted to any number of non-volatile data storage devices 120 integrate.

[0047] The non-volatile data storage device 120 may include non-volatile data storage media 122 that, without may include, but is not limited to: NAND flash data storage, NOR flash data storage, Nano- Random access memory (Nano-RAM or NRAM), nanocrystal wire-based data storage, silicon oxide-based sub-10 Nanometer process data storage, graphene data storage, silicon oxide nitride oxide silicon (SONOS), resistive RAM (RRAM), programmable metallization cell (PMC), conductive bridging RAM (CBRAM), magnetoresistive RAM (MRAM), dynamic RAM (DRAM), phase change RAM (PRAM or PCM), magnetic storage media (e.g. hard disk, tape), optical storage media, or the like. Although the non-volatile data storage media 122 are referred to herein as ´´data storage media´´, in various embodiments the non-volatile Data storage media 122 more generally include a non-volatile recording medium used to record capable of storing data, which can be used as a non-volatile data storage medium, a non-volatile storage medium or the like Furthermore, in various embodiments, the non-volatile data storage device 120 a non-volatile recording device, a non-volatile data storage device, a non-volatile storage device or the like.

[0048] The non-volatile data storage media 122 may include one or more non-volatile data storage elements 123 which may include, but are not limited to: chips, packages, planes, components, and the like. Non-volatile data storage media control unit 126 may be configured to perform storage operations on non-volatile to manage data storage media 122, and may include one or more processors, programmable processors (e.g. field-programmable gate arrays) or the like. In some embodiments, the control unit 126 of the non-volatile data storage media configured to write data to the non-volatile data storage media 122 in the context-dependent log format, as described above, and to transfer data to / from the non-volatile data storage device 120, and so on.

[0049] The control unit 126 of the non-volatile data storage media can be connected to the non-volatile data storage media 122 may be communicatively coupled by means of a bus 127. The bus 127 may be an I / O bus for communicating Data to / from the non-volatile data storage elements 123. The bus 127 may further include a control bus for Communicating addressing and other commands and control information to the non-volatile Data storage elements 123. In some embodiments The bus 127 can connect the non-volatile data storage elements 123 with the control unit 126 of the non-volatile Data storage media can be communicatively coupled in parallel. This parallel access can enable the non-volatile Data storage elements 123 are managed as a group forming a logical data storage element 129. How As discussed above, the logical data storage element can be divided into corresponding logical data storage units (e.g. logical pages) and / or logical data storage areas (e.g. logical erase blocks). The logical Data storage units can be created by logically combining physical data storage units of each of the non-volatile data storage elements. For example, if the non-volatile data storage media 122 twenty-five (25) non-volatile data storage elements, each logical data storage unit twenty-five (25) pages (e.g., one page of each element of the non-volatile data storage media 122).

[0050] The control unit 124 of the non-volatile data memory may be an SML 130 and the control unit 126 of the non-volatile data storage media. The SML 130 can provide storage services to the storage clients 116 via a or more interfaces 131, 132 and / or 133. In some embodiments, the SML 130 provides a Block device I / O interface 131 through which the storage clients 116 perform block-level I / O operations. Alternatively or additionally, the SML 130 may include a storage management layer interface (SML interface) 132 that can provide other storage services to the storage clients 116. In some embodiments the SML interface 132 may provide extensions to the block device interface 131 (e.g., memory Clients 116 access the SML interface 132 via the extensions for the block device interface 131). Alternatively or additionally, the SML interface 132 may be provided as a separate API, service and / or library. The SML 130 may be further configured to include a cache interface 133 for caching data under Use of the non-volatile data storage system 102.

[0051] As described above, the SML 130 can provide the storage clients 166 with a logical address space 134 present (e.g., via interfaces 131, 132, and / or 133). The SML 130 can maintain metadata 135 that supports any-to- any mappings between logical addresses in the logical address space 134 and media locations in the non-volatile Data storage device 120. The metadata 135 may include a logical-to-physical mapping structure with Entries that contain logical addresses in the logical address space 134 and media locations in the non-volatile Data storage device 120. The logical-to-physical mapping structure of the metadata 135 is shown in one embodiment sparsely populated with entries for logical addresses for which the non-volatile Data storage device 120 stores data, and with no entries for logical addresses for which the non-volatile Data storage device 120 does not currently store any data. In specific embodiments, metadata 135 tracks Data at a block level, with SML 130 managing data as blocks.

[0052] The non-volatile data storage system 102 may further include a log storage module 137 which, as described above described, may be configured to store data in the non-volatile data storage device 120 in a context-dependent log format. The context-dependent log data format can associate data with a logical address on the non-volatile data storage media 122. The context-dependent log format can further comprising assigning the data to respective sequence identifiers on the non-volatile data storage media 122, which define an ordered sequence of storage operations that are performed on the non-volatile data storage media 122 described above. The control unit 124 of the non-volatile data memory may further comprise a Interface 139 of the non-volatile data storage device configured to store data, commands and / or To transmit queries to the control unit 126 of the non-volatile data storage media via a bus 125, such as described above.

[0053] Fig. 2 depicts an embodiment of a non-volatile memory device 210 that includes one or more may contain data storage components or chips 212. The non-volatile memory device 210 may essentially similar to the non-volatile data storage device 120 described with reference to Fig. 1. The data storage In some embodiments, module 212 includes an array 200 (two-dimensional or three-dimensional) of Data storage cells, the device control unit 220 and read / write circuits 230A / 230B. In one embodiment access to the data storage array 200 by the various peripheral circuits is symmetrical implemented on opposite sides of the array, so that the density of access lines and circuitry on each side is reduced by half. The read / write circuits 230A / 230B contain in a further Embodiment multiple capture blocks 250 that allow a page of data storage cells to be parallel can be read or programmed.

[0054] The data storage array 200 is, in various embodiments, connected by word lines via row decoders 240A / 240B and by bit lines via column decoders 242A / 242B. In some embodiments, a Control unit 244 in the same data storage device 210 (e.g., a removable memory card or housing) as which contain one or more data storage modules 212. Commands and data are exchanged between the host and the Control unit 244 via lines 232 and between the control unit and the one or more Data storage devices 212 are transmitted via lines 234. An implementation can use multiple chips 212 contain.

[0055] In one embodiment, the device control unit 220 interacts with the read / write circuits 230A / 230B together to perform data storage / memory operations on the data storage array 200. The building block Control unit 220 includes, in specific embodiments, a memory management module 150, a state machine 222, an on-chip address decoder 224 and a power control circuit 226. The Memory management module 150 is configured in one embodiment to maintain a total number of available erase blocks for the non-volatile storage device, the number of available erase blocks allocated to each of the plurality of logical memory blocks to be allocated, so that the number of erase blocks allocated to each of the logical memory blocks is allocated, within a variation threshold, percentage, amount or the like and the logical memory blocks by assigning the number of available erase blocks to the logical memory blocks The memory management module 150 may, in particular embodiments, execute software of a Device driver and / or hardware in a device control unit 244, a block control unit 220 and / or a state machine 222.

[0056] The state machine 222, in one embodiment, represents the chip-level control of the data storage or The on-chip address decoder 224 provides an address interface to communicate between the address used by the host or a data storage controller and the hardware address used used by the decoders 240A, 240B, 242A, 242B. The power control circuit 226 controls the power and voltages supplied to the word lines and bit lines during data storage operations In one embodiment, the power control circuit 226 includes one or more charge pumps that can generate voltages greater than the supply voltage.

[0057] Fig. 3 depicts an embodiment of a non-volatile memory device 300, such as the one described above described non-volatile memory device 210. The non-volatile memory device 300 is in special embodiments into erase blocks 302aa-302mn (collectively 302), which is the smallest erasable unit. Non-volatile memory device 300 may further be organized into pages, which, as used herein, are the smallest unit that can be programmed or read. In some embodiments, the non-volatile Storage device 300 a plurality of physical storage units 304a-n (collectively 304) (e.g., one or more building blocks, building block levels, chips, integrated circuits and / or the like), each physical storage unit 304 has a plurality of erase blocks 302. Data storage locations (e.g., erase blocks 302, pages of erase blocks, or Word lines of erase blocks) from the corresponding physical memory unit 302 can be grouped together to form logical memory blocks 306, virtual memory blocks, superblocks, and / or the like. Each Data storage location of the non-volatile memory device 300 can be specified using a physical address (e.g. a physical page address or a physical block address).

[0058] As described above, a physical memory block in the non-volatile memory device 300 contain an array of data storage cells arranged in rows corresponding to word lines. Data storage cells of a memory block can be configured as single-level cells (SLC) or multi-level cells (MLC) and each word line in the memory block can be used to store a page (in an SLC case) or multiple pages (in an MLC case). Thus, the number of pages in a given memory block based on the number of bits stored per data storage cell. Due to the increased storage density, a memory block used as a 2-bit MLC memory block can contain twice the number of pages as if the same memory block is used as an SLC memory block. For example, for a memory block consisting of 64 word lines, the memory block 64 pages when used as an SLC memory block, 128 pages when used as a 2-bit MLC memory block, 192 pages when used as a 3-bit MLC memory block used, and so on. However, these numbers are only illustrative, and a memory block of the non-volatile memory device 300 may contain any other suitable number of pages.

[0059] In one embodiment, the non-volatile memory device 300 includes one or more logical memory blocks 306, superblocks, virtual memory blocks, and / or the like. As used herein, the logical memory blocks 306 Storage units of the non-volatile storage device 300, the erase blocks 302 of one or more different physical memory units 304 containing different components, component levels, chips, integrated circuits and / or the like. In specific embodiments, logical memory blocks 306 operational parallelism and thus enable programming, reading and deleting operations to be performed on Data storage locations located in different physical storage units 304 such as different Components, component levels, chips and / or the like are executed in parallel. Each logical memory block 306 can therefore belong to a specific bank or be a concurrently addressable unit (CAU). In some In some cases, a system can access a specific logical memory block by changing the state of a chip enable Signals ('CE' signals).

[0060] In some embodiments, a logical memory block 306 may include an erase block 302 from each physical storage unit 304 that has the same position in the physical storage unit 304 or the same block number. For example, as shown in Fig. 3, a logical memory block 306a may contain the erase blocks 302 at block position 'a' from each of the physical storage units 304a-n. Similarly, another logical memory block 306b the erase blocks 302 at block position ´´b´´, ´´c´´ and so on from each of the physical storage units 304a-n.

[0061] In various embodiments, a logical memory block 306 may be composed of erase blocks 302 at different block numbers of different physical storage units 304. For example, a logical memory block 306b may be formed from erase blocks 302 at the locations 'ca', 'cb', 'bc' and so on. In In such an embodiment, an erase block 302cc of a physical storage unit 304c may be removed from the block position ´´c´´ may be a bad block, which means that the erase block 302cc is not available for reading or writing data available or usable. Accordingly, the logical memory block 306b can provide error-free Erase block 302bc from a different block location of the same physical storage unit 304c on which the faulty block 302cc is located.

[0062] In particular embodiments, a logical memory block 306 may be virtual linked or striped a subset of data storage locations of the erase blocks 302 (e.g., instead of or in addition to Using full erase blocks 302, for greater parallelism, in response to retiring or marking partial erase blocks as faulty or the like). For example, a logical memory block 306 can be Linking or ´´striping´´ a subset of data storage locations of an erase block 302 from one or more physical storage units 304 of the non-volatile storage device 300. The subset of Data storage locations may have the same page(s) or word lines of different physical Memory units 304 that are to be virtually linked as a logical memory block 306. In other Embodiments may, as described above, comprise complete erase blocks made up of different building blocks, device levels, chips or other locations to form a logical memory block 306 (e.g., without partial block striping).

[0063] The storage management module 150, the SML 130 and / or the like may manage the data storage locations of the Track and / or manage erase blocks 302 associated with each logical memory block 306. For example, the storage management module 150 can determine the association between data storage locations of the erase blocks 302 and the corresponding logical memory blocks 306 as metadata on one or more pages of the non-volatile Storage device 300.

[0064] Fig. 4 illustrates an embodiment of a memory management module 150. The memory management module 150 may be substantially similar to the memory management module 150 described above with reference to Figs. 1 and 2. 2. In the illustrated embodiment, the memory management module 150 includes a block module 402, a size module 404 and a mapping module 406, which are described in more detail below.

[0065] In one embodiment, the block module 402 identifies a pool of erase blocks 302 of a non-volatile storage device 300 and determines a total number of available erase blocks 302 of the non-volatile Storage device 300. For example, the block module 402 may erase the blocks 302 of the non-volatile Storage device 300 search, check and / or the like to determine which erase blocks 302 are available for reading and writing data are available (e.g. ´´error-free´´ blocks that have not been marked as ´´faulty´´, withdrawn or otherwise decommissioned). In another example the block module 402 may maintain a list of erase blocks 302 for the non-volatile storage device 300 and may Erase blocks 302 that are ´´faulty´´ erase blocks 302 (e.g., erase blocks 302 that have errors that have failed which have been withdrawn and / or otherwise not used to read and / or write data be deleted, marked as invalid, withdrawn, or the like. Faulty blocks can Erase blocks 302 that are determined to be broken or defective when the storage device 300 is first used, formatted and / or the like (e.g. during a device type test operation or the like), due to Defects during the manufacture of the storage device 300, and / or erase blocks 302 that occur during the lifetime the storage device 300 breaks or becomes defective.

[0066] In particular embodiments, the block module 402 maintains a pool, list, or the like of available Erase blocks 302 such as erase block locations (e.g., data storage addresses for the available erase blocks 302, chip, Block and / or block level identifiers and / or the like) for the available erase blocks 302, erase block Identifiers for the available erase blocks 302 and / or the like. In various embodiments, tracked, counted or the like, the block module 402 the total number of available erase blocks 302 that are in a logical memory block 306, a virtual memory block, a superblock and / or the like, assigned to it or to other can be assigned in any way.

[0067] The size module 404 is configured in one embodiment to determine the number of available erase blocks 302 that are in each of several logical memory blocks 306 are to be included, to determine, calculate or the like. In some embodiments, the size module 404 determines the number of available erase blocks 302 that are each logical memory block 306, so that the ´´size´´ or the number of available Erase blocks 302 included in each logical memory block 306 to provide a predetermined Variance threshold, a predetermined deviation limit or the like, which is a percentage, an amount or a number of erase blocks 302 and / or the like.

[0068] For example, the size module 404 may determine the number of available erase blocks 302 that can be written to each logical Memory block 306 are to be included, so that the sizes of the logical memory blocks 306 are not more than 50%, 25%, 10%, 5%, 2% or the like. In different Embodiments, the size module 404 determines the number of available erase blocks 302 that can be placed in each logical Memory block 306 are to be included, so that the sizes of the logical memory blocks 306 within the Ranges of 0% - 5%, 5% - 15%, 15% - 25%, 25% - 50% and / or the like. Similarly, the size module 404 the number of available erase blocks 302 that can be included in each logical memory block 306 are to be determined so that the sizes of the logical memory blocks 306 are increased by at most one erase block 302, two Erase blocks 302, three erase blocks 302 and so on may differ or vary.

[0069] In one embodiment, the size module 404 calculates the number of available erase blocks 302 to be included in each logical memory block 306 so that the sizes of the logical Memory blocks 306 deviate or vary by the variance threshold, the number of logical memory blocks 306 that can be created so that as many available erase blocks 302 as possible can be written into each logical memory block 306 can be included, while the size limit set by the variance threshold For example, if the logical memory blocks 306 can contain 64 erase blocks 302 and 192 (64 x 3) available erase blocks 302, then the size module 404 may determine that three logical Memory blocks 306 can be created, each containing 64 erase blocks 302, so that no erase blocks 302 remain remain.

[0070] However, if there are 190 available erase blocks 302, then the size module 404, instead of two logical Memory blocks 306, each containing 64 erase blocks 302, and a third logical memory block 306 containing 62 Erase blocks 302, determine that a logical memory block 306 contains 64 erase blocks 302 and the remaining two logical memory blocks 306 should each contain 63 erase blocks 302, so that the logical memory blocks 306 are substantially uniform or equal in size, which is based on the variance threshold can be determined.

[0071] In one embodiment, the mapping module 406 creates a plurality of logical memory blocks 306 for a non-volatile memory device 300 by assigning the number of erase blocks 302 that the size module 404 determined, to each of the logical memory blocks 306. For example, the image module 406 a mapping of erase blocks 302 to the logical memory blocks 306 to which the erase blocks 302 assigned, create, maintain and / or otherwise manage.

[0072] In one embodiment, the mapping module 406 assigns erase blocks 302 to the logical memory blocks 306 randomly. In specific embodiments, the mapping module 406 assigns erase blocks 302 to logical memory blocks 306 in a sequential order, such as the order of the building blocks, building block levels, chips or the like, on which the erase blocks 302 are located. In a further embodiment, the mapping module 406 Erase blocks 302 to logical memory blocks 306 as a function of an age of each of the erase blocks 302.

[0073] As used herein, the age of an erase block 302 may refer to the total time for which the erase block 302 was activated or actively in use, the time since the erase block 302 was manufactured, the number of programming / erase cycles that have been executed on the erase block 302, and / or the like. In such a embodiment, the mapping module 406 incorporates erase blocks 302 into a logical memory block 306 by Selecting erase blocks 302 that are younger than erase blocks 302 that are older, e.g. in sequential order of age.

[0074] In particular embodiments, the mapping module 406 selects erase blocks 302 corresponding to a logical memory block 306 as a function of the age of the erase blocks 302, so that the average Age of the erase blocks 302 of the logical memory block 306 meets a predetermined age threshold. In this way, the mapping module 406 can manage the ´´age´´ of the logical memory blocks 306 so that the age of the logical memory blocks 306 is substantially the same, rather than the age of the particular logical memory blocks 306 is significantly higher or lower than the age of other logical memory blocks 306. In various In some embodiments, the mapping module 406 includes, if possible, all or substantially all of the available erase blocks 302 logical memory blocks 306 according to the variance threshold, so that no or very few non allocated erase blocks 302 of the available erase blocks 302 are present, which correspond to the logical memory blocks 306 could be assigned.

[0075] Fig. 5 illustrates an embodiment of a memory management module 150. The memory management module 150 may be substantially similar to the memory management module 150 described above with reference to Fig. 1, Fig. 2 and Fig. 4. In the illustrated embodiment, the memory management module 150 includes a Block module 402, a size module 404 and a mapping module 406, which are essentially the block module 402, the Size module 404 and mapping module 406 described above with reference to Fig. 4. Furthermore, in one embodiment, the memory management module 150 includes an update module 502 and a reserve module 504, which are described in more detail below.

[0076] In one embodiment, the update module 502 is configured to assign a refresh condition to each logical memory block 306 of the non-volatile memory device 300, to track, detect, monitor, determine, calculate, and / or the like. In some embodiments, the logical Memory blocks 306 due to changes in the erase blocks 302, which in the logical memory blocks 306 contained therein, be periodically refreshed, adjusted, modified, resized and / or the like. For example, erase blocks 302 may become faulty, so that they cannot be read or written. In various embodiments, update module 502 monitors various Refresh conditions that allow dynamic, real-time resizing, reconfiguration, modification, Regeneration, remapping and / or the like of the logical memory blocks 306 can be triggered.

[0077] In particular embodiments, the refresh condition tracked by the update module 502 includes a program / erase cycle count for the erase blocks 302 of a logical memory block 306 (e.g., every 32 program / erase cycles), an age of the logical memory blocks 306 (e.g., the average age of the erase blocks 302 contained in the logical memory block 306), an error rate measurement such as a count of failed bits for the erase blocks 302 of the logical memory blocks 306 and / or the like. The update module 502 may Check the status of the erase blocks 302 periodically for each logical memory block 306 to actively Monitoring refresh conditions at specific time intervals can detect events that make monitoring of the logical memory blocks 306 (such as a failed read or write on an erase block 302, which may indicate that the erase block 302 is faulty) and / or the like.

[0078] In response to one or more of the refresh conditions meeting a predetermined threshold, e.g. B. in response to a program / erase cycle count for an erase block 302 of a logical memory block 306 meets a threshold for the program / erase cycle count, the age of the logical memory block 306 an age threshold for the logical memory blocks 306 is met, a failed bit count for the erase blocks 302 meets a threshold for the failed bit count, the update module 502 triggers the logical grouping of erase blocks 302 contained in the logical memory blocks 306, removes them, makes them invalid, abolishes them or the like.

[0079] The update module 502 and / or the mapping module 406 may, for example, perform the mapping of Erase blocks 302 to the logical memory blocks 306 to which the erase blocks 302 were assigned, in response that the update module 502 detects, deletes, removes, invalidates the refresh condition and / or the like. In another example, the update module 502 may include references, pointers, or other means to access a logical memory block 306, remove, invalidate, mark as deleted, delete and / or the like to resolve the logical memory block 306 so that the logical memory block 306 is not available for reading of data from or writing data to the non-volatile memory device 300.

[0080] In particular embodiments, after the update module 502 updates the logical memory blocks 306 has resolved, the erase blocks 302 forming the logical memory blocks 306 to the pool of available erase blocks 302 In one embodiment, the block module 402 determines a new total number of available erase blocks 302 that are candidates for inclusion in new logical memory blocks 306. The new total number of available Erase blocks 302 may be different than the original total number of available erase blocks 302 due to changes in the erase blocks, e.g. if some erase blocks 302 have become faulty or are otherwise no longer usable are.

[0081] In particular embodiments, the size module 404 determines a new number of erase blocks 302 that logical memory blocks 306 are to be allocated based on the total number of erase blocks 302 in the pool available erase blocks 302. In particular embodiments, the size module 404 determines the new number of Erase blocks 302 to be assigned to logical memory blocks 306, so that the number of erase blocks 302, assigned to each logical memory block 306 is substantially equal to or within a variance threshold, such as 25% or less. In particular embodiments, the mapping module 406 generates new logical memory blocks 306 by assigning the candidate erase blocks 302 to the logical memory blocks 306 according to the number of erase blocks 302 that the size module 404 has determined to be included in each logical memory block 306, and updating the mapping of erase blocks 302 to the logical Memory blocks 306 to which the erase blocks 302 are assigned. In this way, the sizes of the logical Memory blocks 306 are dynamically adjusted to ensure that the number of erase blocks 302 assigned to each logical memory block 306 is within a variance threshold, so that the sizes of the logical Memory blocks 306 are substantially uniform and that most, if not all, of the available erase blocks 302 logical memory blocks 306 can be assigned.

[0082] In a further embodiment, the size module 404 determines the number of error-free, usable or such erase blocks 302 from each of the logical memory blocks 306 when the update module 502 each of the logical memory blocks 306. The size module 404, in one embodiment, stores the determined number usable erase blocks 302 in a queue that the mapping module 406 can use to erase blocks 302 logical memory blocks 306. For example, if there are five logical memory blocks 306 and the number of usable erase blocks 302 contained in each of the logical memory blocks 306 when the Update module 502 resolves the logical memory blocks 306, 64, 63, 63, 64, and 63, respectively, then the size module 404 Place each of the quantities into a queue (or other data structure, list, table, or the like). The mapping module 406 can then retrieve a number from the queue and assigns the retrieved number of erase blocks 302 to a new logical memory block 306. Tracking the sizes of the logical Memory blocks 306, when resolved, can reduce the processing and time required to Calculate the number of erase blocks 302 to be allocated to the logical memory blocks 306.

[0083] In one embodiment, the reserve module 504 is configured to maintain a reserve pool of erase blocks 302 which contains one or more available erase blocks 302 that are not logical memory memory blocks 306. For example, if an erase block 302 is not assigned to a logical memory block 306 assigned because it would have caused the sizes of the logical memory blocks 306 to exceed the variance threshold exceed, the reserve module 504 adds the unallocated erase block 302 to a pool of reserve erase blocks 302 added.

[0084] In some embodiments, the reserve module 504 includes at least one of the erase blocks 302 from the pool of Erase blocks 302 to each logical memory block 306 when the logical memory blocks 306 are created. For example, when the mapping module 406 selects erase blocks 302 corresponding to the logical memory blocks 306 are to be allocated when the logical memory blocks 306 are created or newly created, at least one Select erase block 302 from the reserve pool of available erase blocks 302 that corresponds to each of the logical storage blocks 306 before it assigns other erase blocks 302 to the logical memory blocks 306.

[0085] The erase blocks 302 placed in the reserve pool may not be used for a period of time because they are not assigned to logical memory blocks 306. Accordingly, the erase blocks 302 in the Reserve pool have different usage characteristics, such as a younger age, a lower P / E Cycle count, a lower count for failed bits and / or the like. Thus, the assignment of Erase blocks 302 from the reserve pool to one or more of the logical storage blocks 306 and if possible Assigning an erase block 302 to each of the logical memory blocks 306 may be a way to To provide wear leveling for the logical memory blocks 306.

[0086] Below is an example of pseudocode for an algorithm for allocating erase blocks 302 to logical memory blocks 306 for constructing uniformly or substantially uniformly sized logical Memory blocks 306 in the order of building blocks, building block levels or the like with the largest number not allocated error-free erase blocks 302. In specific embodiments, the following pseudocode and Memory management module 150 generally constructs uniformly sized logical memory blocks 306, regardless of how the faulty, e.g., unusable, erase blocks 302 are distributed across a building block, a building block level, a Chip and / or the like are distributed. bool compare_planes (const plane *first, const plane *second) { return (first->num_free_blocks() > second->num_free_blocks()); } void assign_blocks_to_super_block(super_block *sblock, unsigned int target_ebs) { std::list<plane*> ordered_planes = get_all_plane_arrays(); ordered_planes.sort(compare_planes); for(std::list<plane*> ::iterator it=ordered_planes.begin(); (target_ebs>0) && (it!=ordered_planes.end()); ++it) { erase_block *eb = (*it)->use_next_free_block(); sblock->add_erase_block(eb); --target_ebs; }}

[0087] The following example variables and calculations may be used in various embodiments, to establish the formation of the logical memory blocks 306.

[0088] In one embodiment, during the initial formation of the logical memory blocks 306 Num_larger int logical memory blocks 306 with the target number (Small_ebs_per_superblock + 1) of erase blocks 302 are constructed therein, int then building the remaining logical memory blocks 306 with the target number Small_ebs_per_superblock of int Erase blocks 302 therein. If the logical memory blocks 302 are rebuilt, reconfigured, or recreated or the like, in one embodiment, the original number of erase blocks 302 included in the resolved logical memory blocks 306 were used as the target number of erase blocks 302 to thereby determine the logical memory blocks 306. Furthermore, in specific embodiments, the pool of reserve erase blocks 302 is used to rebuild the logical memory blocks 306, with the additional requirement to select of the 302 least aged erasing blocks available from each level.

[0089] Fig. 6 illustrates an embodiment of a method 600 for dynamically resizing logical memory blocks. In one embodiment, the method 600 begins, and the block module 402 determines 602 a Total number of available erase blocks 302 of the non-volatile storage device 300. The size module 404 determines 604 In some embodiments, the number of erase blocks 302 from the available erase blocks 302 that can be included in each of several logical memory blocks 306, as a function of the total number of available Erase blocks 302, so that the number of erase blocks 302 for each of the logical memory blocks 306 is less than 25% The mapping module 406 has 606 in further embodiments the certain number of Erase blocks 302 of each of the logical memory blocks 306 created for the non-volatile memory device 300 and the method 600 ends.

[0090] Fig. 7 illustrates an embodiment of a method 700 for dynamically resizing logical memory blocks. In one embodiment, the method 700 begins, and the block module 402 determines 702 a Total number of available erase blocks 302 of the non-volatile storage device 300. The size module 404 determines 704 In some embodiments, the number of erase blocks 302 from the available erase blocks 302 that can be included in each of several logical memory blocks 306, as a function of the total number of available Erase blocks 302, so that the number of erase blocks 302 for each of the logical memory blocks 306 is less than 25% The mapping module 406 has 706 in further embodiments the certain number of Erase blocks 302 of each of the logical memory blocks 306 created for the non-volatile memory device 300 become, to.

[0091] In one embodiment, the update module 502 determines 708 whether a refresh condition is met such as whether a program / erase cycle count of one or more erase blocks 302 or logical Memory blocks 306 meets a threshold for the program / erase cycle count, an age of a logical memory block 306 meets an age threshold, a count value for defective bits of one or more erase blocks 302 or logical memory blocks 306 meets a threshold for a faulty bit count and / or the like. In particular embodiments, if the update module 502 determines 708 that a refresh condition is not has been met, the update module 502 then proceeds to determine 708 whether a refresh condition has been met If the update module 502 determines 708 that a refresh condition has been met, then the update module 502 resolves 710 the logical memory blocks 306, and the block module 402 determines 702 a Total number of erase blocks 302 available to recreate the logical memory blocks 306.

[0092] Figures 8A and 8B illustrate an embodiment of a method 800 for dynamic resizing logical memory blocks. In one embodiment, the method begins 800, and the block module 402 determines 802 a total number of available erase blocks 302 of the non-volatile memory device 300. In special Embodiments, the reserve module 504 determines a number of erase blocks 302 to be placed in a reserve pool are to be included, from which the logical memory blocks 306 are selected during the regeneration The reserve module 504 may, for example, maintain a predetermined number of erase blocks 302 in the reserve pool place to prevent a number of erase blocks 302 from being used for a period of time, To provide wear compensation of the non-volatile memory device 300.

[0093] The size module 404 determines 806, in some embodiments, the number of erase blocks 302 from the available erase blocks 302 to be included in each of several logical memory blocks 306 as a function of the total number of available erase blocks 302, so that the number of erase blocks 302 for each of the logical memory blocks 306 by less than 25% of each other In further embodiments, the mapping module 406 assigns 808 the specific number of erase blocks 302 each of the logical memory blocks 306 created for the non-volatile memory device 300.

[0094] In another embodiment, the reserve module 504 places 810 erase blocks 302 that are not logical memory blocks 306 are allocated in the reserve pool. In one embodiment, 812 determines the Update module 502 determines whether a refresh condition has been met, such as whether a program / erase cycle Count value of one or more erase blocks 302 or logical memory blocks 306 a threshold for the Program / erase cycle count is met, an age of a logical memory block 306 meets an age threshold, a count value for faulty bits of one or more erase blocks 302 or logical memory blocks 306 Threshold for a count of faulty bits is met and / or the like. In specific embodiments, if the update module 502 determines 812 that a refresh condition has not been met, the Update module 502 then proceeds to determine 812 whether a refresh condition has been met. If the Update module 502 determines 812 that a refresh condition has been met, then triggers 814 the Update module 502 maps the logical memory blocks 306.

[0095] In one embodiment, the block module 402 (following "A" to Fig. 8B) determines 816 a total number available erase blocks 302 of the non-volatile memory device 300 containing the erase blocks 302 included in the Reserve pool. In further embodiments, the size module 404 determines 818 the number of erase blocks 302 from the available erase blocks 302 that are included in each of several logical memory blocks 306 should, as a function of the total number of available erase blocks 302 and the number of erase blocks 302 that are in the Reserve pool so that the number of erase blocks 302 for each of the logical storage blocks 306 differ by less than 25%.

[0096] In various embodiments, the mapping module 406 and / or the reserve module 504 determine 820 Erase blocks 302 from the reserve pool to be included in each of the logical storage blocks 306, or select them, and the mapping module 406 assigns 822 the selected available and reserve erase blocks 302 as a function of the specific number of erase blocks 302 included in each logical memory block 306 For example, if the number of erase blocks 302 that can be written into each logical memory block 306 are to be recorded is 62 and there are enough erase blocks 302 in the reserve pool so that a Erase block 302 from the reserve pool can be included in each logical storage block 306, then the Mapping module 61 erase blocks 302 from the remaining available erase blocks 302 that are in each logical memory block 306 and an erase block 302 from the reserve pool so that the Total number of erase blocks 302 in the logical memory block 306 is 62. The reserve module 504 sets 810 the non allocated erase blocks 302 into the reserve pool (following ´´B´´ to Fig. 8A), and the update module 502 continues continue to monitor for booster conditions.

[0097] A means for determining a total number of available erase blocks 302 of a non-volatile memory device 300 may, in various embodiments, include a block module 402, a memory management module 150, an interface 139 of the non-volatile storage device, a control unit 126 of the non-volatile data storage medium, a host Calculation device 110, a control unit (e.g., a block control unit 220, a state machine 222, a control unit 244, a device driver or the like), a processor 111, an FPGA, an ASIC, other logic Hardware and / or other executable code stored on a computer-readable storage medium, Other embodiments may include similar or equivalent means for determining a total number available erase blocks 302 of a non-volatile memory device 300.

[0098] A means for determining the number of erase blocks 302 from the available erase blocks 302 that can be converted into logical Memory blocks 306 are to be included, so that the number of erase blocks 302 in each of the logical Memory blocks 306 within a variance threshold, e.g., 25%, in various embodiments, a Size module 404, a memory management module 150, a non-volatile memory device interface 139, a Control unit 126 of the non-volatile data storage medium, a host computing device 110, a control unit (e.g., a block control unit 220, a state machine 222, a control unit 244, a device driver or the like), a processor 111, an FPGA, an ASIC, other logic hardware and / or other executable code, stored on a computer-readable storage medium. Other embodiments may include similar or equivalent means for determining the number of erase blocks 302 from the available Erase blocks 302 to be included in logical memory blocks 306, so that the number of erase blocks 302 in each of the logical memory blocks 306 is within a variance threshold.

[0099] A means for allocating the determined number of erase blocks 302 to each of the logical memory blocks 306 In various embodiments, a mapping module 406, a memory management module 150, a Interface 139 of the non-volatile memory device, a control unit 126 of the non-volatile data storage medium, a host computing device 110, a control unit (e.g., a device control unit 220, a state machine 222, a control unit 244, a device driver or the like), a processor 111, an FPGA, an ASIC, other logic hardware and / or other executable code embodied on a computer-readable Other embodiments may include similar or equivalent means for Assigning the specific number of erase blocks 302 to each of the logical memory blocks 306.

Claims

1. Facility that contains: a control unit (124) for a non-volatile memory device (120, 210, 300), the control unit including: a block component (402) configured to determine a total number of available erase blocks (302) of the non-volatile storage device (300) to determine (702); a size component (404) configured to determine the number of erase blocks from the available erase blocks that are in each of a plurality of logical blocks (306) are to be included as a function of the total number of available to determine (702) erase blocks, wherein the number of erase blocks for each of the logical blocks (306) is less than a predetermined deviation limit; a mapping component (406) configured to map the logical blocks (306) for the non-volatile memory device (300) by assigning the determined number of erase blocks to each of the logical blocks (306); and an update component (502) configured to: Tracking a refresh condition (708) associated with each logical block (306), wherein the Refresh condition of one or more of a program / erase cycle count for the erase blocks of the logical block, an age of the logical block and a count of bad bits for the erase blocks of the logical blocks; and Resolving (710) the logical grouping of erase blocks contained in the logical block in response to the Determine one of the following: the program / erase cycle count meets a predetermined program / erase cycle threshold; the age of the logical block meets a logical block age threshold; and the erase block bad bit count meets a bad bit count threshold; wherein the block component (402) is further configured to generate a new total number of available erase blocks, the candidates for inclusion in new logical blocks, in response to determining that the update component has deleted the old resolves logical blocks; wherein the size component (404) is further configured to select a new number of erase blocks from the available Erase blocks to be included in each of the new logical blocks as a function of the total number available erase blocks so that the number of erase blocks for each of the new logical blocks is deviates less than a predetermined deviation limit; and wherein the mapping component (406) is further configured to create the new logical blocks by assigning the predetermined number of erase blocks to each of the new logical blocks.

2. The device of claim 1, wherein the size component (404) is further configured to: Determining the number of erase blocks that are still usable from each of the resolved logical blocks; Storing any number of erase blocks that are still usable from each of the resolved logical blocks in a queue; and Setting for each new logical block the number of erase blocks to be included in each new logical block to the next number of erase blocks that are fetched from the queue.

3. The device of claim 1, wherein the control unit further includes a reserve component (504) configured to create a reserve pool of erase blocks, wherein the reserve pool of erase blocks contains one or more of the available erase blocks that are not contained in a logical block.

4. The device according to claim 3, wherein the reserve component (504) is further configured to control at least one of the Allocate erase blocks from the pool of erase blocks in each logical block (810) when the logical blocks are created become.

5. The device of claim 1, wherein the mapping component (406) is further configured to select each of the available Assign erase blocks to logical blocks when the logical blocks are created so that no unassigned Erase blocks of the available erase blocks exist that can be assigned to logical blocks.

6. Device according to claim 1, wherein a logical block is formed from a virtual grouping of erase blocks, wherein the mapping component (406) is further configured to map erase blocks to the logical blocks, to which the erase blocks are assigned, whereby the mapping is in response to new logical blocks are generated, updated.

7. The device of claim 1, wherein the mapping component (406) is further configured to generate erase blocks that represent the logical blocks are to be assigned as a function of an age of each of the erase blocks, where Erase blocks with a lower age are selected before erase blocks with a higher age in order to to be assigned to blocks.

8. Device according to claim 7, wherein the age of an erase block is defined as one or more of a total time for which the Erase block is activated, a time since the erase block was created, and a number of program / erase cycles, that have been executed on the erase block.

9. The device of claim 7, wherein the mapping component (406) is further configured to generate erase blocks that represent the logical blocks as a function of the age of the erase blocks, so that the average age of the erase blocks contained in the logical blocks meets a predetermined age threshold.

10. Device according to claim 1, wherein the predetermined deviation limit is selected such that the number of erase blocks for each of the logical blocks differs by at most one erase block.

11. Device according to claim 1, wherein the predetermined deviation limit contains a percentage such that the number of erase blocks for each of the logical blocks differs by less than twenty-five percent.

12. The device of claim 1, wherein the non-volatile memory device (120, 210, 300) contains a plurality of modules, each block contains several levels and each level contains several erase blocks, where each logical block Contains erase blocks selected from each level of the building block, with the erase blocks selected from each level of the building block is assigned to a logical block in a sequential order of levels.

13. Facility containing: Means for identifying a pool of erase blocks (302) of a non-volatile recording medium corresponding to a plurality of virtual blocks (306), each of the plurality of virtual blocks comprising a plurality of erase blocks which are logically combined to form a single storage unit of the non-volatile recording medium; Means for calculating the sizes for each of a plurality of virtual blocks (306), the sizes being a number of Define erasure blocks to be assigned to each of the multiple virtual blocks; and Means for allocating erase blocks from the pool of erase blocks (302) to each of the virtual blocks (306) such that Variations in size between each virtual block are less than twenty-five percent.

14. Device according to claim 13, further comprising: Means for tracking a refresh condition (708) associated with each virtual block, wherein the refresh condition of one or more of a program / erase cycle count for the erase blocks of the virtual block, an age of the virtual block and a count of bad bits for the erase blocks of the virtual blocks; and Means for resolving the logical grouping of erase blocks (710) contained in the virtual block into Response to determining one of the following: the program / erase cycle count meets a predetermined program / erase cycle threshold; the age of the virtual block meets an age threshold for virtual blocks; and the erase block bad bit count meets a bad bit count threshold.

15. Device according to claim 14, further comprising: Means for identifying a new pool of erase blocks to be assigned to new virtual blocks (306), in response to the old virtual blocks being dissolved; means for calculating sizes for each of the new virtual blocks; and Means for allocating erase blocks from the new pool of erase blocks to each of the new virtual blocks, so that variations in size between each new virtual block are less than twenty-five percent.

16. The device of claim 13, further comprising means for creating a reserve pool of erase blocks, wherein the Reserve pool of erase blocks contains one or more of the identified erase blocks that do not belong to a virtual block are assigned.

17. The device of claim 13, further comprising means for assigning erase blocks to virtual blocks as a function of the age of the erase blocks, so that the average age of the erase blocks associated with the virtual blocks meets a predetermined age threshold.

Citation Information

Patent Citations

  • Memory system and constructing method of logical block

    US9298534B2