Data storage method and device and storage medium
By recording the timestamp of data in static random memory and migrating the data that meets the conditions to the flash memory mapping table, the problem of high SRAM storage pressure is solved, real-time data and storage space savings are achieved.
Patent Information
- Application Number
- CN202510912762.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-07-03
AI Technical Summary
Existing static random access memory (SRAM) increases storage pressure due to the actual-virtual mapping tables occupying a lot of storage space.
By recording the timestamp of the data in the first mapping table and storing the target data in the second mapping table in the flash memory when the trigger condition is met, and at the same time, deleting the corresponding target data in the first mapping table, the storage pressure of SRAM is reduced.
The real-time data in the first mapping table of static random memory is ensured, the space of static random memory is saved, and the storage cost is reduced.
Smart Images

Figure CN120406862A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and particularly relates to a data storage method, apparatus and storage medium thereof. Background Art
[0002] At present, in the field of non-volatile data storage technology, for the sake of the efficiency of garbage collection, in some products, there is an actual address-virtual address mapping table. This table is used to compare with the virtual address-actual address mapping table to judge the effective data usage of garbage collection. However, since the actual-virtual mapping table will occupy a large amount of storage space in the static random access memory, the storage pressure on the static random access memory increases. Therefore, how to reduce the storage pressure on the static random access memory has become an urgent problem to be solved. Summary of the Invention
[0003] The main technical problem to be solved by the present invention is the large storage pressure of the existing static random access memory.
[0004] According to a first aspect, there is provided a data storage method, the method comprising: determining time stamps respectively corresponding to data in a first mapping table in a static random access memory; if it is determined that the data in the first mapping table meets a trigger condition, determining target data according to the time stamps; storing the target data in a second mapping table of a flash memory, and deleting the target data in the first mapping table.
[0005] According to a second aspect, there is provided a data storage apparatus, the apparatus comprising: a time stamp determination module, configured to determine time stamps respectively corresponding to data in a first mapping table in a static random access memory; a target data determination module, configured to determine target data according to the time stamps if it is determined that the data in the first mapping table meets a trigger condition; and a processing module, configured to store the target data in a second mapping table of a flash memory, and delete the target data in the first mapping table.
[0006] According to a third aspect of embodiments of the present application, there is provided a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the data storage method as described above is implemented.
[0007] According to a fourth aspect of embodiments of the present application, there is provided an electronic device, comprising: a processor; a memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the data storage method as described above is implemented.
[0008] According to the data storage method / apparatus of the above embodiments, first record the timestamps of the data in the first mapping table, and when it is determined that the data in the first mapping table meets the trigger condition, determine the target data according to the timestamps, then store the target data in the second mapping table of the flash memory, and at the same time delete the corresponding target data in the first mapping table, so as to ensure the real-time nature of the data in the first mapping table of the static random access memory, and storing the target data in the second mapping table of the flash memory ensures the integrity of the data. At the same time, deleting the target data in the first mapping table saves the space of the static random access memory, reduces the storage pressure of the static random access memory, and reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0010] Figure 1 is a flowchart showing a data storage method according to an embodiment of the present application.
[0011] Figure 2 is a flowchart showing a data storage method according to another embodiment of the present application.
[0012] Figure 3 is a flowchart showing a data storage method according to still another embodiment of the present application.
[0013] Figure 4 is a flowchart showing a data storage method according to yet another embodiment of the present application.
[0014] Figure 5 is a block diagram showing a data storage apparatus according to an embodiment of the present application.
[0015] Figure 6 is a hardware structure diagram of an electronic device according to an embodiment of the present application.
[0016] Through the above accompanying drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These accompanying drawings and written descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art through specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] The present invention will be further described in detail below in conjunction with the accompanying drawings through specific embodiments. Similar elements in different embodiments are labeled with related similar reference numerals. In the following embodiments, many detailed descriptions are provided to enable a better understanding of the present application. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification, which is to avoid the core part of the present application being overwhelmed by excessive descriptions. For those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the descriptions in the specification and the general technical knowledge in the art.
[0018] In addition, the features, operations, or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. At the same time, the steps or actions in the method description can also be reordered or adjusted in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and drawings are only for clearly describing a certain embodiment and do not mean that they are the necessary sequences, unless it is stated that a certain sequence must be followed.
[0019] The serial numbers assigned to the components in this article, such as "first", "second", etc., are only used to distinguish the described objects and do not have any sequential or technical meanings. And the "connection" and "coupling" mentioned in the present application, unless otherwise specified, both include direct and indirect connections (couplings).
[0020] Currently, in the prior art, when data is written into each storage block in sequence through a write operation, the virtual address of the stored data can be recorded by using the actual position of the storage block as an index. For example, if a certain storage block has 8 * 1024 data storage units, generally, the virtual address of a data storage unit occupies 4 Bytes. Therefore, this storage block requires a storage block corresponding to 4 * 8 * 1024 Bytes = 32K Bytes of static random access memory (SRAM) to store the actual-virtual mapping table for indicating the storage position of the data. And when the data write operation of this storage block is completed, the actual-virtual mapping table in the SRAM is stored in the flash memory (NAND flash). However, the actual-virtual mapping table will occupy a large amount of SRAM, resulting in an increased storage pressure on the SRAM.
[0021] In an embodiment of the present invention, first, the timestamps of the data in the first mapping table are recorded, and when it is determined that the data in the first mapping table meets the triggering condition, the target data is determined according to the timestamps, and then the target data is stored in the second mapping table of the flash memory. At the same time, the corresponding target data is deleted from the first mapping table, so as to ensure the real-time nature of the data in the first mapping table of the static random access memory, and storing the target data in the second mapping table of the flash memory ensures the integrity of the data. At the same time, deleting the target data from the first mapping table saves the space of the static random access memory, reduces the storage pressure of the static random access memory, and reduces the cost.
[0022] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices. The flowcharts shown in the drawings are only exemplary illustrations and do not necessarily include all the content and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.
[0023] Please refer to Figure 1 , Figure 1 which shows a data storage method provided by an embodiment of the present application. In a specific embodiment, this data storage method can be applied to a data storage device 500 as shown in Figure 5 and an electronic device 600 configured with the data storage device 500 ( Figure 6 ). The specific process of this embodiment will be described below. Of course, it can be understood that this method can be executed by a computer terminal with computing and processing capabilities, or other processors, or a storage chip. The following will elaborate on the Figure 1 process shown. The data storage method can specifically include the following steps: Step 110, determine the timestamps corresponding to the data in the first mapping table in the static random access memory.
[0024] As a way, a time recording module can be set in the internal chip of the static random access memory to record the timestamp of the data written when the data is written into the static random access memory. In this way, the timestamps corresponding to the data in the first mapping table in the static random access memory can be directly determined in the time recording module.
[0025] Optionally, the first mapping table is used to represent the mapping relationship between the virtual address corresponding to the data written to the storage block and the physical location of the actual memory or device corresponding to the data, so as to facilitate read operations on the data in the memory, etc.
[0026] Step 120, if it is determined that the data in the first mapping table meets the trigger condition, then determine the target data according to the time stamp.
[0027] As a way, since the storage space of the static random access memory is limited, in order to ensure the real-time nature of the data in the first mapping table, the duration or size of the data stored in the first mapping table can be set, and this is used as the trigger condition to determine whether to store some data in the first mapping table in other places, so as to reduce the storage pressure of the static random access memory.
[0028] Optionally, the trigger condition can be that the data size in the first mapping table is greater than a certain threshold, or there is data in the first mapping table that exceeds a certain duration. In this way, it can be determined whether the corresponding trigger condition is met by detecting the data size in the first mapping table or the time interval between the time stamp of the data stored in the first mapping table and the current time. Optionally, the target data can be the data in the first mapping table that meets the trigger condition, or the data determined based on the trigger condition. The target data that meets its trigger condition can be determined based on the specific trigger condition.
[0029] In some embodiments, step "120" includes: if it is determined that the first actual data volume in the first mapping table is greater than the first data volume threshold, then determine that the data in the first mapping table meets the trigger condition.
[0030] As a way, the storage threshold of the first mapping table can be set in advance to obtain the first data threshold. When the first actual data volume in the first mapping table is greater than the first data volume threshold, it can be determined that if the corresponding data continues to be stored in the first mapping table, data overflow will occur, resulting in some data being unable to be stored in the first mapping table. At this time, by storing some data in the first mapping table in the second mapping table of the flash memory, it can be avoided that data overflow in the first mapping table causes some data to be unable to be stored, so as to determine that the data in the first mapping table meets the trigger condition. For example, if it is set that there are 8 * 1024 data storage units in the first mapping table, that is, the data of 8 * 1024 data storage units can be stored. If the data in the first mapping table is greater than the data of the 8 * 1024 data storage units, it can be determined that the trigger condition is met. Optionally, in order to avoid too much data in the first mapping table, a value less than 8 * 1024 data storage units can also be set as the first data volume threshold, which can be set according to actual needs.
[0031] Step 130, store the target data in the second mapping table of the flash memory, and delete the target data in the first mapping table.
[0032] As a way, in order to reduce the storage pressure of the static random access memory, the determined target data can be stored in the second mapping table of the flash memory, so as to facilitate querying the target data in the flash memory.
[0033] Optionally, the second mapping table is used to represent the mapping relationship between the physical address corresponding to the data written into the flash memory storage block and the actual memory or the virtual address of the device corresponding to the data, so as to facilitate read operations on the data in the flash memory, etc.
[0034] Optionally, in order to ensure the real-time nature of the data in the first mapping table in the static random access memory, when the target data is stored in the second mapping table in the flash memory, the target data is deleted in the first mapping table, so that when new data exists, it can be smoothly stored in the first mapping table.
[0035] In some embodiments, the first mapping table is a virtual-real mapping table, and the second mapping table is a real-virtual mapping table.
[0036] As a way, in the virtual-real mapping table or the real-virtual mapping table, the real is used to indicate the physical address corresponding to the data, that is, the real hardware address on the memory chip, while the virtual is the address corresponding to the process that generates or manages the data.
[0037] Optionally, since the corresponding read operation cannot be performed through the virtual machine address corresponding to the data when reading the data, it is necessary to know the actual physical address of the data to perform read operations, etc. Therefore, in order to facilitate knowing the virtual address and the actual physical address corresponding to each data, a module for storing the first mapping table can be set in the static random access memory respectively, so as to ensure that the virtual address and the actual physical address of each data can be preferentially stored in the first mapping table. Similarly, a module for storing the second mapping table can be set in the flash memory, so as to ensure that the virtual address and the actual physical address of the target data can be preferentially stored in the second mapping table.
[0038] In an embodiment of the present application, first, the timestamps of the data in the first mapping table are recorded, and when it is determined that the data in the first mapping table meets the trigger condition, the target data is determined according to the timestamps, and then the target data is stored in the second mapping table of the flash memory, and at the same time, the corresponding target data is deleted from the first mapping table, so as to ensure the real-time nature of the data in the first mapping table of the static random access memory, and storing the target data in the second mapping table of the flash memory ensures the integrity of the data. At the same time, deleting the target data from the first mapping table saves the space of the static random access memory, reduces the storage pressure of the static random access memory, and reduces the cost.
[0039] Please refer to Figure 2 , Figure 2 which shows a data storage method provided by an embodiment of the present application. The following will elaborate in detail on the Figure 2 process shown. The data storage method may specifically include the following steps: Step 210, determine the timestamps corresponding to the data in the first mapping table in the static random access memory.
[0040] Step 220, determine the second actual data volume in the first mapping table within a preset time period.
[0041] As a way, in order to ensure the real-time nature of the data in the first mapping table, the second actual data volume of the first mapping table can be determined within a certain time period to ensure that the time gap of the data in the first mapping table is not too large. Optionally, the corresponding preset time period can be set according to the frequency of writing data to the first mapping table to avoid data overflow caused by too long a time period.
[0042] Step 230, if the second actual data volume is greater than the second data volume threshold, it is determined that the data in the first mapping table meets the trigger condition.
[0043] As a way, if it is determined that the second actual data volume determined within the preset time period is greater than the second data volume threshold, it can be determined that the data volume stored within the preset time period is relatively large, which may cause subsequent data not to be stored in the first mapping table or other data may not be able to be stored in the first mapping table. Therefore, it can be determined that the data in the first mapping table meets the trigger condition.
[0044] Optionally, the second data volume threshold is less than the first data volume threshold, so as to avoid the situation of data overflow that has occurred in the first mapping table caused by too large a second data volume threshold.
[0045] Step 240, store the target data in the second mapping table of the flash memory and delete the target data from the first mapping table.
[0046] For the specific step descriptions of steps 210 and 240, please refer to steps 110 and 130, and details will not be elaborated herein.
[0047] In this embodiment, the second actual data volume in the first mapping table is determined within a preset time period, so that when it is determined that the second actual data volume is greater than the second data volume threshold, it can be determined that the data in the first mapping table meets the trigger condition, thus ensuring the accuracy of the determination timing of the target data.
[0048] Please refer to Figure 3 , Figure 3 shows a data storage method provided by an embodiment of the present application. The following will elaborate in detail on the Figure 3 shown process. The data storage method may specifically include the following steps: Step 310, determine the timestamps corresponding to the data in the first mapping table in the static random access memory.
[0049] Step 320, if it is determined that the data in the first mapping table meets the trigger condition, then determine the time order of each data in the first mapping table according to the timestamp.
[0050] As a way, when it is determined that the data in the first mapping table meets the trigger condition, in order to reduce the storage pressure of the static random access memory, the target data stored in the flash memory can be first determined in the first mapping table. In order to determine the target data, the timestamps corresponding to the data in the first mapping table can be used, and then the time order of each data stored in the first mapping table can be determined based on the timestamps, so that the target data can be determined based on the time order.
[0051] Step 330, perform screening in the first mapping table based on the time order to determine the target data.
[0052] As a way, after determining the time order of each data in the first mapping table, the data in the first mapping table is screened to determine the target data that meets the corresponding conditions. Optionally, the target data can be a certain amount of data with the earliest time or a certain amount of data with the latest time, and the screening conditions corresponding to the target data can be set according to actual needs.
[0053] In some embodiments, step 330 includes: determining a preset number of reference data with later time sequences in the first mapping table according to the time order; filtering the reference data in the first mapping table to obtain the target data.
[0054] As a way, after determining the time order corresponding to each data in the first mapping table, the data in the first mapping table can be arranged according to the time order to obtain data sorted based on the time series, and this time series can be in the order of the time stamp from early to late or from late to early.
[0055] Optionally, in order to ensure that the data in the first mapping table is the latest data, a preset number of reference data with a relatively late sort, that is, the latest time stamp, can be determined based on the time series. These reference data are the data that have been stored in the first mapping table recently. By filtering at intervals of these reference data in the first mapping table, the target data can be obtained.
[0056] Optionally, a certain number of data with earlier time stamps can also be directly selected as the target data in the first mapping according to the time order, ensuring the real-time nature of the data in the first mapping table.
[0057] Step 340, store the target data in the second mapping table of the flash memory, and delete the target data in the first mapping table.
[0058] Among them, for the specific step descriptions of step 310 and step 340, please refer to step 110 and step 130, and will not be elaborated here.
[0059] In this embodiment, by determining the time order of each data in the first mapping table according to the time stamp corresponding to each data, data screening can be performed in the first mapping table based on the time order to obtain the target data, ensuring the accuracy of the target data.
[0060] Please refer to Figure 4 , Figure 4 shows the data storage method provided by an embodiment of the present application. The following will elaborate in detail on the Figure 4 shown process. The data storage method may specifically include the following steps: Step 410, match the first mapping table and the second mapping table to determine the matching data.
[0061] As a way, in order to ensure the normal operation of the electronic device while reducing the storage pressure of the memory of the electronic device, the data in the memory occupied by the objects no longer used by the program corresponding to the electronic device can be deleted, and the data still in use can still be reused. The data in the first mapping table and the second mapping table can be matched to determine the matching data.
[0062] Step 420, perform data recovery based on the matching data.
[0063] As a way, the matching data refers to the data that exists in both the first mapping table and the second mapping table. When data is stored in different storage locations, corresponding data indicating the stored data may be generated, and this stored data is not the critical data required by the electronic device. Therefore, this data does not need to be recycled. In this way, the matching data can be recycled, and the non-matching data can be deleted to reduce the storage pressure.
[0064] In this embodiment, by matching the first mapping table and the second mapping table to obtain the matching data, data recycling can be performed based on the matching data, improving the convenience of data use and the processing efficiency of the electronic device.
[0065] Figure 5 It is a block diagram of a data storage device according to an embodiment of the present application, as Figure 5 shown, the data storage device 500 includes: a timestamp determination module 510, a target data determination module 520, and a processing module 530.
[0066] The timestamp determination module 510 is used to determine the timestamps corresponding to the data in the first mapping table in the static random access memory; the target data determination module 520 is used to determine the target data according to the timestamp if it is determined that the data in the first mapping table meets the trigger condition; the processing module 530 is used to store the target data in the second mapping table of the flash memory and delete the target data in the first mapping table.
[0067] In some embodiments, the target data determination module 520 includes: a first judgment unit, which is used to determine that the data in the first mapping table meets the trigger condition if it is determined that the first actual data amount in the first mapping table is greater than the first data amount threshold.
[0068] In some embodiments, the determination that the data in the first mapping table meets the trigger condition includes: a second actual data amount determination unit, which is used to determine the second actual data amount in the first mapping table within a preset duration; a second judgment unit, which is used to determine that the data in the first mapping table meets the trigger condition if the second actual data amount is greater than the second data amount threshold.
[0069] In some embodiments, the target data determination module 520 includes: a time sequence determination unit, which is used to determine the time sequence of the data in the first mapping table according to the timestamp; a target data determination unit, which is used to screen in the first mapping table based on the time sequence to determine the target data.
[0070] In some embodiments, the target data determination unit is further configured to: determine a preset number of reference data with a later time sequence in the first mapping table according to the time sequence; filter the reference data in the first mapping table to obtain the target data.
[0071] In some embodiments, the storage device 500 of the data further includes: a matching data determination module, configured to match the first mapping table and the second mapping table to determine matching data; a data recovery module, configured to perform data recovery based on the matching data.
[0072] In some embodiments, the first mapping table is a virtual-real mapping table, and the second mapping table is a real-virtual mapping table.
[0073] According to one aspect of the embodiments of the present application, an electronic device is further provided, as Figure 6 shown. The electronic device 600 includes a processor 610 and one or more memories 620. The one or more memories 620 are used to store program instructions executed by the processor 610. When the processor 610 executes the program instructions, the above-mentioned data storage method is implemented.
[0074] Further, the processor 610 may include one or more processing cores. The processor 610 runs or executes instructions, programs, code sets or instruction sets stored in the memory 620, and calls data stored in the memory 620. Optionally, the processor 610 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 610 may integrate one or several combinations of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing display content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor and may be implemented separately through a communication chip.
[0075] According to one aspect of the present application, the present application further provides a computer-readable storage medium. This computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist alone without being assembled into the electronic device. The above computer-readable storage medium carries computer-readable instructions. When the computer-readable storage instructions are executed by a processor, the method in any of the above embodiments is implemented.
[0076] It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0077] The units described in the embodiments of the present application can be implemented in software or in hardware. The described units can also be provided in a processor. Among them, the names of these units do not constitute a limitation to the unit itself in some cases.
[0078] The above uses specific examples to illustrate the present invention, which is only for helping to understand the present invention and is not intended to limit the present invention. For those skilled in the art of the present invention, according to the idea of the present invention, several simple deductions, deformations or substitutions can also be made.
Claims
1. A method for storing data, characterized in that, The method includes: Determining the timestamps respectively corresponding to the data in the first mapping table in the static random access memory; If it is determined that the data in the first mapping table meets the trigger condition, determining the target data according to the timestamps; Storing the target data in the second mapping table of the flash memory and deleting the target data from the first mapping table.
2. The method according to claim 1, wherein The "if it is determined that the data in the first mapping table meets the trigger condition" includes: If it is determined that the first actual data volume in the first mapping table is greater than the first data volume threshold, determining that the data in the first mapping table meets the trigger condition.
3. The method according to claim 1, characterized in that, The "if it is determined that the data in the first mapping table meets the trigger condition" includes: Determining the second actual data volume in the first mapping table within a preset time period; If the second actual data volume is greater than the second data volume threshold, determining that the data in the first mapping table meets the trigger condition.
4. The method according to claim 1, characterized in that, The "determining the target data according to the timestamps" includes: Determining the time order of the data in the first mapping table according to the timestamps; Based on the time order, performing screening in the first mapping table to determine the target data.
5. The method according to claim 4, wherein The "performing screening in the first mapping table based on the time order to determine the target data" includes: Determining a preset number of reference data with later time series in the first mapping table according to the time order; Filtering the reference data in the first mapping table to obtain the target data.
6. The method according to claim 1, wherein The method further includes: Matching the first mapping table and the second mapping table to determine the matching data; Performing data recovery based on the matching data.
7. The method according to any one of claims 1-6, characterized in that The first mapping table is a virtual - actual mapping table, and the second mapping table is an actual - virtual mapping table.
8. A storage device for data, characterized in that, The device includes: A timestamp determination module, configured to determine the timestamps respectively corresponding to the data in the first mapping table in the static random access memory; A target data determination module, configured to determine the target data according to the timestamps if it is determined that the data in the first mapping table meets the trigger condition; A processing module, configured to store the target data in the second mapping table of the flash memory and delete the target data from the first mapping table.
9. An electronic device, characterized in that, The electronic device includes: A processor; A memory, on which computer - readable instructions are stored, and when the computer - readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that, Program code is stored in the computer - readable storage medium, and the program code can be called by the processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Memory device and operation method thereof
CN101930404A
Storage device controller and operating method of controller
CN111796761A
HMB-based mapping table management method and device and computer equipment
CN113407120A
Data read-write method, storage device and storage medium
CN115576863A
Mapping table management method and memory
CN116737613A