CN115982161A - Data management method, device, storage medium and electronic equipment - Google Patents

Data management method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115982161A
CN115982161A CN202211677205.4A CN202211677205A CN115982161A CN 115982161 A CN115982161 A CN 115982161A CN 202211677205 A CN202211677205 A CN 202211677205A CN 115982161 A CN115982161 A CN 115982161A
Authority
CN
China
Prior art keywords
partition
data
user data
tlc nand
enhanced user
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
CN202211677205.4A
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202211677205.4A priority Critical patent/CN115982161A/en
Publication of CN115982161A publication Critical patent/CN115982161A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data management method, a data management device, a storage medium and electronic equipment. The method comprises the following steps: when software is downloaded for the first time, storing key data to a PSA partition in the case that the TLC NAND has the PSA partition; in the case that the writing amount of the TLC NAND is larger than the capacity of the PSA partition, converting the residual capacity of the TLC NAND into an Enhanced user data partition; and transferring the key data to an Enhanced user data partition. The invention solves the technical problem of low data stability of TLC NAND.

Description

Data management method, device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a data management method, apparatus, storage medium, and electronic device.
Background
In current mobile terminal products such as modules and the like, the requirement of users for storing data is increasing, the capacity of required memories is increasing, the storage capacity of previously used SLC NAND and MLC NAND can not meet the requirement of users, and under the condition, TLC NAND appears. In SLC NAND, each cell stores 1-bit data, while TLC NAND stores 3-bit data. Due to the above advantages of the architecture, when the volumes of the memory chips are the same, the capacity of the TLC NAND can be made larger, and meanwhile, the price of the TLC NAND is also more advantageous for the NAND with the same capacity. TLC NAND, while having the advantages of large capacity and cost-effectiveness, also has disadvantages. Since each memory cell of the TLC NAND stores 3-bit data and the state of data is changed from 2 of SLC to 8 of TLC in one memory cell, the voltage threshold for distinguishing each state becomes smaller and the fault-tolerant capability becomes worse, so that the TLC NAND is inferior to the SLC NAND in data stability and data retention time during use.
Disclosure of Invention
The embodiment of the invention provides a data management method, a data management device, a storage medium and electronic equipment, and aims to at least solve the technical problem of low data stability of TLC NAND.
According to an aspect of an embodiment of the present invention, there is provided a data management method, including: when software is downloaded for the first time, storing key data to a PSA partition under the condition that the TLC NAND has the PSA partition; when the writing amount of the TLC NAND is larger than the capacity of the PSA partition, the residual capacity of the TLC NAND is changed into an Enhanced user data partition; and transferring the key data to the Enhanced user data partition.
According to another aspect of the embodiments of the present invention, there is provided a data management apparatus including: the first storage module is used for storing the key data to the PSA partition under the condition that the TLC NAND has the PSA partition when the software is downloaded for the first time; a first conversion module, configured to convert the remaining capacity of the TLC NAND into an Enhanced user data partition when a write amount of the TLC NAND is greater than a capacity of the PSA partition; and the first transfer module is used for transferring the key data to the Enhanced user data partition.
As an optional example, the apparatus further includes: and the second storage module is used for storing the key data to the Enhanced user data partition when the TLC NAND has the PSA partition when the software is downloaded for the first time.
As an optional example, the apparatus further includes: and the third storage module is used for storing the key data to the Enhanced user data partition under the condition that the TLC NAND does not have a PSA partition when the software is downloaded for the first time.
As an optional example, the apparatus further includes: and a setting module, configured to set the Enhanced user data partition in the user data partition of the TLC NAND before storing the key data in the Enhanced user data partition, where a capacity of the Enhanced user data partition is larger than a size of the key data, and the Enhanced user data partition is an SLC type memory cell.
As an optional example, the apparatus further includes: and a first warning module, configured to send first warning information after the remaining capacity of the TLC NAND is converted into an Enhanced user data partition, so that a user transfers the key data to the Enhanced user data partition, where the warning information is used to prompt the user that a write amount of the TLC NAND is greater than a capacity of the PSA partition.
As an optional example, the apparatus further includes: a second conversion module, configured to, after storing critical data in the PSA partition, convert the remaining capacity of the TLC NAND into the Enhanced user data partition if a write amount of the TLC NAND is greater than a target threshold; and the second transfer module is used for transferring the key data to the Enhanced user data partition.
As an optional example, the apparatus further includes: and a second warning module, configured to send second warning information after the residual capacity of the TLC NAND is converted into the Enhanced user data partition, so that the user transfers the key data to the Enhanced user data partition, where the second warning information is used to prompt the user that a write amount of the TLC NAND is greater than the target threshold.
According to still another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program executes the above data management method when executed by a processor.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to execute the data management method described above through the computer program.
In the embodiment of the invention, when software is downloaded for the first time, key data is stored in a PSA partition under the condition that the TLC NAND has the PSA partition; when the writing amount of the TLC NAND is larger than the capacity of the PSA partition, the residual capacity of the TLC NAND is changed into an Enhanced user data partition; in the method for transferring the critical data to the Enhanced user data partition, since the critical data is stored in the PSA partition when the data capacity of the TLC NAND written therein does not exceed the capacity of the PSA partition, the reliability of the data can be ensured since the part is an SLC type memory cell. When the data capacity written into the TLC NAND exceeds the capacity of the PSA partition, and the PSA partition fails, the residual capacity of the TLC NAND is converted into an Enhanced user data partition, and the key data is transferred to the Enhanced user data partition.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of an alternative data management method according to an embodiment of the invention;
FIG. 2 is a partition architecture diagram of an alternative data management method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative data management apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to a first aspect of the embodiments of the present invention, there is provided a data management method, optionally as shown in fig. 1, the method includes:
s102, when software is downloaded for the first time, under the condition that a PSA partition exists in a TLC NAND, storing key data into the PSA partition;
s104, when the write quantity of the TLC NAND is larger than the capacity of the PSA partition, the residual capacity of the TLC NAND is converted into an Enhanced user data partition;
and S106, transferring the key data to an Enhanced user data partition.
Optionally, in this embodiment, the NAND is generally divided into three partitions, namely a Boot partition, an RPMB partition and a User data partition, in the using process, where the Boot partition is used to store a Boot program, the RPMB partition is used to store data related to security, and the User data partition is mainly used to store system software and User data. The Boot partition and the RPMB partition are configured into an SLC type storage unit, so that the reliability of Boot data and some safety-related data is ensured, but the Boot partition and the RPMB partition are usually read-only partitions and have small capacity, generally not exceeding 4MB. The User data partition is typically configured as a TLC type storage unit. Some modules require secondary SMT, and the temperature during SMT is high, which can result in data loss in TLC NANDs. In order to solve the problem of secondary SMT data loss, a partition architecture is optimized, a PSA partition is defined in a User data partition, and the PSA partition is configured as an SLC type storage unit and used for storing system program files of a module manufacturer.
Optionally, in this embodiment, the eMMC TLC NAND protocol has a function of Enhanced user data partition, where the function is to configure a data enhancement partition in the user data partition, and a storage unit of the data enhancement partition is an SLC type storage unit, as shown in fig. 2 below. The following registers are set: register a for identifying the capacity size of TLC NAND10% TBW, register B for identifying the write amount size of data until the TLC NAND is present, register C for identifying the PSA partition capacity size of TLC NAND (for TLC NAND with PSA mechanism), and register D for displaying the current remaining capacity of TLC NAND.
Optionally, in this embodiment, for TLC NAND with PSA mechanism, the first method is: when the software is downloaded for the first time, the key data is stored in the PSA subarea, so that the secondary SMT data is not lost. During subsequent TLC NAND usage, when the master CPU (Central Processing Unit) finds that the data of register B is larger than the data of register C, i.e. the actual write amount of the TLCNAND exceeds the PSA partition capacity, the PSA partition fails at this time. The main control knows the current left capacity of the TLC NAND according to the data of the register D, and the main control converts the left TLC memory cell into an Enhanced user data partition, namely, an SLC type memory cell. When the module has no program running, the main control lets TLC NAND carry the critical data originally in PSA partition to Enhanced user data interval.
Alternatively, in the present embodiment, when the data capacity of the written TLC NAND does not exceed the capacity of the PSA partition described above, critical data is stored in the PSA partition, and since this portion is an SLC type memory cell, the reliability of data can be ensured. When the data capacity written into the TLC NAND exceeds the capacity of the PSA partition, the PSA partition fails, the residual capacity of the TLC NAND is converted into an Enhanced user data partition, and the key data is transferred to the Enhanced user data partition.
As an optional example, the method further includes:
when software is downloaded for the first time, key data is saved to the Enhanced user data partition in the case that the TLC NAND has a PSA partition.
Optionally, in this embodiment, for TLC NAND with PSA mechanism, the second method is: and directly storing the key data to the Enhanced user data partition without taking the PSA partition into account.
As an optional example, the method further includes:
when software is downloaded for the first time, key data is saved to the Enhanced user data partition in the event that the TLC NAND does not have a PSA partition.
Optionally, in this embodiment, for TLC NAND without PSA partition, when software is downloaded for the first time, the critical data is stored in the Enhanced user data region, and since the region is an SLC type memory cell, stability of data may be ensured during secondary SMT and subsequent use.
As an optional example, before saving the critical data to the Enhanced user data partition, the method further includes:
and setting an Enhanced user data partition in a TLC NAND user data partition, wherein the capacity of the Enhanced user data partition is larger than that of the key data, and the Enhanced user data partition is an SLC type memory unit.
Optionally, in this embodiment, in a case that the TLC NAND does not have a PSA partition, before storing the critical data to the Enhanced user data partition, the Enhanced user data partition is set according to a size of a capacity of the critical data, and the Enhanced user data partition is set to be larger than the size of the capacity of the critical data and is an SLC type memory cell.
As an alternative example, after the remaining capacity of the TLC NAND is converted into an Enhanced user data partition, the method further comprises:
and sending first alarm information to enable a user to transfer the key data to the Enhanced user data partition, wherein the alarm information is used for prompting the user that the write quantity of the TLC NAND is larger than the capacity of the PSA partition.
Optionally, in this embodiment, after the residual capacity of the TLC NAND is converted into the Enhanced user data partition, the main controller may further actively send a first alarm message to notify the user, so that the user transfers the key data to the Enhanced user data partition, thereby improving the reliability of the key data.
As an alternative example, after saving critical data to the PSA partition, the method further comprises:
when the write quantity of the TLC NAND is larger than a target threshold value, converting the residual capacity of the TLC NAND into an Enhanced user data partition;
and transferring the key data to an Enhanced user data partition.
Alternatively, in this embodiment, the target threshold may be 10% TBW, TBW (Total Bytes write), which represents the Total amount of data that the TLC NANDs can write during their life cycle, and each TLC NAND will have a TBW value that is related to the capacity of the TLC NAND and the technology used by the manufacturer. After the data writing amount of the TLC NAND exceeds 10% tbw, the data holding time is drastically reduced, and therefore, when the master CPU finds that the register B data is larger than the register a data during use, that is, the actual writing amount of the TLC NAND exceeds 10% tbw, the currently remaining capacity of the TLC NAND is known from the register D data, and the remaining TLC-type memory cell is changed to an Enhanced user data partition, that is, an SLC-type memory cell. When the module has no program running, the master control lets TLC NAND carry the critical data originally in the TLC type memory cell to the Enhanced user data partition.
As an alternative example, after the residual capacity of the TLC NAND is converted to Enhanced user data partition, the method further comprises:
and sending second alarm information to enable the user to transfer the key data to the Enhanced user data partition, wherein the second alarm information is used for prompting the user that the write quantity of the TLC NAND is larger than a target threshold value.
Optionally, in this embodiment, after the key data in the TLC type storage unit is transferred to the Enhanced user data partition, the main controller actively sends a second alarm message to notify the user, so that the user transfers the key data to the Enhanced user data partition, thereby increasing the storage time of the key data.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present application, there is also provided a data management apparatus, as shown in fig. 3, including:
a first saving module 302, configured to save the critical data to the PSA partition in the case that the TLC NAND exists in the PSA partition when the software is downloaded for the first time;
a first transition module 304, configured to transition the remaining capacity of the TLC NAND to an Enhanced user data partition if the written amount of the TLC NAND is greater than the capacity of the PSA partition;
a first transfer module 306, configured to transfer the critical data to the Enhanced user data partition.
Optionally, in this embodiment, the NAND is generally divided into three partitions, namely a Boot partition, an RPMB partition and a User data partition, in the using process, where the Boot partition is used to store a Boot program, the RPMB partition is used to store data related to security, and the User data partition is mainly used to store system software and User data. The Boot partition and the RPMB partition are configured into an SLC type storage unit, so that the reliability of Boot data and some safety-related data is ensured, but the Boot partition and the RPMB partition are usually read-only partitions and have small capacity, generally not exceeding 4MB. The User data partition is typically configured as a TLC type memory unit. Some modules require secondary SMT, and the temperature during SMT is high, which can result in data loss in TLC NANDs. In order to solve the problem of secondary SMT data loss, a partition architecture is optimized, a PSA partition is defined in a User data partition, and the PSA partition is configured as an SLC type storage unit and used for storing system program files of a module manufacturer.
Optionally, in this embodiment, the eMMC TLC NAND protocol has a function of Enhanced user data partition, where the function is to configure a data enhancement partition in the user data partition, and a storage unit of the data enhancement partition is an SLC type storage unit, as shown in fig. 2 below. The following registers are set: register a for identifying the capacity size of TLC NAND10% TBW, register B for identifying the write amount size of data until the TLC NAND, register C for identifying the PSA partition capacity size of TLC NAND (for TLC NAND with PSA mechanism), and register D for displaying the capacity left by TLC NAND.
Optionally, in this embodiment, for TLC NAND with PSA mechanism, the first method is: when the software is downloaded for the first time, the key data is stored in the PSA subarea, so that the secondary SMT data is not lost. During subsequent TLC NAND use, the PSA partition fails when the master CPU (Central Processing Unit) finds that the data in register B is larger than the data in register C, i.e., the actual write size of the TLCNAND exceeds the PSA partition capacity. The main control knows the current left capacity of the TLC NAND according to the data of the register D, and the main control converts the left TLC memory cells into Enhanced user data partitions, namely SLC type memory cells. When the module has no program running, the main control lets TLC NAND carry the critical data originally in PSA partition to Enhanced user data interval.
Alternatively, in the present embodiment, when the data capacity of the written TLC NAND does not exceed the capacity of the PSA partition described above, critical data is stored in the PSA partition, and since this portion is an SLC type memory cell, the reliability of data can be ensured. When the data capacity written into the TLC NAND exceeds the capacity of the PSA partition, and the PSA partition fails, the residual capacity of the TLC NAND is converted into an Enhanced user data partition, and the key data is transferred to the Enhanced user data partition.
As an optional example, the apparatus further includes:
and the second storage module is used for storing the key data to the Enhanced user data partition under the condition that the PSA partition exists in the TLC NAND when the software is downloaded for the first time.
Optionally, in this embodiment, for TLC NAND with PSA mechanism, the second method is: the key data is saved directly to the Enhanced user data partition, regardless of the PSA partition.
As an optional example, the apparatus further includes:
and the third storage module is used for storing the key data to the Enhanced user data partition under the condition that the TLC NAND does not have the PSA partition when the software is downloaded for the first time.
Optionally, in this embodiment, for the TLC NAND without a PSA partition, when software is downloaded for the first time, the key data is stored in the Enhanced user data interval, and since the area is an SLC type memory cell, stability of data can be ensured during the secondary SMT and subsequent use.
As an optional example, the apparatus further includes:
the setting module is used for setting an Enhanced user data partition in a user data partition of the TLC NAND before storing the key data into the Enhanced user data partition, wherein the capacity of the Enhanced user data partition is larger than that of the key data, and the Enhanced user data partition is an SLC (Single level cell) type memory unit.
Optionally, in this embodiment, in a case that the TLC NAND does not have a PSA partition, before storing the critical data to the Enhanced user data partition, the Enhanced user data partition is set according to a size of a capacity of the critical data, and the size of the Enhanced user data partition is set to be larger than the size of the capacity of the critical data and is an SLC type memory cell.
As an optional example, the apparatus further includes:
and the first warning module is used for sending first warning information after the residual capacity of the TLC NAND is converted into the Enhanced user data partition so that the user can transfer the key data to the Enhanced user data partition, wherein the warning information is used for prompting the user that the writing amount of the TLC NAND is larger than the capacity of the PSA partition.
Optionally, in this embodiment, after the residual capacity of the TLC NAND is converted into the Enhanced user data partition, the main controller may further actively send a first alarm message to notify the user, so that the user transfers the key data to the Enhanced user data partition, thereby improving the reliability of the key data.
As an optional example, the apparatus further includes:
a second transition module for transitioning the remaining capacity of the TLC NAND to Enhanced user data partition if the write quantity of the TLC NAND is greater than a target threshold after saving the critical data to the PSA partition;
and the second transfer module is used for transferring the key data to the Enhanced user data partition.
Alternatively, in this embodiment, the target threshold may be 10% TBW, TBW (Total Bytes Written), which indicates the Total amount of data that the TLC NAND can write during the life cycle, with each TLC NAND having a TBW value that is related to the capacity of the TLC NAND and the technology used by the manufacturer. After the data writing amount of the TLC NAND exceeds 10% tbw, the data holding time is drastically reduced, and therefore, when the master CPU finds that the register B data is larger than the register a data during use, that is, the actual writing amount of the TLC NAND exceeds 10% tbw, the currently remaining capacity of the TLC NAND is known from the register D data, and the remaining TLC-type memory cell is changed to an Enhanced user data partition, that is, an SLC-type memory cell. When the module has no program running, the master control lets TLC NAND carry the critical data originally in the TLC type memory cell to the Enhanced user data partition.
As an optional example, the apparatus further includes:
and the second warning module is used for sending second warning information after the residual capacity of the TLC NAND is converted into the Enhanced user data partition so that the user can transfer the key data to the Enhanced user data partition, wherein the second warning information is used for prompting the user that the writing amount of the TLC NAND is larger than a target threshold value.
Optionally, in this embodiment, after the key data of the TLC type storage unit is transported to the Enhanced user data partition, the main controller actively sends a second alarm message to notify the user, so that the user transfers the key data to the Enhanced user data partition, thereby increasing the storage time of the key data.
For other examples of this embodiment, please refer to the above examples, which are not described herein again.
Fig. 4 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 4, including a processor 402, a communication interface 404, a memory 406, and a communication bus 408, where the processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408, where,
a memory 406 for storing a computer program;
the processor 402, when executing the computer program stored in the memory 406, performs the following steps:
when software is downloaded for the first time, storing key data to a PSA partition in the case that the TLC NAND has the PSA partition;
in the case that the writing amount of the TLC NAND is larger than the capacity of the PSA partition, converting the residual capacity of the TLC NAND into an Enhanced user data partition;
and transferring the key data to an Enhanced user data partition.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus. The communication interface is used for communication between the electronic equipment and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, the memory 406 may include, but is not limited to, the first saving module 302, the first transition module 304, and the first transferring module 306 in the data management apparatus. In addition, the module may further include, but is not limited to, other module units in the processing apparatus of the request, which is not described in this example again.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration, and the device implementing the data management method may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 4 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The electronic device provided by the embodiment of the application can be a module capable of realizing a communication function or a terminal device comprising the module and the like, and the terminal device can be a mobile terminal or an intelligent terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer and the like; the intelligent terminal can be a terminal containing a wireless communication module, such as an intelligent automobile, an intelligent watch, a shared bicycle, an intelligent cabinet and the like; the module may be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and an NB-IOT communication module.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
According to still another aspect of embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, performs the steps of the data management method described above.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
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.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of data management, comprising:
saving critical data to a PSA partition in the presence of the TLC NAND with the PSA partition at the first software download;
in the case that the writing amount of the TLC NAND is larger than the capacity of the PSA partition, transferring the remaining capacity of the TLC NAND to an Enhanced user data partition;
and transferring the key data to the Enhanced user data partition.
2. The method of claim 1, further comprising:
and when software is downloaded for the first time, storing the key data to the Enhanced user data partition under the condition that a PSA partition exists in a TLC NAND.
3. The method of claim 1, further comprising:
when software is downloaded for the first time, the key data is saved to the Enhanced user data partition in the event that no PSA partition exists in the TLC NAND.
4. The method of claim 3, wherein prior to saving the critical data to the Enhanced user data partition, the method further comprises:
and setting the Enhanced user data partition in the TLC NAND user data partition, wherein the capacity of the Enhanced user data partition is larger than that of the key data, and the Enhanced user data partition is an SLC-type memory unit.
5. The method of claim 1, wherein after transitioning the residual capacity of the TLC NAND to an Enhanced user data partition, the method further comprises:
sending first alarm information to enable a user to transfer the key data to the Enhanced user data partition, wherein the alarm information is used for prompting the user that the writing amount of the TLC NAND is larger than the capacity of the PSA partition.
6. The method of claim 1, wherein after saving critical data to the PSA partition, the method further comprises:
when the write quantity of the TLC NAND is larger than a target threshold value, converting the residual capacity of the TLC NAND into the Enhanced user data partition;
and transferring the key data to the Enhanced user data partition.
7. The method of claim 6, wherein after transitioning the remaining capacity of the TLC NAND to the Enhanced user data partition, the method further comprises:
and sending second alarm information to enable a user to transfer the key data to the Enhanced user data partition, wherein the second alarm information is used for prompting the user that the writing amount of the TLC NAND is larger than the target threshold value.
8. A data management apparatus, comprising:
the first saving module is used for saving key data to the PSA partition when the TLC NAND has the PSA partition when the software is downloaded for the first time;
a first transition module for transitioning the remaining capacity of the TLC NAND to an Enhanced user data partition if the written amount of the TLC NAND is greater than the capacity of the PSA partition;
and the first transfer module is used for transferring the key data to the Enhanced user data partition.
9. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211677205.4A 2022-12-26 2022-12-26 Data management method, device, storage medium and electronic equipment Pending CN115982161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211677205.4A CN115982161A (en) 2022-12-26 2022-12-26 Data management method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211677205.4A CN115982161A (en) 2022-12-26 2022-12-26 Data management method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115982161A true CN115982161A (en) 2023-04-18

Family

ID=85966182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211677205.4A Pending CN115982161A (en) 2022-12-26 2022-12-26 Data management method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115982161A (en)

Similar Documents

Publication Publication Date Title
US10866737B2 (en) Apparatus, method and system to store information for a solid state drive
CN109062617A (en) A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment
JP2008511913A (en) Power loss recovery mechanism based on volatile memory
CN111124277A (en) Deep learning data set caching method, system, terminal and storage medium
CN102308280A (en) Basic input/output system BIOS configuration data management method and system
WO2013154541A1 (en) Remote direct memory access with reduced latency
CN105260128A (en) Method for writing data in storage device and storage device
CN108282410A (en) Background traffic control method, device, storage medium and user terminal
CN101403972A (en) Memory card guiding method and device of embedded system
CN112148337A (en) Firmware upgrading method and device
CN115982161A (en) Data management method, device, storage medium and electronic equipment
CN102147735B (en) Interface single board and business logic loading method
CN104424142A (en) Method and device for accessing shared resource in multi-core processor system
CN101582037A (en) Method for sharing a basic input-output system as well as cutter point server and computer thereof
CN110175144B (en) USB data transmission control method and related equipment
CN110968255A (en) Data processing method, data processing device, storage medium and processor
CN110442539B (en) Mobile phone OTG switching method and device
CN104391564A (en) Power consumption control method and device
CN105577904B (en) A kind of file sharing method and mobile terminal
CN114546899A (en) USB device connection method, system and computer readable storage medium
CN108762985A (en) Data reconstruction method and Related product
CN113110950A (en) Processor, communication method, storage medium, and computing device
CN112069108A (en) Flexible server configuration system and method based on PCIE Switch
CN114077500A (en) Data processing method, data processing device, computer readable storage medium and processor
CN111400222A (en) PCIE interface with trusted computing function

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