Biased sampling method for wear leveling

The biased sampling method is used to sample and sort a subset of data units of the memory subsystem, and select candidate data units for loss leveling operations. This solves the problems of data unit management complexity and high resource consumption in the existing technology, and improves the efficiency of the memory subsystem. System operating efficiency and resource utilization.

CN112585683BActive Publication Date: 2024-09-03MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980052049.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-07-19
Filing Date
2019-07-18
Publication Date
2024-09-03
Estimated Expiration
2039-07-18

AI Technical Summary

Technical Problem

Existing memory subsystems need to process a large number of data units when performing wear-leveling operations, resulting in large computational resources and time overhead. As the capacity of the memory subsystem increases, complexity and resource consumption also increase, affecting system performance.

Method used

The bias sampling method is used to sample and sort a subset of data units of the memory component, and select initial candidate data units for wear leveling operations, thereby reducing the sampling and sorting of all or most data units and improving resource utilization.

Benefits of technology

It effectively reduces the memory and processing resource consumption of finding data units with higher or lower loss metrics, reduces system latency, reduces the impact on resources in the case of power loss, and improves the operating efficiency of the memory subsystem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112585683B_ABST
    Figure CN112585683B_ABST
Patent Text Reader

Abstract

A first data unit may be sampled from a set of data units of a memory component. The first data unit may be a subset of the set of data units. An initial data unit is determined from the first data units as a first candidate data unit based on a wear metric associated with the first data unit. The wear metric indicates a level of physical wear of the first data unit. A wear leveling operation may be performed in view of the first candidate data unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate generally to memory subsystems, and more particularly, to biased sampling methods for wear leveling in memory subsystems. Background Art

[0002] The memory subsystem may be a storage system such as a solid state drive (SSD) and may include one or more memory components that store data. The memory subsystem may include memory components such as non-volatile memory components and volatile memory components. In general, a host system may utilize a memory subsystem to store data at and retrieve data from memory components of the memory subsystem. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] The present invention will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the invention.

[0004] Figure 1 An example computing environment including a memory subsystem according to some embodiments of the invention is described.

[0005] Figure 2 An example of selecting a data unit on which a wear leveling operation is performed according to some embodiments of the present invention is described.

[0006] Figure 3 An example of sampling a data unit from a group of data units of a memory component according to some embodiments of the present invention is described.

[0007] Figure 4 is a flow chart of an example method of selecting one or more data units on which to perform wear leveling operations, according to some implementations.

[0008] Figure 5 is a block diagram of an example machine of a computer system in which embodiments of the present invention may operate. DETAILED DESCRIPTION

[0009] Aspects of the present invention relate to using sampling methods, such as biased sampling methods, for wear leveling in a memory subsystem. The memory subsystem is also referred to as a "memory device" hereinafter. An example of a memory subsystem is a storage system, such as a solid-state drive (SSD). In some embodiments, the memory subsystem is a hybrid memory / storage subsystem. In general, a host system can utilize a memory subsystem that includes one or more memory components. The host system can provide data to be stored in the storage subsystem and can request data to be retrieved from the storage subsystem.

[0010] Memory components used by a memory subsystem may have specific properties that provide challenges in the operation of the memory subsystem. For example, some memory components, such as non-volatile memory components, have limited endurance. For example, some memory components may be written, read, or erased a limited number of times before physical wear causes the memory component to fail. Due to the limited endurance of memory components, techniques have been developed for managing the wear of memory components.

[0011] One technique for managing the durability of a memory component is wear leveling. Wear leveling operations may attempt to evenly distribute physical wear across data units of a memory component. A data unit is a quantity of memory, such as a page or block of a memory component. Write counts (e.g., the number of write operations that write data to a data unit during the life of the data unit), read counts (e.g., the number of read operations that read data from a data unit during the life of the data unit), or erase operations (e.g., the number of erase operations that erase data from a data unit during the life of the data unit) may be strong indicators of wear on the data units of a memory component. Wear leveling techniques typically use a sorting process to find the data unit with the largest read or write count and the data unit with the smallest read or write count. The data of the data unit with the largest read or write count may be swapped with the data of the data unit with the smallest read or write count in an attempt to evenly distribute wear across the data units of the memory component.

[0012] In performing the sorting process, some conventional memory subsystems identify all data units for all memory components at system startup. The list of all data units of the memory components is sorted to find the data unit with the largest read or write count (e.g., the data unit with the highest count) and the data unit with the smallest read or write count (e.g., the data unit with the lowest count). Since the number of data units of the list is large, the computing resources (e.g., processing and memory resources) used to retrieve, store, and sort the list are also large. In addition, retrieving, storing, and sorting a large number of data units takes a lot of time, which significantly contributes to the latency of the memory subsystem.

[0013] While performing the sorting process, the other conventional memory subsystem maintains a list of all data units of the memory component memory subsystem and the associated read and write counts of the data units. The list is continuously updated at runtime so that at any given moment, the most recent read and write operations are reflected in the read and write counts of the list. In this conventional memory subsystem, latency is improved, but the processing and memory resources used are increased. Both conventional memory subsystems are complex, and as the capacity of the memory subsystem (e.g., the number of data units increases) increases, the computational overhead (e.g., processing and memory resources) increases.

[0014] Aspects of the present invention address the above and other deficiencies by sampling a subset of data units of a memory component. The subset of data units may be sorted in an order based on a wear metric associated with the subset of data units (e.g., a read count, a write count, or a combination of both). The wear metric indicates a level of physical wear on the subset of data units. In response to sorting the subset of data units, an initial data unit may be selected from the order. The initial data unit may be a candidate data unit for which a wear leveling operation is performed. In some implementations, the above process may be repeated to identify one or more additional candidate data units.

[0015] In some embodiments, a biased sampling process may be used to select a subset of data units. The biased sampling process increases the probability that a particular data unit of a memory component is sampled based on one or more characteristics associated with the particular data unit. Biased sampling allows data units with a greater probability of being associated with a higher (or lower) wear metric to be sampled compared to an average wear metric for the data units of the memory component, or compared to data units that do not have the one or more characteristics, and data units associated with a wear metric that is close to the average wear metric for the data units of the memory component are more likely to benefit from wear leveling operations. Biased sampling can also effectively find data units with higher or lower wear metrics without sampling or sorting all or most of the data units of the memory component.

[0016] Aspects of the present invention (e.g., sampling a subset of data units, ordering the subset of data units in sequence, and selecting candidate data units based on the order of the subset of data units) improve the operation of a memory subsystem by reducing latency and by reducing memory and processing resources used to find data units with higher and lower wear metrics. Additionally, in the event of a power loss, the operation of the memory subsystem can be further improved because the memory subsystem can restart the wear leveling techniques described herein with only a small impact on memory and processing resources compared to a conventional memory subsystem that would recreate and reorder a large list of data units.

[0017] Figure 1 An example computing environment 100 including a memory subsystem 110 is described according to some embodiments of the present invention. The memory subsystem 110 may include media such as memory components 112A-112N. The memory components 112A-112N may be volatile memory components, non-volatile memory components, or a combination thereof. In some embodiments, the memory subsystem is a storage system. An example of a storage system is an SSD. In some embodiments, the memory system 110 is a hybrid memory / storage subsystem. In general, the computing environment 100 may include a host system 120 that uses the memory subsystem 110. For example, the host system 120 may write data to the memory subsystem 110 and read data from the memory subsystem 110.

[0018] The host system 120 may be a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, or such a computing device that includes a memory and a processing device. The host system 120 may include or be coupled to the memory subsystem 110 so that the host system 120 can read data from the memory subsystem 110 or write data to the memory subsystem 110. The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. As used herein, "coupled to" generally refers to a connection between components, which may be an indirect communication connection, wired or wireless, or a direct communication connection (e.g., without an intermediate component), including connections such as electrical, optical, magnetic, etc. Examples of physical host interfaces include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, Fibre Channel, Serial Attached SCSI (SAS), etc. The physical host interface may be used to transfer data between the host system 120 and the memory subsystem 110. The host system 120 may further utilize an NVM Express (NVMe) interface to access the memory components 112A-112N when the memory subsystem 110 is coupled to the host system 120 via a PCIe interface. The physical host interface may provide an interface for passing control, address, data, and other signals between the memory subsystem 110 and the host system 120.

[0019] Memory components 112A to 112N may include any combination of different types of nonvolatile memory components and / or volatile memory components. Examples of nonvolatile memory components include "NAND" (NAND) type flash memory. Each of memory components 112A to 112N may include one or more memory cell arrays, such as single-level cells (SLC) or multi-level cells (MLC) (e.g., three-level cells (TLC) or four-level cells (QLC)). In some implementations, a particular memory component may include both an SLC portion and an MLC portion of a memory cell. Each of the memory cells may store one or more data bits (e.g., data blocks) used by the host system 120. Although nonvolatile memory components such as NAND-type flash memory are described, memory components 112A to 112N may be based on any other type of memory, such as volatile memory. In some implementations, the memory components 112A to 112N may be, but are not limited to, random access memory (RAM), read-only memory (ROM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), phase change memory (PCM), magnetic random access memory (MRAM), negative-OR (NOR) flash memory, electrically erasable programmable read-only memory (EEPROM), and cross-point arrays of non-volatile memory cells. The cross-point array of non-volatile memory may perform bit storage in conjunction with a stackable cross-grid data access array based on changes in body resistance. In addition, compared to many flash-based memories, the cross-point non-volatile memory may perform write-in-place operations, where non-volatile memory cells may be programmed without previously erasing the non-volatile memory cells. Furthermore, the memory cells of the memory components 112A to 112N may be grouped into memory pages or data blocks, which may refer to a unit of a memory component for storing data.

[0020] The memory system controller 115 (hereinafter referred to as the "controller") can communicate with the memory components 112A to 112N to perform operations such as reading data, writing data, or erasing data at the memory components 112A to 112N, as well as other such operations. The controller 115 may include hardware such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The controller 115 may be a microcontroller, a dedicated logic circuit system (e.g., a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.), or other suitable processor. The controller 115 may include a processor (processing device) 117 configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the controller 115 includes an embedded memory configured to store instructions for performing various processes, operations, logic flows, and controlling the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120. In some implementations, the local memory 119 may include storage registers that store memory pointers, fetch data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in has been illustrated as including a controller 115, but in another embodiment of the present invention, the memory subsystem 110 may not include the controller 115, but may rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0021] In general, the controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory components 112A to 112N. The controller 115 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical block addresses and physical block addresses associated with the memory components 112A to 112N. The controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory components 112A to 112N, and convert responses associated with the memory components 112A to 112N into information for the host system 120.

[0022] In some implementations, the controller 115 may include a host memory translation circuitry (not shown) that includes hardware (e.g., circuitry), software (e.g., firmware), or a combination thereof for translating host instructions received from the host interface circuitry. The host memory translation circuitry may be configured to translate a host address (e.g., a logical address) into a memory address (e.g., a physical address) of the memory components 112A to 112N. For example, the host system 120 may send one or more requests (e.g., a read request, a write request, etc.) to the controller 115. The request may include a host command and a host address of the data on which the host command is to be executed. For example, a read request may include a host read command and a host address of the data requested to be read. A write request may include a host write command and a host address of the data requested to be written. The host address may be converted by the host memory translation circuitry into a memory address, such as a physical memory address that identifies a specific unit of data of the memory components 112A to 112N.

[0023] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some implementations, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the controller 115 and decode the addresses to access the memory components 112A-112N.

[0024] The memory subsystem 110 includes a wear leveling management component 113 (e.g., circuitry, dedicated logic, programmable logic, firmware, etc.) to perform the operations described herein. In some implementations, the controller 115 includes at least a portion of the wear leveling management component 113. For example, the controller 115 may include a processor 117 (processing device) configured to execute instructions stored in a local memory 119 for performing the operations described herein. In some implementations, the wear leveling management component 113 is part of the host system 110, an application, or an operating system.

[0025] In some embodiments, the wear leveling management component 113 may sample data units from a set of data units of the memory components 112A through 112N. The wear leveling management component 113 may sort the data units in sequence based on a wear metric associated with the data units. The wear metric may indicate a level of physical wear of the data units. In response to sorting the data units in sequence, the wear leveling management component 113 may select an initial data unit from the sequence of data units as a candidate data unit for performing a wear leveling operation on it. Additional details regarding the operation of the characteristic component 113 are described below.

[0026] In general, the controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory devices 112A to 112N. The controller 115 may be responsible for other operations such as wear leveling operations, garbage collection operations, error detection and error correction code (ECC) operations, encryption operations, cache operations, and address translation between logical block addresses and physical block addresses associated with the memory components 112A to 112N. The controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory components 112A to 112N, and convert responses associated with the memory components 112A to 112N into information for the host system 120.

[0027] In some implementations, the controller 115 may include a host memory translation circuitry (not shown) that includes hardware (e.g., circuitry), software (e.g., firmware), or a combination thereof for translating host instructions received from the host interface circuitry. The host memory translation circuitry may be configured to translate a host address (e.g., a logical address) into a memory address (e.g., a physical address) of the memory components 112A to 112N. For example, the host system 120 may send one or more requests (e.g., a read request, a write request, etc.) to the controller 115. The request may include a host command and a host address of the data on which the host command is to be executed. For example, a read request may include a host read command and a host address of the data requested to be read. A write request may include a host write command and a host address of the data requested to be written. The host address may be converted by the host memory translation circuitry into a memory address, such as a physical memory address that identifies a specific unit of data of the memory components 112A to 112N.

[0028] The memory subsystem 110 may include a wear leveling management component 113 (e.g., circuitry, dedicated logic, programmable logic, firmware, etc.) to perform the operations described herein. In some implementations, the wear leveling management component 113 may sample data units from a set of data units of the memory components 112A through 112N. The wear leveling management component 113 may sort the data units in an order based on a wear metric associated with the data units. The wear metric may indicate a level of physical wear of the data units. In response to sorting the data units in the order, the wear leveling management component 113 may select an initial data unit from the data units in the order as a candidate data unit for performing a wear leveling operation on it.

[0029] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some implementations, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the controller 115 and decode the addresses to access the memory components 112A-112N.

[0030] Figure 2 An example of selecting a data unit on which a wear leveling operation is performed according to some embodiments of the present invention is described. Figure 1 Elements of the computing environment 100 are used to help illustrate Figure 2 It may be noted that the selection process 200 is provided for purposes of illustration and not limitation. In an embodiment, the selection process 200 may include some, all, none, more, or different processes. In some embodiments, the wear leveling management component 113 may perform Figure 2 One or more of the operations described.

[0031] In an embodiment, wear leveling operations may include operations that extend the service life of memory components 112A to 112N (generally referred to herein as "memory components 112"). For example, wear leveling operations may attempt to evenly distribute physical wear across a group of data units of memory components 112. A data unit may refer to an amount of physical memory of memory component 112. For example, a data unit may be a page of a cross-point array of non-volatile memory (e.g., the smallest unit of data that can be written to or read from a cross-point array) or a block of flash-based memory (e.g., the smallest unit of data that can be erased in flash-based memory). A group of data units may be data units that make up one or more memory components 112. For example, the group of data units of memory component 112 may be all or most of the pages or blocks of memory component 112.

[0032] In some implementations, the wear leveling operation may rewrite data of a data unit having a high wear metric as another data unit having a lower wear metric, or vice versa (e.g., rewrite data of a data unit having a low wear metric as another data unit having a higher wear metric). In an implementation, the wear metric may indicate the level of physical wear on the data unit. Some examples of the wear metric may include write counts, read counts, or a combination of write counts and read counts.

[0033] In some implementations, the wear metric may include a combination of write counts and read counts. For example, the wear metric may include both a write count and a read count for a particular unit of data, where the write and read counts are combined using one or more equations. The physical wear on the unit of data caused by a read operation may be less than the physical wear caused by a write operation. To combine the read count and the write count for the unit of data, the read count or the write count for the unit of data may be normalized by weighting the write count or the read count (e.g., adjusting the counts measured by different scales to a common scale). For example, the read count for the unit of data may be multiplied by a fraction (e.g., 0.8) to determine the equivalent number of write counts that the read count represents in terms of wear. The weighted read count and the write count for the unit of data may be combined (e.g., added) and may be used as a wear metric indicating physical wear on the particular unit of data.

[0034] In some embodiments, the memory component 112 may include a non-volatile memory component, such as a non-volatile memory component that includes a cross-point array of non-volatile memory cells. As described above, the cross-point array of non-volatile memory can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, compared to many flash-based memories that perform off-site write operations (e.g., data at a location to be written is erased before other data can be programmed to the location), the cross-point non-volatile memory can perform in-place write operations, where non-volatile storage units can be programmed without previously erasing the non-volatile storage units. It should be noted that the wear metric for the cross-point non-volatile memory may not include an erase count, which is due to the ability of the cross-point non-volatile memory to perform in-place write operations. For example, the erase count may include the number of times a memory operation (e.g., an erase operation that erases data of the data unit) is performed on the data unit during the life of the data unit. Aspects of the present invention may be applied to other types of non-volatile memory components or other types of memory components.

[0035] In an embodiment, the selection process 200 performs one or more processes of selecting one or more data units on which to perform a wear leveling operation. At process 200A, the wear leveling management component 113 samples a data unit 210 (e.g., a first data unit) from the set of data units 212 of the memory components 112A to 112N. The data unit 210 may be a subset of the data units included in the set of data units 212. For example, N data units (e.g., 10 data units) may be sampled from millions of data units of the set of data units 212. Each of the data units 210 is described with additional metadata. For example, "DU" represents the physical address of a particular data unit 210, and "WC" represents the wear metric associated with the particular data unit 210. For purposes of illustration and not limitation, the wear metric (e.g., "WC") in a specific example is a wear count.

[0036] In some implementations, a biased sampling process may be used to sample data units 210 from the set of data units 212 of the memory component 112. The biased sampling process increases the probability that a particular data unit in the set of data units 212 is sampled based on one or more characteristics associated with the particular data unit. In an implementation, the one or more characteristics may be attributes associated with a data unit that indicate that the data unit has a greater probability of being associated with a higher (or lower) loss metric than other data units that do not share the attribute. The one or more characteristics may further indicate that the corresponding data unit has a greater probability of benefiting from loss level operations than other data units that do not share the attribute. In other implementations, other types of sampling may be implemented, such as random sampling. With respect to Figure 3 Sampling data units from the set of data units 212 is further described.

[0037] Returning to process 200A of selection process 200, in an embodiment, data units 210 are sampled using a biased sampling process, wherein biased data units 214 of the set of data units 212 (e.g., having a particular characteristic that increases the probability of a data unit being sampled) are more likely to be sampled by the biased sampling process than other data units of the set of data units 212. The number of biased data units 214 (e.g., a pool of biased data units) is a proportionally smaller number of the entire number of data units of the set of data units 212 (as illustrated by the relative size of the biased data units 214), but are disproportionately sampled using the biased sampling process (e.g., 6 of the 10 sampled data units are from the pool of biased data units). Arrows illustrate the location from which each of the data units 210 is sampled.

[0038] At process 200B of selection process 200, wear leveling management component 113 sorts the data units 210 in order based on the wear metric associated with each of the data units 210. In a specific example, the data units 210 are sorted from the highest write count to the lowest write count (e.g., first "WC=867", then "WC=683", and so on). As described above, in other embodiments, different wear metrics may be used. It may also be noted that in other embodiments, the data units 210 may be sorted in reverse order (e.g., sorted from the lowest wear metric to the highest wear metric).

[0039] At process 200C of selection process 200, in response to sorting the data units 210 in sequence, the wear leveling management component 113 selects an initial data unit 216 from the sequence (e.g., the first data unit in the sorted order, the largest or smallest depending on how the data units 210 are sorted) as a candidate data unit for performing a wear leveling operation on. In some implementations, the first data unit (e.g., the largest wear count), the last data unit (e.g., the smallest wear count), or both the first data unit and the last data unit are selected as the candidate data unit.

[0040] In some implementations, a wear leveling operation is performed on the data unit 216 (e.g., as described below, the data unit 216 is not added to the record). For example, in response to selecting the data unit 216 from the sequence of data units 210, the wear leveling management component 113 rewrites the data of the data unit 216 to another data unit with a lower wear metric. The other data unit with a lower wear metric can be the last data unit in the sequenced data units 210, or any other data unit with a lower wear metric (and not necessarily a data unit of the data unit 210).

[0041] In other embodiments, the data units 216 are stored as entries in a record (not shown). The selection process 200 (or the like) may be repeated to identify additional candidate data units that are also stored as entries in the record. The selection process 200 may be repeated to identify additional candidate data units that have the largest wear count or the smallest wear count or both (identified from the order in which the data units are sorted). The additional candidate data units may be used to fill the entries of the record. The record may be sorted based on the wear count (similar to the sorting described above with respect to process 200B). In some embodiments, the first entry (e.g., the data unit with the largest wear count) and the last entry (e.g., the data unit with the smallest wear count) may be used to perform a wear leveling operation. For example, the data on the data unit of the first entry may be swapped with the data on the data unit of the last entry (and the mapping table that maps logical to physical addresses may be updated accordingly). In an embodiment, the second entry and the second to last entry may be used to perform a wear leveling operation. The process may be repeated for one or more pairs of entries of the record. It may be noted that one or more records may be maintained. For example, one record may record the data units sorted and selected based on write counts, and another record may record the data units sorted and selected based on read counts. In another example, one record may be maintained for the data unit with the largest wear count (identified from the order in which the data units were sorted), and another record may be maintained for the data unit with the smallest wear count.

[0042] In some implementations, process 200D may be performed. For example, process 200D may be used where selection process 200 (e.g., processes 200A, 200B, and 200C) or the like is repeated to identify additional candidate data units. At process 200D of selection process 200, wear leveling management component 113 selects one or more subsequent data units (e.g., M number of data units) from the sequence of data units 210. For example, data unit 218 may be selected from data unit 210. Data unit 218 is selected from the sequence of data units 210 and has the next wear metric after data unit 216 (e.g., has the largest wear metric).

[0043] In some implementations where the selection process 200 is repeated, the data unit 218 may be added to the next sampled data unit. For example, in a subsequent iteration of the selection process 200, NM data units (e.g., 10-3=7 data units) are sampled from the set of data units 212. The NM sampled data units (e.g., 7 data units) are combined with the M number of data units (e.g., 3 data units) saved from a previous iteration of the process 200 to form a group of data units (e.g., for a total of N=10 data units). The data units of the group are sorted in an order based on the wear metrics associated with the data units of the group. An initial data unit from the sequence of data units of the group is selected as a candidate data unit for which a wear leveling operation may be performed. Additional iterations of the process 200 may be performed in a similar manner.

[0044] Figure 3 An example of sampling a data unit from a group of data units of a memory component according to some embodiments of the present invention is described. Figure 1 Computing environment 100 and Figure 2 The elements of the selection process 200 are used to help illustrate Figure 3 In some embodiments, the wear leveling management component 113 may perform Figure 3 One or more of the operations described. The graphs 300 include 300A, 300B, and 300C, which illustrate different sampling techniques that can be used to sample data units from a set of data units 212. Each of the graphs 300 has a vertical axis (e.g., probability) that indicates increasing probabilities of sampling a data unit (in the direction of the arrow). Each of the graphs 300 has a horizontal axis (e.g., logical address) that indicates different data units in the set of data units 212 (where the entirety of the horizontal axis represents the set of data units 212, and points on the horizontal axis represent different data units in the set of data units 212). In the current description, the logical address is used to distinguish different data units in the set of data units 212 (e.g., different data units in the set of data units 212 have different logical addresses).

[0045] As mentioned above about Figure 2 As indicated in process 200A of selection process 200, the wear leveling management component 113 samples a subset of data units (e.g., data units 210) from the set of data units 212 of the memory component 112. Several sampling techniques may be used to sample data units from the set of data units 212 of the memory component 112, such as biased sampling and random sampling.

[0046] As illustrated in graphs 300A and 300B, in some implementations, a biased sampling process may be used to sample data units 210 from the set of data units 212 of the memory component 112. The biased sampling process increases the probability that a particular data unit in the set of data units 212 is sampled based on one or more characteristics associated with the particular data unit. That is, data units in the set of data units 212 that have one or more characteristics are more likely to be sampled than other data units in the set of data units 212 that do not have the one or more characteristics (e.g., data units in the set of data units 212 that are not associated with the one or more characteristics have a lower probability of being sampled than data units that have the characteristics). For example, data unit 310B in the set of data units 212 has the highest probability of being sampled, followed by data unit 310A, and then data unit 310C.

[0047] It should be noted that the biased sampling process may be an intentionally biased sampling process in which characteristics that increase the probability of a data unit being sampled are selected by an administrator, and process 200A (e.g., the sampling process) is adjusted to increase the probability of a data unit in a group of data units 212 having one or more characteristics being sampled.

[0048] In an embodiment, a characteristic may be a property associated with a data unit that indicates that the data unit has a greater probability of being associated with a higher (or lower) wear metric (compared to other data units that do not share the property) and has a greater probability of benefiting from wear leveling operations (compared to other data units that do not share the property). In some embodiments, the characteristic may include one or more of data frequency, data locality, or drift time, among others.

[0049] In an embodiment, data frequency may refer to the frequency over a period of time at which memory operations are performed on data units in a group of data units 212. Read operations, write operations, erase operations, and garbage collection operations are examples of some memory operations. For example, data units that are frequently read, written, or a combination of reads and writes over a period of time (e.g., the number of memory operations over a period of time is greater than a threshold number) may be considered "hot" data units. Hot data units may have a greater probability of being associated with a higher wear metric (compared to other data units that do not share characteristics), and may have a greater probability of benefiting from wear leveling operations (compared to other data units that do not share characteristics). For example, hot data units are more likely to be associated with a high wear metric, which makes the hot data units better candidates for wear leveling operations than data units associated with an average wear metric. "Cold" data units may be data units that are not frequently read, written, or a combination of reads and writes over a period of time (e.g., the number of memory operations over a period of time is less than another threshold number). Cold data units may have a greater probability of being associated with a lower loss metric (compared to other data units that do not share the characteristic), and may have a greater probability of benefiting from wear leveling operations (compared to other data units that do not share the characteristic) (e.g., data of a cold data unit may be overwritten with a data unit having a higher loss metric). In some embodiments, a biased sampling process may be used where hot data units (or cold data units) are more likely to be sampled than other data units in a group of data units 212 that do not share similar characteristics.

[0050] In some embodiments, data locality may refer to the location of a data unit, such as a logical address of the data unit. For example, memory operations may be performed at a particular logical address with greater (or lesser) frequency than at other logical addresses. Data units associated with a particular logical address may have a greater probability of being associated with a higher (or lower) wear metric (compared to other data units that do not share the characteristic) and have a greater probability of benefiting from wear leveling operations (compared to other data units that do not share the characteristic). In some embodiments, a biased sampling process may be used where a data unit associated with a particular logical address (e.g., data locality) is more likely to be sampled than other data units in a group of data units 212 that do not share similar characteristics.

[0051] In some embodiments, the drift time of a data unit may refer to the amount of time between the last write of the data unit and the current time. In some embodiments, the probability that a data unit contains an error increases as the drift time increases. In some embodiments, a biased sampling process may be used where a data unit associated with a higher drift time is more likely to be sampled than other data units of a group of data units 212 that do not share similar characteristics.

[0052] Graphs 300A and 330B show biased sampling based on data locality. Graph 300A shows that data unit 310A has the same probability of being sampled, data unit 310B has the same probability of being sampled, and data unit 310C has the same probability of being sampled (but the probabilities are different between groups of data units 310). As described above, data unit 310B has a higher probability of being sampled than data units 310A and 310C, and so on. Graph 300B shows biased sampling that is non-linear.

[0053] In some implementations, sampling techniques other than biased sampling may be used to select the data unit 210 from the set of data units 212. For example, graph 300C shows a random sampling technique where each data unit in the set of data units 212 has an equal likelihood of being sampled.

[0054] In some implementations, to perform biased sampling, data units may be grouped in multiple pools of data units according to one or more characteristics (e.g., data frequency, data locality, drift time, logical characteristics, or physical characteristics). Sampling from different pools of data units may be performed with different probabilities. For example, a pool of data units with a higher drift time may have a higher probability of being sampled than a pool of data units with a lower drift time. In another example, a "hot" pool of data units may have a higher probability of being sampled than a "cold" pool of data units.

[0055] Figure 4 is a flow chart of an example method for selecting a data unit for which a wear leveling operation is performed, according to an illustration of some implementations. Method 400 may be performed by processing logic, which may include hardware (e.g., a processing device, circuitry, dedicated logic, programmable logic, microcode, hardware of a device, integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some implementations, method 400 may be performed by Figure 1 The wear leveling management component 113 of the embodiment of the present invention is executed. Although shown in a particular sequence or order, the order of operations may be modified unless otherwise specified. Therefore, the illustrated implementation should be understood as an example only, and the illustrated operations may be performed in a different order, and some operations may be performed in parallel. In addition, one or more operations may be omitted in various embodiments. Therefore, not all operations are required in every implementation. Other process flows are possible. It should be noted that in other implementations, method 400 may include the same, different, additional, or fewer operations performed in the same or different order. The elements of the aforementioned figures are used to help illustrate Figure 4 .

[0056] At block 405, processing logic determines that a wear leveling operation is to be performed on memory components 112A-112N. In an embodiment, different techniques may be used to determine that a wear leveling operation is to be performed. For example, determining that a wear leveling operation is to be performed may be frequency-based or time-based.

[0057] In implementations using frequency-based techniques, one or more wear leveling operations may be performed in response to determining that a threshold number of memory operations (e.g., read operations, write operations, or a combination of read and write operations) have been performed on behalf of the host system 120. For example, in response to determining that the host system 120 has written to the memory subsystem 110 1000 times (e.g., 1000 write operations), the wear leveling management component 113 may determine that one or more wear leveling operations are to be performed based on the above indication.

[0058] In an embodiment using a time-based technique, one or more wear leveling operations may be performed in response to determining that a threshold number of memory operations have been performed over a period of time on behalf of the host system 120. For example, in response to determining that the host system 120 has written to the memory subsystem 110 at least 100 times (e.g., 100 write operations) during a 5 minute period, the wear leveling management component 113 may determine that one or more wear leveling operations are to be performed based on the above indications. It should be noted that the above examples of different techniques for determining that a wear leveling operation is to be performed are provided for illustration and not limitation, and other techniques may be implemented according to aspects of the present invention.

[0059] At box 410, processing logic samples a data unit 210 (e.g., a first data unit) from a group of data units 212 of a memory component 112. The data unit 210 is a subset of a data set of data units 212. In some embodiments, the data unit 210 is sampled from the group of data units 212 of the memory component 112 using a biased sampling process that increases the probability that a particular data unit in the group of data units 212 is sampled based on one or more characteristics associated with the particular data unit. In some embodiments, the one or more characteristics that increase the probability that a particular data unit in the group of data units is sampled include a frequency with which memory operations are performed on the particular data unit. In some embodiments, the one or more characteristics that increase the probability that a particular data unit in the group of data units is sampled include data locality of the particular data unit. Figure 2 and Figure 3 Further describes the sampling of data units.

[0060] At block 415, processing logic sorts the data units 210 in a first order based on a wear metric associated with the data units 210. The wear metric indicates a level of physical wear of the data units. The wear metric may include a write count, a read count, or a combination of a write count and a read count. For example, the wear metric may be a write count associated with the data units 210, and the data units 210 are sorted in order from the highest write count to the lowest write count.

[0061] At block 420, in response to sorting the data units 210 in the first order, the processing logic selects an initial data unit (e.g., the first data unit of the order) from the data units 210 of the first order as a first candidate data unit for performing a wear leveling operation on it. In some embodiments, the processing logic may perform a wear leveling operation on the first candidate data unit. In other embodiments, the processing logic may proceed to block 425. It may be noted that in some embodiments, the processing logic may not sort the data units 210. For example, the processing logic may scan the data units 210 and determine the first candidate data unit with the highest wear metric (or the lowest wear metric) based on the scan.

[0062] At block 425, processing logic records the first candidate data unit as an entry of a plurality of entries in a record.The record may be stored in non-volatile memory or volatile memory.

[0063] At block 430, processing logic selects one or more subsequent data units from the first sequence of data units 210. The one or more subsequent data units are selected as part of a group of data units from which the second candidate data unit is selected.

[0064] At block 435, processing logic samples second data units from the set of data units 212 of the memory component 112. In an embodiment, one or more sampling techniques may be used to sample the second data units. In one embodiment, the second data units are sampled using a biased sampling process. In one embodiment, the number of data units sampled (the second data units) may be the same as or less than the number of data units sampled in block 410.

[0065] At block 440, processing logic sorts the data units of the group in a second order based on the loss metrics associated with the data units of the group. The data units of the group include the second data unit (e.g., block 435) and one or more subsequent data units from the data units 210 of the first order (e.g., block 430).

[0066] At block 445 , in response to ordering the data units of the group in the second order, processing logic selects an initial data unit from the data units of the group in the second order as a second candidate data unit for performing a wear leveling operation on.

[0067] At block 450, processing logic records the second candidate data unit as an entry of the record. The dashed arrow may indicate that the selection of the candidate data unit may be repeated any number of times (e.g., processing logic returns to block 430). For example, processing logic may repeat the process of blocks 430 to 450 until a threshold number of candidate data units are recorded in the record.

[0068] At block 455, processing logic sorts the entries of the record based on the wear metric. For example, a record may contain a candidate data unit with a maximum wear metric with respect to an associated sorted group and also contain a candidate data unit with a minimum (e.g., lowest) wear metric with respect to an associated sorted group. The sorted record may contain both the data unit with the maximum wear metric and the data unit with the minimum wear metric. In an embodiment, the wear metric of the data units of a particular record has the same wear metric (e.g., all data units of a particular record are sampled based on write counts). In some embodiments, different records may be retained for data units sampled using different wear metrics (e.g., a record for data units with a maximum or minimum read count and another record for data units with a maximum or minimum write count). In other embodiments, a record may be retained for the data unit with the maximum wear metric and another record may be retained for the data unit with the minimum wear metric.

[0069] At block 460, processing logic performs a wear leveling operation using the entries of the record. For example, processing logic may perform a wear leveling operation using the first entry (e.g., the data unit with the largest wear metric of the sorted record) and the last entry (e.g., the data unit with the smallest wear metric of the sorted record). For example, processing logic may swap data of the candidate data unit of the first entry with the highest wear metric with data of the candidate data unit of the last entry with the lowest wear metric. In an embodiment, the wear leveling operation may be performed on any pair of entries of the record.

[0070] Figure 5 An example machine illustrating a computer system 500 within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 500 may correspond to a host system (e.g., Figure 1 ) that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1110), or may be used to execute operations of the controller (eg, execute an operating system to execute operations corresponding to Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines in a LAN, an intranet, an extranet, and / or the Internet. The computer may operate as a server or a client machine in a client-server network environment, as a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0071] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by the machine. Further, while a single machine is described, the term "machine" shall also be taken to include any collection of machines that individually or collectively execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.

[0072] The example computer system 500 includes a processing device 502, a main memory 504 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM)), etc.), a static memory 506 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 518, which communicate with each other via a bus 530.

[0073] The processing device 502 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, or the like. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 502 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, or the like. The processing device 502 is configured to execute instructions 526 for performing the operations and steps discussed herein. The computer system 500 may further include a network interface device 508 for communicating over a network 520.

[0074] The data storage system 518 may include a machine-readable storage medium 524 (also referred to as a computer-readable medium) on which is stored one or more sets of instructions 526 or software embodying any one or more of the methodologies or functions described herein. During execution of the instructions 526 by the computer system 500, the instructions 526 may also reside, in whole or in part, within the main memory 504 and / or within the processing device 502, which also constitute machine-readable storage media. The machine-readable storage medium 524, the data storage system 518, and / or the main memory 504 may correspond to Figure 1 Memory subsystem 110.

[0075] In one embodiment, instructions 526 include instructions to implement functionality corresponding to a wear leveling component (e.g., Figure 1 113 of the wear leveling management component 113 of the present invention). Although the machine-readable storage medium 524 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform any one or more of the methods of the present invention. Therefore, the term "machine-readable storage medium" should be considered to include (but not limited to) solid-state memory, optical media, and magnetic media.

[0076] Some portions of the foregoing detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is generally considered here to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities. Typically, but not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, combined, compared, and otherwise manipulated. It has proven convenient at times, primarily for common sense reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.

[0077] It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) numbers within the computer system's registers and memories into physical quantities similarly represented as within the computer system's memories or registers or other such information storage systems.

[0078] The present invention also relates to an apparatus for performing the operations herein. This apparatus may be specifically constructed for the intended purposes, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. This computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, CD-ROMs and magneto-optical disks, read-only memory (ROM), random access memory (RAM), EPROM, EEPROM, magnetic or optical cards, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.

[0079] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct more specialized equipment to perform the methods. The structures of various these systems will appear as described in the following description. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that various programming languages ​​may be used to implement the teachings of the present invention as described herein.

[0080] The present invention may be provided as a computer program product or software, which may include a machine-readable medium having instructions stored thereon, which instructions may be used to program a computer system (or other electronic device) to perform a process according to the present invention. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

[0081] In the foregoing specification, embodiments of the present invention have been described with reference to specific example embodiments of the invention. It will be apparent that various modifications may be made thereto without departing from the broader spirit and scope of embodiments of the invention as set forth in the appended claims. Accordingly, the description and drawings are to be regarded in an illustrative rather than a restrictive sense.

[0082] The words "example" or "exemplary" are used herein to mean used as examples, examples or illustrations. Any aspect or design described herein as "example" or "exemplary" need not be interpreted as being more preferred or more advantageous than other aspects or designs. Instead, the use of the words "example" or "exemplary" is intended to present concepts in a specific way. As used in this application, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clearly seen from the context, "X includes A or B" is intended to mean any of the natural inclusive arrangements. That is, if X includes A; X includes B; or X includes both A and B, then "X includes A or B" is satisfied under any of the aforementioned examples. In addition, the article "one" used in this application and the appended claims can generally be interpreted as meaning "one or more", unless otherwise specified in other ways or clearly seen from the context to point to a singular form. In addition, unless so described, the term "implementation" or "one implementation" or "embodiment" or "one embodiment" is intended to mean the same implementation or embodiment throughout the text. The terms “first”, “second”, “third”, “fourth” as used herein are intended to be labels for distinguishing among different elements, and do not necessarily have ordinal meanings according to their numerical names.

Claims

1. A system comprising: Memory device; and a processing device coupled to the memory device, the processing device being configured to: sampling a first data unit from a set of data units of the memory device, wherein the first data unit comprises a subset of the set of data units; sorting the first data units sampled from the set of data units in a first order based on a loss metric associated with the first data unit, wherein the loss metric indicates a level of physical loss of the first data unit; In response to ranking the first data units, determining an initial data unit from the first data units as a first candidate data unit based on the loss metric associated with the first data units; and A wear leveling operation is performed with respect to the first candidate data unit.

2. The system of claim 1 , wherein the first data unit is sampled from the set of data units of the memory device using a biased sampling process, the biased sampling process increasing the probability that a particular data unit in the set of data units is sampled based on one or more characteristics associated with the particular data unit.

3. The system of claim 2, wherein the one or more characteristics that increase the probability that the particular data unit in the set of data units is sampled include a frequency with which memory operations are performed on the particular data unit. 4 . The system of claim 2 , wherein the one or more characteristics that increase the probability that the particular data unit in the set of data units is sampled include data locality of the particular data unit.

5. The system according to claim 1, wherein the processing device is further configured to: One or more subsequent data units are selected from the first data units of the first sequence, wherein the one or more subsequent data units are selected to be part of a group of data units from which a second candidate data unit is selected.

6. The system according to claim 5, wherein the processing device is further configured to: sampling a second data unit from the set of data units of the memory device; sorting the data units of the group in a second order based on the loss metric associated with the data units of the group, wherein the data units of the group include the second data unit and the one or more subsequent data units of the first data unit from the first order; and In response to sorting the data units of the group in the second order, an initial data unit is selected from the data units of the group in the second order as a second candidate data unit for performing the wear leveling operation thereon.

7. The system of claim 1 , wherein the first candidate data unit has a highest wear metric of the first data unit, and wherein to perform the wear leveling operation in view of the first candidate data unit, the processing device is further configured to: Data of the first candidate data unit having the highest wear metric is rewritten to another data unit having a lower wear metric than the first candidate data unit.

8. The system according to claim 1, wherein the processing device is further configured to: recording the first candidate data unit as an entry in a plurality of entries in a record; sorting the plurality of entries of the log based on the loss metric; and The wear leveling operation is performed using a first entry and a last entry of the ordered entries of the record.

9. The system according to claim 1, wherein the processing device is further configured to: Based on a number of memory operations performed on behalf of the host system, it is determined that the wear leveling operation is to be performed.

10. The system of claim 1, wherein the wear metric comprises a write count associated with the first unit of data. 11 . The system of claim 10 , wherein the first data units are sorted in a first order from a highest write count to a lowest write count, and wherein the initial data unit selected as the first candidate data unit has the highest write count.

12. The system of claim 10, wherein the wear metric comprises a combination of the write count and the read count associated with the first unit of data.

13. A method comprising: sampling, by a processing device, a first data unit from a set of data units of a memory device, wherein the first data unit comprises a subset of the set of data units; sorting the first data units sampled from the set of data units in a first order based on a loss metric associated with the first data unit, wherein the loss metric indicates a level of physical loss of the first data unit; In response to ranking the first data units, determining an initial data unit as a first candidate data unit from the first data units based on the loss metric associated with the first data units; and A wear leveling operation is performed with respect to the first candidate data unit.

14. The method of claim 13, wherein the first data unit is sampled from the set of data units of the memory device using a biased sampling process, the biased sampling process increasing the probability that a particular data unit in the set of data units is sampled based on one or more characteristics associated with the particular data unit.

15. The method according to claim 13, further comprising: One or more subsequent data units are selected from the first data units of the first sequence, wherein the one or more subsequent data units are selected to be part of a group of data units from which a second candidate data unit is selected.

16. The method according to claim 15, further comprising: sampling a second data unit from the set of data units of the memory device; sorting the data units of the group in a second order based on the loss metric associated with the data units of the group, wherein the data units of the group include the second data unit and the one or more subsequent data units of the first data unit from the first order; and In response to sorting the data units of the group in the second order, an initial data unit is selected from the data units of the group in the second order as a second candidate data unit for performing the wear leveling operation thereon.

17. A non-transitory computer-readable medium comprising instructions that, in response to being executed by a processing device, cause the processing device to perform operations comprising: sampling, by the processing device, a first data unit from a group of data units of a memory device using a biased sampling process, the biased sampling process increasing a probability of sampling a particular data unit of the group of data units with a higher loss metric, wherein the loss metric indicates a level of physical loss of the first data unit; sorting the first data units sampled from the set of data units in a first order based on the loss metric associated with the first data units; and In response to sorting the first data units in the first order, an initial data unit is selected from the first data units in the first order as a first candidate data unit for performing a wear leveling operation on.

18. The non-transitory computer-readable medium of claim 17, the operations further comprising: One or more subsequent data units are selected from the first data units of the first sequence, wherein the one or more subsequent data units are selected to be part of a group of data units from which a second candidate data unit is selected.

19. The non-transitory computer-readable medium of claim 18, the operations further comprising: sampling a second data unit from the set of data units of the memory device; sorting the data units of the group in a second order based on the loss metric associated with the data units of the group, wherein the data units of the group include the second data unit and the one or more subsequent data units of the first data unit from the first order; and In response to sorting the data units of the group in the second order, an initial data unit is selected from the data units of the group in the second order as a second candidate data unit for performing the wear leveling operation thereon.