CN115344202A - Method and device for managing thermal data, terminal equipment and computer storage medium - Google Patents

Method and device for managing thermal data, terminal equipment and computer storage medium Download PDF

Info

Publication number
CN115344202A
CN115344202A CN202210875426.6A CN202210875426A CN115344202A CN 115344202 A CN115344202 A CN 115344202A CN 202210875426 A CN202210875426 A CN 202210875426A CN 115344202 A CN115344202 A CN 115344202A
Authority
CN
China
Prior art keywords
data
thermal data
address
flash memory
physical space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210875426.6A
Other languages
Chinese (zh)
Inventor
李哲军
吴大畏
李晓强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN SILICONGO MICROELECTRONICS CO Ltd
Original Assignee
SHENZHEN SILICONGO MICROELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN SILICONGO MICROELECTRONICS CO Ltd filed Critical SHENZHEN SILICONGO MICROELECTRONICS CO Ltd
Priority to CN202210875426.6A priority Critical patent/CN115344202A/en
Publication of CN115344202A publication Critical patent/CN115344202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • G06F3/0649Lifecycle management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Memory System (AREA)

Abstract

The invention discloses a method and a device for managing thermal data, terminal equipment and a computer storage medium, wherein the method for managing the thermal data is applied to a Flash memory and comprises the following steps: when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space; determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space; and storing the address mapping table to a preset random access memory to manage the first hot data. By adopting the invention, the technical effect of reading the thermal data by the host can be improved when the thermal data is managed by the Flash memory.

Description

Method and device for managing thermal data, terminal equipment and computer storage medium
Technical Field
The present invention relates to the field of memory technologies, and in particular, to a method and an apparatus for managing thermal data, a terminal device, and a computer storage medium.
Background
In recent years, with the opening of the information age, it is a very important issue to quickly read and write hot data frequently accessed by users, and the data contents of the hot data and the normal data are generally placed together in a disk.
For the above thermal data reading and writing and searching methods, the prior art proposes to store the individual thermal data in a Random Access Memory (RAM), which is faster than the speed of storing the thermal data in a disk for hierarchical reading and writing, but the memory of the RAM is often very small, resulting in very low collision probability of the thermal data, i.e., the thermal data is not stored in the RAM even if the host determines that the current data is the thermal data.
Disclosure of Invention
The invention mainly aims to provide a thermal data management method, a terminal device and a computer storage medium, aiming at realizing the technical effect of improving the speed of reading the thermal data by a host when the thermal data is managed by a Flash memory.
In order to achieve the above object, the present invention provides a method for managing thermal data, which is applied to a Flash memory, and comprises the following steps:
when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space;
determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
and storing the address mapping table to a preset random access memory to manage aiming at the first hot data.
Optionally, the step of determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data includes:
and determining the first physical space of the single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data.
Optionally, the step of determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space includes:
determining a physical address of the single-layer unit in the Flash memory according to the first physical space;
and determining the address mapping table of the first thermal data in the Flash memory according to the physical address and the logic block address of the first thermal data.
Optionally, the physical address includes: the step of determining the address mapping table of the first hot data in the Flash memory according to the physical address and the logical block address of the first hot data comprises the following steps:
and determining the address mapping table of the first thermal data in the Flash memory according to the block address, the page address and the logic block address.
Optionally, after the step of determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space, the method further includes:
when a write-in instruction of second thermal data is received, determining a second physical space of the single-layer storage unit of the Flash memory according to the second thermal data, and storing the data content of the second thermal data to the second physical space;
and updating the address mapping table according to the second thermal data and the second physical space.
Optionally, managing the first thermal data comprises: reading data content of the first hot data;
the step of storing the address mapping table in a preset random access memory to manage the first hot data includes:
confirming the address mapping table in the random access memory when a reading instruction of first hot data is received;
determining a physical address corresponding to a logical block address of the first hot data according to the address mapping table;
and reading the data content of the first hot data according to the physical address.
Optionally, the step of reading the data content of the first hot data according to the physical address includes:
determining the corresponding first physical space in the single-layer storage unit according to the physical address;
reading data content of the first thermal data in the first physical space.
In order to achieve the above object, the present invention provides a thermal data management device, including:
the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a first physical space of a single-layer storage unit of a Flash memory according to first thermal data when a write-in instruction of the first thermal data is received, and storing first data content of the first thermal data into the first physical space;
the second determining module is used for determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
and the storage module is used for storing the address mapping table into a preset random access memory so as to manage the first hot data.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor and a hypervisor of thermal data stored on the memory and executable on the processor, the hypervisor of thermal data implementing the steps of the method of managing thermal data as described above when executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer storage medium having a thermal data management program stored thereon, the thermal data management program implementing the steps of the thermal data management method described above when executed by a processor.
The invention provides a method and a device for managing thermal data, terminal equipment and a computer readable storage medium, wherein the method for managing the thermal data is applied to a Flash memory and comprises the following steps; when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space; determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space; and storing the address mapping table to a preset random access memory to manage the first hot data.
The technical scheme of the invention is applied to a Flash memory, when a write-in instruction aiming at first thermal data is received, a first physical space for storing the first thermal data is found on a single-layer storage unit of the Flash memory according to the first thermal data, the first data content of the first thermal data is stored in the first physical space of the Flash memory, then an address mapping table of the first thermal data in the Flash memory is determined according to the first thermal data and the first physical space, and finally the address mapping table is stored in a preset random access memory so as to manage aiming at the first thermal data according to the address mapping table.
Compared with the traditional mode of storing the thermal data in the random access memory, the method determines the corresponding physical space in the single-layer storage unit of the Flash memory according to the thermal data when receiving the instruction of writing the thermal data, stores the thermal data in the physical space, and then stores the address mapping table determined according to the thermal data and the physical space in the preset random access memory so as to manage the thermal data according to the address mapping table. Therefore, the invention realizes the technical effect of greatly improving the speed of reading the thermal data by the host when the Flash memory manages the thermal data.
Drawings
Fig. 1 is a schematic structural diagram of the hardware operation of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for managing thermal data according to the present invention;
FIG. 3 is a schematic diagram illustrating a flow of writing thermal data according to an embodiment of a method for managing thermal data of the present invention;
FIG. 4 is a schematic diagram illustrating a flow of read hot data according to an embodiment of a method for managing hot data of the present invention;
FIG. 5 is a diagram illustrating an address mapping table according to an embodiment of a method for managing hot data according to the present invention;
FIG. 6 is a schematic diagram of the structure of a system for managing thermal data according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal device. The terminal device according to the embodiment of the present invention may be a device for executing the thermal data management method provided by the present invention based on a Flash memory, and the terminal device may specifically be a mobile terminal, a data storage control terminal, a PC, a portable computer, or other terminals.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a WI-FI interface). The memory 1005 may be a non-volatile memory (e.g., flash memory), a high-speed RAM memory, or a non-volatile memory (e.g., a disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a management program of thermal data. Among them, the operating system is a program that manages and controls the hardware and software resources of the sample terminal device, a management program that supports hot data, and the execution of other software or programs.
In the terminal apparatus shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be configured to call a hypervisor of the thermal data stored in the memory 1005 and perform the following operations:
when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space;
determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
and storing the address mapping table to a preset random access memory to manage the first hot data.
Alternatively, the processor 1001 may be used to invoke a hypervisor of thermal data stored in the memory 1005, and further perform the following operations:
and determining the first physical space of the single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data.
Alternatively, the processor 1001 may be used to invoke a hypervisor of thermal data stored in the memory 1005, and further perform the following operations:
determining a physical address of the single-layer unit in the Flash memory according to the first physical space;
and determining the address mapping table of the first thermal data in the Flash memory according to the physical address and the logical block address of the first thermal data.
Optionally, the physical address includes: block address and page address, the processor 1001 may be used to invoke a hypervisor of thermal data stored in the memory 1005, and also perform the following operations:
and determining the address mapping table of the first thermal data in the Flash memory according to the block address, the page address and the logic block address.
Alternatively, the processor 1001 may be configured to call a hypervisor of the thermal data stored in the memory 1005, and after performing the step of determining the address mapping table according to the thermal data and the physical space, further perform the following operations:
when a write-in instruction of second thermal data is received, determining a second physical space of the single-layer storage unit of the Flash memory according to the second thermal data, and storing the data content of the second thermal data to the second physical space;
and updating the address mapping table according to the second thermal data and the second physical space.
Optionally, managing the first thermal data comprises: reading data content of the first hot data;
the processor 1001 may be configured to invoke a hypervisor of thermal data stored in the memory 1005, and further perform the following steps:
confirming the address mapping table in the random access memory when a reading instruction of first hot data is received;
determining a physical address corresponding to a logical block address of the first hot data according to the address mapping table;
and reading the data content of the first hot data according to the physical address.
Alternatively, the processor 1001 may be used to invoke a hypervisor of thermal data stored in the memory 1005, and further perform the following operations:
determining the corresponding first physical space in the single-layer storage unit according to the physical address;
reading data content of the first thermal data in the first physical space.
Based on the above structure, various embodiments of the management method of thermal data of the present invention are proposed.
It should be noted that, in this embodiment, since it is a very important issue to quickly read and write hot data frequently accessed by a user with the opening of the information age in recent years, data contents of the hot data and the normal data are generally placed together in a disk, and when a host searches for the hot data, it is necessary to search for the hot data hierarchically in all the hot data and the normal data, which results in a very slow speed of reading and writing the hot data.
For the above thermal data reading and writing and searching methods, the prior art proposes to store the individual thermal data in a Random Access Memory (RAM), which is faster than the speed of storing the thermal data in a disk for hierarchical reading and writing, but the memory of the RAM is often very small, resulting in very low collision probability of the thermal data, i.e., the thermal data is not stored in the RAM even if the host determines that the current data is the thermal data.
In view of the above phenomenon, the present application provides a method for managing thermal data, where when a write instruction for first thermal data is received, a first physical space for storing the first thermal data is found on a single-layer storage unit of a Flash memory according to the first thermal data, a first data content of the first thermal data is stored in the first physical space of the Flash memory, an address mapping table of the first thermal data in the Flash memory is determined according to the first thermal data and the first physical space, and finally the address mapping table is stored in a preset random access memory to manage the first thermal data according to the address mapping table.
Compared with the traditional mode of storing the thermal data in the random access memory, the method determines the corresponding physical space in the single-layer storage unit of the Flash memory according to the thermal data when receiving the instruction of writing the thermal data, stores the thermal data in the physical space, and then stores the address mapping table determined according to the thermal data and the physical space in the preset random access memory so as to manage the thermal data according to the address mapping table. Therefore, the invention realizes the technical effect of greatly improving the speed of reading the thermal data by the host when the Flash memory manages the thermal data.
Referring to fig. 2, fig. 2 is a flowchart illustrating a thermal data management method according to a first embodiment of the present invention.
The embodiment of the invention provides an embodiment of a thermal data management method, which is applied to the terminal equipment to manage thermal data for a Flash memory. It should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
In this embodiment, the method for managing thermal data of the present invention is applied to a Flash memory, and the method for managing thermal data of the present invention includes:
step S10: when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space;
in this embodiment, when receiving an instruction sent by a host to write first thermal data, a terminal device determines a first physical space of a single-layer storage unit of a Flash memory according to the first thermal data, and stores data content of the first thermal data in the first physical space of the single-layer storage unit of the Flash memory.
For example, as shown in the schematic diagram of the address mapping table shown in fig. 5, in this embodiment, when receiving an instruction sent by a host to write hot data, a terminal device determines a physical space in a single-layer storage unit of a Flash memory according to the hot data, that is, determines a space in a solid state disk, which actually stores the hot data, according to the hot data, and stores the hot data in the physical space, where the solid state disk is specifically a Flash memory, and it should be understood that when receiving an instruction to write general data, the terminal device finds a space in the Flash memory according to the general data, and stores the general data in the Flash memory.
It should be noted that, in this embodiment, a Single-layer storage unit of the Flash memory is an SLC (Single Level Cell), that is, one Cell (unit space) may store one bit data, and the Flash memory may specifically be an MLC Flash memory, a TLC Flash memory, and a QLC Flash memory, but is not limited to the above Flash memory, and may also be other Flash memories, where the MLC Flash memory, the TLC Flash memory, the QLC Flash memory, or other Flash memories all support an SLC mode.
Optionally, in some possible embodiments, in step S10, the step of "determining the first physical space of the single-layer storage unit of the Flash memory according to the first thermal data" may include the following steps:
step S101: and determining the first physical space of the single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data.
In this embodiment, when receiving an instruction sent by a host to write first thermal data, a terminal device determines a first physical space of a single-layer storage unit of a Flash memory according to a logical block address and a data length of the first thermal data.
Illustratively, in this embodiment, after receiving the instruction to write the hot data, the terminal device determines the physical space of the single-layer storage unit of the Flash memory according to the Logical block address 33000 sectors of the hot data and the sector with a data length of 4 sectors, and it should be understood that the Logical block address is an LBA (Logical block address) address, and the LBA address is a storage space seen by the host.
Step S20: determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
in this embodiment, after determining the first physical space of the single-layer storage unit of the Flash memory according to the thermal data, the terminal device determines the address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space.
For example, in this embodiment, after determining the physical space of the single-layer storage unit of the Flash memory storing the thermal data, that is, after actually storing the physical space of the single-layer storage unit of the Flash memory storing the thermal data, the terminal device determines the address mapping table of the first thermal data in the Flash memory according to the thermal data and the physical space.
Optionally, in some possible embodiments, step S20 may include the following steps:
step S201: determining a physical address of the single-layer unit in the Flash memory according to the first physical space;
in this embodiment, after determining a first physical space of a single-layer storage unit of a Flash memory according to a logical block address and a data length of first thermal data, a terminal device determines a physical address of the single-layer storage unit in the Flash memory according to the first physical space.
Step S202: and determining the address mapping table of the first thermal data in the Flash memory according to the physical address and the logical block address of the first thermal data.
In this embodiment, after determining the first physical space according to the logical block address and the data length of the first hot data, the terminal device determines the address mapping table of the first hot data in the Flash memory according to the physical address determined in the first physical space and the logical block address of the first hot data.
Exemplarily, in this embodiment, after determining a physical space according to a logical block address of thermal data being 157799 sector and a data length being 3 sectors, the terminal device determines the address mapping table of the thermal data in the Flash memory according to a physical address determined by the physical space and the logical address 157799 sector.
Or, exemplarily, in this embodiment, after determining the first physical space according to the logical block address of the first hot data being 7777777 sector and the data length being 5 sectors, the terminal device determines the address mapping table of the hot data in the Flash memory according to the physical address determined by the first physical space and the logical address 7777777 sector.
Still alternatively, for example, in this embodiment, after determining a physical space according to the logical block address of the first hot data being 157790 sector and the data length being 3 sectors, the terminal device determines the address mapping table of the hot data in the Flash memory according to the physical address determined by the physical space and the logical address 157790 sector.
Optionally, in some possible embodiments, the physical address includes: the block address and page address, step S202, may include the steps of:
step S2021: and determining the address mapping table of the first thermal data in the Flash memory according to the block address, the page address and the logic block address.
In this embodiment, after determining a first physical space of a single-layer storage unit of a Flash memory according to a logical block address and a data length of first hot data, a terminal device determines a block address and a page address according to the first physical space, and then determines the address mapping table of the first hot data in the Flash memory according to the block address, the page address and the logical block address of the first hot data.
Exemplarily, in this embodiment, as shown in the schematic diagram of the thermal data writing flow shown in fig. 3 and as shown in the schematic diagram of the address mapping table shown in fig. 5, the terminal device finds a physical space in a single-layer storage unit of the Flash memory according to that the logical block address of the thermal data is 33000 sectors and the data length is 4 sectors, then determines the block address and the page address of the physical space according to the physical space, that is, the physical space is block 4 and page 900, and then determines the address mapping table of the thermal data in the Flash memory according to the logical block address 33000 sectors of the thermal data and the physical address blocks 4 and pages 900.
Or, exemplarily, in this embodiment, as shown in the write hot data flow diagram shown in fig. 3 and the address mapping table diagram shown in fig. 5, the terminal device finds a physical space in a single-layer storage unit of the Flash memory according to that the logical block address of the hot data is 7777777 sector and the data length is 5 sectors, then determines the block address and the page address of the physical space according to the physical space, that is, the first physical space is block 0 and page 0, and then determines the address mapping table of the hot data in the Flash memory according to the logical block address 7777777 sector of the first hot data and the physical address block 0 and page 0.
Still alternatively, for example, in this embodiment, as shown in the schematic diagram of the thermal data writing flow shown in fig. 3 and the schematic diagram of the address mapping table shown in fig. 5, the terminal device finds a physical space in a single-layer storage unit of the Flash memory according to that the logical block address of the thermal data is 157790 sectors and the data length is 3 sectors, then determines the block address and the page address of the physical space according to the physical space, that is, the physical space is block 1200 and page 0, and then determines the address mapping table of the thermal data in the Flash memory according to that the logical block address 157790 sectors of the thermal data and the physical address block 1200 and page 0.
Optionally, in some possible embodiments, after step S20, the method for managing thermal data according to the present invention may further include the following steps:
step S40: when a write-in instruction of second thermal data is received, determining a second physical space of the single-layer storage unit of the Flash memory according to the second thermal data, and storing the data content of the second thermal data to the second physical space;
in this embodiment, after the single-layer storage unit of the Flash memory writes the first thermal data, if the terminal device receives the instruction for writing the second thermal data, the terminal device determines the second physical space of the single-layer storage unit of the Flash memory according to the second thermal data, and stores the second data content of the second thermal data in the second physical space.
For example, in this embodiment, after writing the logical block address 33000 of the first hot data and the physical address block 4 and page 900 corresponding to the logical block address in the address mapping table, if receiving an instruction sent by the host to write the second hot data again, the terminal device determines the physical space in the single-layer storage unit of the Flash memory according to the logical address 7777777 of the second hot data and the 5 sectors with the data length, and stores the data content of the second hot data in the physical space.
Step S50: and updating the address mapping table according to the second thermal data and the second physical space.
In this embodiment, after determining the second physical space of the single-layer memory unit of the Flash memory according to the second thermal data, the terminal device updates the address mapping table according to the second thermal data and the second physical space.
For example, in this embodiment, after determining the physical space of the single-layer storage unit of the Flash memory storing the thermal data according to the logical address 7777777 and the 5 sectors of the data length of the second thermal data, that is, after actually storing the physical space of the single-layer storage unit of the Flash memory storing the thermal data, the terminal device updates the address mapping table according to the logical address 7777777 of the second thermal data and the physical address block 4 and page 900 of the physical space.
Step S30: and storing the address mapping table to a preset random access memory to manage aiming at the first hot data.
In this embodiment, after determining a first physical space of a single-layer storage unit of a Flash memory according to a logical block address and a data length of first thermal data, a terminal device determines an address mapping table according to a physical address determined by the first physical space and the logical block address of the first thermal data, finally stores the address mapping table in a preset random access memory, and finally manages the first thermal data according to the address mapping table.
Illustratively, in this embodiment, the terminal device finds a physical space in a single-layer storage unit of a Flash memory according to a logical block address of hot data being 33000 sectors and a logical block address of the hot data being 4 sectors (sectors), then determines an address mapping table according to the physical address determined by the physical space and the logical block address 33000 sectors of the hot data, and finally stores the address mapping table in a preset random access memory, it should be understood that the random access memory is a RAM, and manages the first hot data according to the address mapping table.
Or, exemplarily, in this embodiment, the terminal device finds a physical space in a single-layer storage unit of a Flash memory according to that a logical block address of the thermal data is 777777 sectors and a data length is 5 sectors, then determines an address mapping table according to a physical address determined by the physical space and a logical block address 777777 sectors of the thermal data, finally stores the address mapping table in a preset random memory, and finally manages the first thermal data according to the address mapping table.
Still alternatively, for example, in this embodiment, the terminal device finds a physical space in a single-layer storage unit of a Flash memory according to a logical block address of the thermal data being 157790 sector and a data length being 3 sectors, then determines an address mapping table according to a physical address determined in the physical space and a logical block address 157790 sector of the thermal data, finally stores the address mapping table in a preset random access memory, and finally manages the first thermal data according to the address mapping table.
Thus, in this embodiment, when receiving an instruction to write first thermal data, a terminal device determines a first physical space of a single-layer storage unit of a Flash memory according to the first thermal data, and stores data content of the first thermal data in the first physical space of the single-layer storage unit of the Flash memory; then, after determining a first physical space of a single-layer storage unit of a Flash memory according to the thermal data, the terminal device determines an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space; and finally, after determining a first physical space of a single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data, the terminal equipment determines an address mapping table according to the physical address determined by the first physical space and the logical block address of the first thermal data, stores the address mapping table into a preset random access memory, and manages the first thermal data according to the address mapping table.
Therefore, the invention determines the physical space of the single-layer storage unit of the Flash memory according to the thermal data, stores the data content of the thermal data into the physical space, then determines the address mapping table according to the logical block address of the thermal data and the physical space, and finally manages the thermal data according to the address mapping table, and the speed of accessing the single-layer storage unit of the Flash memory is high, thereby greatly improving the technical effect of the speed of reading the thermal data by the host.
Alternatively, based on the above first embodiment of the management method of thermal data of the present invention, a second embodiment of the management method of thermal data of the present invention is proposed.
In this embodiment, in the step S30, the managing the first thermal data includes: the step of reading the data content of the first hot data, and storing the address mapping table in a preset random access memory to manage the first hot data may include the steps of:
step S301: confirming the address mapping table in the random access memory when a reading instruction of first hot data is received;
in this embodiment, after writing the first hot data in the single-layer storage unit of the Flash memory, if receiving a read instruction for the first hot data sent by the host, the terminal device confirms the address mapping table in the random access memory.
Step S302: and determining a physical address corresponding to the logical block address of the first hot data according to the address mapping table.
In this embodiment, after determining the address mapping table according to the first hot data, if an instruction to read the first hot data is received, the terminal device determines, according to the address mapping table, a physical address corresponding to the logical block address of the first hot data.
Exemplarily, as shown in the schematic diagram of reading the thermal data in fig. 4 and the schematic diagram of the address mapping table in fig. 5, in this embodiment, after writing the first thermal data in the single-layer storage unit of the Flash memory, if receiving an instruction to read the first thermal data, the terminal device determines, according to the address mapping table, the physical address corresponding to the logical block address 157799 sector of the first thermal data, that is, the physical address of the single-layer storage unit of the Flash memory is block 7 and page 100.
Step S303: and reading the data content of the first hot data according to the physical address.
In this embodiment, after determining the corresponding physical address according to the logical block address of the first hot data, the terminal device reads the first data content according to the physical address to manage the first hot data.
Exemplarily, as shown in the schematic diagram of the address mapping table shown in fig. 5, in this embodiment, after determining the corresponding physical address block 7 and page 100 according to the logical block address 157799 sector of the first thermal data, the terminal device reads the data content according to the block 7 and page 100 of the single-layer memory unit of the Flash memory to manage for the first thermal data.
Optionally, in some possible embodiments, step 303 may include the following steps:
step 3031: determining the corresponding first physical space in the single-layer storage unit according to the physical address;
in this embodiment, after determining a corresponding physical address according to a logical block address of the first thermal data, the terminal device determines a corresponding first physical space in a single-layer storage unit of the Flash memory according to the physical address.
Exemplarily, as shown in the schematic diagram of the address mapping table shown in fig. 5, in this embodiment, after the terminal device determines the corresponding physical address block 7 and page 100 according to the logical block address 157799 sector of the first hot data, the terminal device determines the corresponding first physical space in the single-layer storage unit of the Flash memory according to the block 7 and page 100.
Step 3032: reading data content of the first thermal data in the first physical space.
In this embodiment, after determining the corresponding first physical space according to the physical address, the terminal device reads the data content of the first hot data in the first physical space to manage the first hot data.
Exemplarily, in the present embodiment, after determining the first physical space corresponding to the physical address in the single-pass storage unit of the Flash memory according to the physical address block 7 and the page 100, the terminal device reads the data content of the first hot data in the first physical space to manage for the first hot data.
The invention determines the corresponding physical address in the address mapping table through the logical block address of the first hot data, then determines the physical space according to the physical address, and finally reads the data content of the physical space, thereby greatly improving the technical effect of the speed of reading the hot data by the host.
In addition, referring to fig. 6, an embodiment of the present invention further provides a thermal data management apparatus, where the thermal data management method is applied to a Flash memory, and the thermal data management apparatus includes:
a first determining module 10, configured to determine, when a write instruction for first thermal data is received, a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and store first data content of the first thermal data in the first physical space;
a second determining module 20, configured to determine an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
a storing module 30, configured to store the address mapping table in a preset random access memory to manage the first hot data.
Optionally, the first determining module 10 includes:
and the first determining unit is used for determining the first physical space of the single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data.
Optionally, the second determining module 20 includes:
a second determining unit, configured to determine a physical address of the single-layer unit in the Flash memory according to the first physical space;
and the third determining unit is used for determining the address mapping table of the first thermal data in the Flash memory according to the physical address and the logical block address of the first thermal data.
Optionally, the physical address includes: a block address and a page address, a third determination unit including:
and the first determining subunit is used for determining the address mapping table of the first hot data in the Flash memory according to the block address, the page address and the logic block address.
Optionally, the apparatus for managing thermal data of the present invention further includes:
the third determining module is used for determining a second physical space of the single-layer storage unit of the Flash memory according to the second thermal data when receiving a write-in instruction of the second thermal data, and storing the data content of the second thermal data to the second physical space;
and the updating module is used for updating the address mapping table according to the second thermal data and the second physical space.
Optionally, managing the first thermal data comprises: reading the data content of said first thermal data, a storage module 30 comprising:
a confirming unit, configured to confirm the address mapping table in the random access memory when a read instruction for first hot data is received;
a fourth determining unit, configured to determine, according to the address mapping table, a physical address corresponding to a logical block address of the first hot data;
and the reading unit is used for reading the data content of the first hot data according to the physical address.
Optionally, the reading unit comprises:
a second determining subunit, configured to determine, according to the physical address, a corresponding first physical space in the single-layer memory unit;
a reading subunit, configured to read data content of the first thermal data in the first physical space.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a memory, a processor and a hypervisor of thermal data stored on said memory and executable on said processor, the hypervisor of thermal data implementing the steps of the method of managing thermal data as described above when executed by said processor.
The steps implemented when the management program of the thermal data running on the processor is executed may refer to various embodiments of the management method of the thermal data of the present invention, and are not described herein again.
Furthermore, an embodiment of the present invention further provides a computer storage medium applied to a computer, where the computer storage medium may be a non-volatile computer-readable computer storage medium, and the computer storage medium stores a management program for thermal data, and the management program for thermal data implements the steps of the management method for thermal data as described above when executed by a processor.
The steps implemented when the management program of the thermal data running on the processor is executed may refer to various embodiments of the management method of the thermal data of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a computer storage medium (e.g., flash memory, ROM/RAM, magnetic disk, optical disk), and includes several instructions for enabling a controller, which is used for controlling a terminal device (e.g., a mobile phone, a computer, a server, or a network device), to perform data reading and writing operations on the storage medium to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A management method of hot data is applied to a Flash memory, and is characterized by comprising the following steps:
when a write-in instruction of first thermal data is received, determining a first physical space of a single-layer storage unit of the Flash memory according to the first thermal data, and storing first data content of the first thermal data into the first physical space;
determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
and storing the address mapping table to a preset random access memory to manage the first hot data.
2. The method for managing thermal data according to claim 1, wherein said step of determining a first physical space of a single-layer memory cell of said Flash memory based on said first thermal data comprises:
and determining the first physical space of the single-layer storage unit of the Flash memory according to the logical block address and the data length of the first thermal data.
3. The method for managing thermal data according to claim 1, wherein the step of determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space comprises:
determining a physical address of the single-layer unit in the Flash memory according to the first physical space;
and determining the address mapping table of the first thermal data in the Flash memory according to the physical address and the logical block address of the first thermal data.
4. A method of managing thermal data according to claim 3, wherein said physical address comprises: the step of determining the address mapping table of the first hot data in the Flash memory according to the physical address and the logical block address of the first hot data comprises the following steps:
and determining the address mapping table of the first hot data in the Flash memory according to the block address, the page address and the logic block address.
5. The method for managing thermal data according to claim 1, characterized in that after said step of determining an address mapping table of said first thermal data in said Flash memory according to said first thermal data and said first physical space, said method further comprises:
when a write-in instruction of second thermal data is received, determining a second physical space of the single-layer storage unit of the Flash memory according to the second thermal data, and storing the data content of the second thermal data to the second physical space;
and updating the address mapping table according to the second thermal data and the second physical space.
6. A method of managing thermal data according to claim 1, wherein managing the first thermal data comprises: reading data content of the first hot data;
the step of storing the address mapping table in a preset random access memory to manage the first hot data includes:
confirming the address mapping table in the random access memory when a reading instruction of first hot data is received;
determining a physical address corresponding to a logical block address of the first hot data according to the address mapping table;
and reading the data content of the first hot data according to the physical address.
7. The method for managing hot data according to claim 6, wherein the step of reading the data content of the first hot data according to the physical address comprises:
determining the corresponding first physical space in the single-layer storage unit according to the physical address;
reading data content of the first thermal data in the first physical space.
8. A management apparatus of thermal data, characterized in that the management apparatus of thermal data comprises:
the Flash memory comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a first physical space of a single-layer storage unit of the Flash memory according to first thermal data when receiving a write-in instruction of the first thermal data, and storing first data content of the first thermal data into the first physical space;
the second determining module is used for determining an address mapping table of the first thermal data in the Flash memory according to the first thermal data and the first physical space;
and the storage module is used for storing the address mapping table into a preset random access memory so as to manage the first hot data.
9. A terminal device, characterized in that the terminal device comprises: memory, processor and management method program of thermal data stored on said memory and executable on said processor, said management method program of thermal data implementing the steps of the management method of thermal data according to any one of claims 1 to 7 when executed by said processor.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a management method program of thermal data, which when executed by a processor implements the steps of the management method of thermal data according to any one of claims 1 to 7.
CN202210875426.6A 2022-07-20 2022-07-20 Method and device for managing thermal data, terminal equipment and computer storage medium Pending CN115344202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210875426.6A CN115344202A (en) 2022-07-20 2022-07-20 Method and device for managing thermal data, terminal equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210875426.6A CN115344202A (en) 2022-07-20 2022-07-20 Method and device for managing thermal data, terminal equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115344202A true CN115344202A (en) 2022-11-15

Family

ID=83950489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210875426.6A Pending CN115344202A (en) 2022-07-20 2022-07-20 Method and device for managing thermal data, terminal equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115344202A (en)

Similar Documents

Publication Publication Date Title
CN109426619B (en) Method for accessing flash memory module, related flash memory controller and electronic device
US8850105B2 (en) Method for controlling memory system, information processing apparatus, and storage medium
US20140229657A1 (en) Readdressing memory for non-volatile storage devices
US20150161040A1 (en) Data-storage device and data erasing method
US20190146908A1 (en) Method for accessing flash memory module and associated flash memory controller and electronic device
US8966142B2 (en) Method and apparatus for inputting/outputting virtual operating system from removable storage device on a host using virtualization technique
KR20100088210A (en) Apparatus and method for downloadin contents using movinand in portable terminal
US20170364449A1 (en) Process running method and apparatus
US20050038955A1 (en) Flash ROM content updating method and system
US8892856B2 (en) Firmware flashing method and related computer system
US9934100B2 (en) Method of controlling memory swap operation and data processing system using same
US7681009B2 (en) Dynamically updateable and moveable memory zones
CN111338562B (en) Data storage device and data processing method
CN115344198A (en) Data reading and writing method and system of magnetic disk, terminal device and storage medium
CN110704091A (en) Firmware upgrading method and device
CN115344202A (en) Method and device for managing thermal data, terminal equipment and computer storage medium
KR20170037017A (en) Memory Upgrade System And Method
US10146553B2 (en) Electronic apparatus and booting method thereof
CN112650513B (en) Program upgrading method, device, computer equipment and storage medium
US20130318302A1 (en) Cache controller based on quality of service and method of operating the same
KR20100050098A (en) Image processing apparatus and control method thereof
CN114138176A (en) Nor Flash erasing and upgrading method and device, computer equipment and storage medium
CN112965661A (en) Data storage method, device, equipment and storage medium
US20240143223A1 (en) Storage device and method of operating the same
CN115145834A (en) Data management method, device and equipment of Flash memory and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination