Security guarantee method and system for offline data in solid state disk

By using offset voltage and multiple sets of physical pages in a solid-state drive for offline data retention time operation, and combining error correction bit value compensation strategy, the problem of difficulty in judging data retention status after offline is solved, realizing timely data relocation and performance improvement.

CN119885300APending Publication Date: 2025-04-25SHENZHEN CITY TECHWIN SEMICONDUCTOR COMPANY LIMITED
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411890427.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

When the solid-state drive is powered back on after powering on offline, it cannot accurately determine the stored state of the stored data, which may cause a large amount of data to trigger the error correction process, affecting performance and data security.

Method used

By using a set of offset voltages and multiple sets of physical pages to perform offline data retention time operations on the physical block to be detected, combined with an error correction bit value compensation strategy, we predict and compensate offline data retention time to avoid triggering of large-scale error correction processes.

Benefits of technology

Effectively ensure timely data transfer, avoid triggering large-scale error correction processes, improve the performance and data security of solid-state drives, and ensure the stability of data when powered up after offline.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885300A_ABST
    Figure CN119885300A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for guaranteeing the security of offline data in a solid state disk. The method comprises the following steps: determining the position of a physical block to be detected in the solid state disk; wherein the physical block to be detected comprises a plurality of physical pages; selecting required physical pages from the plurality of physical pages, and constructing a physical page list according to the required physical pages; acquiring a set corresponding relation table; wherein the set corresponding relation table is used for representing the corresponding relation between the N offset voltages and the data retention time; obtaining a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list; obtaining a median from the minimum offset voltage index corresponding to each physical page; acquiring corresponding data retention time from the corresponding relation table according to the median; obtaining compensation offline retention time according to data retention time and the error correction bit value; and when the compensation offline retention time is greater than a first preset threshold, triggering data migration of the to-be-detected physical block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a method and system for ensuring the security of offline data in a solid state hard disk. Background Art

[0002] With the development and widespread application of technologies such as the Internet, cloud computing, and the Internet of Things, massive amounts of data are generated at all times in human life and need to be processed and stored. The rapid development of information technology has put forward higher requirements on the security and performance of storage systems. Solid-state drives are widely used due to their fast read and write speeds and low energy consumption. NAND storage particles are very important storage units in solid-state drives. Due to the hardware electrical characteristics of NAND itself, the data that has fallen into it will continue to escape electrons in the physical unit (the smallest storage cell unit) over time, causing the stored data to become unstable.

[0003] In the above phenomenon, the storage retention state of user data is strongly related to the current disk temperature and the activation energy factor of the storage particles (also known as the aging factor Ea), and has nothing to do with whether the SSD is in the power-on stage. The firmware can predict the data retention state of NAND storage based on an industry-wide Arrhenius equation (this equation is widely used in materials science and electronic engineering to describe the effect of temperature on chemical reaction rates or material aging).

[0004] When the solid-state drive is powered on, accurate temperature changes and time can be obtained, so data retention status information can be accurately obtained.

[0005] When the SSD is powered off, the firmware cannot sense the temperature and time, and therefore cannot predict the data retention status during this period. As a result, when the SSD is powered on again after a certain period of offline behavior, it is impossible to accurately determine the retention status of the stored data, so a large amount of data may trigger the error correction process, which will seriously affect the performance indicators of the SSD; even when the offline time is long, error correction will fail after powering on again, directly affecting the data security of the SSD. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a method and system for ensuring data security after offline in a solid-state hard disk. By using a set of offset voltages and multiple groups of physical pages to perform offline data retention time operations on the physical blocks to be detected, it can effectively ensure that data can be moved in time to avoid triggering large-scale error correction processes; according to the error correction bit value compensation strategy, the offline data retention time value can be more accurately improved.

[0007] In a first aspect, an embodiment of the present invention provides a method for ensuring data security after an offline solid state drive, the method comprising:

[0008] Determine the location of a physical block to be detected in the solid state drive; wherein the physical block to be detected includes a plurality of physical pages;

[0009] Selecting a required physical page from the plurality of physical pages, and constructing a physical page list according to the required physical page;

[0010] Acquire a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time;

[0011] Obtaining a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list;

[0012] Obtaining a median from a minimum offset voltage index corresponding to each of the physical pages;

[0013] Acquire the corresponding data retention time from the correspondence table according to the median;

[0014] Obtaining a compensated offline holding time according to the data holding time and the error correction bit value;

[0015] When the compensated offline holding time is greater than a first preset threshold, data migration of the physical block to be detected is triggered.

[0016] Further, determining the location of the physical block to be detected in the solid state drive includes:

[0017] Determine from the firmware whether there is a physical block that has partial data written but not full data;

[0018] If it exists, the movement of the physical block is triggered;

[0019] Scanning the physical blocks to which data has been written in the firmware, and setting a corresponding timestamp for each physical block to which data has been written;

[0020] Determine the last physical block filled with data according to the timestamp;

[0021] The physical block that is finally filled with data is used as the physical block to be detected.

[0022] Further, obtaining the minimum offset voltage index and the error correction bit value corresponding to each physical page in the physical page list includes: repeatedly performing the following process until each physical page is traversed:

[0023] Get the first physical page in the physical page list;

[0024] configuring a first set of offset voltages for the first physical page; wherein the first set of offset voltages includes N offset voltages;

[0025] A first minimum offset voltage index and a first error correction bit value are obtained according to the first group of offset voltages.

[0026] Further, obtaining a compensated offline holding time according to the data holding time and the error correction bit value includes:

[0027] Obtain the corresponding error correction bit value according to the median;

[0028] When the error correction bit value is greater than a second preset threshold, obtaining a compensation time;

[0029] The compensated offline holding time is obtained according to the data holding time and the compensation time.

[0030] Further, obtaining the compensated offline holding time according to the data holding time and the compensation time includes:

[0031] The compensation offline holding time is calculated according to the following formula:

[0032] T=T1+T2

[0033] Wherein, T is the compensation offline holding time, T1 is the data holding time, and T2 is the compensation time.

[0034] Furthermore, the required number of physical pages is 3 or 4.

[0035] In a second aspect, an embodiment of the present invention provides a system for ensuring data security after offline operation in a solid state drive, the system comprising:

[0036] A determination module, used to determine the location of a physical block to be detected in the solid state drive; wherein the physical block to be detected includes a plurality of physical pages;

[0037] A selection module, used for selecting a required physical page from the plurality of physical pages, and constructing a physical page list according to the required physical page;

[0038] A relationship table acquisition module, used to acquire a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time;

[0039] An offset voltage index acquisition module, used to acquire a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list;

[0040] A median acquisition module, used to acquire a median from a minimum offset voltage index corresponding to each of the physical pages;

[0041] A data retention time acquisition module, used for acquiring the corresponding data retention time from a corresponding relationship table according to the median;

[0042] A compensation offline holding time acquisition module, used to obtain the compensation offline holding time according to the data holding time and the error correction bit value;

[0043] The trigger module is used to trigger the data migration of the physical block to be detected when the compensation offline holding time is greater than a first preset threshold.

[0044] Furthermore, the determination module is specifically used for:

[0045] Determine from the firmware whether there is a physical block that has partial data written but not full data;

[0046] If it exists, the movement of the physical block is triggered;

[0047] Scanning the physical blocks to which data has been written in the firmware, and setting a corresponding timestamp for each physical block to which data has been written;

[0048] Determine the last physical block filled with data according to the timestamp;

[0049] The physical block that is finally filled with data is used as the physical block to be detected.

[0050] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method described above when executing the computer program.

[0051] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the method as described above.

[0052] The embodiment of the present invention provides a method and system for ensuring data security after offline in a solid-state hard disk, including: determining the position of a physical block to be detected in the solid-state hard disk; wherein the physical block to be detected includes multiple physical pages; selecting a required physical page from the multiple physical pages, and constructing a physical page list according to the required physical page; obtaining a set correspondence table; wherein the set correspondence table is used to characterize the correspondence between N offset voltages and data retention time; obtaining a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list; obtaining a median from the minimum offset voltage index corresponding to each physical page; obtaining a corresponding data retention time from the correspondence table according to the median; obtaining a compensated offline retention time according to the data retention time and the error correction bit value; when the compensated offline retention time is greater than a first preset threshold, triggering data migration of the physical block to be detected; by using a set of offset voltages and multiple sets of physical pages to perform offline data retention time operations on the physical block to be detected, it can be effectively ensured that data can be moved in time to avoid triggering a large-scale error correction process; according to the error correction bit value compensation strategy, the offline data retention time value can be more accurately improved.

[0053] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0054] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 A flow chart of a method for ensuring data security after offline operation in a solid state drive provided in the first embodiment of the present invention;

[0057] Figure 2 This is a flowchart of step S101 in the method for ensuring data security in a solid state drive after offline operation provided in the first embodiment of the present invention;

[0058] Figure 3 A schematic diagram of a system for ensuring data security after an offline operation in a solid state drive provided in a second embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In the process of using solid-state hard disks, various actual business scenarios may occur. For example, if the server in the customer's room is accidentally powered off for a long time during use, due to the influence of electrical and physical characteristics, the state of the stored data after powering on again is uncertain, which may cause serious data reading failure. In order to solve this problem, this application proposes a method for accurately calculating the retention time of offline data for such usage scenarios, so as to improve the performance stability of solid-state hard disks and enhance the user experience.

[0061] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.

[0062] Embodiment 1:

[0063] Figure 1 This is a flow chart of a method for ensuring data security after offline operation in a solid state drive provided in Embodiment 1 of the present invention.

[0064] Reference Figure 1 , the method comprises the following steps:

[0065] Step S101, determining the location of a physical block to be detected in a solid state drive; wherein the physical block to be detected includes a plurality of physical pages;

[0066] Step S102, selecting a required physical page from a plurality of physical pages, and constructing a physical page list according to the required physical page;

[0067] Here, the physical page list usually includes 3 physical pages or 4 physical pages. The above physical pages are applicable to all physical block addresses, which are only related to NAND particles. Considering that there may be errors in the detection of a single physical page, multiple physical pages need to be selected.

[0068] Step S103, obtaining a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time;

[0069] Step S104, obtaining a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list;

[0070] Step S105, obtaining a median from the minimum offset voltage index corresponding to each physical page;

[0071] Step S106, obtaining the corresponding data retention time from the corresponding relationship table according to the median;

[0072] Step S107, obtaining the compensated offline holding time according to the data holding time and the error correction bit value;

[0073] Step S108: When the compensated offline holding time is greater than a first preset threshold, data migration of the physical block to be detected is triggered.

[0074] This embodiment enables the solid state drive to detect and judge the bit value of the physical block in the solid state drive after error correction through a set of multiple offset voltages without requiring specific offline time and temperature changes. The solution starts to execute after the solid state drive is powered on again, first finding the location of the last physical block filled with data, and then using a set of preset offset voltages for scanning processing.

[0075] Further, see Figure 2 , step S101 includes the following steps:

[0076] Step S201, determining from the firmware whether there is a physical block that has partial data written but not full data;

[0077] Step S202: If it exists, trigger the migration of the physical block; wherein the migration is to move the data of the current physical block to another physical block;

[0078] Step S203, scanning the physical blocks where data has been written in the firmware, and setting a corresponding timestamp for each physical block where data has been written;

[0079] Step S204, determining the last physical block filled with data according to the timestamp;

[0080] Step S205: taking the physical block that is finally filled with data as the physical block to be detected.

[0081] Here, the address of the last physical block filled with data is used as the detection address. Since data is written in multiple planes in the writing process, the physical block addresses of the same group of planes can be used as the detection address.

[0082] Further, step S104 includes: repeatedly performing the following process until each physical page is traversed:

[0083] Step S301, obtaining the first physical page in the physical page list;

[0084] Step S302, configuring a first set of offset voltages for a first physical page; wherein the first set of offset voltages includes N offset voltages;

[0085] Step S303: acquiring a first minimum offset voltage index and a first error correction bit value according to the first group of offset voltages.

[0086] Specifically, this group of N offset voltages is executed in sequence to determine the NAND error correction state after data decoding, and the minimum offset voltage index and the error correction bit value in the error correction bit value are recorded. If all decodings fail, the failure is marked.

[0087] The above process is a processing process for the first physical page in the physical page list, and the above process is also used for the second physical page in the physical page list, that is, obtaining the second physical page in the physical page list; configuring the first group of offset voltages for the second physical page; wherein the first group of offset voltages includes N offset voltages; obtaining the second minimum offset voltage index and the second error correction bit value according to the second group of offset voltages. The above process is also used for the third physical page, which will not be described in detail here. Among them, the group of offset voltages configured for each physical page is the same, that is, they are all the first group of offset voltages.

[0088] Further, step S107 includes the following steps:

[0089] Step S401, obtaining a corresponding error correction bit value according to the median;

[0090] Step S402, when the error correction bit value is greater than a second preset threshold, obtaining a compensation time;

[0091] Step S403, obtaining the compensated offline holding time according to the data holding time and the compensation time.

[0092] Specifically, after obtaining the data retention time, if the SSD is offline for too long, the detection voltage may fail to decode. In this case, compensation can be made directly according to the maximum data retention time. For example, if the maximum data retention time is 90 days and the offline time is 100 days, compensation can be made according to 90 days. The purpose of this operation is to trigger the migration of the overall user data.

[0093] The prediction of the compensated offline retention time is further improved by adding an additional compensation judgment mechanism. The compensation time can be 1 to 2 days. The compensated offline retention time is obtained based on the data retention time and the compensation time; the firmware can determine whether it is necessary to trigger the data migration of the physical block based on the compensated offline retention time; when the compensated offline retention time is greater than the first preset threshold, the data migration of the physical block to be detected is triggered.

[0094] The above method uses different voltage values ​​to detect the error correction situation and realizes the method of predicting the power-off time. Taking into account the differences in NAND particles, multiple physical pages are selected and predicted at the same time to make up for this defect, which can effectively improve the accuracy of the prediction.

[0095] When the user reads the physical block to trigger error correction, the corresponding error correction sequence can be quickly selected to ensure data security.

[0096] Further, step S403 includes the following steps:

[0097] The compensation offline holding time is calculated according to formula (1):

[0098] T=T1+T2 (1)

[0099] Wherein, T is the compensation offline holding time, T1 is the data holding time, and T2 is the compensation time.

[0100] Furthermore, the number of physical pages required is 3 or 4.

[0101] The present application uses a set of offset voltages and multiple sets of physical pages to perform a predicted offline data retention time operation on a physical block of a solid-state drive that is already filled with data, thereby effectively ensuring that data can be moved in a timely manner and avoiding triggering a large-scale error correction process. Even when error correction is triggered, a suitable error correction sequence can be selected to protect data security. In addition, based on an additional NAND correction decoding error bit value compensation strategy, the above-mentioned offline data retention time value can be more accurately improved.

[0102] Embodiment 2:

[0103] Figure 3 A schematic diagram of a system for ensuring data security after offline operation in a solid state drive provided by an embodiment of the present invention.

[0104] Reference Figure 3 The system comprises:

[0105] A determination module, used to determine the location of a physical block to be detected in the solid state drive; wherein the physical block to be detected includes a plurality of physical pages;

[0106] A selection module, used for selecting a required physical page from multiple physical pages, and building a physical page list according to the required physical page;

[0107] A relationship table acquisition module, used to acquire a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time;

[0108] An offset voltage index acquisition module, used to acquire a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list;

[0109] A median acquisition module, used to acquire the median from the minimum offset voltage index corresponding to each physical page;

[0110] A data retention time acquisition module is used to acquire the corresponding data retention time from the corresponding relationship table according to the median;

[0111] A compensation offline holding time acquisition module, used to obtain the compensation offline holding time according to the data holding time and the error correction bit value;

[0112] The trigger module is used to trigger the data migration of the physical block to be detected when the compensation offline holding time is greater than a first preset threshold.

[0113] Furthermore, the module is specifically used to:

[0114] Determine from the firmware whether there is a physical block that has partial data written but not full data;

[0115] If it exists, it triggers the movement of the physical block;

[0116] Scan the physical blocks where data has been written in the firmware, and set a corresponding timestamp for each physical block where data has been written;

[0117] Determine the last physical block filled with data based on the timestamp;

[0118] The last physical block filled with data is used as the physical block to be detected.

[0119] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for ensuring data security in a solid-state hard disk after offline operation provided in the above embodiment are implemented.

[0120] An embodiment of the present invention also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by the processor, the steps of the method for ensuring data security in a solid-state hard disk after offline operation of the above embodiment are executed.

[0121] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0123] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0124] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0125] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0126] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for ensuring data security after offline operation in a solid state drive, characterized in that: The method comprises: Determine the location of a physical block to be detected in the solid state drive; wherein the physical block to be detected includes a plurality of physical pages; Selecting a required physical page from the plurality of physical pages, and constructing a physical page list according to the required physical page; Acquire a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time; Obtaining a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list; Obtaining a median from a minimum offset voltage index corresponding to each of the physical pages; Acquire the corresponding data retention time from the correspondence table according to the median; Obtaining a compensated offline holding time according to the data holding time and the error correction bit value; When the compensated offline holding time is greater than a first preset threshold, data migration of the physical block to be detected is triggered.

2. The method for ensuring data security after offline operation in a solid state drive according to claim 1, characterized in that: Determining the location of the physical block to be detected in the solid state drive includes: Determine from the firmware whether there is a physical block that has partial data written but not full data; If it exists, the movement of the physical block is triggered; Scanning the physical blocks to which data has been written in the firmware, and setting a corresponding timestamp for each physical block to which data has been written; Determine the last physical block filled with data according to the timestamp; The physical block that is finally filled with data is used as the physical block to be detected.

3. The method for ensuring data security after offline operation in a solid state drive according to claim 1, characterized in that: Obtaining the minimum offset voltage index and the error correction bit value corresponding to each physical page in the physical page list includes: repeatedly performing the following process until each physical page is traversed: Get the first physical page in the physical page list; configuring a first set of offset voltages for the first physical page; wherein the first set of offset voltages includes N offset voltages; A first minimum offset voltage index and a first error correction bit value are obtained according to the first group of offset voltages.

4. The method for ensuring data security after offline operation in a solid state drive according to claim 1, characterized in that: Obtaining a compensated offline holding time according to the data holding time and the error correction bit value, including: Obtain the corresponding error correction bit value according to the median; When the error correction bit value is greater than a second preset threshold, obtaining a compensation time; The compensated offline holding time is obtained according to the data holding time and the compensation time.

5. The method for ensuring data security after offline operation in a solid state drive according to claim 4, characterized in that: Obtaining the compensated offline holding time according to the data holding time and the compensation time includes: The compensation offline holding time is calculated according to the following formula: T=T1+T2 Wherein, T is the compensation offline holding time, T1 is the data holding time, and T2 is the compensation time.

6. The method for ensuring data security after offline operation in a solid state drive according to claim 1, characterized in that: The required number of physical pages is 3 or 4.

7. A data security protection system for offline solid state hard disks, characterized in that: The system comprises: A determination module, used to determine the location of a physical block to be detected in the solid state drive; wherein the physical block to be detected includes a plurality of physical pages; A selection module, used for selecting a required physical page from the plurality of physical pages, and constructing a physical page list according to the required physical page; A relationship table acquisition module, used to acquire a set corresponding relationship table; wherein the set corresponding relationship table is used to characterize the corresponding relationship between N offset voltages and data retention time; An offset voltage index acquisition module, used to acquire a minimum offset voltage index and an error correction bit value corresponding to each physical page in the physical page list; A median acquisition module, used to acquire a median from a minimum offset voltage index corresponding to each of the physical pages; A data retention time acquisition module, used for acquiring the corresponding data retention time from a corresponding relationship table according to the median; A compensation offline holding time acquisition module, used to obtain the compensation offline holding time according to the data holding time and the error correction bit value; The trigger module is used to trigger the data migration of the physical block to be detected when the compensation offline holding time is greater than a first preset threshold.

8. The system for ensuring data security after offline operation in a solid state hard disk according to claim 7, characterized in that: The determination module is specifically used for: Determine from the firmware whether there is a physical block that has partial data written but not full data; If it exists, the movement of the physical block is triggered; Scanning the physical blocks to which data has been written in the firmware, and setting a corresponding timestamp for each physical block to which data has been written; Determine the last physical block filled with data according to the timestamp; The physical block that is finally filled with data is used as the physical block to be detected.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Calculation method and device for data offline retention time

    CN121366622A