Memory control method, memory storage device and memory controller

By using multiple storage pools and data consolidation modes in the memory controller, the data is dynamically distributed and consolidated according to the data flow type, which solves the problem of increased write amplification factors caused by traditional data writing methods and improves the performance of the memory device. Data reading and writing performance.

CN118550463APending Publication Date: 2024-08-27HEFEI KAIMENG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410632535.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional data writing methods cause the write amplification factor of the memory device to increase, causing repeated physical movement of data and performance degradation.

Method used

By introducing multiple storage pools and data merging modes into the memory controller, data offloading and merging operations are dynamically completed based on the data flow type to avoid an increase in the write amplification factor.

Benefits of technology

It effectively reduces the write amplification factor, improves data read and write performance, and avoids the problem of hot data frequently occupying physical space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550463A
    Figure CN118550463A
Patent Text Reader

Abstract

The invention provides a memory control method, a memory storage device and a memory controller. The method comprises the following steps: receiving a write-in instruction from a host system, wherein the write-in instruction comprises write-in data and a data stream type; in response to the fact that the total use capacity of the first storage pool and the second storage pool is smaller than the first preset capacity, writing the write-in data into the first storage pool or the second storage pool corresponding to the data stream type; and in response to the condition that the total use capacity is greater than or equal to a second preset capacity, entering a first data consolidation mode to execute a first data consolidation operation based on the data stream type, the first preset capacity being greater than the second preset capacity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a memory control method, a memory storage device and a memory controller. Background Art

[0002] In the traditional data writing method, data from the host system can be written to the memory device in sequence. The host system focuses on logical data processing, while the memory device focuses on the arrangement of physical data. The above two different processing methods may cause problems such as repeated physical movement of data, which in turn leads to an increase in the write amplification factor (WAF) of the memory device. Summary of the invention

[0003] Embodiments of the present invention provide a memory control method, a memory storage device, and a memory controller, which can solve the problem of increased write amplification factor caused by different data processing methods of the host system and the memory device side, can dynamically complete data diversion, reduce the write amplification factor, and improve data reading and writing performance.

[0004] An embodiment of the present invention provides a memory control method, which is used for a memory storage device. The memory module includes a first memory pool and a second memory pool. The first memory pool and the second memory pool respectively include a plurality of physical erase units. The memory control method includes: receiving a write instruction from a host system, wherein the write instruction includes write data and a data stream type (stream type); in response to the total used capacity of the first memory pool and the second memory pool being less than a first preset capacity, writing the write data to the first memory pool or the second memory pool corresponding to the data stream type; and in response to the total used capacity being greater than or equal to the second preset capacity, entering a first data consolidation mode to perform a first data consolidation operation based on the data stream type, wherein the first preset capacity is greater than the second preset capacity.

[0005] An embodiment of the present invention further provides a memory storage device, which includes a connection interface, a memory module and a memory controller. The memory module includes a first storage pool and a second storage pool. The first storage pool and the second storage pool respectively include a plurality of physical erase units. The connection interface is connected to a host system. The memory controller connects the connection interface and the memory module. The memory controller is used to receive a write instruction from the host system, wherein the write instruction includes write data and a data stream type (stream type). In response to the total used capacity of the first storage pool and the second storage pool being less than a first preset capacity, the memory controller is also used to write the write data to the first storage pool or the second storage pool corresponding to the data stream type. In response to the total used capacity being greater than or equal to the second preset capacity, the memory controller is also used to enter a first data consolidation mode to perform a first data consolidation operation based on the data stream type, wherein the first preset capacity is greater than the second preset capacity.

[0006] An embodiment of the present invention further provides a memory controller, which is used to control a memory module. The memory module includes a first memory pool and a second memory pool. The first memory pool and the second memory pool respectively include a plurality of physical erase units. The memory controller includes a host interface, a memory interface, and a memory control circuit. The host interface is connected to a host system. The memory interface is connected to the memory module. The memory control circuit is connected to the host interface and the memory interface. The memory control circuit is used to receive a write instruction from the host system, wherein the write instruction includes write data and a data stream type (stream type). In response to the total used capacity of the first memory pool and the second memory pool being less than a first preset capacity, the memory control circuit is also used to write the write data to the first memory pool or the second memory pool corresponding to the data stream type. In response to the total used capacity being greater than or equal to the second preset capacity, the memory control circuit is also used to enter a first data consolidation mode to perform a first data consolidation operation based on the data stream type, wherein the first preset capacity is greater than the second preset capacity.

[0007] Based on the above, the present invention provides a memory control method, a memory storage device and a memory controller, which can dynamically complete data diversion based on the data stream type, and perform data consolidation operations based on the data stream type to avoid the increase of the write amplification factor and effectively improve data reading and writing performance.

[0008] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below with reference to the accompanying drawings for detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention;

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

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

[0012] Figure 4 is a schematic diagram of a first writing mode according to an embodiment of the present invention;

[0013] Figure 5 is a schematic diagram of a second writing mode according to an embodiment of the present invention;

[0014] Figure 6 is a schematic diagram of a first data consolidation mode according to an embodiment of the present invention;

[0015] Figure 7 is a relationship diagram of a writing mechanism, a data consolidation mechanism and a total used capacity according to an embodiment of the present invention;

[0016] Figure 8 is a flow chart of a memory control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.

[0018] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention. Figure 1, the memory storage system 10 includes a host system 11 and a memory storage device 12. The host system 11 can be any type of computer system. For example. The host system 11 can be a laptop computer, a desktop computer, a smart phone, a tablet computer, an industrial computer, etc. The memory storage device 12 is used to store data from the host system 11. For example, the memory storage device 12 may include a solid state drive, a USB flash drive, or other types of non-volatile storage devices. The host system 11 can be electrically connected to the memory storage device 12 via a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCI Express), a Universal Serial Bus (USB), or other types of connection interfaces. Therefore, the host system 11 can store data to the memory storage device 12 and / or read data from the memory storage device 12.

[0019] The memory storage device 12 may include a connection interface 121, a memory module 122, and a memory controller 123. The connection interface 121 is used to connect the memory storage device 12 to the host system 11. For example, the connection interface 121 may support connection interface standards such as SATA, PCI Express, or USB. The memory storage device 12 may communicate with the host system 11 via the connection interface 121.

[0020] The memory module 122 is used to store data. The memory module 122 may include a rewritable non-volatile memory module. The memory module 122 includes a memory cell array. The memory cells in the memory module 122 store data in the form of voltage. For example, the 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, or other memory modules with similar characteristics.

[0021] The memory controller 123 is connected to the connection interface 121 and the memory module 122. The memory controller 123 can be used to control the memory storage device 12. For example, the memory controller 123 can control the connection interface 121 and the memory module 122 to perform data access and data management. For example, the memory controller 123 may include a central processing unit (CPU), a graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), programmable logic devices (PLD) or other similar devices or combinations of these devices.

[0022] In one embodiment, the memory controller 123 is also called a flash memory controller. In one embodiment, the memory module 122 is also called a flash memory module. The memory module 122 can receive a command sequence from the memory controller 123 and access data stored in the storage unit according to the command sequence.

[0023] Figure 2 FIG. 1 is a schematic diagram of a memory controller according to an embodiment of the present invention. 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 communicate with the memory module 122.

[0024] The memory control circuit 23 is connected to the host interface 21 and the memory interface 22. The memory control circuit 23 can communicate with the host system 11 via the host interface 21 and access the memory module 122 via the memory interface 22. For example, the memory control circuit 23 can receive various operation instructions (such as read instructions, write instructions, or erase instructions) from the host system 11 via the host interface 21 and issue corresponding instruction sequences (such as read instruction sequences, write instruction sequences, or erase instruction sequences) to the memory module 122 via the memory interface 22. In addition, the memory control circuit 23 can transmit data to the host system 11 via the host interface 21. In one embodiment, the memory control circuit 23 can also be regarded as the control core of the memory controller 123. In the following embodiments, the description of the memory control circuit 23 is equivalent to the description of the memory controller 123.

[0025] Figure 3FIG. 1 is a schematic diagram of a management memory module according to an embodiment of the present invention. Figures 1 to 3 , the memory module 122 includes a plurality of physical units 301(1)-301(B). Each physical unit includes a plurality of storage cells and is used to store data in a non-volatile manner. For example, a physical unit may include one or more physical erase units (e.g., physical blocks). Each physical unit may include a plurality of physical programming units (e.g., physical pages). A plurality of storage cells in a physical page may be programmed simultaneously to store data. All storage cells in a physical unit (or physical block) may be erased simultaneously.

[0026] In one embodiment, the physical units 301(1)-301(A) and 301(A+1)-301(B) in the memory module 122 can be respectively divided into a storage area 310 and an idle area 320. The physical units 301(1)-301(A) in the storage area 310 store data (also called user data) from the host system 11. The physical units 301(A+1)-301(B) in the idle area 320 do not store data.

[0027] In one embodiment, when new data from the host system 11 needs to be stored, one or more physical units in the idle area 320 will be selected and used to store the new data. The physical units in the idle area 320 used to store data can be divided into the storage area 310. As more and more physical units in the idle area 320 are used to store data, the total number of physical units in the idle area 320 will gradually decrease.

[0028] In one embodiment, the memory control circuit 23 may configure a plurality of logical units 302(1)-302(C) to map the physical units in the storage area 310. For example, a logical unit may be composed of one or more logical addresses. For example, a logical address may include one or more logical block addresses (LBAs). The mapping relationship between the logical units and the physical units may be recorded in a logical-to-physical mapping table. When receiving an access instruction from the host system 11, the memory control circuit 23 may access the physical units in the storage area 310 and / or the idle area 320 according to the logical-to-physical mapping table.

[0029] In one embodiment, if a physical unit is currently mapped by a logical unit, it means that valid data is stored in the physical unit. However, if a physical unit is currently not mapped by any logical unit, it means that no valid data is stored in the physical unit.

[0030] In one embodiment, the memory module 122 may include a first memory pool and a second memory pool. The first memory pool includes a plurality of single-level (SLC) physical erase units, and the second memory pool includes a plurality of triple-level (TLC) physical erase units. In other words, the memory control circuit 23 may write data into the first memory pool and the second memory pool using a single-level (SLC) storage mode and a triple-level (TLC) storage mode, respectively.

[0031] Generally speaking, the traditional data writing method is to implement it by sequentially writing the user data from the host system 11 into the memory device. However, this method will cause problems such as repeated physical movement of data and frequent occupation of physical space by hot data, which will lead to performance degradation of the memory storage device 12, reduction in the total amount of writable data (TBW), increase in write amplification factor (WAF), and premature retirement (End-of-Life).

[0032] In order to solve the above problems, the present invention provides a memory control method, which can dynamically complete data diversion based on data stream type, and can also perform data consolidation operations based on data stream type to avoid the increase of write amplification factor and effectively improve data reading and writing performance.

[0033] First, the host system 11 can determine the data stream type according to factors such as the importance of the data, the frequency of data updates, and whether the data belongs to the same file / partition. Specifically, the data stream type can be, for example, an important data type, a hot data type, a warm data type, or a cold data type.

[0034] In one embodiment, the memory control circuit 23 may receive a write command from the host system 11. Specifically, the write command includes write data and a data stream type.

[0035] Figure 4 is a schematic diagram of a first writing mode according to an embodiment of the present invention; Figure 5 is a schematic diagram of a second writing mode according to an embodiment of the present invention; Figure 6 is a schematic diagram of a first data consolidation mode according to an embodiment of the present invention; Figure 7 is a diagram showing the relationship between the writing mechanism, data consolidation mechanism and total used capacity according to an embodiment of the present invention. Figures 1 to 7 .like Figure 7 As shown, Figure 4If the total used capacity of the first storage pool P1 and the second storage pool P2 is less than the first preset capacity T3, the memory control circuit 23 may write the write data into the first storage pool P1 or the second storage pool P2 corresponding to the data stream type.

[0036] Specifically, if Figure 4 As shown, when the total used capacity is less than Figure 7 The first preset capacity T3 in the first writing mode, such as Figure 2 The memory control circuit 23 in the embodiment may adopt an inaccurate split write mechanism. That is, the memory control circuit 23 may write the write data belonging to the important data type DI and the hot data type DH into the first memory pool P1 including a plurality of single-level (SLC) physical erase units.

[0037] Specifically, if the data stream type is an important data type DI or a hot data type DH, the memory control circuit 23 may write the write data into the first storage pool P1. In addition, if the data stream type is a warm data type DW or a cold data type DC, the memory control circuit 23 may write the write data into the second storage pool P2. In one embodiment, the first write mode may be, for example, a high performance mode.

[0038] In addition, if Figure 5 As shown, when the total used capacity is less than Figure 7 In the first preset capacity T3 and in the second writing mode, as Figure 2 The memory control circuit 23 in the embodiment can adopt an accurate split write mechanism. That is, the memory control circuit 23 only writes the write data belonging to the important data type DI into the first memory pool P1 including a plurality of single-level (SLC) physical erase units.

[0039] Specifically, if the data stream type is an important data type DI, the memory control circuit 23 may write the write data into the first storage pool P1. In addition, if the data stream type is a hot data type DH, a warm data type DW, or a cold data type DC, the memory control circuit 23 may write the write data into the second storage pool P2. In one embodiment, the second write mode may be, for example, a low performance mode.

[0040] It is worth mentioning that even if the memory control circuit 23 adopts an inaccurate split-write mechanism, the memory control circuit 23 can still implement an accurate split-write mechanism in subsequent data consolidation operations.

[0041] In this way, when the total used capacity is small (less than the first preset capacity T3), the memory control circuit 23 can use the diversion write mechanism to write more important data and / or more frequently updated data into the first storage pool P1 based on the data stream type, and write the remaining data into the second storage pool P2 to complete data diversion, thereby avoiding problems such as hot data frequently occupying physical space.

[0042] On the other hand, when the total used capacity is greater than or equal to the first preset capacity T3, the memory control circuit 23 may write the write data into the second memory pool P2. Specifically, when the total used capacity is greater than or equal to the first preset capacity T3, the storage capacity of the first memory pool P1 (i.e., the single-level (SLC) physical erase unit) is insufficient. Figure 1 The memory storage device 12 can operate more normally, and the memory control circuit 23 can write all data into the second memory pool P2 in a triple-level (TLC) storage mode.

[0043] In order to avoid the situation where frequent data consolidation operations increase the write amplification factor, the memory control method of the present invention further includes a background data consolidation operation. Figure 7 As shown, when the total used capacity is greater than or equal to the second preset capacity T2, as shown in Figure 2 The memory control circuit 23 in may enter a first data consolidation mode to perform a first data consolidation operation based on the data stream type.

[0044] In one embodiment, the first preset capacity T3 is greater than the second preset capacity T2. Further, between the second preset capacity T2 and the first preset capacity T3, there is still some remaining capacity, in other words, the total capacity is not too much, and the memory control circuit 23 can perform the first data consolidation operation in a shunting manner.

[0045] Specifically, the memory control circuit 23 may Figure 6 The valid data with the same data stream type in the first storage pool P1 is moved to the first physical erasing unit, and the first physical erasing unit is divided into the first storage pool P1, and the memory control circuit 23 can move the valid data with the same data stream type in the second storage pool P2 to the second physical erasing unit, and divide the second physical erasing unit into the second storage pool P2.

[0046] For example, if Figure 6 As shown, assuming that the first writing mode (ie, high performance mode) is currently in effect, when Figure 2When the memory control circuit 23 in the memory performs the first data consolidation operation, the memory control circuit 23 may move valid data of the important data type DI in the first memory pool P1 to the first physical erase unit B1 used only to store data of the important data type DI, and move valid data of the hot data type DH in the first memory pool P1 to the first physical erase unit B2 used only to store data of the hot data type DH. In addition, the memory control circuit 23 may move valid data of the warm data type DW in the second memory pool P2 to the second physical erase unit B3 used only to store data of the warm data type DW, and move valid data of the cold data type DC in the first memory pool P1 to the second physical erase unit B4 used only to store data of the cold data type DC.

[0047] Similarly, assuming that the second write mode (i.e., the low performance mode) is currently in effect, when the memory control circuit 23 performs the first data consolidation operation, the memory control circuit 23 may move valid data of the important data type DI in the first memory pool P1 to the first physical erase unit B1. In addition, the memory control circuit 23 may move valid data of the hot data type DH, valid data of the warm data type DW, and valid data of the cold data type DC in the second memory pool P2 to the second physical erase unit B2, the second physical erase unit B3, and the second physical erase unit B4, respectively.

[0048] In one embodiment, in the first data consolidation mode, when the total used capacity is greater than or equal to the Figure 7 When the first preset capacity T3 is reached, the memory control circuit 23 may enter the second data consolidation mode to perform a second data consolidation operation without data flow division (ie, not based on the data flow type).

[0049] Specifically, when the total used capacity reaches the first preset capacity T3, in order to release space as soon as possible, the memory control circuit 23 can move valid data in the first storage pool P1 and the second storage pool P2 to the third physical erase unit and divide the third physical erase unit into the second storage pool P2.

[0050] As a result, the memory control method of the present invention can set multiple stages through multiple preset capacities, and perform different data consolidation operations for different stages, which can effectively avoid the increase of the write amplification factor.

[0051] In one embodiment, in the second data consolidation mode, when the total used capacity is less than Figure 7 When the second preset capacity T2 is in the total used capacity, the memory control circuit 23 can further determine whether the multiple written data in the second storage pool P2 are important data types DI. Specifically, when the total used capacity is less than the second preset capacity T2, such as Figure 1The available capacity of the memory storage device 12 in the storage pool 1 is sufficient to accommodate the write data belonging to the important data type DI returned from the second storage pool P2 to the first storage pool P1.

[0052] Specifically, if the second storage pool P2 does not contain write data of the important data type DI, the memory control circuit 23 may continue to perform the second data consolidation operation.

[0053] On the other hand, Figure 7 As shown, if Figure 6 The second storage pool P2 in the storage pool has at least one write data of important data type DI, such as Figure 2 The memory control circuit 23 in the memory pool P2 may re-enter the first data consolidation mode to perform the first data consolidation operation until the total used capacity is equal to the third preset capacity T0. In other words, if the second memory pool P2 has write data belonging to the important data type DI, the memory control circuit 23 may re-execute the first data consolidation operation to move the write data belonging to the important data type DI to the first memory pool P1 in a diversion manner. In one embodiment, the second preset capacity T2 is greater than the third preset capacity T0.

[0054] When the total used capacity is greater than the first preset capacity T3, no matter whether the memory control circuit 23 performs the non-divided write operation or the second data consolidation operation, it is possible to store the write data of the important data type DI in the second memory pool P2. Therefore, the memory control method of the present invention further includes a third data consolidation operation, which can restore (roll back) the write data of the important data type DI in the second memory pool P2 to the first memory pool P1 when the total used capacity is smaller (for example, smaller than the fourth preset capacity T1).

[0055] In one embodiment, when the total used capacity is less than the fourth preset capacity T1, the memory control circuit 23 may perform a third data consolidation operation to move at least one data belonging to the important data type DI in the second storage pool P2 to the first storage pool P1 to achieve correct data diversion. In addition, since the memory control circuit 23 writes data at the same time when performing the third data consolidation operation, the total used capacity presents an oscillating change. In this case, the total used capacity may be, for example, greater than or equal to the third preset capacity T0 or the total used capacity may be, for example, less than the third preset capacity T0. If the total used capacity reaches the third preset capacity T0 when the third data consolidation operation is performed, it may cause the problem of repeatedly triggering the data consolidation operation. Accordingly, until the write data in the first storage pool P1 increases and the total used capacity reaches the fourth preset capacity T1, the memory control circuit 23 may stop the third data consolidation operation to avoid the problem of frequently triggering the data consolidation operation between the third preset capacity T0 and the second preset capacity T2 after the total used capacity reaches the second preset capacity T2, thereby increasing the write amplification factor.

[0056] In this way, the memory control method of the present invention can restore the written data of the important data type DI back to the first storage pool P1 by setting the fourth preset capacity T1, so as to achieve correct data diversion and avoid false triggering of the data consolidation operation.

[0057] Figure 8 is a flow chart of a memory control method according to an embodiment of the present invention. Figure 8 In step S801, a write instruction is received from a host system, wherein the write instruction includes write data and a data stream type. In step S802, in response to the total used capacity of the first storage pool and the second storage pool being less than the first preset capacity, the write data is written into the first storage pool or the second storage pool corresponding to the data stream type. In step S803, in response to the total used capacity being greater than or equal to the second preset capacity, a first data consolidation mode is entered to perform a first data consolidation operation based on the data stream type, wherein the first preset capacity is greater than the second preset capacity.

[0058] However, Figure 8 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Figure 8 Each step in the above process can be implemented as multiple program codes or circuits, and the present invention is not limited thereto. Figure 8 The method can be used in combination with the above embodiments or can be used alone, and the present invention is not limited thereto.

[0059] In summary, the present invention provides a memory control method, a memory storage device, and a memory controller, which can dynamically complete data diversion based on the data stream type to avoid repeated physical movement of written data, frequent occupation of physical space by hot data, and other problems. In addition, the memory control method, memory storage device, and memory controller of the present invention can also perform data consolidation operations based on the data stream type to avoid the increase of the write amplification factor and effectively improve the data reading and writing performance.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements 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 control method, It is characterized in that Used to control a memory module, the memory module includes a first memory pool and a second memory pool, wherein the first memory pool and the second memory pool respectively include a plurality of physical erasing units, and the memory control method includes: receiving a write instruction from a host system, wherein the write instruction includes write data and a data stream type; In response to a total used capacity of the first storage pool and the second storage pool being less than a first preset capacity, writing the write data into the first storage pool or the second storage pool corresponding to the data stream type; and In response to the total used capacity being greater than or equal to the second preset capacity, entering a first data consolidation mode to perform a first data consolidation operation based on the data stream type, The first preset capacity is greater than the second preset capacity.

2. The memory control method according to claim 1, wherein the step of performing the first data consolidation operation based on the data stream type include: Moving valid data with the same data stream type in the first storage pool to a first physical erasing unit, and dividing the first physical erasing unit into the first storage pool; as well as Valid data with the same data stream type in the second storage pool is moved to a second physical erasing unit, and the second physical erasing unit is divided into the second storage pool. 3 . The memory control method according to claim 1 , wherein in response to the total used capacity being greater than or equal to the first preset capacity, the write data is written into the second storage pool. 4 . The memory control method according to claim 1 , wherein the data flow type is one of an important data type, a hot data type, a warm data type, and a cold data type.

5. The memory control method according to claim 4, wherein in response to the total used capacity being less than the first preset capacity and in the first write mode, In response to the data stream type being the important data type or the hot data type, writing the write data into the first storage pool; and In response to the data stream type being the warm data type or the cold data type, writing the write data into the second storage pool.

6. The memory control method according to claim 4, wherein in response to the total used capacity being less than the first preset capacity and in the second writing mode, In response to the data stream type being the important data type, writing the write data into the first storage pool; and In response to the data stream type being the hot data type, the warm data type, or the cold data type, the write data is written to the second storage pool. 7 . The memory control method according to claim 4 , wherein in the first data consolidation mode, in response to the total used capacity being greater than or equal to the first preset capacity, entering a second data consolidation mode to perform a second data consolidation operation.

8. The memory control method according to claim 7, wherein in the second data consolidation mode, in response to the total used capacity being less than the second preset capacity, determining whether the plurality of written data in the second storage pool are of the important data type, wherein In response to at least one written data being the important data type, re-entering the first data consolidation mode to perform the first data consolidation operation until the total used capacity is equal to a third preset capacity, wherein the second preset capacity is greater than the third preset capacity.

9. The memory control method according to claim 7, wherein the step of performing the second data merging operation include: Valid data in the first storage pool and the second storage pool are moved to a third physical erasing unit, and the third physical erasing unit is divided into the second storage pool.

10. The memory control method according to claim 4, wherein in response to the total used capacity being less than a fourth preset capacity, a third data consolidation operation is performed to move at least one data belonging to the important data type in the second storage pool to the first storage pool. 11 . The memory control method according to claim 1 , wherein the plurality of physical erase units in the first memory pool are single-level physical erase units, and the plurality of physical erase units in the second memory pool are triple-level physical erase units.

12. A memory controller, It is characterized in that Used to control a memory module, the memory module includes a first memory pool and a second memory pool, wherein the first memory pool and the second memory pool respectively include a plurality of physical erase units, and the memory controller is used to execute the memory control method according to any one of claims 1-11.

13. A memory storage device, It is characterized in that Used to execute the memory control method as described in any one of claims 1-11.