Method and device for enhancing data retention of solid state disk in non-working environment, computer equipment and storage medium
By monitoring the power state in real time in the solid-state drive and starting the countdown and inspection operations, the problem of data loss due to charge leakage in the NAND Flash storage medium is solved, and long-term and reliable storage of data is achieved.
Patent Information
- Application Number
- CN202510101072.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-16
AI Technical Summary
In the long-term power outage state, the integrity problems caused by charge leakage in the data in the NAND Flash storage medium are difficult to effectively solve in the existing technology, resulting in data loss and system crash.
By monitoring the power state of the solid state drive in real time, the countdown mechanism is activated after a power outage is detected, and the inspection operation is automatically performed after the countdown is over, including read and write operations to refresh the charge inside the floating gate transistor.
It extends the data retention time of the solid-state drive in the power-off state, reduces the data error rate caused by charge leakage, improves the reliability and stability of the data, and ensures that the data remains highly complete and readable during long-term non-operating states.
Smart Images

Figure CN120015102A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to solid-state hard disk technology, and more specifically to a method, device, computer equipment and storage medium for enhancing data retention of solid-state hard disks in a non-working environment. Background Art
[0002] In the field of data storage technology, solid-state drives (SSDs), as a high-performance storage solution, have been widely adopted in numerous scenarios, including personal computers, data centers, and embedded systems. Their core storage component often uses NAND Flash memory, a non-volatile semiconductor storage medium based on floating-gate transistors. It can retain data for long periods of time without power, greatly improving the reliability and portability of data storage.
[0003] The operating principle of NAND Flash memory cells relies on the amount of charge stored in the floating gate to represent the data state. Ideally, this charge should be stable and retain data for a long time even when the device is powered off. However, in actual applications, due to material properties, process limitations, and environmental factors such as temperature and radiation, the charge in the floating gate gradually leaks over time. This is an unavoidable physical process.
[0004] The problem with charge leakage is that it gradually changes the charge distribution within the storage cell, causing a shift in the data state. When this shift accumulates to a certain level, meaning the data error rate reaches or exceeds the correction capability of the SSD's built-in error correction code (ECC), the originally stored data cannot be accurately read or recovered. ECC is a widely used technology in modern storage devices for detecting and correcting errors that occur during data transmission or storage. However, its error correction capability has an upper limit, and it is often unable to cope with the widespread data corruption caused by prolonged charge leakage.
[0005] As SSDs age, data integrity in NAND Flash storage media faces significant challenges, especially when powered off for extended periods. Data corruption not only leads to data loss but can also cause system crashes, application anomalies, and other serious consequences, posing a significant threat to user experience and data security.
[0006] In summary, how to effectively slow down the leakage rate of charge in NAND Flash storage cells based on existing technologies, or develop a more efficient data protection mechanism to ensure the data reliability of solid-state drives during long-term storage, has become a key issue that needs to be urgently addressed in the current field of data storage technology. Summary of the Invention
[0007] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, apparatus, device and medium for enhancing the data retention of a solid state drive in a non-working environment.
[0008] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0009] In a first aspect, a method for enhancing data retention of a solid-state drive in a non-working environment is provided, comprising:
[0010] Determine whether the solid-state drive is powered off;
[0011] If the SSD loses power, the countdown begins;
[0012] Determine whether the countdown has ended;
[0013] If the countdown ends, a patrol operation is performed on the solid state drive.
[0014] In a second aspect, a device for enhancing data retention of a solid-state drive in a non-working environment is provided, comprising:
[0015] a first determining unit, configured to determine whether the solid state drive is powered off;
[0016] Start unit, used to start countdown;
[0017] A second judging unit, configured to judge whether the countdown has ended;
[0018] The execution unit is configured to perform a patrol operation on the solid state drive if the countdown ends.
[0019] In a third aspect, a computer device is provided, 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 enhancing the data retention of a solid-state hard disk in a non-working environment are implemented.
[0020] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the method for enhancing the data retention of a solid-state hard disk in a non-working environment are implemented.
[0021] The above-mentioned method for enhancing the data retention of solid-state drives in non-working environments monitors the power status of the SSD in real time. Once a power outage is detected, a countdown mechanism is immediately activated. Once the countdown ends, an inspection operation is automatically performed. This is equivalent to setting up a regular maintenance barrier for the SSD in a non-working environment. This mechanism ensures that even in the absence of external power activation, the internal data of the SSD can receive timely "health checks" and maintenance, effectively extending the reliable storage period of the data. In addition, through intelligent inspection strategies, it directly acts on the core issue of SSD data retention - charge retention capability. Regular inspections not only reduce the data error rate caused by charge leakage, but also fundamentally enhance the stability of the SSD's long-term data storage, so that the data can maintain a high degree of integrity and readability even in long-term non-working states.
[0022] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A flowchart of a method for enhancing data retention of a solid-state drive in a non-working environment provided by an embodiment of the present invention;
[0025] Figure 2 A schematic block diagram of a device for enhancing data retention of a solid-state drive in a non-working environment provided by an embodiment of the present invention;
[0026] Figure 3 Schematic diagram of the structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0028] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0029] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0031] See also Figure 1 In the specific embodiment shown, the present invention discloses a method for enhancing data retention of a solid-state drive in a non-working environment, comprising the following steps:
[0032] S110, determining whether the solid-state hard disk is powered off; if the solid-state hard disk is powered on, the solid-state hard disk performs normal read and write operations;
[0033] Among them, the storage element of the solid-state drive is NAND Flash, a non-volatile storage element. It is based on a floating-gate transistor design, latching charge through the floating gate, storing data by controlling the amount of charge latched in the transistor, and reading data by reading the amount of charge inside the floating-gate transistor, thereby realizing data reading, writing and storage functions. However, in the case of a long power outage, the charge inside the floating-gate transistor will slowly leak over time and as the temperature rises, causing the stored data to be damaged or lost. The solid-state drive of the present invention is provided with a battery for powering the solid-state drive after power outage.
[0034] Specifically, an SSD is usually equipped with a power management module (PMM) that monitors the power input status of the SSD. By accessing the status register of the power management module through a programming interface (such as SPI, I2C, etc.), the current power status information of the SSD can be read. If the status register indicates that the SSD is in power-off or low-power standby mode, it can be determined that the SSD is powered off or about to be powered off. Alternatively, the SSD power pins (such as VCC, VDD, etc.) can be connected to an external power supply, and a voltage monitoring circuit can be integrated into the SSD controller to monitor the voltage level of the power pins in real time. When the voltage is detected to be lower than a preset threshold (usually close to 0V), the SSD is determined to be powered off.
[0035] The implementation of the above-mentioned technical feature of determining whether the solid-state drive is powered off brings the following technical effects:
[0036] Instant response to power status changes: Through the above implementation, the SSD can instantly sense changes in the power status, including sudden power outages, which provides a time advantage for implementing subsequent data protection measures and helps reduce the risk of data loss due to power outages.
[0037] Improved data protection flexibility: Once the system accurately determines that the SSD has lost power, it can immediately activate pre-set data protection mechanisms, such as starting a countdown timer, triggering data backup or inspection operations. This flexibility ensures that the SSD can take appropriate data protection measures under different power conditions.
[0038] Enhanced SSD reliability and durability: By promptly responding to power outages and taking appropriate data protection measures, the risk of charge leakage in SSD storage cells (such as NAND Flash) is reduced, thereby extending the data retention and service life of the SSD.
[0039] Reduced data loss risk: Accurate power failure detection ensures that the system has the opportunity to take necessary data protection measures, such as migrating data to more secure storage media or performing data redundancy checks, before or shortly after an SSD power failure, significantly reducing the risk of data loss.
[0040] S120, if the SSD loses power, a countdown begins;
[0041] Specifically, the SSD controller integrates one or more timer modules that are activated upon power outage detection. These timer modules can be hardware-based or software-implemented timing functions. The countdown duration is a key parameter that needs to be determined based on the SSD's storage media characteristics, expected data retention time, and environmental factors (such as temperature). Typically, this duration is preset to be long enough to ensure that necessary inspections or protection operations can be performed before data corruption in most cases, but not so long as to affect the SSD's response speed and energy efficiency. Before initiating the countdown, the SSD controller may need to save current status information (such as remaining battery life, last active time, etc.) to non-volatile memory (such as EEPROM or an internal reserved NAND Flash area) to restore the status after the countdown ends or when the SSD is powered on again. To extend the SSD's survival time in a power-off state, after the countdown is initiated, the SSD may enter a low-power or sleep mode, retaining only the necessary timing functions and status monitoring circuitry.
[0042] The implementation of the above-mentioned countdown start technical feature brings the following technical effects:
[0043] Early warning and preparation: The countdown mechanism provides a "buffer period" for the SSD. During this period, the system can prepare for data protection, such as starting data backup, performing data redundancy checks, or preparing for inspection operations.
[0044] Optimize data protection strategy: By presetting a reasonable countdown time, the SSD can flexibly adjust the data protection strategy according to the characteristics of the storage medium and environmental conditions, avoiding excessive protection that wastes resources and insufficient protection that causes data loss.
[0045] Enhanced SSD adaptability: The countdown mechanism enables the SSD to cope with different power outage scenarios, whether it is a planned power shutdown or an unexpected power outage, and appropriate data protection measures can be taken.
[0046] Improve user experience: For users, the countdown mechanism enhances SSD reliability and data security, reduces the risk of data loss due to power outages, and thus improves the overall user experience.
[0047] S130, determining whether the countdown has ended; if the countdown has not ended, returning to step S120;
[0048] Specifically, once the countdown starts, the timer module in the SSD controller will start timing according to the preset duration. This timer can be a hardware-level timer or a timing function implemented by software. It will continue to run in the background and will not be affected by other SSD operations. In order to determine whether the countdown has ended, the SSD controller can use status polling or interrupt mechanisms. Status polling: The controller periodically (such as at certain time intervals) checks the current value of the timer and compares it with the preset end value; if the current value reaches or exceeds the end value, the countdown is determined to be over. Interrupt mechanism: When the timer reaches the preset end, it triggers an interrupt signal, which is captured by the interrupt processing module of the SSD controller, thereby determining that the countdown has ended and starting the corresponding response program.
[0049] Once the countdown is determined to be complete, the SSD controller needs to update its internal status information, marking the countdown as complete, and may save this status information to non-volatile memory so that it can be restored when the SSD is powered on again. After the countdown ends, the SSD controller will trigger the preset subsequent operations, such as performing data inspection, starting data protection mechanisms, or preparing to enter low-power standby mode.
[0050] The implementation of the above-mentioned technical feature of determining whether the countdown has ended brings the following technical effects:
[0051] Precisely control data protection timing: By determining whether the countdown has ended, the SSD can precisely control when to perform data protection operations, avoiding wasting resources prematurely and preventing data corruption due to delays.
[0052] Improve system response speed: When an interrupt mechanism is used to determine the end of the countdown, the SSD can respond to the countdown end event in near real time, thereby quickly initiating subsequent data protection operations and reducing system latency.
[0053] Enhanced SSD reliability and stability: By precisely controlling the timing of data protection operations, SSDs can better respond to abnormal situations such as power outages, protecting stored data from loss, thereby enhancing SSD reliability and stability.
[0054] Optimize energy efficiency management: During the countdown, the SSD may enter low-power mode to reduce energy consumption. After the countdown ends and subsequent operations are triggered, the SSD can adjust its power consumption state as needed to optimize energy efficiency management.
[0055] In one embodiment, the countdown is set to 3 months.
[0056] Specifically, the data on the solid-state drive can be retained for 3 months when the power is off, but the charge inside the floating gate transistor will slowly leak out after 3 months. Therefore, the timing function can be used to read and write once within 3 months to ensure that the data is not lost, and then read and write again after three months. In this way, the data retention time can be extended in the environment of the solid-state drive being powered off until the battery is exhausted.
[0057] Specifically, a countdown duration is preset in the SSD's firmware or control logic—here, set to three months (approximately 90 days). This duration is determined based on factors such as the characteristics of the SSD's storage media, ambient temperature, and expected data retention time. When the SSD detects a power outage (e.g., when the voltage on a power pin falls below a certain threshold), the countdown mechanism is immediately initiated. The countdown can be implemented in a timer module within the SSD, which can be a hardware timer or a software-implemented timing function. During the countdown, the SSD periodically (e.g., at regular intervals) checks the remaining time. When the countdown nears its end (e.g., within a few days or hours before the end of the countdown), the SSD automatically wakes up and performs a data read / write operation. This operation can involve reading and rewriting data, or performing some form of data verification and refresh to ensure data integrity and charge stability within the floating-gate transistor. After the read / write operation is complete, the SSD re-enters a low-power standby mode, awaiting the next countdown cycle. This process repeats every three months until the SSD's battery is completely depleted or power is restored.
[0058] The implementation of the above-mentioned technical feature of setting the countdown to 3 months brings the following technical effects:
[0059] Extended data retention time: By performing regular read and write operations every three months, the SSD can effectively prevent the leakage of internal charges in the floating gate transistor, thereby significantly extending data retention time, which helps protect the security of important data in a power outage environment.
[0060] Improve data reliability: Regular data read and write operations not only help maintain data integrity, but also promptly detect and correct possible data errors, thereby improving SSD data reliability.
[0061] Optimized energy efficiency management: During the countdown period, the SSD can remain in low-power standby mode to reduce energy consumption. When a read or write operation is required, the SSD will briefly wake up and complete the task before entering low-power mode again. This strategy helps optimize energy efficiency while keeping data safe.
[0062] Enhanced SSD adaptability: By implementing a scheduled read and write operation strategy, SSDs can better adapt to various power outage scenarios, including planned power shutdowns and unexpected power outages, which enhances the reliability and stability of SSDs in different environments.
[0063] S140: If the countdown ends, perform a patrol inspection on the solid state drive.
[0064] Specifically, a timer module within the SSD continuously tracks the countdown duration. Once the countdown reaches a preset end point (e.g., three months), the timer triggers an interrupt signal. Upon receiving the interrupt signal, the SSD controller recognizes the countdown as complete and prepares to initiate a patrol inspection. Before initiating the patrol inspection, the SSD controller may need to read relevant configuration information from non-volatile memory, such as the patrol inspection scope and patrol inspection policy. Simultaneously, the SSD controller checks the current power supply status to ensure sufficient power to complete the patrol inspection. If power is insufficient, the patrol inspection may be postponed or a power conservation mechanism may be triggered. A patrol inspection typically involves reading data blocks stored in the SSD and verifying their integrity. This can be achieved by comparing data checksums, performing data redundancy checks (e.g., CRC checks), or utilizing error correction codes (ECC). If data errors or inconsistencies are detected, the SSD controller attempts to correct these errors, such as by rereading the data or replacing damaged blocks with spare blocks. A patrol inspection may also include checking the SSD's hardware status, such as reading temperature sensor values and monitoring voltage and current levels, to ensure the SSD is operating within a safe operating range. After the inspection is complete, the SSD controller records the inspection results, including any issues found, actions taken, and the time the inspection was performed. This information can be stored in the SSD's non-volatile memory to restore the SSD's status when it is powered on again or for subsequent analysis. Based on the inspection results, the SSD controller may trigger subsequent actions, such as initiating data backup, performing data redundancy checks, or updating the SSD's firmware. If the inspection discovers serious issues, such as extensive data corruption or hardware failure, the SSD controller may trigger an alarm mechanism to notify the user or system administrator for further action.
[0065] The implementation of the above-mentioned technical feature of performing inspection operations on solid-state drives brings the following technical effects:
[0066] Improve data reliability: Regularly inspecting SSDs can detect and correct data errors in a timely manner, ensuring the integrity and reliability of stored data.
[0067] Preventing hardware failures: Inspection operations can also monitor the hardware status of the SSD and promptly detect potential hardware failures, such as overheating and unstable voltage, so that preventive measures can be taken to avoid data loss caused by hardware damage.
[0068] Optimizing SSD performance: Through inspection operations, the SSD controller can understand the current status of the SSD and adjust its operating parameters, such as read and write policies and power management, as needed, to optimize SSD performance and energy efficiency.
[0069] Enhanced user experience: Regular inspections and data protection mechanisms can reduce user dissatisfaction and complaints caused by data loss or hardware failure, thereby improving user experience.
[0070] In one embodiment, the steps of performing inspection operations on the solid state drive include: performing read and write operations on the NAND Flash of the solid state drive, and powering on to refresh the charge inside the floating gate transistor during the read and write process to keep the stored charge stable to avoid data loss.
[0071] Specifically, when a regular read / write cycle occurs, the SSD controller wakes up the NAND Flash and performs read / write operations on it. This typically involves reading a block of data from the NAND Flash and then rewriting that data to the same or different locations. During the read / write process, the NAND Flash's floating gate transistors are energized, refreshing the internal charge. This refresh process helps stabilize the stored charge and prevents data loss caused by charge leakage. After the read / write operation is complete, the SSD controller checks the data integrity to ensure no data errors or loss have occurred. Between read / write operations, the SSD can enter a low-power standby mode to reduce energy consumption and extend battery life. When a regular read / write operation is required, the SSD wakes up from low-power standby mode and reenters standby mode after the operation is complete. The SSD controller also monitors the NAND Flash's status, including the number of read / write operations and the data error rate. If NAND Flash performance degrades or the data error rate increases, the SSD controller can trigger an alarm, notifying the user or system administrator for further inspection or maintenance.
[0072] By implementing the above-mentioned read and write operations on the NAND Flash of the solid-state drive, the charge inside the floating gate transistor is refreshed by power during the read and write process, maintaining the stored charge stable to avoid data loss. This technical feature brings the following technical effects:
[0073] Extending data retention: By performing regular read and write operations on NAND Flash and refreshing the charge inside the floating gate transistor, data retention can be significantly extended, ensuring that data is not lost in the event of a long power outage.
[0074] Improve data reliability: Regular read and write operations can not only refresh the charge, but also detect and correct data errors in a timely manner, thereby improving data reliability.
[0075] Optimized energy efficiency management: In low-power standby mode, the SSD reduces energy consumption and extends battery life, while ensuring it can quickly wake up and perform read and write operations when needed.
[0076] Enhanced SSD durability: By monitoring the NAND Flash status and triggering an alarm mechanism, users can promptly identify and resolve potential problems, thereby enhancing the durability and lifespan of the SSD.
[0077] In one embodiment, after the step of performing the inspection operation on the solid state drive, the method further includes: after the inspection operation is completed, jumping to the countdown to start.
[0078] Specifically, data is read and written again after three months. This allows data to be retained until the battery is depleted in a power-off environment. That is, after the inspection operation is completed, the SSD controller will restart a countdown cycle immediately or after a preset delay. The length of the countdown cycle is typically determined based on factors such as the characteristics of the storage media, data retention requirements, and the expected lifespan of the SSD. In this case, the countdown period is set to three months. The countdown can be implemented in a timer module within the SSD controller, which can be a hardware timer or a software-implemented timing function. During the countdown, the SSD can enter a low-power standby mode to reduce energy consumption and extend battery life. The SSD controller monitors the battery charge and countdown progress to ensure sufficient power for the next read or write operation before the countdown ends. When the countdown reaches the preset end point, the SSD controller wakes up the SSD and performs a read or write operation. The read or write operation involves reading a data block from the SSD, verifying its integrity, and possibly rewriting the data to the same or a different location to refresh the charge in the storage media and extend data retention. After the read / write operation is completed, the SSD controller will record the operation results again and restart the next countdown cycle. The above process will repeat until the SSD battery is completely exhausted or the SSD is reconnected to the power supply.
[0079] The technical feature of jumping to the countdown start after the inspection operation is completed brings the following technical effects:
[0080] Extended data retention: By periodically performing read and write operations and restarting the countdown cycle, SSDs can ensure long-term data retention in power-off environments, which helps prevent data loss due to charge leakage in the storage media.
[0081] Improve data reliability: Patrol operations and regular read and write operations can detect and correct data errors in a timely manner, thereby improving data reliability.
[0082] Optimized energy efficiency management: During the countdown period, the SSD can enter low-power standby mode to reduce energy consumption and extend battery life, which helps optimize energy efficiency while keeping data safe.
[0083] Enhanced SSD durability: By regularly performing read and write operations and inspections, the SSD can promptly detect and resolve potential storage media issues, thereby enhancing the SSD's durability and service life.
[0084] The present invention monitors the power status of the SSD in real time and immediately activates the countdown mechanism once a power outage is detected. This design can actively respond to potential risks in the non-working state and effectively prevent the natural loss of charge at the floating gate level caused by long-term power outages, thereby avoiding accidental damage or loss of data. In addition, the inspection operation is automatically performed after the countdown ends, which is equivalent to setting up a regular maintenance barrier for the SSD in a non-working environment. This mechanism ensures that even in the absence of external power activation, the internal data of the SSD can receive timely "health checks" and maintenance, effectively extending the reliable storage cycle of the data. In addition, through the intelligent inspection strategy, it directly acts on the core issue of SSD data retention - charge retention capability. Regular inspections not only It reduces the data error rate caused by charge leakage and fundamentally enhances the stability of SSD long-term data storage, so that data can maintain high integrity and readability even in long periods of non-working state. In addition, for individual users and enterprise systems that rely on SSD to store critical data, it greatly improves data security and reliability, reduces system failures and data recovery costs caused by data loss or damage, and enhances the stability of the overall system and user satisfaction. In addition, through technological innovation, it solves a major problem of SSD data retention in non-working environments, providing solid technical support for the popularization and promotion of SSD in more application scenarios with strict requirements on data security and durability (such as data center backup, long-term archival storage, etc.).
[0085] Figure 2 FIG is a schematic block diagram of an apparatus 300 for enhancing data retention of a solid state drive in a non-working environment provided by an embodiment of the present invention. Figure 2 As shown, corresponding to the above method for enhancing the data retention of a solid-state hard disk in a non-working environment, the present invention also provides a device 300 for enhancing the data retention of a solid-state hard disk in a non-working environment. The device 300 for enhancing the data retention of a solid-state hard disk in a non-working environment includes a unit for executing the above method for enhancing the data retention of a solid-state hard disk in a non-working environment. The device can be configured in a server. Specifically, please refer to Figure 2 , the device 300 for enhancing data retention of a solid state drive in a non-working environment includes a first judgment unit 301, a starting unit 302, a second judgment unit 303 and an execution unit 304;
[0086] The first determining unit 301 is used to determine whether the solid state drive is powered off;
[0087] A start unit 302 is used to start the countdown;
[0088] The second judging unit 303 is used to judge whether the countdown has ended;
[0089] The execution unit 304 is configured to perform a patrol operation on the solid state drive if the countdown ends.
[0090] In one embodiment, the countdown is set to 3 months.
[0091] In one embodiment, the execution unit 304 includes: performing read and write operations on the NAND Flash of the solid state drive, and refreshing the charge inside the floating gate transistor during the read and write process to keep the stored charge stable to avoid data loss.
[0092] In one embodiment, the device further comprises: a jump unit, configured to jump to the start countdown after the inspection operation is completed.
[0093] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the device 300 and each unit for enhancing the data retention of the solid-state hard disk in the above-mentioned non-working environment can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.
[0094] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps on the server side of a method for enhancing the data retention of a solid-state hard drive in a non-working environment.
[0095] In one embodiment, a computer device is provided, 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 following steps are performed:
[0096] Determine whether the solid state drive is powered off; if the solid state drive is powered off, start a countdown; determine whether the countdown is over; if the countdown is over, perform an inspection operation on the solid state drive.
[0097] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0098] Determine whether the solid state drive is powered off; if the solid state drive is powered off, start a countdown; determine whether the countdown is over; if the countdown is over, perform an inspection operation on the solid state drive.
[0099] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can be found in the relevant descriptions of the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0100] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0101] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0102] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A method for enhancing data retention of a solid state drive in a non-working environment, characterized in that: include: Determine whether the SSD is powered off; If the SSD loses power, the countdown starts; Determine whether the countdown has ended; If the countdown ends, a patrol operation is performed on the solid state drive.
2. The method for enhancing data retention of a solid state drive in a non-working environment according to claim 1, characterized in that: The countdown is set to 3 months.
3. The method for enhancing data retention of a solid state drive in a non-working environment according to claim 1, characterized in that: The steps of performing inspection operations on the solid state drive include: performing read and write operations on the NAND Flash of the solid state drive, and powering on to refresh the charge inside the floating gate transistor during the read and write process to keep the stored charge stable to avoid data loss.
4. The method for enhancing data retention of a solid state drive in a non-working environment according to claim 1, characterized in that: After the step of performing the inspection operation on the solid state hard disk, the method further includes: after the inspection operation is completed, jumping to execute the countdown.
5. A device for enhancing data retention of a solid state drive in a non-working environment, characterized in that: include: A first determination unit, used to determine whether the solid state hard disk is powered off; Start unit, used to start countdown; A second judging unit, used to judge whether the countdown is over; The execution unit is used to perform a patrol operation on the solid state drive if the countdown ends.
6. The device for enhancing data retention of a solid state hard disk in a non-working environment according to claim 5, characterized in that: The countdown is set to 3 months.
7. The device for enhancing data retention of a solid state hard disk in a non-working environment according to claim 5, characterized in that: The execution unit includes: performing read and write operations on the NAND Flash of the solid state drive, and powering on to refresh the charge inside the floating gate transistor during the read and write process to keep the stored charge stable to avoid data loss.
8. The device for enhancing data retention of a solid state hard disk in a non-working environment according to claim 5, characterized in that: The device further comprises: a jump unit, which is used to jump to execute the countdown after the inspection operation is completed.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for enhancing the data retention of a solid state drive in a non-working environment according to any one of claims 1 to 4 are implemented.
10. A storage medium, wherein the computer-readable storage medium stores a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for enhancing the data retention of a solid state drive in a non-working environment according to any one of claims 1 to 4 are implemented.