Memory management method and storage device

By calculating grouping evaluation parameters to group physical cells into target virtual cells, the performance degradation caused by uneven wear in storage devices is solved, achieving more efficient memory management and operation synchronization.

CN123137571APending Publication Date: 2026-11-20HEFEI KAIMENG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611255075.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Uneven wear of physical blocks in storage devices leads to differences in the operation speed of virtual blocks, affecting overall performance, and existing technologies have failed to effectively solve this problem.

Method used

By calculating grouping evaluation parameters based on the initial write time, initial erase time, and real-time wear assessment information of the physical cells, the physical cells are grouped into target virtual cells, so that the physical cells in the same virtual cell meet the preset conditions, thereby achieving uniform wear management.

Benefits of technology

It effectively improves the performance of storage devices, reduces the scheduling difficulty of memory control circuits, and improves management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137571A_ABST
    Figure CN123137571A_ABST
Patent Text Reader

Abstract

The present application provides a memory management method and a memory device. The method includes: obtaining a first grouping evaluation parameter corresponding to a first physical unit in a memory module according to initial write time consumption information, initial erase time consumption information and real-time wear-out evaluation information corresponding to the first physical unit; and grouping the first physical unit into a first target virtual unit according to the first grouping evaluation parameter, wherein the first target virtual unit includes a plurality of second physical units, and a plurality of second grouping evaluation parameters respectively corresponding to the second physical units satisfy a predetermined condition. Thus, the performance of the memory device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage technology, and more particularly to a memory management method and a storage device. Background Technology

[0002] Most memory modules within storage devices generally support multi-chip parallel access, and the basic management unit used in most multi-chip parallel access is the virtual block. For example, a virtual block can consist of physical blocks distributed across multiple chips in the memory module. By operating this virtual block, it is possible to simultaneously operate multiple physical blocks distributed across multiple chips. This improves the performance of the storage device.

[0003] However, a common problem in practice is that after a period of use, uneven wear occurs on the physical blocks within the memory module. This uneven wear can lead to significant differences in the operating speed of multiple physical blocks belonging to the same virtual block. In some cases, even if the vast majority of physical blocks in a virtual block have completed their assigned tasks, as long as at least one physical block in that virtual block has not yet completed its task, the remaining physical blocks in that virtual block that have already completed their tasks cannot be assigned new tasks. This, in turn, causes a decrease in the overall performance of the storage device. Summary of the Invention

[0004] The present invention provides a memory management method and a memory device, which can improve the above-mentioned problems and thereby improve the performance of the memory device.

[0005] This invention provides a memory management method for a storage device. The storage device includes a memory module. The memory management method includes: obtaining first grouping evaluation parameters corresponding to the first physical unit based on initial write time information, initial erase time information, and real-time wear assessment information corresponding to the first physical unit in the memory module; and grouping the first physical unit into a first target virtual unit according to the first grouping evaluation parameters, wherein the first target virtual unit includes a plurality of second physical units, and the plurality of second grouping evaluation parameters corresponding to the plurality of second physical units respectively meet preset conditions.

[0006] This invention also provides a storage device, which includes a connection interface, a memory module, and a memory controller. The connection interface is used to connect to a host system. The memory controller is connected to the connection interface and the memory module. The memory controller is used to execute a memory management method.

[0007] Based on the above, after obtaining the first grouping evaluation parameters corresponding to the first physical unit according to the initial write time information, initial erase time information, and real-time wear assessment information corresponding to the first physical unit, the first physical unit can be grouped into a first target virtual unit according to the first grouping evaluation parameters. In particular, the first target virtual unit includes a plurality of second physical units, and the plurality of second grouping evaluation parameters corresponding to these second physical units meet preset conditions. By grouping physical units using grouping evaluation parameters related to real-time wear assessment information, and controlling the grouping evaluation parameters corresponding to physical units belonging to the same virtual unit to meet preset conditions, the performance degradation of storage devices caused by uneven wear of physical units (e.g., physical blocks) can be effectively improved, and the performance of storage devices can be enhanced. Attached Figure Description

[0008] Figure 1 This is a schematic diagram of a data storage system according to an embodiment of the present invention;

[0009] Figure 2 This is a schematic diagram of a memory controller according to an embodiment of the present invention;

[0010] Figure 3 This is a schematic diagram of a memory management module according to an embodiment of the present invention;

[0011] Figure 4 This is a schematic diagram of a memory control circuit and a memory module according to an embodiment of the present invention;

[0012] Figure 5 This is a schematic diagram illustrating the grouping of multiple physical units into a first target virtual unit according to an embodiment of the present invention;

[0013] Figure 6 This is a schematic diagram illustrating, according to an embodiment of the present invention, the sorting and grouping of physical units in each memory chip based on the grouping evaluation parameters corresponding to each physical unit;

[0014] Figure 7 This is a schematic diagram illustrating the association of the first target virtual unit and the extraction of the second target virtual unit according to an embodiment of the present invention;

[0015] Figure 8 This is a flowchart illustrating a memory management method according to an embodiment of the present invention;

[0016] Figure 9 This is a flowchart illustrating a memory management method according to an embodiment of the present invention. Detailed Implementation

[0017] Reference will now be made in detail to exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same element references are used in the drawings and description to denote the same or similar parts.

[0018] Figure 1 This is a schematic diagram of a data storage system according to an embodiment of the present invention. Please refer to... Figure 1 The data storage system 10 includes a host system 11 and a storage device 12. The storage device 12 can be connected to the host system 11 and can be used to store data from the host system 11. For example, the host system 11 can be a smartphone, tablet computer, laptop computer, desktop computer, industrial computer, game console, server, or computer system installed in a specific carrier (such as a vehicle, aircraft, or ship), and the type of host system 11 is not limited to these. In addition, the storage device 12 may include a solid-state drive, USB flash drive, memory card, or other types of non-volatile storage device.

[0019] The host system 11 may include a processor 111 and a buffer memory 112. The processor 111 is used to handle all or part of the operation of the host system 11. For example, the processor 111 may include a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSPs), programmable controllers, application-specific integrated circuits (ASICs), programmable logic devices (PLDs), or other similar devices or combinations thereof.

[0020] Buffer memory 112 is connected to processor 111 and used to cache data. For example, buffer memory 112 may include static random access memory (SRAM), dynamic random access memory (DRAM), or other types of volatile memory. Buffer memory 112 can be used as the main memory of host system 11. In addition, host system 11 may also include various hardware circuit modules such as power management circuitry, mouse, keyboard, screen, and / or wired / wireless communication circuitry, which will not be described in detail here.

[0021] Storage device 12 includes a connection interface 121, a memory module 122, and a memory controller 123. The connection interface 121 is used to connect storage device 12 to host system 11. For example, connection interface 121 may support embedded multi-media card (eMMC), universal flash storage (UFS), peripheral component interconnect express (PCI Express), non-volatile memory express (NVM express), Serial Advanced Technology Attachment (SATA), universal serial bus (USB), or other types of connection interface standards. Therefore, storage device 12 can communicate with host system 11 (e.g., exchange signals, instructions, and / or data) via connection interface 121.

[0022] Memory module 122 is used to store data. For example, memory module 122 may include one or more rewritable non-volatile memory modules. Each rewritable non-volatile memory module may include one or more memory cell arrays. The memory cells in the memory cell array store data in the form of voltage (also known as threshold voltage). For example, memory module 122 may include a Single Level Cell (SLC) NAND flash memory module, a Multi Level Cell (MLC) NAND flash memory module, a Triple Level Cell (TLC) NAND flash memory module, a Quad Level Cell (QLC) NAND flash memory module, and / or other memory modules with the same or similar characteristics.

[0023] Memory controller 123 is connected to connection interface 121 and memory module 122. Memory controller 123 can be considered the control core of storage device 12 and is used to control storage device 12. For example, memory controller 123 can be used to control or manage the overall or partial operation of storage device 12. For example, memory controller 123 may include a CPU, or other programmable general-purpose or special-purpose microprocessor, DSP, programmable controller, ASIC, PLD, or other similar device or a combination of these devices. In one embodiment, memory controller 123 may include a flash memory controller.

[0024] The memory controller 123 can send instruction sequences to the memory module 122 to access the memory module 122. For example, the memory controller 123 can send a write instruction sequence to the memory module 122 to instruct the memory module 122 to store data in a specific memory cell. For example, the memory controller 123 can send a read instruction sequence to the memory module 122 to instruct the memory module 122 to read data from a specific memory cell. For example, the memory controller 123 can send an erase instruction sequence to the memory module 122 to instruct the memory module 122 to erase data stored in a specific memory cell. Furthermore, the memory controller 123 can also send other types of instruction sequences to the memory module 122 to instruct the memory module 122 to perform other types of operations; this invention is not limited thereto. The memory module 122 can receive instruction sequences from the memory controller 123 and access its internal memory cells according to these instruction sequences.

[0025] Figure 2 This is a schematic diagram of a memory controller according to an embodiment of the present invention. Please refer to... Figure 1 and Figure 2 The memory controller 123 includes a host interface 21, a memory interface 22, and a memory control circuit 23. The host interface 21 is used to connect to the host system 11 via the connection interface 121 to communicate with the host system 11. The memory interface 22 is used to connect to the memory module 122 to access the memory module 122.

[0026] Memory control circuitry 23 is connected to host interface 21 and memory interface 22. Memory control circuitry 23 can be used to control or manage the overall or partial operation of memory controller 123. For example, memory control circuitry 23 can communicate with host system 11 via host interface 21 and access memory module 122 via memory interface 22. For example, memory control circuitry 23 may include control circuitry such as embedded controllers or microcontrollers. In the following embodiments, the description of memory control circuitry 23 is equivalent to the description of memory controller 123.

[0027] In one embodiment, the memory controller 123 may further include a buffer memory 24. The buffer memory 24 is connected to the memory control circuitry 23 and is used to cache data. For example, the buffer memory 24 may be used to cache instructions from the host system 11, data from the host system 11, and / or data from the memory module 122. The buffer memory 24 may include SRAM, DRAM, or other types of volatile memory.

[0028] In one embodiment, the memory controller 123 may further include a decoding circuit 25. The decoding circuit 25 is connected to the memory control circuit 23 and is used to encode and decode data to ensure data integrity. For example, the decoding circuit 25 may support various encoding / decoding algorithms such as Low Density Parity Check code (LDPC code), BCH code, Reed-solomon code (RS code), and Exclusive OR (XOR) code. In one embodiment, the memory controller 123 may also include other types of circuit modules (e.g., power management circuits), which are not limited by the present invention.

[0029] Figure 3 This is a schematic diagram of a memory management module according to an embodiment of the present invention. Please refer to... Figures 1 to 3 The memory module 122 includes a plurality of second entity units 301(1) to 301(C). Each entity unit includes a plurality of storage units for non-volatile storage of data.

[0030] In one embodiment, a physical unit may include at least one physical programming unit. For example, a physical programming unit is the smallest unit of synchronously written data in memory module 122. For example, when performing a programming operation (also called a write operation) on a physical programming unit to write data to the physical programming unit, multiple memory cells in the physical programming unit can be synchronously programmed to store the corresponding data. For example, when programming a physical programming unit, a write voltage can be applied to the physical programming unit to change the threshold voltage of at least some of the memory cells in the physical programming unit. For example, the threshold voltage of a memory cell may reflect the bit data stored in the memory cell. In one embodiment, a physical programming unit is also referred to as a physical page. For example, the storage capacity of a physical programming unit may be 16 kilobytes, and the invention is not limited thereto.

[0031] In one embodiment, an entity programming unit includes multiple entity sectors. For example, the data capacity of an entity sector may be 512 bytes (B), and an entity programming unit may include 32 entity sectors. However, the data capacity of an entity sector and / or the total number of entity sectors included in an entity programming unit can be adjusted according to practical needs, and the present invention is not limited thereto.

[0032] In one embodiment, a physical erase unit may include multiple physical programming units. For example, the multiple physical programming units in a physical erase unit may be erased simultaneously. For example, when performing an erase operation on a physical erase unit, an erase voltage may be applied to the multiple physical programming units in this physical erase unit to change the threshold voltage of at least a portion of the memory cells in these physical programming units. By performing an erase operation on a physical erase unit, the data stored in this physical erase unit can be erased. In one embodiment, a physical erase unit is also referred to as a physical block.

[0033] In one embodiment, an entity unit may include at least one entity erase unit. In another embodiment, if an entity unit includes multiple entity erase units, this entity unit is also referred to as a virtual unit (or virtual block). Multiple entity erase units contained in the same virtual unit (or virtual block) can operate synchronously.

[0034] In one embodiment, the memory control circuit 23 can logically associate entity units 301(1)-301(A) and 301(A+1)-301(B) with the data area 31 and the idle area 32, respectively. Entity units 301(1)-301(A) in the data area 31 all store data (also called user data) from the host system 11. For example, any entity unit in the data area 31 can store valid data and / or invalid data. In addition, entity units 301(A+1)-301(B) in the idle area 32 do not store any data (e.g., valid data).

[0035] In one embodiment, if a physical unit does not store valid data, this physical unit can be associated with the free area 32. Furthermore, physical units in the free area 32 can be erased to clear the data within them. In one embodiment, physical units in the free area 32 are also referred to as idle physical units. In one embodiment, the free area 32 is also referred to as the free pool.

[0036] In one embodiment, when data needs to be stored, the memory control circuit 23 can select one or more second physical units from the idle area 32 and instruct the memory module 122 to store the data into the selected physical unit. After the data is stored into this physical unit, this physical unit can be associated with the data area 31. In other words, one or more second physical units can be used alternately between the data area 31 and the idle area 32.

[0037] In one embodiment, the memory control circuit 23 may be configured with a plurality of logic units 302(1)-302(C) to map entity units (i.e., entity units 301(1)-301(A)) in the data area 31. For example, a logic unit may correspond to a logical block address (LBA) or other logical management unit. A logic unit may be mapped to one or more second entity units.

[0038] In one embodiment, if a physical unit is currently mapped by any logical unit, the memory control circuit 23 can determine that the data currently stored in this physical unit includes valid data. Conversely, if a physical unit is not currently mapped by any logical unit, the memory control circuit 23 can determine that this physical unit does not currently store any valid data.

[0039] In one embodiment, the memory control circuit 23 may record the mapping relationship between logic units and physical units in at least one management table (also known as a logic-to-physical mapping table). In one embodiment, the memory control circuit 23 may instruct the memory module 122 to perform operations such as data reading, writing, or erasing based on the information (also known as mapping information) in this management table (i.e., the logic-to-physical mapping table).

[0040] In one embodiment, memory module 122 includes a plurality of memory chips (also referred to as memory dies). For example, the total number of memory chips in memory module 122 may be 2, 4, 8, or other numbers, and the present invention is not limited thereto. These memory chips may operate individually or in parallel.

[0041] Figure 4 This is a schematic diagram of a memory control circuit and a memory module according to an embodiment of the present invention. Please refer to... Figure 4 In one embodiment, the memory module 122 may include n memory chips 41(1)-41(n). The memory control circuit 23 can access (also known as access) the memory chips 41(1)-41(n) through multiple channels (also known as memory channels). For example, the memory control circuit 23 can send operation instructions (also known as operation instruction sequences) to the memory chips 41(1)-41(n) through these channels to instruct the memory chips 41(1)-41(n) to perform operations such as write, read or erase.

[0042] In one embodiment, each memory chip may contain multiple physical cells. In one embodiment, the memory control circuit 23 may configure multiple virtual cells (e.g., multiple virtual blocks) to synchronously operate multiple physical cells distributed across different memory chips. For example, assuming a virtual cell contains n physical cells located on memory chips 41(1)-41(n) respectively (or a virtual cell is composed of these n physical cells), the memory control circuit 23 can synchronously operate these n physical cells (e.g., synchronously instruct these n physical cells to perform data writing, data reading, or erasure) by operating this virtual cell.

[0043] In one embodiment, the memory control circuit 23 can obtain write time information (also known as initial write time information), erase time information (also known as initial erase time information), and wear assessment information (also known as real-time wear assessment information) corresponding to a specific physical unit (also known as a first physical unit) in the memory module 122. For example, the first physical unit may include Figure 3 One of the physical units 301(1)-301(B). In addition, the first physical unit may be located in one of the memory chips 41(1)-41(n).

[0044] In one embodiment, the card activation stage of the storage device 12 refers to the stage in which the memory control circuit 23 performs initialization detection on multiple physical units in the memory module 122 before the storage device 12 enters the normal use state (also known as the use stage) to obtain the initial operating characteristics of each of these physical units. For example, in the card activation stage of the storage device 12, the memory control circuit 23 may perform an erase-write-read (EWR) operation on multiple physical units in the memory module 122 to obtain the initial operating characteristics of each physical unit. In one embodiment, after completing the relevant operations in the card activation stage, the storage device 12 may enter the use stage.

[0045] In one embodiment, the initial write time information corresponding to the first physical unit can reflect the write time measured by the first physical unit during the card activation phase. For example, during the card activation phase of the storage device 12, the memory control circuit 23 can perform at least one write operation on the first physical unit and record the (average) time (i.e., write time) required for the first physical unit to complete each write operation. The memory control circuit 23 can obtain the initial write time information corresponding to the first physical unit based on this write time. In one embodiment, this initial write time information can reflect the (initial) write time of the first physical unit before it is used (i.e., in an unused state).

[0046] In one embodiment, the initial write time information corresponding to the first physical unit can reflect the initial write speed of the first physical unit measured during the card activation phase. For example, the write time reflected by this initial write time information can be negatively correlated with the initial write speed of the first physical unit. That is, the longer the write time measured by the first physical unit during the card activation phase, the slower the initial write speed of the first physical unit. Conversely, the shorter the write time measured by the first physical unit during the card activation phase, the faster the initial write speed of the first physical unit. In one embodiment, this initial write time information reflects the initial write speed of the first physical unit before it is used (i.e., in an unused state).

[0047] In one embodiment, the initial erase time information corresponding to the first physical unit can reflect the erase time measured during the card opening phase of the first physical unit. For example, during the card opening phase of the storage device 12, the memory control circuit 23 can perform at least one erase operation on the first physical unit and record the (average) time (i.e., erase time) required for the first physical unit to complete each erase operation. The memory control circuit 23 can obtain the initial erase time information corresponding to the first physical unit based on this erase time.

[0048] In one embodiment, the initial erase time information corresponding to the first physical unit can reflect the initial erase speed of the first physical unit measured during the card activation phase. For example, the erase time reflected by this initial erase time information can be negatively correlated with the initial erase speed of the first physical unit. That is, the longer the erase time measured by the first physical unit during the card activation phase, the slower the initial erase speed of the first physical unit. Conversely, the shorter the erase time measured by the first physical unit during the card activation phase, the faster the initial erase speed of the first physical unit. In one embodiment, this initial erase time information reflects the initial erase speed of the first physical unit before it is used (i.e., in an unused state).

[0049] In one embodiment, after leaving the card activation stage and entering the usage stage, the memory control circuit 23 can monitor and update the wear level (also referred to as real-time wear level) of the first physical unit in real time. This real-time wear level increases accordingly with the usage frequency, usage time, and / or number of uses of the first physical unit. During the usage stage of the storage device 12, the memory control circuit 23 can update the real-time wear assessment information corresponding to the first physical unit based on this real-time wear level. The real-time wear assessment information corresponding to the first physical unit reflects the real-time wear level updated by the first physical unit during the usage stage.

[0050] In one embodiment, during the usage phase of the storage device 12, the memory control circuit 23 can update the real-time wear assessment information corresponding to the first physical cell based on the program / erase cycle (P / E cycle) corresponding to the first physical cell. The program / erase cycle corresponding to the first physical cell reflects the number of write and / or erase operations performed on the first physical cell. As the first physical cell is subjected to more and more write and / or erase operations during the usage phase, the program / erase cycle of the first physical cell can increase accordingly, thereby causing a corresponding increase in the real-time wear degree of the first physical cell.

[0051] In one embodiment, during the usage phase of the storage device 12, the memory control circuit 23 may further update the real-time wear assessment information corresponding to the first physical unit based on the number of reads and / or the bit error rate of the first physical unit. The number of reads corresponding to the first physical unit reflects the number of times the first physical unit has been read. The bit error rate corresponding to the first physical unit reflects the error rate of the data stored in (or read from) the first physical unit. In one embodiment, during the usage phase of the storage device 12, the memory control circuit 23 may further update the real-time wear assessment information corresponding to the first physical unit based on any information that can be used to reflect or assess the real-time wear level of the first physical unit during the usage phase.

[0052] In one embodiment, after the activation phase, during the usage phase, uneven wear may occur in multiple physical units within the memory module 122. This uneven wear may cause differences in the operating speed of the multiple physical units within the memory module 122. For example, suppose that initially, the individual operating speeds of the multiple physical units in the memory module 122 were almost identical. After the activation phase, during the usage phase, the wear degree of some more frequently used physical units in the memory module 122 may gradually exceed that of other less frequently used physical units in the memory module 122. Therefore, upon entering the usage phase, due to the uneven wear, the real-time operating speed of some physical units with relatively higher wear in the memory module 122 may decrease significantly, while the real-time operating speed of physical units with relatively lower wear in the memory module 122 may only decrease slightly or remain almost unchanged.

[0053] In one embodiment, if multiple physical units with uneven wear levels in the memory module 122 are directly grouped into the same virtual unit without considering the aforementioned uneven wear conditions, then during subsequent operations on this virtual unit, some physical units with relatively lower wear levels may complete their assigned tasks first (because physical units with relatively lower wear levels can have relatively faster operation speeds), while other physical units with relatively higher wear levels may take longer to complete their assigned tasks. This results in the overall operation speed of the virtual unit being slowed down by a portion of the physical units within the virtual unit, thereby increasing the scheduling difficulty of the virtual unit by the memory control circuit 23 and reducing the management efficiency of the virtual unit by the memory control circuit 23.

[0054] In one embodiment, after obtaining the initial write time information, initial erase time information, and real-time wear assessment information corresponding to the first physical cell, the memory control circuit 23 can obtain the grouping assessment parameters (also referred to as the first grouping assessment parameters) corresponding to the first physical cell based on these initial write time information, initial erase time information, and real-time wear assessment information. Then, the memory control circuit 23 can group the first physical cell to a certain virtual cell (also referred to as the first target virtual cell) according to the first grouping assessment parameters.

[0055] In one embodiment, the first grouping evaluation parameter may reflect the real-time operating speed of the first entity unit. In another embodiment, the real-time operating speed of the first entity unit may be negatively correlated with the real-time operating time of the first entity unit.

[0056] In one embodiment, the real-time wear assessment information corresponding to the first physical unit can be used to compensate for the initial write time and initial erase time information corresponding to the first physical unit at at least one point in time, so as to update the first group assessment parameters. In other words, in one embodiment, during the use phase of the storage device 12, the memory control circuit 23 can dynamically compensate for the initial write time and initial erase time corresponding to the first physical unit based on the real-time wear assessment information corresponding to the first physical unit, so as to update the first group assessment parameters in real time.

[0057] In one embodiment, the initial write time and initial erase time corresponding to the first physical unit both have a linear relationship with the first group evaluation parameters. In another embodiment, the real-time wear evaluation information corresponding to the first physical unit has a power function relationship with the first group evaluation parameters. This amplifies the influence of the real-time wear evaluation information on the first group evaluation parameters. In one embodiment, the relationships between the initial write time, initial erase time, and real-time wear evaluation information corresponding to the first physical unit and the first group evaluation parameters can all be adjusted according to practical needs.

[0058] In one embodiment, the first grouping evaluation parameter may be positively correlated with the real-time operation time of the first entity unit. For example, a larger first grouping evaluation parameter indicates a longer real-time operation time for the first entity unit, and thus a slower real-time operation speed. Conversely, a smaller first grouping evaluation parameter indicates a shorter real-time operation time for the first entity unit, and thus a faster real-time operation speed.

[0059] In one embodiment, the memory control circuit 23 may obtain the first grouping evaluation parameters according to the following formula (1).

[0060]

[0061] In formula (1), EV represents the first group evaluation parameter, T(P) represents the initial write time information corresponding to the first physical unit, T(E) represents the initial erase time information corresponding to the first physical unit, PE represents the real-time wear evaluation information corresponding to the first physical unit, and a and b represent operation coefficients. For example, in one embodiment, assuming that the write time measured by the first physical unit during the card opening stage is "1000 μs", the erase time measured by the first physical unit during the card opening stage is "5000 μs", the real-time wear evaluation information corresponding to the first physical unit is "100", a is "0.01" and b is "0.5", then the memory control circuit 23 can obtain the first group evaluation parameter as "66000 μs" according to formula (1). It should be noted that formula (1) (including coefficients a and b) can be adjusted according to practical needs, and the present invention does not impose any restrictions.

[0062] In one embodiment, in formula (1) This can be considered as a compensation parameter (or compensation function) for the initial write time and initial erase time corresponding to the first physical unit. By using this compensation parameter (or compensation function) during the use phase of the storage device 12 to dynamically compensate for the initial write time and initial erase time corresponding to the first physical unit, the memory control circuit 23 can quickly obtain (e.g., predict or evaluate) the real-time operating speed of the first physical unit without repeatedly detecting the operation time of the first physical unit. Therefore, the efficiency of subsequently grouping the first physical unit into a suitable virtual unit (i.e., the first target virtual unit) can be effectively improved.

[0063] In one embodiment, grouping the first physical unit to the first target virtual unit means logically grouping the first physical unit to the first target virtual unit without changing its physical location. In another embodiment, grouping the first physical unit to the first target virtual unit may include mapping the first physical unit to the first target virtual unit. After grouping the first physical unit to the first target virtual unit, the first physical unit can be operated synchronously with the operation of the memory control circuit 23 on this virtual unit.

[0064] In one embodiment, grouping the first entity units to the first target virtual unit according to the first grouping evaluation parameters can be regarded as grouping multiple entity units (also called second entity units) whose grouping evaluation parameters (also called second grouping evaluation parameters) meet preset conditions to the same virtual unit (i.e., the first target virtual unit). For example, these second entity units may include multiple entity units with the same, similar, or falling within a speed range (also called the target speed range) in real-time operation. Subsequently, when operating the first target virtual unit, since each entity unit (i.e., the second entity unit) in the first target virtual unit has the same or similar operation speed (i.e., real-time operation speed), all entity units (i.e., the second entity units) in the first target virtual unit may synchronously or sequentially complete the assigned task within a very close time interval. Thus, the scheduling difficulty of the virtual units by the memory control circuit 23 can be effectively reduced and the management efficiency of the virtual units by the memory control circuit 23 can be increased.

[0065] In one embodiment, each second entity unit corresponds to a grouping evaluation parameter (i.e., a second grouping evaluation parameter). In another embodiment, these second grouping evaluation parameters are all located within a specific numerical interval (also called a target numerical interval) among multiple numerical intervals (also called candidate numerical intervals). That is, in one embodiment, the operation of grouping the first entity units to the first target virtual unit according to the first grouping evaluation parameter may include grouping multiple entity units (i.e., second entity units) whose grouping evaluation parameters (i.e., second grouping evaluation parameters) are located within the target numerical interval to the same virtual unit (i.e., the first target virtual unit). This achieves the effect and / or management requirements of unifying the real-time operation speed of the various entity units (i.e., second entity units) in the first target virtual unit as much as possible.

[0066] In one embodiment, the plurality of physical units (i.e., second physical units) in the first target virtual unit are located on a plurality of memory chips in the memory module 122. Figure 4 For example, the second physical unit can be at least partially distributed among the memory chips 41(1)-41(n). Thus, by operating the first target virtual unit, the performance of the memory device 10 can be improved.

[0067] Figure 5 This is a schematic diagram illustrating the grouping of multiple physical units into a first target virtual unit according to an embodiment of the present invention. Please refer to... Figure 5 Assume that the first target virtual unit includes virtual unit 51. Furthermore, assume that memory chip 41(1) includes physical units 501(1)-501(m), memory chip 41(i) includes physical units 502(1)-502(m), and memory chip 41(n) includes physical units 503(1)-503(m).

[0068] In one embodiment, the memory control circuit 23 can group (e.g., map) the physical units 501(p), 501(r), and 501(s) to the virtual unit 51 according to multiple grouping evaluation parameters (i.e., second grouping evaluation parameters) corresponding to the physical units 501(p), 501(r), and 501(s), respectively. Then, when operating the virtual unit 51, units located on different memory chips (including at least physical units 501(p), 501(r), and 501(s)) can be operated synchronously. In particular, since the real-time operating speeds of the physical units 501(p), 501(r), and 501(s) are the same or similar, the memory control circuit 23 can accurately predict the time point at which all physical units in the virtual unit 51 complete their assigned tasks. This effectively reduces the scheduling difficulty of the virtual unit 51 by the memory control circuit 23 and increases the management efficiency of the virtual unit 51 by the memory control circuit 23.

[0069] In one embodiment, the memory control circuit 23 can sort the multiple entity units (i.e., second entity units) in multiple memory chips of the memory module 122 according to multiple grouping evaluation parameters (i.e., second grouping evaluation parameters) corresponding to each entity unit (i.e., second entity unit). After sorting the entity units in their respective memory chips, the entity units (i.e., second entity units) must meet preset conditions (also called sorting conditions) in these memory chips. For example, the sorting conditions may include the second entity unit being located at a specific sorting position in its respective memory chip. For example, the specific sorting position may include the j-th sorting position in each memory chip.

[0070] Figure 6 This is a schematic diagram illustrating the sorting and grouping of physical cells in each memory chip according to the grouping evaluation parameters corresponding to each physical cell, as shown in an embodiment of the present invention. Please refer to... Figure 6 After obtaining the grouping evaluation parameters (e.g., EV in formula (1)) corresponding to each (or part of) entity cell in memory chips 41(1)-41(n), the memory control circuit 23 can sort these entity cells in each memory chip from largest to smallest or from smallest to largest according to the grouping evaluation parameters corresponding to each entity cell. It should be noted that the sorting mentioned here is also a logical sorting of these entity cells without changing their physical location.

[0071] In one embodiment, after sorting the multiple physical cells in each memory chip, the memory control circuit 23 can group (i.e., map) the multiple physical cells scattered across different memory chips to one or more virtual cells according to the sorting results. Figure 6 For example, the memory control circuit 23 can group (i.e. map) physical units 501(2), 502(8), and 503(5) that are scattered in different memory chips and located at the same sorting position (e.g., the first sorting position) to virtual unit 61(1); group (i.e. map) physical units 501(10), 502(3), and 503(7) that are scattered in different memory chips and located at the same sorting position (e.g., the j-th sorting position) to virtual unit 61(j); and group (i.e. map) physical units 501(4), 502(5), and 503(2) that are scattered in different memory chips and located at the same sorting position (e.g., the m-th sorting position) to virtual unit 61(m). Thus, multiple physical units that are scattered in different memory chips but have the same or similar real-time operating speed can be grouped (i.e. mapped) to the same virtual unit and can be operated synchronously.

[0072] In one embodiment, after configuring the first target virtual unit, the memory control circuit 23 can associate the first target virtual unit with one of a plurality of resource groups (also known as candidate resource groups) according to the evaluation parameters (also known as virtual unit evaluation parameters) corresponding to the first target virtual unit. Then, the memory control circuit 23 can extract at least one virtual unit (also known as a second target virtual unit) from at least one of these candidate resource groups according to the type of write operation to be performed, in order to perform the write operation.

[0073] In one embodiment, after configuring the first target virtual unit, the memory control circuit 23 can obtain the virtual unit evaluation parameters corresponding to the first target virtual unit. These virtual unit evaluation parameters can reflect the real-time operating speed corresponding to the first target virtual unit.

[0074] In one embodiment, the memory control circuit 23 may determine the virtual cell evaluation parameters corresponding to the first target virtual cell based on the operating speed of all or at least some of the physical cells in the first target virtual cell. For example, the memory control circuit 23 may determine the virtual cell evaluation parameters corresponding to the first target virtual cell based on the average operating speed of all or at least some of the physical cells in the first target virtual cell.

[0075] In one embodiment, the virtual unit evaluation parameter corresponding to the first target virtual unit can reflect the (average) operating speed of all or at least some of the entity units in the first target virtual unit. For example, a larger virtual unit evaluation parameter corresponding to the first target virtual unit indicates a faster operating speed for the first target virtual unit. Conversely, a smaller virtual unit evaluation parameter corresponding to the first target virtual unit indicates a slower operating speed for the first target virtual unit.

[0076] In one embodiment, the memory control circuit 23 can compare the virtual cell evaluation parameters corresponding to the first target virtual cell with a reference value. If (or in response to) the relative numerical relationship between the virtual cell evaluation parameters and the reference value meets a certain condition (also referred to as the first condition), the memory control circuit 23 can associate (e.g., add) the first target virtual cell to one of the candidate resource groups (also referred to as the first candidate resource group). Alternatively, if (or in response to) the relative numerical relationship between the virtual cell evaluation parameters and the reference value meets another condition (also referred to as the second condition), the memory control circuit 23 can associate (e.g., add) the first target virtual cell to another candidate resource group (also referred to as the second candidate resource group). The first condition is different from the second condition.

[0077] In one embodiment, the first condition may include the virtual unit evaluation parameter corresponding to the first target virtual unit being greater than this benchmark value. In one embodiment, the second condition may include the virtual unit evaluation parameter corresponding to the first target virtual unit being no greater than (e.g., less than or equal to) this benchmark value. In one embodiment, the real-time operating speed (also referred to as the first operating speed) corresponding to any virtual unit associated with the first candidate resource group may be higher than the real-time operating speed (also referred to as the second operating speed) corresponding to any virtual unit associated with the second candidate resource group.

[0078] In one embodiment, the memory control circuit 23 may set this reference value based on the virtual cell evaluation parameters corresponding to all configured virtual cells. In another embodiment, the memory control circuit 23 may set (or update) this reference value based on the average (or median) of the virtual cell evaluation parameters corresponding to all configured virtual cells. For example, this reference value may be equal to or close to the average (or median) of the virtual cell evaluation parameters corresponding to all configured virtual cells. In one embodiment, this reference value may be used to classify (i.e., categorize) all configured virtual cells into virtual cells with relatively fast operating speeds and virtual cells with relatively slow operating speeds. In one embodiment, the memory control circuit 23 may also set this reference value based on other factors, which is not limited by the present invention.

[0079] In one embodiment, the first candidate resource group is also referred to as the fast pool (or high-speed pool). In one embodiment, the virtual units associated with the first candidate resource group (i.e., the fast pool) all have relatively high real-time operating speeds. In one embodiment, the second candidate resource group is also referred to as the non-fast pool. In one embodiment, the virtual units associated with the second candidate resource group (i.e., the non-fast pool) all have relatively low real-time operating speeds. Subsequently, depending on the type of write operation to be performed, the memory control circuit 23 can extract at least one virtual unit (i.e., the second target virtual unit) from these candidate resource groups (i.e., the fast pool and / or the non-fast pool) and perform the write operation on this second target virtual unit.

[0080] In one embodiment, if (or in response to) a write operation to be performed includes a host write operation that must be performed synchronously and a data compaction operation performed on memory module 122, memory control circuit 23 may extract at least one virtual unit from a first candidate resource group (i.e., the fast pool) as a second target virtual unit. Then, memory control circuit 23 may perform this host write operation and / or data compaction operation on the second target virtual unit. Thus, when resources are scarce (e.g., when data compaction is needed to accelerate the release of idle physical units), the performance of storage device 10 can be improved and the operational stability of storage device 10 can be enhanced by accelerating the execution of the host write operation and / or data compaction operation that must be performed synchronously.

[0081] In one embodiment, the data compaction operation performed on the memory module 122 may include a garbage collection operation and / or a wear leveling operation. The garbage collection operation is used to migrate valid data from one physical cell in the memory module 122 to another physical cell, thereby accelerating the release of idle physical cells. The wear leveling operation is also used to migrate valid data from one physical cell in the memory module 122 to another physical cell. However, the purpose of the wear leveling operation is to balance the usage (or wear level) of multiple physical cells in the memory module 122. In one embodiment, the data compaction operation performed on the memory module 122 may also include other operations involving data migration within the memory module 122, which are not limited by this invention.

[0082] In one embodiment, if (or in response to) the write operation to be performed does not include a host write operation and a data compaction operation to be performed on memory module 122 that must be performed simultaneously, the memory control circuit 23 may extract at least one virtual unit from the second candidate resource group (i.e., the non-fast pool) as the second target virtual unit. Then, the memory control circuit 23 may perform this host write operation and / or data compaction operation on the second target virtual unit. Thus, when resources are relatively abundant (e.g., no need to accelerate the release of idle physical units through data compaction operations), the utilization rate of virtual units in the high-speed pool can be effectively controlled without significantly affecting the performance of the storage device 10, avoiding a shortage of virtual units in the high-speed pool when needed later.

[0083] In one embodiment, the memory control circuit 23 may further divide the second candidate resource group into multiple sub-candidate resource groups. For example, the second candidate resource group may include a first sub-candidate resource group and a second sub-candidate resource group. In one embodiment, the real-time operating speed (also referred to as the first sub-operating speed) corresponding to any virtual unit associated with the first sub-candidate resource group may be higher than the real-time operating speed (also referred to as the second sub-operating speed) corresponding to any virtual unit associated with the second sub-candidate resource group.

[0084] In one embodiment, the memory control circuit 23 may set multiple reference values ​​based on virtual cell evaluation parameters corresponding to all configured virtual cells. For example, these reference values ​​may include a first reference value and a second reference value. The first reference value is greater than the second reference value.

[0085] In one embodiment, if (or in response to) the virtual unit evaluation parameter corresponding to the first target virtual unit is greater than a first benchmark value, the memory control circuit 23 may associate the first target virtual unit with a first candidate resource group (i.e., the fast pool). In one embodiment, if (or in response to) the virtual unit evaluation parameter corresponding to the first target virtual unit is between the first benchmark value and a second benchmark value, the memory control circuit 23 may associate the first target virtual unit with a first sub-candidate resource group (also referred to as the medium-speed pool). In one embodiment, if (or in response to) the virtual unit evaluation parameter corresponding to the first target virtual unit is less than a second benchmark value, the memory control circuit 23 may associate the first target virtual unit with a second sub-candidate resource group (also referred to as the low-speed pool or slow pool).

[0086] In one embodiment, the memory control circuit 23 can set (or update) a first reference value and a second reference value based on the average (or median) of the virtual unit evaluation parameters corresponding to all configured virtual units. For example, the first and second reference values ​​can be used to divide (i.e., classify) all configured virtual units into virtual units with relatively fast operating speeds (e.g., belonging to the top 10%), virtual units with medium operating speeds (e.g., belonging to the middle 80%), and virtual units with relatively slow operating speeds (e.g., belonging to the bottom 10%). Then, the memory control circuit 23 can associate the virtual units with relatively fast operating speeds (e.g., belonging to the top 10%) with a first candidate resource group (i.e., the fast pool); associate the virtual units with medium operating speeds (e.g., belonging to the middle 80%) with a first sub-candidate resource group (i.e., the medium-speed pool); and associate the virtual units with relatively slow operating speeds (e.g., belonging to the bottom 10%) with a second sub-candidate resource group (i.e., the low-speed pool). Subsequently, depending on the type of write operation to be performed, the memory control circuit 23 may extract at least one virtual cell (i.e., the second target virtual cell) from these candidate resource groups (i.e., the fast pool, the medium pool, and / or the low pool) and perform the write operation on the second target virtual cell.

[0087] In one embodiment, if the write operation to be performed does not include a host write operation that must be performed synchronously and a data compaction operation performed on the memory module 122, the memory control circuit 23 may further confirm whether the write operation to be performed includes a random write operation. In one embodiment, if (or in response to) the write operation to be performed includes a random write operation, the memory control circuit 23 may extract at least one virtual cell from the first sub-candidate resource group (i.e., the medium-speed pool) as a second target virtual cell. Then, the memory control circuit 23 may perform this random write operation on the second target virtual cell. Thus, for random write operations where the write speed may be relatively slow, the performance of the storage device 10 can be improved at least partially.

[0088] In one embodiment, if (or in response to) the write operation to be performed only includes sequential write operations (i.e., no random write operations), the memory control circuit 23 may extract at least one virtual cell from the second sub-candidate resource group (i.e., the low-speed pool) as the second target virtual cell. Then, the memory control circuit 23 may perform this sequential write operation on the second target virtual cell. Thus, for sequential write operations where the write speed may be relatively fast, the slowest virtual cells can be consumed as much as possible, while saving the use of the remaining relatively fast virtual cells, without significantly degrading the performance of the storage device 10.

[0089] In one embodiment, if (or in response to) the write operation to be performed only involves data compaction operations performed on memory module 122 (i.e., no host write operations), the memory control circuit 23 may also extract at least one virtual cell from the second sub-candidate resource group (i.e., the low-speed pool) as the second target virtual cell. Then, the memory control circuit 23 may perform this sequential write operation on the second target virtual cell. Thus, the slowest virtual cell can be consumed as much as possible without affecting the write performance observed on the host system, while saving the use of the remaining relatively faster virtual cells.

[0090] In one embodiment, the selection strategy for the second target virtual unit described above can further incorporate the amount of data to be written corresponding to the write operation to be performed as a decision factor. For example, the following four scenarios A, B, and C are illustrated as possible examples.

[0091] A. The amount of data to be written for the write operation to be performed is relatively large (e.g., greater than the data volume threshold) and a data sorting operation for the memory module 122 needs to be performed synchronously.

[0092] B. The amount of data to be written corresponding to the write operation to be executed is relatively small (e.g., not greater than the data volume threshold) and the write operation to be executed includes random write operations;

[0093] C. The amount of data to be written for the write operation to be executed is relatively small (e.g., not greater than the data volume threshold) and the write operation to be executed only includes sequential write operations.

[0094] In one embodiment, for the above scenario A (i.e., when the amount of write data corresponding to the write operation to be performed is relatively large and a data sorting operation to be performed on the memory module 122 needs to be performed synchronously), the memory control circuit 23 may preferentially extract at least one virtual unit from the first candidate resource group (i.e., the fast pool) as the second target virtual unit.

[0095] In one embodiment, for scenario B (i.e., when the amount of write data corresponding to the write operation to be performed is relatively small and the write operation to be performed includes random write operations), the memory control circuit 23 may preferentially extract at least one virtual unit from the first sub-candidate resource group (i.e., the medium-speed pool) as the second target virtual unit.

[0096] In one embodiment, for scenario C (i.e., when the amount of write data corresponding to the write operation to be performed is relatively small and the write operation to be performed only includes sequential write operations), the memory control circuit 23 may preferentially extract at least one virtual unit from the second sub-candidate resource group (i.e., the low-speed pool) as the second target virtual unit. However, other grouping and selection strategies for virtual units may also be adopted and / or set according to practical needs, and the present invention does not limit them.

[0097] Figure 7 This is a schematic diagram illustrating the association of the first target virtual unit and the extraction of the second target virtual unit according to an embodiment of the present invention. Please refer to... Figure 7 Assume that the first target virtual unit includes virtual unit 51. Furthermore, assume that the first reference value and the second reference value are represented by the critical value THR(1) and the critical value THR(2), respectively.

[0098] In one embodiment, if (or in response to) the virtual cell evaluation parameter corresponding to virtual cell 51 is greater than the threshold value THR(1) (indicating that the operating speed of virtual cell 51 is relatively fast), the memory control circuit 23 may associate virtual cell 51 with the fast pool. In one embodiment, if (or in response to) the virtual cell evaluation parameter corresponding to virtual cell 51 is between the threshold values ​​THR(1) and THR(2) (indicating that the operating speed of virtual cell 51 is medium), the memory control circuit 23 may associate virtual cell 51 with the medium-speed pool. In one embodiment, if (or in response to) the virtual cell evaluation parameter corresponding to virtual cell 51 is less than the threshold value THR(2) (indicating that the operating speed of virtual cell 51 is relatively slow), the memory control circuit 23 may associate virtual cell 51 with the low-speed pool.

[0099] In one embodiment, the memory control circuit 23 may extract virtual units 71 (i.e., second target virtual units) from these candidate resource groups (i.e., fast pool, medium-speed pool, and / or low-speed pool) according to the type of write operation to be performed, in order to perform this write operation. The relevant operational details have been described above and will not be repeated here.

[0100] Figure 8 This is a flowchart illustrating a memory management method according to an embodiment of the present invention. Please refer to... Figure 8In step S801, based on the initial write time information, initial erase time information, and real-time wear assessment information corresponding to the first physical unit in the memory module, a first grouping evaluation parameter corresponding to the first physical unit is obtained. In step S802, based on the first grouping evaluation parameter, the first physical unit is grouped into a first target virtual unit, wherein the first target virtual unit includes multiple second physical units, and the multiple second grouping evaluation parameters corresponding to the second physical units respectively meet preset conditions.

[0101] Figure 9 This is a flowchart illustrating a memory management method according to an embodiment of the present invention. Please refer to... Figure 9 In step S901, the first target virtual unit is associated with one of a plurality of candidate resource groups based on the virtual unit evaluation parameters corresponding to the first target virtual unit. In step S902, at least one second target virtual unit is extracted from at least one of the candidate resource groups according to the type of write operation, so as to perform the write operation.

[0102] However, Figure 8 and Figure 9 Each step has been explained in detail above and will not be repeated here. It is worth noting that... Figure 8 and Figure 9 Each step can be implemented as multiple program codes or circuits, and this invention is not limited thereto. Furthermore, Figure 8 and Figure 9 The method can be used in conjunction with the above examples and embodiments, or it can be used alone. This invention does not impose any limitations.

[0103] In summary, the memory management method and storage device proposed in this invention can obtain grouping evaluation parameters that reflect the real-time operating speed of physical units based on the initial write time information, initial erase time information, and real-time wear assessment information of the physical units. Based on these grouping evaluation parameters, multiple physical units with the same or similar real-time operating speeds are grouped into the same virtual unit. Therefore, even if multiple physical units in the memory module experience uneven wear during use, the physical units can still be dynamically grouped according to their real-time operating speeds. This reduces the operating speed differences between multiple physical units belonging to the same virtual unit and prevents the overall operating speed of the virtual unit from being dragged down by some slower-operating physical units.

[0104] Furthermore, by associating virtual units with different candidate resource groups based on their operating speeds, and extracting virtual units from the corresponding candidate resource groups according to the type of write operation to be performed, virtual units with different operating speeds can be appropriately allocated for different workloads. This reduces the scheduling complexity of virtual units for the memory control circuit, improves the management efficiency of the memory module, and enhances the overall performance of the storage device.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A memory management method, characterized in that, For use in a storage device, wherein the storage device includes a memory module, and the memory management method includes: Based on the initial write time information, initial erase time information, and real-time wear assessment information corresponding to the first physical unit in the memory module, a first grouping assessment parameter corresponding to the first physical unit is obtained; and Based on the first grouping evaluation parameters, the first entity unit is grouped into a first target virtual unit, wherein the first target virtual unit includes a plurality of second entity units, and the plurality of second grouping evaluation parameters corresponding to the plurality of second entity units meet preset conditions.

2. The memory management method according to claim 1, characterized in that, The initial write time information reflects the write time measured by the first entity unit during the card activation phase. The initial erase time information reflects the erase time measured by the first entity unit during the card opening phase, and The real-time wear assessment information reflects the real-time wear level of the first physical unit during the usage phase.

3. The memory management method according to claim 1, characterized in that, The multiple second grouping evaluation parameters corresponding to the multiple second entity units respectively meet the preset conditions, including: The multiple second group evaluation parameters are all located within the target value interval among the multiple candidate value intervals.

4. The memory management method according to claim 1, characterized in that, The plurality of second entity units are respectively located in the plurality of memory chips of the memory module, and the plurality of second grouping evaluation parameters corresponding to the plurality of second entity units respectively meet the preset conditions including: After sorting the multiple second entity units in the multiple memory chips according to the multiple second grouping evaluation parameters, the multiple second entity units respectively meet the sorting conditions in the multiple memory chips.

5. The memory management method according to claim 1, characterized in that, The first group evaluation parameter reflects the real-time operating speed of the first entity unit.

6. The memory management method according to claim 1, characterized in that, The real-time wear assessment information is used to compensate for the initial write time information and the initial erase time information at at least one time point, so as to update the first group assessment parameters.

7. The memory management method according to claim 1, characterized in that, The initial write time information and the initial erase time information both have a linear relationship with the first group evaluation parameters, and the real-time wear evaluation information has a power function relationship with the first group evaluation parameters.

8. The memory management method according to claim 7, characterized in that, Based on the initial write latency information, the initial erase latency information, and the real-time wear assessment information corresponding to the first entity unit in the memory module, the first grouping assessment parameters corresponding to the first entity unit are obtained as follows: The evaluation parameters for the first group are obtained according to the following formula. Where EV represents the first group evaluation parameter, T(P) represents the initial write time information, T(E) represents the initial erase time information, PE represents the real-time wear evaluation information, and a and b represent operation coefficients.

9. The memory management method according to claim 1, characterized in that, The memory management method further includes: Based on the virtual unit evaluation parameters corresponding to the first target virtual unit, the first target virtual unit is associated with one of multiple candidate resource groups; and Depending on the type of write operation, at least one second target virtual unit is extracted from at least one of the plurality of candidate resource groups to perform the write operation.

10. The memory management method according to claim 9, characterized in that, Associating the first target virtual unit with one of the plurality of candidate resource groups includes: In response to the relative numerical relationship between the virtual unit evaluation parameters and the benchmark value meeting a first condition, the first target virtual unit is associated with a first candidate resource group among the plurality of candidate resource groups; and In response to the relative numerical relationship meeting the second condition, the first target virtual unit is associated with the second candidate resource group among the plurality of candidate resource groups.

11. The memory management method according to claim 10, characterized in that, The first operation speed corresponding to any virtual unit associated with the first candidate resource group is higher than the second operation speed corresponding to any virtual unit associated with the second candidate resource group.

12. The memory management method according to claim 11, characterized in that, Extracting the at least one second target virtual unit from at least one of the plurality of candidate resource groups, depending on the type of the write operation, includes: If the write operation includes a host write operation that must be performed synchronously and a data compaction operation performed on the memory module, extract the at least one second target virtual unit from the first candidate resource group; and If the write operation does not include the host write operation and the data processing operation that must be executed synchronously, the at least one second target virtual unit is extracted from the second candidate resource group.

13. The memory management method according to claim 12, characterized in that, The second candidate resource group includes a first sub-candidate resource group and a second sub-candidate resource group. The first sub-operation speed corresponding to any virtual unit associated with the first sub-candidate resource group is higher than the second sub-operation speed corresponding to any virtual unit associated with the second sub-candidate resource group. Extracting the at least one second target virtual unit from the second candidate resource group includes: If the write operation includes a random write operation, extract the at least one second target virtual unit from the first sub-candidate resource group; and If the write operation only includes sequential write operation or data sorting operation, extract the at least one second target virtual unit from the second sub-candidate resource group.

14. A storage device, characterized in that, include: A connection interface used to connect to the host system; Memory module; as well as The memory controller is connected to the connection interface and the memory module. The memory controller is used to perform the memory management method according to any one of claims 1-13.