Solid state disk-based storage protection prompt processing method and device, and terminal
Patent Information
- Application Number
- CN202210128900.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-11
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-02-11
AI Technical Summary
Current technologies for solid-state drives (SSDs) cannot provide real-time monitoring and early warnings, leading to sudden damage and the loss of important data.
By acquiring the usage status information of the solid-state drive, it can determine whether a set threshold has been reached, and when the threshold is reached, it will proactively issue a warning and automatically back up the data to a designated location.
It enables proactive health status detection and data protection for solid-state drives, preventing the loss of important data due to approaching lifespan or sudden damage.
Smart Images

Figure CN114528181B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of memory processing technology, and in particular to a storage protection prompt processing method, device, and terminal based on solid-state drives. Background Technology
[0002] With the development of technology and the continuous improvement of people's living standards, the use of storage devices such as hard drives is becoming increasingly widespread. Solid-state drives (SSDs) are hard drives made using arrays of solid-state electronic storage chips. SSDs are completely identical to regular hard drives in terms of interface specifications and definitions, functions, and usage methods, and their product shape and size are basically the same.
[0003] Current solid-state drives (SSDs) cannot be monitored in real time or given early warnings during use. Sometimes, SSDs may suddenly fail, resulting in the loss of important data and causing inconvenience to users.
[0004] Therefore, existing technologies still need improvement and development. Summary of the Invention
[0005] The main objective of this invention is to provide a storage protection alert processing method, device, smart terminal, and computer-readable storage medium based on solid-state drives (SSDs). This aims to address the problem in existing technologies that lack proactive detection of SSD operating status and automatic reporting of abnormal information technology. Sudden SSD failures can easily lead to the loss of important user data, which is detrimental to user experience.
[0006] To achieve the above objectives, a first aspect of the present invention provides a storage protection alert processing method based on a solid-state drive, wherein the method includes:
[0007] Obtain the usage status information of the solid-state drive;
[0008] Based on the usage status information of the solid-state drive, confirm whether the usage indicators of the solid-state drive have reached the set threshold.
[0009] When the usage indicators of the solid-state drive reach a set threshold, the system will actively control the corresponding usage status warning and automatically back up the data in the solid-state drive to a designated location.
[0010] Optionally, the steps described above for obtaining the usage status information of the solid-state drive include:
[0011] Check if the solid-state drive has data storage requirements;
[0012] When there is a need for data storage, it prompts you to classify and store the data to be stored. The classification and storage includes: important data storage area, ordinary data storage area, and temporary data storage area.
[0013] According to the classification storage instructions, important data that needs to be stored is stored in the important data storage area, ordinary data that needs to be stored is stored in the ordinary data storage area, and temporary data that needs to be stored is stored in the temporary data storage area.
[0014] The usage status information includes: write volume information of the solid-state drive, information on newly added bad blocks, and temperature information.
[0015] Optionally, the steps for obtaining the usage status information of the solid-state drive mentioned above include:
[0016] Obtain information on the amount of data written by the host to the solid-state drive;
[0017] Obtain the number of newly added bad blocks in the solid-state drive;
[0018] Obtain the temperature information of the solid-state drive.
[0019] Optionally, the step of confirming whether the usage indicators of the solid-state drive have reached a set threshold based on the usage status information of the solid-state drive includes:
[0020] Based on the host's data write volume to the solid-state drive, the number of newly added bad blocks on the solid-state drive, and the solid-state drive's temperature information;
[0021] Determine whether the data write volume information, the number of newly added bad blocks information, and the temperature information exceed the preset first threshold, second threshold, and third threshold, respectively.
[0022] When any information reaches a preset threshold, it is determined that the usage index of the solid-state drive has reached the preset threshold.
[0023] Optionally, the steps described above, whereby when the usage indicators of the solid-state drive reach a set threshold, the system actively controls and issues corresponding usage status warnings, and automatically backs up the data in the solid-state drive to a designated location, include:
[0024] When the usage index of the solid-state drive is determined to reach a set threshold;
[0025] It proactively alerts users to the current hard drive status via pop-up windows and issues warnings.
[0026] It will automatically back up important data from the solid-state drive to a designated location.
[0027] Optionally, the steps mentioned above to proactively remind users of the current hard drive status information via pop-up windows and issue warnings include:
[0028] When the data write volume of the solid-state drive reaches the first set threshold of the write volume usage index, a prompt page will pop up: "The hard drive is nearing the end of its read / write life. Please back up your data and replace the hard drive in time."
[0029] When the number of newly added bad blocks on the solid-state drive reaches the second set threshold of the bad block count, a pop-up prompt page will appear, indicating that the number of bad blocks on the hard drive is approaching the limit. Please back up your data in time and return the drive to the manufacturer for maintenance.
[0030] When the temperature of the solid-state drive reaches the third set threshold of the temperature index, a prompt page will pop up: "Alarm warning. Please stop using it or back up your data in time, and return it to the manufacturer for maintenance."
[0031] Optionally, the above steps for automatically backing up important data from the solid-state drive to a specified location include:
[0032] Back up data that has been pre-stored in the important data storage area to a designated location;
[0033] The specified location includes other storage devices on the computer or the cloud.
[0034] A second aspect of the present invention provides a storage protection alert processing device based on a solid-state drive, wherein the device comprises:
[0035] The status reading module is used to obtain the usage status information of the solid-state drive;
[0036] The judgment module is used to determine whether the usage indicators of the solid-state drive have reached a set threshold based on the usage status information of the solid-state drive.
[0037] The active alert module is used to actively control the corresponding usage status warning when the usage indicators of the solid-state drive reach a set threshold, and to automatically back up the data in the solid-state drive to a designated location.
[0038] A second aspect of the present invention provides a storage protection alert processing device based on a solid-state drive, wherein the device comprises:
[0039] The status reading module is used to obtain the usage status information of the solid-state drive;
[0040] The judgment module is used to determine whether the usage indicators of the solid-state drive have reached a set threshold based on the usage status information of the solid-state drive.
[0041] The proactive alert module is used to proactively provide corresponding data protection and backup reminders when the usage indicators of the solid-state drive reach a set threshold.
[0042] A third aspect of the present invention provides a smart terminal, the smart terminal including a memory, a processor, and a solid-state drive-based storage protection prompt processing program stored on the memory and executable on the processor, wherein the solid-state drive-based storage protection prompt processing program, when executed by the processor, implements any one of the steps of the solid-state drive-based storage protection prompt processing method.
[0043] A fourth aspect of the present invention provides a computer-readable storage medium storing a storage protection alert processing program based on a solid-state drive (SSD), wherein the SSD-based storage protection alert processing program, when executed by a processor, implements any of the steps of the aforementioned SSD-based storage protection alert processing method.
[0044] As can be seen from the above, the present invention acquires the usage status information of the solid-state drive (SSD); based on the usage status information, it confirms whether the SSD's usage indicators have reached a set threshold; when the SSD's usage indicators have reached the set threshold, it actively controls and issues corresponding usage status warnings, and automatically backs up the data in the SSD to a designated location. Compared with the prior art, the present invention actively detects the health status of the SSD, and when an abnormality is detected in a certain indicator of the SSD, it actively protects the data and prompts the user to perform corresponding countermeasures such as backup and repair. This avoids the problem of users being unable to retrieve or even losing important data due to the SSD's approaching end of life or sudden damage during use, adding anomaly detection and alarm functions to SSD products. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a flowchart illustrating a storage protection alert processing method based on a solid-state drive provided in an embodiment of the present invention;
[0047] Figure 2 This is an embodiment of the present invention. Figure 1 A detailed flowchart of step S100 is shown below;
[0048] Figure 3 This is an embodiment of the present invention. Figure 1A detailed flowchart of step S200 is shown below;
[0049] Figure 4 This is an embodiment of the present invention. Figure 1 A detailed flowchart of step S300 is shown below;
[0050] Figure 5 This is a schematic diagram of a storage protection prompt processing device based on a solid-state drive provided in an embodiment of the present invention;
[0051] Figure 6 This is a structural diagram provided in an embodiment of the present invention as a software embodiment;
[0052] Figure 7 This is a block diagram illustrating the internal structure of a smart terminal provided in an embodiment of the present invention. Detailed Implementation
[0053] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0054] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0055] 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 invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0056] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0057] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0058] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0059] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0060] Memory is a ubiquitous hardware device; the vast majority of electronic devices rely on it, such as mobile phones, computers, and a wide variety of smart home products. Depending on the electronic device and application, memory can store images, text, code data, and applications.
[0061] In daily life, the storage devices that people can directly see and interact with are mechanical hard drives (HDDs) and solid-state drives (SSDs) in computers. Compared to the storage devices in mobile phones, HDDs and SSDs are easier to assemble and disassemble, and can be easily transferred from one computer to another. As a result, the lifespan of SSDs and HDDs is much longer than that of the storage devices in highly integrated electronic devices such as mobile phones.
[0062] However, long usage periods often lead to users being unaware that the SSD's lifespan is nearing its end. In such cases, the SSD may suddenly fail and stop working without the user's knowledge, making it difficult to retrieve data or even resulting in its complete loss, causing great inconvenience to the user.
[0063] To address the problems of existing technologies, this invention acquires the usage status information of a solid-state drive (SSD); based on this information, it confirms whether the SSD's usage indicators have reached set thresholds; when these indicators do, it proactively issues a usage status warning and automatically backs up the data to a designated location. Compared to existing technologies, this invention proactively detects the health status of the SSD and, when an abnormality is detected in any SSD indicator, proactively protects the data and prompts the user to perform backups and repairs. This avoids the problem of users being unable to retrieve or even losing important data due to the SSD's approaching end of life or sudden failure, adding anomaly detection and alarm functions to SSD products.
[0064] Exemplary methods
[0065] like Figure 1 As shown, this embodiment of the invention provides a storage protection prompt processing method based on a solid-state drive. Specifically, the method includes the following steps:
[0066] Step S100: Obtain the usage status information of the solid-state drive.
[0067] In this embodiment, when a user is using a computer, the application that matches the solid-state drive (SSD) periodically detects and obtains the current SSD status information, such as total data read / write volume, newly added bad blocks, hard drive temperature, power-on time, and other aspects of SSD status information. This information is used in subsequent steps to determine whether the hard drive is abnormal or at risk.
[0068] Step S200: Based on the usage status information of the solid-state drive, confirm whether the usage indicators of the solid-state drive have reached the set threshold.
[0069] In this embodiment, based on the status information data detected and obtained in the above steps, a pre-set threshold is used to determine whether there are any anomalies or risks in the aforementioned status information. Furthermore, different weights can be assigned to different data based on the degree of impact of different data causing anomalies. When different data exceed the threshold, different anomaly or risk level judgments will be obtained. Multiple warning values can also be set based on the different degrees to which various data exceed the threshold. For example, when the hard drive operating temperature is 60 degrees Celsius, it is judged to be operating at a normal temperature; when it is 85 degrees Celsius, it is judged to have just exceeded the threshold; and when it exceeds 100 degrees Celsius, it is judged to be an extremely short-term abnormality in operating temperature. This is beneficial for more accurately inferring the operating status and risk points of the solid-state drive based on data of different levels.
[0070] Step S300: When the usage index of the solid-state drive reaches the set threshold, the system actively controls the corresponding usage status warning and automatically backs up the data in the solid-state drive to the specified location.
[0071] In this embodiment, when the SSD's status information is detected to exceed a preset threshold during the above steps, the acquired SSD status information is displayed to the user, along with corresponding risk warnings and data protection measures. For example, when the SSD's operating temperature exceeds the threshold, a pop-up alert dialog box informs the user that the hard drive's operating temperature is high, prompting them to check the hard drive's operating environment, and listing multiple troubleshooting measures and suggestions. Simultaneously with the alert, the SSD data is backed up, which can be a full backup or a backup of specified files, and the backup can be directed to another designated hard drive on the computer or to the cloud. This prevents the user from being unaware of SSD malfunctions, which could lead to sudden SSD failure and data loss during subsequent computer use.
[0072] As can be seen from the above, the storage protection alert processing method based on solid-state drives (SSDs) provided in this embodiment of the invention acquires the usage status information of the SSD; based on the usage status information of the SSD, it confirms whether the usage indicators of the SSD have reached a set threshold; when the usage indicators of the SSD have reached the set threshold, it actively controls the corresponding usage status warning and automatically backs up the data in the SSD to a designated location. Compared with the prior art, this method acquires multiple working indicators and status information of the SSD through a preset program time, and judges whether there is an anomaly in the current SSD and the severity of the anomaly from multiple aspects through a preset threshold, and finally actively reports the anomaly information to the user, while providing anomaly troubleshooting methods and solutions. This avoids the problem that users cannot know about the abnormal problems of the SSD in time during use, leading to the end of the SSD's lifespan or sudden damage, making it difficult to retrieve or even lose important data, and adds anomaly detection, alarm, and automatic data backup functions to SSD products.
[0073] Specifically, this embodiment uses a desktop computer and a solid-state drive (SSD) commonly used by users as examples. When the computer and hard drive are other devices, such as a laptop, a NAS network storage server, or a mechanical hard drive, the specific solution in this embodiment can be referred to.
[0074] In one application scenario, the usage status information of a solid-state drive can be obtained through a specified computer program.
[0075] Specifically, such as Figure 2 As shown, step S100 above includes:
[0076] Step S101: Obtain the data write volume information of the host to the solid-state drive;
[0077] Step S102: Obtain the number of newly added bad blocks of the solid-state drive;
[0078] Step S103: Obtain the temperature information of the solid-state drive.
[0079] For example, a user's desktop computer has a 512GB solid-state drive (SSD) and a 4TB hard disk drive (HDD) installed, along with a program compatible with the SSD. According to the program's default settings, the computer automatically checks and retrieves the SSD's usage status information at startup and every 3 hours, including data read / write volume and write volume. For example, the current total write volume is 53TB; the number of newly added bad blocks is 53; and the current operating temperature is 85 degrees Celsius.
[0080] Furthermore, in addition to the parameters mentioned above, other parameters such as SSD power-on time and read / write speed can be obtained to evaluate the health and abnormal conditions of the SSD from multiple perspectives. This avoids identifying different causes of SSD anomalies due to varying user habits. For example, some users may have a high number of SSD power-on cycles and durations but a low total write volume; while others may have fewer power-on cycles and durations but extremely high read / write volumes due to specific computational programs. This comprehensive detection of SSD anomalies provides a foundation for subsequent SSD anomaly assessment.
[0081] In one application scenario, the program determines whether the usage indicators of the solid-state drive have reached a set threshold based on the usage status information of the solid-state drive.
[0082] Specifically, such as Figure 3 As shown, step S200 above includes:
[0083] Step S201: Based on the data write volume information of the host to the solid-state drive, the number of newly added bad blocks of the solid-state drive, and the temperature information of the solid-state drive;
[0084] Step S202: Determine whether the data write amount information, the number of newly added bad blocks information, and the temperature information exceed the preset first set threshold, the second set threshold, and the third set threshold, respectively;
[0085] Step S203: When any information reaches a preset threshold, it is determined that the usage index of the solid-state drive has reached the preset threshold.
[0086] This includes: based on the data write volume information of the host to the solid-state drive; determining whether the data write volume of the solid-state drive has reached a first set threshold for the write volume usage index; when the data write volume of the solid-state drive reaches the first set threshold for the write volume usage index, it is determined that the usage index of the solid-state drive has reached the set threshold.
[0087] Based on the number of newly added bad blocks in the solid-state drive (SSD), it is determined whether the number of newly added bad blocks in the SSD reaches a second set threshold for the number of bad blocks. When the number of newly added bad blocks in the SSD reaches the second set threshold for the number of bad blocks, it is determined that the usage index of the SSD has reached the set threshold.
[0088] Based on the temperature information of the solid-state drive (SSD), it is determined whether the temperature value of the SSD has reached the third set threshold of the temperature index; when the temperature value of the SSD reaches the third set threshold of the temperature index, it is determined that the usage index of the SSD has reached the set threshold.
[0089] For example, based on the solid-state drive (SSD) data write volume information of 53TB, the number of newly added bad blocks information of 53, and the SSD temperature information of 85 degrees Celsius obtained in the above steps, the SSD is compared with multiple thresholds preset in the specified computer program to determine whether the SSD is abnormal.
[0090] For example, if the total write lifespan of this SSD is 190TBW, then the first threshold for write volume is set to 190 * 90% = 171TB. Obviously, by comparison, the current total write volume of the SSD is far from reaching the warning value. A second threshold for the number of newly added bad blocks is also set. When the detection frequency is once every 3 hours, if the number of newly added bad blocks exceeds the bad block threshold, the current hard drive is considered to be abnormal. A third threshold for the hard drive's operating temperature is also set. When the operating temperature of the SSD is detected to exceed 75 degrees Celsius, the current working state of the hard drive is considered abnormal and there may be risks.
[0091] Based on the aforementioned preset threshold and the comparison with multiple pieces of information obtained from the current solid-state drive, it is finally determined that the solid-state drive's operating temperature index has reached the set threshold. At this point, it can be considered that the solid-state drive's usage index has reached the preset threshold, and a reminder should be issued.
[0092] Furthermore, multiple threshold levels can be set for each data point. Taking operating temperature as an example, the first threshold is 75 degrees Celsius, the second threshold is 85 degrees Celsius, and the third threshold is 100 degrees Celsius. These different threshold levels facilitate more accurate determination of the SSD's status—whether it is normal, abnormal, or extremely abnormal—in subsequent steps. This allows for the assessment of the SSD's abnormal status from multiple perspectives using preset thresholds.
[0093] The write volume threshold and bad block volume threshold can also be calculated using the following formulas:
[0094] Write volume threshold: Total capacity * PE cycle / Write amplification ratio.
[0095] Bad block threshold: (Total available capacity - Host display capacity) / Block size
[0096] For example, with a 120GB capacity using NAND flash with a PE ratio of 1K, the write amplification ratio (BAR) depends on the design, but we'll assume it's 2. The approximate TBW (Total Write Length) can be estimated as 120GB * 1K / 2 = 60TB. Most SSD manufacturers now provide their total write volume (TBW) values. A monitoring ratio, such as 95%, can be set based on this TBW value. When judging based on the number of bad blocks, because of the characteristics of NAND flash, the performance and functionality of the NAND memory array cannot be guaranteed to remain reliable throughout its lifespan. Therefore, some bad blocks will be generated during NAND production and use. Thus, the design incorporates more blocks than the host's display capacity to compensate for bad blocks. Therefore, the number of extra blocks, or the allowed number of new bad blocks, can be calculated by subtracting the host's display capacity from the actual usable capacity and then dividing by the size of each block.
[0097] In one application scenario, the driver determines when the usage indicators of the solid-state drive reach a set threshold and proactively provides corresponding data protection and backup reminders.
[0098] Specifically, such as Figure 4 As shown, step S300 above includes:
[0099] Step S301: When it is determined that the usage index of the solid-state drive has reached a set threshold;
[0100] Step S302: Proactively remind users of the current hard drive status information via a pop-up window, and issue a warning at the same time;
[0101] Step S303: Automatically back up important data from the solid-state drive to a specified location.
[0102] The step of proactively reminding users of the current hard drive status information via a pop-up window and issuing a warning includes:
[0103] When the data write volume of the solid-state drive reaches the first set threshold of the write volume usage index, a prompt page will pop up: "The hard drive is nearing the end of its read / write life. Please back up your data and replace the hard drive in time."
[0104] When the number of newly added bad blocks on the solid-state drive reaches the second set threshold of the bad block count, a pop-up prompt page will appear, indicating that the number of bad blocks on the hard drive is approaching the limit. Please back up your data in time and return the drive to the manufacturer for maintenance.
[0105] When the temperature of the solid-state drive reaches the third set threshold of the temperature index, a prompt page will pop up: "Temperature alarm, please stop using it or back up your data in time, and return it to the manufacturer for maintenance."
[0106] The step of automatically backing up important data from the solid-state drive to a designated location includes:
[0107] Back up data that has been pre-stored in the important data storage area to a designated location;
[0108] The specified location includes other storage devices on the computer or the cloud.
[0109] For example, as shown in the preceding steps, when the usage indicators of the solid-state drive (SSD) reach a set threshold, the system displays the acquired current SSD status information to the user and provides warnings and backups. Specifically, when the SSD's operating temperature reaches 85 degrees Celsius, the driver automatically pops up a window prompting the user that the SSD's operating temperature has reached 85 degrees Celsius, indicating excessive temperature. The user is advised to suspend use, back up their data, and return the SSD to the manufacturer for maintenance. This warning can also provide targeted troubleshooting instructions, such as checking if the case fans are functioning correctly, if the airflow settings are normal, and if the ambient temperature of the host computer is normal. This allows users to resolve minor issues through self-checking before deciding whether to send the SSD for repair, reducing manufacturer repair costs. Simultaneously, all data on the SSD is automatically backed up to a designated location, such as the F drive of another SSD or a cloud address. If the SSD suddenly fails and cannot be opened or its data copied, the files can be directly retrieved from the backed-up address, preventing the inability to access data urgently due to sudden SSD failure.
[0110] Furthermore, multiple storage areas of varying importance can be set up within the SSD, including important data storage areas, general data storage areas, and temporary data storage areas. When users store data, they can store different data into folders within the corresponding storage areas according to their individual needs. When the SSD's usage metrics reach a set threshold, only the data in the important data storage areas can be backed up, or important data and general data can be backed up, or data in all storage areas can be backed up. This helps to speed up the backup process.
[0111] Similarly, when the write volume of the solid-state drive exceeds the first set threshold, a pop-up window will prompt that the hard drive is nearing the end of its read / write lifespan, and please back up your data and replace the hard drive in time; when the number of newly added bad blocks of the solid-state drive exceeds the second set threshold, a pop-up window will prompt the user that the number of newly added bad blocks is abnormal or that the number of bad blocks is close to the limit, and the user will also be notified to back up their data in time and apply for warranty repair or device replacement.
[0112] Furthermore, taking operating temperature as an example, when using multi-level thresholds for abnormal state detection, depending on the situation, if the detection only exceeds the first or second level threshold, the user can be notified to check whether the chassis heat dissipation and room temperature are normal. If the detection exceeds the third level threshold, the user can be notified to send it for repair directly.
[0113] Furthermore, by connecting the driver to the internet, the system can automatically detect the SSD's warranty status. If it's under warranty, the user will be prompted to send it in for repair or replacement; if it's out of warranty, the user will be informed of the associated costs.
[0114] As can be seen, different text prompts will be output based on different data anomalies, informing users of the corresponding handling methods. This proactively notifies users of SSD abnormal status, preventing data loss due to sudden SSD failure.
[0115] In one application scenario, different user habits result in varying levels of operational pressure on solid-state drives (SSDs), preventing some defects or problems from being promptly exposed. For example, user A might not frequently push their SSD to its full performance limits during normal computer use. However, during a particular algorithm program run, the high load on the SSD caused a surge in bad blocks, ultimately leading to drive failure. This phenomenon indicates that the SSD had a problem, but the user's habits prevented it from being actively detected, potentially causing the user to miss the warranty period and incur additional costs.
[0116] In addition to the passive steps of detecting SSD status information mentioned above, a proactive step is also provided to detect and expose SSD anomaly risks through stress testing programs, including:
[0117] Start the solid-state drive stress test program based on the preset frequency;
[0118] Obtain second status information during and / or after the execution of the stress test program, wherein the second status information includes information on the number of newly added bad blocks and read / write speed;
[0119] Based on the second status information, when it is determined that the set threshold is exceeded, corresponding data protection and backup reminders are proactively implemented.
[0120] For example, based on pre-set rules, such as running a hard drive stress test program every two weeks when the user turns on their computer, the solid-state drive (SSD) undergoes short-term high-speed read / write operations (e.g., 1 minute, 5 minutes, or 10 minutes). Simultaneously, it acquires secondary status information during and / or after the stress test, including at least the number of newly added bad blocks, read / write speeds, and temperature—common SSD test data. For instance, if more than two new bad blocks are added within one minute, the read / write speed waveform fluctuates significantly, or the read / write speed decreases by more than 20% compared to the previous test, then the SSD is considered to be malfunctioning. A pop-up window informs the user of appropriate solutions and troubleshooting methods, emphasizing data protection and backup. This proactive stress test exposes hidden anomalies in the SSD.
[0121] It's important to note that this stress test differs from overclocking or other methods that might be considered human-caused damage to components. It only involves short periods of high-speed data read / write operations under the SSD manufacturer's default performance parameters. This is to prevent users from rarely pushing the drive to higher performance levels due to their daily usage habits, thus avoiding the exposure of any abnormal issues that typically occur under specific conditions.
[0122] Exemplary device
[0123] like Figure 5 As shown, corresponding to the above-described storage protection alert processing method based on solid-state drives (SSDs), this embodiment of the invention also provides a storage protection alert processing device based on solid-state drives (SSDs), the storage protection alert processing device based on solid-state drives (SSDs) comprising:
[0124] The status reading module 510 is used to obtain the usage status information of the solid-state drive;
[0125] When a user is using a computer, the application that is compatible with the solid-state drive (SSD) will periodically detect and obtain the current SSD status information, such as total data read / write volume, newly added bad blocks, hard drive temperature, power-on time, and other aspects of SSD status information. This information is used in subsequent steps to determine whether the hard drive is abnormal or at risk.
[0126] The judgment module 520 is used to determine whether the usage index of the solid-state drive has reached a set threshold based on the usage status information of the solid-state drive.
[0127] Based on the status information data obtained from the above detection, pre-set thresholds are used to determine whether any anomalies or risks exist in the aforementioned status information. Furthermore, different weights can be assigned to different data based on the degree of impact of different data causing anomalies. When different data exceed the threshold, different anomaly or risk level judgments will be obtained. Multiple warning values can also be set based on the different degrees to which various data exceed the threshold. For example, a hard drive operating temperature of 60 degrees Celsius can be considered normal operating temperature, 85 degrees Celsius can be considered just exceeding the threshold, and exceeding 100 degrees Celsius can be considered an extremely short-term abnormality in operating temperature. This allows for a more accurate inference of the solid-state drive's operating status and risk points based on different levels of data.
[0128] The proactive alert module 530 is used to proactively provide corresponding data protection and backup reminders when the usage indicators of the solid-state drive reach a set threshold.
[0129] When the SSD's status information exceeds a preset threshold, corresponding risk warnings and data protection measures are implemented. For example, if the SSD's operating temperature exceeds the threshold, a pop-up dialog box informs the user that the hard drive's operating temperature is high, prompting them to check the hard drive's operating environment, and listing several troubleshooting measures and suggestions. Simultaneously, the system controls the backup of SSD data, which can be a full backup or a backup of specified files, and controls whether the backup is sent to another designated hard drive on the computer or to the cloud. This prevents users from being unaware of SSD anomalies, leading to sudden SSD failure and data loss during subsequent computer use.
[0130] As can be seen from the above, the solid-state drive (SSD)-based storage protection alert processing method provided in this embodiment of the invention obtains the SSD's usage status information through the status reading module 510; the judgment module 520 confirms whether the SSD's usage indicators have reached a set threshold based on the SSD's usage status information; and the active alert module 530 actively controls the corresponding usage status warning when the SSD's usage indicators reach the set threshold, and automatically backs up the data in the SSD to a designated location. Compared with the prior art, this method obtains multiple working indicators and status information of the SSD through a preset program time, and judges whether the current SSD has any abnormalities and the severity of the abnormalities from multiple aspects through preset thresholds, and finally actively reports the abnormal information to the user, while performing automatic data backup, and providing anomaly troubleshooting methods and solutions. This avoids the problem that users cannot be notified of abnormal problems of the SSD during use, leading to the SSD's lifespan being nearing its end or sudden damage, making it difficult to retrieve or even lose important data, and adds anomaly detection and alarm functions to SSD products.
[0131] Specifically, in this embodiment, the specific functions of each module of the above-mentioned solid-state drive-based storage protection prompt processing device can be referred to the corresponding description in the above-mentioned solid-state drive-based storage protection prompt processing method, and will not be repeated here.
[0132] Based on the above embodiments, in one implementation, a structure such as Figure 6 The software shown proactively acquires information such as the host's NAND (flash memory) write volume, temperature, and the number of newly added bad blocks when running. When the monitoring and control module detects that the above information values meet the alarm conditions, a user-friendly interface pops up, prompting the user to take precautions for data protection and backup. This software can be used independently or embedded as a functional module in other applications.
[0133] Based on the above embodiments, the present invention also provides a smart terminal, the principle block diagram of which can be as follows: Figure 7 As shown. The aforementioned smart terminal includes a processor, memory, network interface, and display screen connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a solid-state drive (SSD)-based storage protection alert processing program. The internal memory provides an environment for the operation of the operating system and the SSD-based storage protection alert processing program in the non-volatile storage medium. The network interface of the smart terminal is used for communication with external terminals via a network connection. When the SSD-based storage protection alert processing program is executed by the processor, it implements the steps of any of the aforementioned SSD-based storage protection alert processing methods. The display screen of the smart terminal can be a liquid crystal display (LCD), an electronic ink display (EI), or an OLED.
[0134] Those skilled in the art will understand that Figure 7 The block diagram shown is merely a partial structural diagram related to the present invention and does not constitute a limitation on the smart terminal to which the present invention is applied. A specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0135] In one embodiment, a smart terminal is provided, the smart terminal including a memory, a processor, and a solid-state drive-based storage protection alert processing program stored on the memory and executable on the processor. When the solid-state drive-based storage protection alert processing program is executed by the processor, it performs the following operation instructions:
[0136] Obtain the usage status information of the solid-state drive;
[0137] Based on the usage status information of the solid-state drive, confirm whether the usage indicators of the solid-state drive have reached the set threshold.
[0138] When the usage indicators of the solid-state drive reach a set threshold, the system will actively control the corresponding usage status warning and automatically back up the data in the solid-state drive to a designated location.
[0139] This invention also provides a computer-readable storage medium storing a storage protection alert processing program based on a solid-state drive (SSD). When the SSD-based storage protection alert processing program is executed by a processor, it implements the steps of any of the SSD-based storage protection alert processing methods provided in this invention.
[0140] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0141] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the above device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this invention. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0142] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0143] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0144] In the embodiments provided by this invention, it should be understood that the disclosed apparatus / terminal devices and methods can be implemented in other ways. For example, the apparatus / terminal device embodiments described above are merely illustrative. For instance, the division of the above modules or units is merely a logical functional division, and in actual implementation, it can be divided in other ways. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0145] If the integrated modules / units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0146] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not mean that the essence of the corresponding technical solutions deviates from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A storage protection warning processing method based on solid-state drives, characterized in that, The method includes: The usage status information of the solid-state drive is obtained, including write volume information, number of newly added bad blocks information, temperature information, and power-on time. The write volume information corresponds to multiple levels of first set thresholds, the number of newly added bad blocks information corresponds to multiple levels of second set thresholds, and the temperature information corresponds to multiple levels of third set thresholds. The multiple levels of second set thresholds are determined based on the ratio of the difference between the actual usable total capacity and the host display capacity to the block capacity. Based on the usage status information of the solid-state drive, confirm whether the usage indicators of the solid-state drive have reached the set threshold. The step of confirming whether the usage indicators of the solid-state drive have reached a set threshold based on the usage status information of the solid-state drive includes: When any of the usage status information reaches a preset threshold, it is determined that the usage index of the solid-state drive has reached the preset threshold. When the usage indicators of the solid-state drive reach the set threshold, the system will actively control the corresponding usage status warning and automatically back up the data in the solid-state drive to the specified location. Prior to the step of obtaining the usage status information of the solid-state drive, the following steps are included: When there is a need for data storage, it prompts you to classify and store the data to be stored. The storage areas used for the classified storage include: important data storage area, ordinary data storage area, and temporary data storage area. The method further includes: Based on pre-set rules, a hard drive stress test program is executed once every predetermined time interval to obtain second status information during and / or after the stress test program is executed. The second status information includes information on the number of newly added bad blocks, read and write speeds, and write volume. Based on the second status information, when it is determined that the set threshold is exceeded, corresponding data protection and backup reminders will be issued.
2. The storage protection prompt processing method based on solid-state drives according to claim 1, characterized in that, Before the step of obtaining the usage status information of the solid-state drive, the following also includes: Check if the solid-state drive has data storage requirements; When there is a need for data storage, according to the classification storage instructions, the important data to be stored is stored in the important data storage area, the ordinary data to be stored is stored in the ordinary data storage area, and the temporary data to be stored is stored in the temporary data storage area. The usage status information includes: write volume information of the solid-state drive, information on newly added bad blocks, and temperature information.
3. The storage protection prompt processing method based on solid-state drives according to claim 1, characterized in that, The steps for obtaining the usage status information of the solid-state drive include: Obtain information on the amount of data written by the host to the solid-state drive; Obtain the number of newly added bad blocks in the solid-state drive; Obtain the temperature information of the solid-state drive.
4. The storage protection prompt processing method based on solid-state drives according to claim 3, characterized in that, The step of confirming whether the usage index of the solid-state drive has reached the set threshold based on the usage status information of the solid-state drive further includes: Based on the host's data write volume to the solid-state drive, the number of newly added bad blocks on the solid-state drive, and the solid-state drive's temperature information; The data write volume information, the number of newly added bad blocks information, and the temperature information are respectively determined to be whether they exceed the preset first set threshold, the second set threshold, and the third set threshold.
5. The storage protection prompt processing method based on solid-state drives according to claim 3, characterized in that, The When the usage indicators of the solid-state drive reach a set threshold, the steps of actively controlling the system to issue corresponding usage status warnings and automatically backing up the data in the solid-state drive to a designated location include: When the usage index of the solid-state drive is determined to reach a set threshold; It proactively alerts users to the current hard drive status via pop-up windows and issues warnings. It will automatically back up important data from the solid-state drive to a designated location.
6. The storage protection prompt processing method based on solid-state drives according to claim 5, characterized in that, The The steps to proactively notify users of the current hard drive status via pop-up windows and issue warnings include: When the data write volume of the solid-state drive reaches the first set threshold of the write volume usage index, a prompt page will pop up: "The hard drive is nearing the end of its read / write life. Please back up your data and replace the hard drive in time." When the number of newly added bad blocks on the solid-state drive reaches the second set threshold of the bad block count, a pop-up prompt page will appear, indicating that the number of bad blocks on the hard drive is approaching the limit. Please back up your data in time and return the drive to the manufacturer for maintenance. When the temperature of the solid-state drive reaches the third set threshold of the temperature index, a prompt page will pop up: "Alarm warning. Please stop using it or back up your data in time, and return it to the manufacturer for maintenance." 7. The storage protection prompt processing method based on solid-state drives according to claim 5, characterized in that, The The steps to automatically back up important data from the solid-state drive to a specified location include: Back up data that has been pre-stored in the important data storage area to a designated location; The specified location includes other storage devices on the computer or the cloud.
8. A storage protection alert processing device based on a solid-state drive, characterized in that, The device includes: The status reading module is used to acquire the usage status information of the solid-state drive. The usage status information includes write volume information, number of newly added bad blocks information, temperature information, and power-on duration. The write volume information corresponds to multiple levels of first set thresholds, the number of newly added bad blocks information corresponds to multiple levels of second set thresholds, and the temperature information corresponds to multiple levels of third set thresholds. The multiple levels of second set thresholds are determined based on the ratio of the difference between the actual usable total capacity and the host display capacity to the block capacity. The judgment module is used to determine whether the usage index of the solid-state drive has reached a set threshold based on the usage status information of the solid-state drive; the determination of whether the usage index of the solid-state drive has reached the set threshold based on the usage status information includes: when any item of the usage status information reaches the preset set threshold, it is determined that the usage index of the solid-state drive has reached the set threshold. The active alert module is used to actively control the corresponding usage status warning when the usage index of the solid-state drive reaches a set threshold, and automatically back up the data in the solid-state drive to a specified location. Prior to the step of obtaining the usage status information of the solid-state drive, the following steps are included: When there is a need for data storage, it prompts you to classify and store the data to be stored. The storage areas used for the classified storage include: important data storage area, ordinary data storage area, and temporary data storage area. The active prompting module is also used to execute a hard disk stress test program once every predetermined time period based on pre-set rules, and obtain second status information during and / or after the execution of the stress test program, wherein the second status information includes information on the number of newly added bad blocks, read and write speed and write volume; based on the second status information, when it is determined that the set threshold is exceeded, corresponding data protection and backup reminders are performed.
9. A smart terminal, characterized in that, The smart terminal includes a memory, a processor, and a solid-state drive-based storage protection prompt processing program stored on the memory and executable on the processor. When the solid-state drive-based storage protection prompt processing program is executed by the processor, it implements the steps of the solid-state drive-based storage protection prompt processing method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a storage protection alert processing program based on a solid-state drive (SSD), which, when executed by a processor, implements the steps of the storage protection alert processing method based on a solid-state drive as described in any one of claims 1-7.
Citation Information
Patent Citations
Method, apparatus and device for monitoring health status of hard disk
CN109408328A
Running state monitoring method, device and equipment for NVMe hard disk
CN112506744A
