A bad block management method, system, medium and product for industrial-grade solid-state hard disk

Through the monitoring and management of the health assessment model of industrial-grade solid-state drives, the problem of early warning and location of solid-state drive faults is solved, and the failure rate is reduced and the operational reliability is improved.

CN118312109BActive Publication Date: 2024-09-03SHENZHEN MICRO INNOVATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410734289.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing technology cannot perform active and accurate health status monitoring and fault warning for industrial-grade solid-state drives, resulting in high failure rates and poor operational reliability.

Method used

By periodically obtaining the surface temperature and estimated remaining life of each storage unit of the solid-state drive, combined with the number of writes, write intensity and error rate, a health assessment model is used to divide warning blocks and bad blocks, and perform data migration and isolation to realize solid-state Proactive monitoring and management of hard drives.

Benefits of technology

It effectively reduces the failure rate of solid-state drives, improves operational reliability, and ensures the security and stability of important data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118312109B
    Figure CN118312109B
Patent Text Reader

Abstract

A bad block management method, system, medium and product for industrial solid-state hard disks, which relates to the field of solid-state hard disk management. The method includes: obtaining the surface temperature set corresponding to each storage unit; determining the storage unit that meets the preset abnormal judgment rule as the storage unit to be detected; inputting the number of writes, write intensity and error rate of the storage unit to be detected within a preset time length into a preset health assessment model to obtain the health index of the storage unit to be detected; determining the storage unit to be detected as an early warning block, backing up the valid data in the early warning block and performing data migration operations; determining the storage unit to be detected as a bad block, stopping the reading and writing activities of the bad block and isolating the bad block from the industrial solid-state hard disk. The method is implemented to actively and accurately monitor the health status of the industrial solid-state hard disk, warn and locate the fault, and protect important data at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of solid-state hard disk management, and in particular to a bad block management method, system, medium and product for an industrial-grade solid-state hard disk. Background Art

[0002] With the rapid development of data centers and industrial automation, the performance and reliability requirements of storage devices are getting higher and higher. Industrial-grade solid-state drives (SSDs) have become the preferred storage devices for many critical applications due to their high-speed data processing capabilities and strong shock resistance. However, SSDs may have bad blocks during long-term operation, which poses a serious threat to data security and the stable operation of the system. Therefore, how to effectively manage bad blocks in SSDs to improve their reliability and efficiency has become an important research direction.

[0003] In the related art, tools provided by the SSD manufacturer are usually used to detect the SSD to scan the SSD and detect bad blocks. The disk SMART information can also be checked to obtain the SMART (Self-Monitoring, Analysis and Reporting Technology) information of the SSD through the operating system or third-party software to determine whether there are bad blocks.

[0004] Although using manufacturer tools and SMART information to detect bad blocks on solid-state drives (SSDs) is a common method, passive detection based on controller firmware cannot actively and accurately monitor the health status of SSDs, nor can it provide early warning and location of faults. Summary of the invention

[0005] The present application provides a bad block management method, system, medium and product for an industrial-grade solid-state hard drive, which is used to actively and accurately and comprehensively monitor the health status of an industrial-grade solid-state hard drive, to warn and locate faults, and to protect important data.

[0006] In a first aspect, the present application provides a bad block management method for an industrial-grade solid-state hard disk, which is applied to a management system, the method comprising: periodically obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard disk to obtain a surface temperature set corresponding to each storage unit; determining a storage unit that meets a preset abnormality judgment rule as a storage unit to be detected, the preset abnormality judgment rule being that the value of the surface temperature exceeding a preset number in the surface temperature set is not within a preset operating temperature threshold; inputting the number of writes, write intensity, and error rate of the storage unit to be detected within a preset time length into a preset health assessment model to obtain a health index of the storage unit to be detected; when the health index is lower than a preset first threshold and higher than a preset second threshold, determining the storage unit to be detected as an early warning block, backing up valid data in the early warning block and performing a data migration operation, the data migration operation being used to migrate valid data from the early warning block to other storage units; when the health index is lower than a preset second threshold, determining the storage unit to be detected as a bad block, stopping the read and write activities of the bad block and isolating the bad block from the industrial-grade solid-state hard disk, the preset first threshold being greater than the preset second threshold.

[0007] In the above embodiment, the management system first periodically obtains the surface temperature of each storage unit on the industrial solid-state hard disk, determines the storage unit to be detected according to the temperature abnormality, and then obtains the health index according to the number of writes, write intensity and error rate of the storage unit to be detected, and divides the storage unit to be detected into warning blocks and bad blocks according to different thresholds. Data backup and data migration are performed on the warning blocks, and bad blocks are isolated, thereby realizing active monitoring and scientific management of industrial solid-state hard disks, timely discovering signs of failure, and making early warning responses, effectively avoiding the overall performance degradation or damage caused by the increase in the number of bad blocks in the industrial solid-state hard disk, and ensuring the long-term reliable operation of the solid-state hard disk in the industrial environment.

[0008] In combination with some embodiments of the first aspect, in some embodiments, when the health index is lower than a preset second threshold, the storage unit to be detected is determined as a bad block, the read and write activities of the bad block are stopped and the bad block is isolated from the industrial-grade solid-state hard drive, specifically including: when the health index is lower than the preset second threshold, the storage unit to be detected is determined as a bad block; according to the physical address of the bad block, the logical address corresponding to the physical address of the bad block is searched; the physical address of the bad block is marked as disabled, completing the operation of isolating the bad block from the industrial-grade solid-state hard drive; marking the data corresponding to the logical address as damaged data to stop the read and write activities of the bad block.

[0009] In the above embodiment, the specific technical process of isolating after determining the bad block is further described, that is, by finding the correspondence between the physical address and the logical address of the bad block, the physical address of the bad block is marked as disabled, and the data corresponding to the logical address of the bad block is marked as damaged data, thereby stopping the read and write operations of the bad block. The isolation of the bad block is achieved, the access to the bad block when reading and writing data is avoided, and the data security and stability of the industrial-grade solid-state hard disk are improved.

[0010] In combination with some embodiments of the first aspect, in some embodiments, before the step of periodically obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard drive to obtain a set of surface temperatures corresponding to each storage unit, the method also includes: obtaining the expected remaining life of each storage unit on the industrial-grade solid-state hard drive; if the expected remaining life is lower than a preset life threshold, the storage unit whose expected remaining life is lower than the preset life threshold is determined as a bad block, and the bad block is isolated from the industrial-grade solid-state hard drive.

[0011] In the above embodiment, the management system pre-determines whether the estimated remaining life of the storage unit is lower than the preset life threshold. If so, it means that the storage unit no longer meets the usage requirements and can be directly determined as a bad block for isolation. This achieves the management of the life cycle of industrial-grade solid-state drives and isolates storage units that have reached the end of their expected life in advance, thereby more comprehensively monitoring the health status of industrial-grade solid-state drives and better ensuring the long-term stable and reliable operation of industrial-grade solid-state drives.

[0012] In combination with some embodiments of the first aspect, in some embodiments, the surface temperature of each storage unit on an industrial-grade solid-state hard drive is periodically obtained to obtain a set of surface temperatures corresponding to each storage unit, specifically including: if the estimated remaining life is higher than a preset life threshold, obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard drive at multiple preset time points; arranging the surface temperatures of each storage unit in chronological order to obtain a set of surface temperatures corresponding to each storage unit.

[0013] In the above embodiment, the technical details of obtaining the surface temperature set of the storage unit are clarified. For the storage unit whose estimated remaining life is higher than the preset life threshold, the surface temperature is obtained at multiple preset time points and arranged in chronological order as the temperature set of the storage unit. The storage unit that has reached the end of its life is filtered out, and the temperature change of normal storage units is more accurately monitored, providing reliable basic data for subsequent abnormal temperature determination.

[0014] In combination with some embodiments of the first aspect, in some embodiments, before the step of periodically obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard disk to obtain the surface temperature set corresponding to each storage unit, the method also includes: obtaining the storage data corresponding to each storage unit stored on the industrial-grade solid-state hard disk; extracting multiple feature information of the storage data, the feature information including data format, data size, data creation time, data naming method, and data creator information; performing matching analysis on multiple feature information based on a preset information library to determine the security level of the stored data; if the matching analysis fails, inputting the multiple feature information into a preset data evaluation model to obtain a security level score and a corresponding security level.

[0015] In the above embodiment, a security assessment process for the storage data corresponding to the storage unit is added. By extracting the characteristic information of the storage data and matching and judging the security level, the security level of the storage data corresponding to different storage units can be known, which provides a basis for subsequent early warning response and bad block isolation, realizes the processing priority based on the data security level, and improves data security.

[0016] In combination with some embodiments of the first aspect, in some embodiments, the method also includes: determining the data detection frequency and data migration rate of the warning block according to the security level of the storage data corresponding to the storage units respectively; determining the isolation priority of the bad block according to the security level of the storage data corresponding to the storage units respectively.

[0017] In the above embodiment, the processing strategy for warning blocks and bad blocks is clearly determined according to the data security level, that is, the data detection frequency of the warning block, the data migration rate and the isolation priority of the bad block, so that the storage units of important data are given higher monitoring granularity and faster response speed, so that the security level of the stored data directly affects the processing strategy, further improving the security of important data.

[0018] In combination with some embodiments of the first aspect, in some embodiments, before the step of inputting the number of writes, write intensity and error rate of the storage unit to be detected within a preset time length into a preset health assessment model to obtain the health index of the storage unit to be detected, the method also includes: obtaining the historical number of writes, historical write intensity, historical error rate and historical health index of the training storage unit within the historical preset time length; marking the historical number of writes, historical write intensity and historical error rate as input features, and marking the historical health index as output features; using the input features and output features to train the preset model to obtain the accuracy of the preset model; when the accuracy exceeds the preset accuracy threshold, obtaining a health assessment model.

[0019] In the above embodiment, the training process of generating a health assessment model is described. The health assessment model makes the assessment of the health index more accurate and reliable, providing a solid foundation for subsequent early warning determination and isolation processing.

[0020] In a second aspect, an embodiment of the present application provides a management system, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the management system to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0021] In a third aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a management system, enables the management system to execute the method described in the first aspect and any possible implementation of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a management system, enables the management system to execute the method described in the first aspect and any possible implementation of the first aspect.

[0023] It is understandable that the management system provided in the second aspect, the computer program product provided in the third aspect, and the computer storage medium provided in the fourth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here.

[0024] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0025] 1. Due to the adoption of a technical solution that comprehensively evaluates and determines the health status of storage units based on the surface temperature, number of writes, write intensity, and error rate of industrial-grade solid-state hard drives, active, dynamic, and accurate health monitoring of industrial-grade solid-state hard drives can be achieved, effectively solving the problem that related technologies rely on passive detection of controller firmware and single sampling detection, and are unable to provide early warning and accurate positioning of solid-state hard drive failures, thereby achieving a significant reduction in the failure rate of solid-state hard drives in industrial environments and a significant improvement in operating reliability.

[0026] 2. Due to the adoption of a processing strategy for warning blocks and bad blocks determined according to the data security level, namely the data detection frequency of the warning block, the data migration rate and the isolation priority of the bad block, a higher monitoring granularity and faster response speed are achieved for the storage units of important data, so that the security level of the stored data directly affects the processing strategy, further improving the security of important data. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flowchart of a bad block management method for an industrial solid state drive in an embodiment of the present application;

[0028] Figure 2 It is another flowchart of the bad block management method of the industrial solid state drive in the embodiment of the present application;

[0029] Figure 3 It is a schematic diagram of the structure of a physical device of the management system in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0031] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0032] See also Figure 1 , is a flow chart of a bad block management method for an industrial-grade solid-state drive in an embodiment of the present application.

[0033] S101, periodically obtaining the surface temperature of each storage unit on the industrial solid state drive to obtain a surface temperature set corresponding to each storage unit;

[0034] The management system can set a fixed time interval, such as obtaining the surface temperature of all storage units every 10 minutes, every half hour, or every hour. The sensor for obtaining the surface temperature can be integrated into the industrial solid-state drive, or it can be externally connected to the surface of the industrial solid-state drive, which is not limited here. The sensing accuracy of the surface temperature can reach 0.1 degrees Celsius. The sensed temperature data will be fed back to the management system in real time.

[0035] For example, if an industrial-grade solid-state drive has three storage units A, B, and C, then the management system will obtain three temperature values ​​each time. If the management system obtains the surface temperature of each storage unit on the industrial-grade solid-state drive every 10 minutes, and the surface temperature of each storage unit on the industrial-grade solid-state drive is obtained from 1:00 to 2:00, then in this hour, the management system obtains A's surface temperature of 12°C, B's surface temperature of 17°C, and C's surface temperature of 52°C at 1:00; the management system obtains A's surface temperature of 18°C, B's surface temperature of 21°C, and C's surface temperature of 30°C at 1:10; the management system obtains A's surface temperature of 72°C, B's surface temperature of 72°C, and C's surface temperature of 72°C at 1:20. The temperature is 57℃, and the surface temperature of C is 50℃; the management system obtains the surface temperature of A is 67℃, the surface temperature of B is 38℃, and the surface temperature of C is 79℃ at 1:30; the management system obtains the surface temperature of A is 77℃, the surface temperature of B is 35℃, and the surface temperature of C is 70℃ at 1:40; the management system obtains the surface temperature of A is 75℃, the surface temperature of B is 58℃, and the surface temperature of C is 69℃ at 1:50; the management system obtains the surface temperature of A is 80℃, the surface temperature of B is 50℃, and the surface temperature of C is 60℃ at 2:00. The surface temperature sets corresponding to the respective storage units are: the surface temperature set of A is {12℃, 18℃, 72℃, 67℃, 77℃, 75℃, 80℃}, the surface temperature set of B is {17℃, 21℃, 57℃, 38℃, 35℃, 38℃, 50℃}, and the surface temperature set of C is {52℃, 30℃, 50℃, 70℃, 70℃, 69℃, 60℃}.

[0036] S102, determining a storage unit that meets a preset abnormality determination rule as a storage unit to be detected, wherein the preset abnormality determination rule is that the values ​​of surface temperatures exceeding a preset number in the surface temperature set are not within a preset operating temperature threshold;

[0037] The management system determines the storage unit that meets the preset abnormality determination rule as the storage unit to be detected for subsequent operations. The preset abnormality determination rule here is that the values ​​of the surface temperature exceeding the preset number in the surface temperature set are not within the preset working temperature threshold. In other words, if the number of surface temperature values ​​in the surface temperature set of a certain storage unit that are not within the preset working temperature threshold exceeds the preset number, then the storage unit will be determined as the storage unit to be detected.

[0038] Following the example of the surface temperature set of A, B, and C in step S101, assuming that the preset working temperature threshold is 10-70 degrees and the preset number is 4, then storage unit A will be used as the storage unit to be detected.

[0039] S103, inputting the number of writes, write intensity and error rate of the storage unit to be detected within a preset time period into a preset health assessment model to obtain a health index of the storage unit to be detected;

[0040] The management system inputs the number of writes, write intensity and error rate of the storage unit to be detected within a preset time length into the preset health assessment model to obtain the health index of the storage unit to be detected. The number of writes is used to count the total number of read and write times of the storage unit within the preset time length, the write intensity is used to calculate the number of reads and writes per unit time, and the error rate is used to count the errors or retries during the reading and writing process. The above parameters reflect the usage and health status of the storage unit. By inputting the number of writes, write intensity and error rate of the storage unit to be detected within the preset time length into the preset health assessment model, a health index with a value in the range of 0-100 can be obtained. The larger the number, the better the health status.

[0041] The steps to build a deep learning-based health assessment model are as follows:

[0042] First, the management system collects the historical write times, historical write intensity and historical error rate of multiple storage units to be detected from the storage system within the past preset time (for example, within 6 months). The historical write times are the total number of read and write requests per day for the storage unit to be detected collected by the management system in the past preset time. The historical write intensity is the number of read and write requests per second for the storage unit to be detected collected by the management system in the past preset time. The historical error rate is the ratio of the number of errors in the reading and writing process of the storage unit to be detected collected by the management system in the past preset time to the total number of requests. In addition, the management system records the historical health index of each storage unit to be detected in the past preset time. The historical health index of each storage unit to be detected can be obtained through historical maintenance records or expert evaluation, which is not limited here. The management system stores the collected historical write times, historical write intensity and historical error rate and the historical health index of each storage unit to be detected in the data set D in chronological order, and the format of each data is (historical write times, historical write intensity, historical error rate, historical health index). Among them, the historical write times, historical write intensity and historical error rate are input features of model training, and the historical health index is the output feature of model training.

[0043] Secondly, the management system performs data preprocessing on the data set D, deletes the missing data and abnormal data (such as records with an error rate > 1) in the data set D, and normalizes the three features of historical write count, historical write intensity, and historical error rate to between 0 and 1.

[0044] Then, the management system builds a LSTM-based recurrent neural network, which includes an input layer, two LSTM hidden layers, a fully connected layer, and an output layer. The input layer inputs the normalized historical write count, historical write intensity, and historical error rate. The number of hidden layer nodes is set to 64, and the number of fully connected layer nodes is set to 32. The output layer is a Sigmoid activation function, which can obtain a probability value of 0-1, indicating the risk of failure. After that, the probability value of 0-1 is converted into a health index with a value of 0-100 as the output. Among them, the Sigmoid function is a commonly used activation function, and its mathematical expression is f(x) = 1 / (1 + e^-x), and its shape is an S-shaped curve. The Sigmoid function compresses the input value between 0 and 1 and is widely used in neural networks to introduce nonlinear characteristics and limit the output of neurons.

[0045] Next, the management system uses the Adam optimizer, sets the learning rate to 0.001, and the training batch size to 32. It can also be set according to the actual situation and is not limited here. 80% of the historical data is divided into a training set and 20% is divided into a validation set. 100 epochs are trained and the model with the highest accuracy of the validation set is saved. It can also be set according to the actual situation and is not limited here. Epoch is the process in which the training data set passes through the neural network once. In machine learning and deep learning, epoch is a unit used to measure the number of times the entire training set is repeatedly learned. Specifically, when the neural network completes a forward calculation and back propagation process, that is, all data has been processed by the network once, an epoch is completed. The management system uses binary cross entropy as the loss function and Early Stopping to prevent overfitting. When the value of the loss function exceeds the preset function threshold, the model training is determined to be completed and a health assessment model is obtained. Early Stopping is a technology in deep learning and machine learning to prevent model overfitting. It determines when to stop training by monitoring the performance of the model on the validation set.

[0046] Finally, the management system inputs the input features in the validation set into the health assessment model, and then obtains the predicted output of the health assessment model. The predicted output of the health assessment model is compared with the actual output features in the validation set, and some performance indicators such as accuracy, precision, recall, F1 score, mean square error (MSE), etc. are used to evaluate the performance of the health assessment model. According to the performance of the health assessment model on the validation set, the parameters of the health assessment model are adjusted, including adjusting the learning rate, changing the model complexity (such as increasing or decreasing the number of layers or nodes of the neural network), modifying the regularization strength, etc. This process may require multiple iterations, each of which is adjusted based on the previous learning results to optimize the health assessment model.

[0047] S104, when the health index is lower than a preset first threshold and higher than a preset second threshold, determining the storage unit to be detected as a warning block, backing up valid data in the warning block and performing a data migration operation, the data migration operation is used to migrate valid data from the warning block to other storage units;

[0048] When the health index is lower than the preset first threshold and higher than the preset second threshold, the management system determines the storage unit to be detected as an early warning block, backs up the valid data in the early warning block and performs data migration operations. The data migration operation is used to migrate valid data from the early warning block to other storage units. Assuming that the preset first threshold is 70 and the preset second threshold is 40, then when the health index of a storage unit is 60, the storage unit will be determined as an early warning block. For the early warning block, the management system will start the early warning response mechanism and back up the valid data in the early warning block to avoid data loss. After the backup is completed, the management system migrates the valid data in the early warning block to other relatively healthy storage units in the industrial-grade solid-state hard drive. The migration method can adopt different strategies according to the different security levels corresponding to the stored data to ensure the rapid migration of important data.

[0049] S105. When the health index is lower than a preset second threshold, the storage unit to be detected is determined as a bad block, the read and write activities of the bad block are stopped and the bad block is isolated from the industrial-grade solid-state hard disk, and the preset first threshold is greater than the preset second threshold.

[0050] When the health index is lower than the preset second threshold, the management system determines the storage unit to be detected as a bad block, stops the read and write activities of the bad block and isolates the bad block from the industrial-grade solid-state hard drive. Continuing with the example in step S104, the storage unit to be detected with a health index of 30 will be confirmed as a bad block. For the storage unit detected as a bad block, the management system will stop all its read and write operations, and isolate the bad block from other normal storage units in the industrial-grade solid-state hard drive to avoid interference with data access. The isolation method can be to clear the logical address information of the corresponding bad block, mark its physical space as unavailable, and modify the address mapping table in the firmware to shield the bad block. When the number of bad blocks exceeds the redundancy tolerance of the industrial-grade solid-state hard drive, the management system should report to the user that the solid-state hard drive needs to be replaced.

[0051] Optionally, when the health index is lower than a preset second threshold, the storage unit to be detected is determined as a bad block, the read and write activities of the bad block are stopped and the bad block is isolated from the industrial-grade solid-state hard drive. The preset first threshold is greater than the preset second threshold, which can be achieved in the following manner: when the health index is lower than the preset second threshold, the storage unit to be detected is determined as a bad block; according to the physical address of the bad block, the logical address corresponding to the physical address of the bad block is searched; the physical address of the bad block is marked as disabled, completing the operation of isolating the bad block from the industrial-grade solid-state hard drive; and the data corresponding to the logical address is marked as damaged data to stop the read and write activities of the bad block.

[0052] The following is a more detailed description of the process of the method provided by this implementation. Figure 2 , is another flow chart of the bad block management method of the industrial-grade solid-state drive in the embodiment of the present application.

[0053] S201, acquiring storage data corresponding to each storage unit stored in the industrial-grade solid-state hard disk;

[0054] The management system can autonomously scan the storage data in each storage unit through read and write commands to obtain its content, and can also periodically obtain the use and file information of each storage unit from the operating system as storage data.

[0055] S202, extracting multiple feature information of the stored data, the feature information including data format, data size, data creation time, data naming method, and data creator information;

[0056] After the management system obtains the stored data, it understands the content of the stored data based on the characteristic information, which includes data format, data size, data creation time, data naming method, data creator information, and other characteristic information.

[0057] The data format determines how the data is presented and how readable it is. For example, text files, image files, audio files, video files, etc. all have their own formats. Understanding the format of the data helps determine the purpose and sensitivity of the data. For example, files involving personal privacy or confidential information may have higher sensitivity and usually use specific data formats.

[0058] The size of data can reflect the importance and value of its content. For example, a large database file may contain a lot of critical business data, while a smaller configuration file may only contain some system setting information. By analyzing the size of data, you can preliminarily judge the value and sensitivity of the data.

[0059] Data creation time can provide information about the freshness and timeliness of data. For example, recently created files may contain the latest business data or personal information, while files from many years ago may be outdated or no longer need to be frequently accessed.

[0060] The way data is named can provide clues about the type of data and its purpose. For example, files named in a specific format or pattern may contain information about system configuration, logging, or user data. By analyzing the way data is named, you can further infer the sensitivity and importance of the data.

[0061] Data creator information can provide information about the origin and reliability of the data (e.g., user ID, software developer, etc.). For example, data from a specific system administrator or software developer may have higher reliability, while data from unknown or untrusted sources may have higher risks.

[0062] Therefore, by extracting and analyzing these characteristic information, the management system can understand the content of the stored data, conduct sensitivity assessment on the stored data, and determine the corresponding security level.

[0063] S203, performing matching analysis on multiple feature information based on a preset information database to determine the security level of the stored data;

[0064] The management system matches and analyzes the extracted feature information with the preset information library. The preset information library stores the correspondence between different data feature information and security levels. The preset information library is a database containing known feature information and security level standards, which is used to compare and match with the extracted feature information. The preset information library can be pre-defined and updated to adapt to changing threats and data security requirements. Specifically, the management system matches and analyzes the extracted feature information with the preset information library. The process is as follows:

[0065] Data format matching: The extracted data format is compared with the format standards in the preset information library to determine whether there are known sensitive or malicious formats.

[0066] Data size analysis: The extracted data size is compared with the size threshold in the preset information library to determine whether the data exceeds the normal range or meets specific security standards.

[0067] Data creation time assessment: The extracted data creation time is compared with the time standard in the preset information library to determine whether there are suspicious creation time patterns or timestamp anomalies.

[0068] Data naming review: Analyze whether the extracted data naming conforms to known normal patterns or has suspicious naming characteristics. For example, specific naming conventions may be associated with malware or sensitive files.

[0069] Data creator information verification: The extracted data creator information is compared with the trusted sources in the preset information library to determine whether the source of the data is trustworthy or whether there are potential threats.

[0070] Through these matching analyses, the security level of the stored data can be derived. The security level can be classified according to the severity of the matching results, such as low risk, medium risk and high risk.

[0071] On the other hand, if the source of the stored data is reliable, the content involves sensitive information, the purpose is important, and the frequency of use is high, these characteristic information matches the high security level characteristics in the preset information library, and the management system will determine its security level as high. On the contrary, if the source of the stored data is unknown, the content does not involve sensitive information, the purpose is not important, and the frequency of use is low, these characteristic information matches the low security level characteristics in the preset information library, and the management system will determine its security level as low.

[0072] S204: If the matching analysis fails, multiple feature information is input into a preset data evaluation model to obtain a security level score and a corresponding security level;

[0073] If the matching analysis fails, it means that the matching result is empty, and the preset information database cannot determine the security level of a certain stored data, that is, the matching analysis fails. At this time, the management system will call the preset data evaluation model based on the artificial intelligence algorithm, directly analyze the characteristic information of the stored data, and give a security level prediction score, that is, the security level score, and convert it into the corresponding security level, such as scoring privacy information and determining the security level based on the score.

[0074] The training method of the data evaluation model is as follows:

[0075] First, prepare a data set that includes multiple feature information and corresponding security level scores. In addition, the data set contains various types of data so that the model can learn the associations and patterns between different features. Secondly, select a suitable open source model for training based on the characteristics of the data and task requirements. Commonly used models include decision trees, support vector machines, neural networks, etc. Then, use the selected model to build a data evaluation model. You can use open source deep learning frameworks such as TensorFlow, PyTorch, etc., or use other programming languages ​​such as Python, Java, etc. Among them, hyperparameters are parameters that need to be manually set during model training, such as learning rate, batch size, number of iterations, etc. The setting of hyperparameters has a great impact on the training effect of the model and needs to be adjusted according to the actual situation. Then, use the prepared data set to train the model. During the training process, hyperparameters need to be set and adjusted according to the error of the training set and the error of the validation set. Finally, use the test data set to evaluate the trained model. Evaluation indicators include accuracy, recall rate, F1 value, etc. Adjust and optimize the model according to the evaluation results.

[0076] S205, obtaining the estimated remaining life of each storage unit on the industrial solid state drive;

[0077] The management system can obtain the estimated remaining life of each storage unit by reading the life information on the controller firmware of the industrial-grade SSD. Generally speaking, when an industrial-grade SSD leaves the factory, its controller firmware will record the initial upper limit of the number of erases and writes of each storage unit, and will count the number of erases and writes used by each storage unit in real time, based on which the estimated remaining life can be evaluated and calculated.

[0078] S206, if the estimated remaining life is lower than a preset life threshold, determining the storage unit whose estimated remaining life is lower than the preset life threshold as a bad block, and isolating the bad block from the industrial-grade solid-state hard disk;

[0079] If the estimated remaining life is lower than the preset life threshold, the management system will determine the storage unit with the estimated remaining life lower than the preset life threshold as a bad block and isolate the bad block from the industrial solid-state drive. For example, if the preset life threshold is 80% of the total number of erases and writes of the storage unit, then when the estimated remaining life of a storage unit indicates that its erase and write times have exceeded 80% of the total times, the management system will directly determine that the storage unit is a bad block and isolate it without further testing.

[0080] S207, if the estimated remaining life is higher than a preset life threshold, obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard disk at a plurality of preset time points;

[0081] If the estimated remaining life is higher than the preset life threshold, the management system obtains the surface temperature of each storage unit on the industrial solid-state hard disk at multiple preset time points. Continuing with the example of step S202, for storage units with an estimated remaining life of more than 80%, the management system will collect surface temperature at multiple preset time points every ten minutes from 1:00 to 2:00 every day. For detailed examples, please refer to step S101, which will not be repeated here. The preset time point can be configured according to actual needs and is not limited here.

[0082] S208, arranging the surface temperatures of the respective storage units in chronological order to obtain a set of surface temperatures corresponding to the respective storage units;

[0083] The detailed examples of the surface temperature sets corresponding to the respective storage units can be referred to step S101 , which will not be described in detail here.

[0084] S209, determining a storage unit that meets a preset abnormality determination rule as a storage unit to be detected, wherein the preset abnormality determination rule is that the values ​​of the surface temperatures exceeding a preset number in the surface temperature set are not within a preset operating temperature threshold;

[0085] For details, please refer to step S102, which will not be described in detail here.

[0086] S210, obtaining the historical number of writes, historical write intensity, historical error rate, and historical health index of the training storage unit within a historical preset time period;

[0087] The management system can extract usage data of each storage unit within a certain period of time (for example, a preset period of time in the past) from the usage log of the connected industrial-grade solid-state hard disk, including the number of writes, write intensity (amount of writes per unit time), error rate, and health index obtained from past detections, etc., as information for training the storage unit's historical number of writes, historical write intensity, historical error rate, and historical health index within a historical preset period of time. This step can refer to step S103 and will not be repeated here.

[0088] S211, marking the historical number of writes, historical write intensity, and historical error rate as input features, and marking the historical health index as an output feature;

[0089] The input features and the corresponding output features are used as a set of training data to facilitate training of the preset model. The input features and the corresponding output features are used as a set of verification data to facilitate verification of the preset model. This step can refer to step S103 and will not be repeated here.

[0090] S212, using the input features and the output features to train the preset model to obtain the accuracy of the preset model;

[0091] The management system uses the input features and output features to train the preset model to obtain the accuracy of the preset model. The preset model can be a deep neural network health assessment model. The training process continuously adjusts the model parameters to fit the mapping relationship between the input features and the output features, so that the output predicted by the preset model can be close to the actual health index output. The accuracy of the preset model is evaluated by verification data. This step can refer to step S103 and will not be repeated here.

[0092] S213, when the accuracy exceeds a preset accuracy threshold, a health assessment model is obtained;

[0093] When the accuracy of the preset model exceeds the preset accuracy threshold, the management system obtains a health assessment model. For example, the preset accuracy threshold is 80%. When the preset model reaches 80% in the assessment accuracy of the verification data, the preset model can be used as a health assessment model for industrial-grade solid-state drives. The accuracy threshold can be set according to actual conditions and is not limited here. This step can refer to step S103 and will not be repeated here.

[0094] S214, inputting the number of writes, write intensity, and error rate of the storage unit to be detected within a preset time period into a preset health assessment model to obtain a health index of the storage unit to be detected;

[0095] For details, please refer to step S103, which will not be described in detail here.

[0096] S215, when the health index is lower than the preset first threshold and higher than the preset second threshold, determining the storage unit to be detected as a warning block, backing up valid data in the warning block and performing a data migration operation, the data migration operation is used to migrate valid data from the warning block to other storage units;

[0097] For details, please refer to step S104, which will not be described in detail here.

[0098] S216, when the health index is lower than a preset second threshold, determining the storage unit to be detected as a bad block, stopping the reading and writing activities of the bad block and isolating the bad block from the industrial-grade solid-state hard disk, and the preset first threshold is greater than the preset second threshold;

[0099] For details, please refer to step S105, which will not be described in detail here.

[0100] S217, determining the data detection frequency and data migration rate of the warning block according to the security levels of the storage data corresponding to the storage units respectively;

[0101] The management system determines the data detection frequency and data migration rate of the warning block according to the security level of the storage data corresponding to each storage unit. For storage data with a higher security level, the management system will set a higher data detection frequency, such as once every 5 minutes, so as to timely monitor the storage environment of the warning block. At the same time, the management system will set a faster data migration rate for the warning block where the storage data with a higher security level is located. For example, the data migration can be completed within 1 hour after the warning status is detected, while for storage data with a lower security level, the data migration can be set to be completed within 24 hours. This data detection frequency configuration and data migration rate configuration based on security level can ensure timely monitoring and fast off-site backup of important data.

[0102] S218, determining the isolation priority of the bad block according to the security level of the storage data corresponding to each storage unit;

[0103] The management system determines the isolation priority of bad blocks according to the security level of the storage data corresponding to each storage unit. For storage data with a higher security level, when its storage unit is determined to be a bad block, the management system will give it a higher isolation priority and perform isolation processing as soon as possible. For storage data with a lower security level, isolation processing can be performed with a lower priority. At the same time, if the number of bad blocks exceeds the capacity of the industrial-grade SSD, the management system will prioritize isolating the bad blocks where the storage data with a lower security level is located. This isolation priority based on data security level configuration can ensure that the storage environment of important data is protected first.

[0104] The following describes the management system in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , which is a schematic diagram of the structure of a physical device of the management system in an embodiment of the present application.

[0105] It should be noted that Figure 3 The structure of the management system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0106] like Figure 3As shown, the management system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through bus 304. Input / output (I / O) interface 305 is also connected to bus 304.

[0107] The following components are connected to the I / O interface 305: an input section 306 including an audio input device, a button switch, etc.; an output section 307 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0108] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 309, and / or installed from a removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present invention are performed.

[0109] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.

[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.

[0111] Specifically, the management system of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the bad block management method of the industrial solid state drive provided in the above embodiment is implemented.

[0112] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the management system described in the above embodiment; or may exist independently without being assembled into the management system. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the management system, the management system implements the bad block management method for industrial-grade solid-state hard disks provided in the above embodiment.

[0113] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0114] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0115] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A bad block management method for industrial solid state drives. It is characterized in that Applied to a management system, the method comprises: Periodically acquiring the surface temperature of each storage unit on the industrial-grade solid-state hard disk to obtain a surface temperature set corresponding to each storage unit; Determine a storage unit that meets a preset abnormality determination rule as a storage unit to be detected, wherein the preset abnormality determination rule is that the values ​​of the surface temperatures exceeding a preset number in the surface temperature set are not within a preset operating temperature threshold; Inputting the number of writes, write intensity and error rate of the storage unit to be detected within a preset time period into a preset health assessment model to obtain a health index of the storage unit to be detected; When the health index is lower than a preset first threshold and higher than a preset second threshold, the storage unit to be detected is determined as an early warning block, valid data in the early warning block is backed up and a data migration operation is performed, wherein the data migration operation is used to migrate the valid data from the early warning block to other storage units; When the health index is lower than the preset second threshold, the storage unit to be detected is determined as a bad block, the read and write activities of the bad block are stopped and the bad block is isolated from the industrial-grade solid-state hard disk, and the preset first threshold is greater than the preset second threshold; Before the step of periodically acquiring the surface temperature of each storage unit on the industrial-grade solid-state hard disk and obtaining the surface temperature set corresponding to each storage unit, the method further includes: acquiring the storage data corresponding to each storage unit stored on the industrial-grade solid-state hard disk; extracting multiple feature information of the storage data, the feature information including data format, data size, data creation time, data naming method, and data creator information; performing matching analysis on the multiple feature information based on a preset information library to determine the security level of the storage data; if the matching analysis fails, inputting the multiple feature information into a preset data evaluation model to obtain a security level score and a corresponding security level; According to the security levels of the storage data respectively corresponding to the storage units, the data detection frequency and data migration rate of the warning block are determined; according to the security levels of the storage data respectively corresponding to the storage units, the isolation priority of the bad block is determined.

2. The method according to claim 1, It is characterized in that When the health index is lower than the preset second threshold, determining the storage unit to be detected as a bad block, stopping the reading and writing activities of the bad block and isolating the bad block from the industrial-grade solid-state hard disk specifically includes: When the health index is lower than the preset second threshold, determining the storage unit to be detected as a bad block; According to the physical address of the bad block, searching for a logical address corresponding to the physical address of the bad block; Marking the physical address of the bad block as disabled, completing the operation of isolating the bad block from the industrial-grade solid-state hard disk; The data corresponding to the logical address is marked as damaged data to stop the reading and writing activities of the bad block.

3. The method according to claim 1, It is characterized in that Before the step of periodically acquiring the surface temperature of each storage unit on the industrial-grade solid-state hard disk to obtain a set of surface temperatures corresponding to each storage unit, the method further includes: Get the estimated remaining life of each storage unit on an industrial-grade solid-state drive; If the estimated remaining life is lower than a preset life threshold, the storage unit whose estimated remaining life is lower than the preset life threshold is determined as a bad block, and the bad block is isolated from the industrial-grade solid-state hard disk.

4. The method according to claim 3, It is characterized in that The periodic acquisition of the surface temperature of each storage unit on the industrial-grade solid-state hard disk to obtain the surface temperature set corresponding to each storage unit specifically includes: If the estimated remaining life span is higher than a preset life span threshold, obtaining the surface temperature of each storage unit on the industrial-grade solid-state hard disk at a plurality of preset time points; The surface temperatures of the storage units are arranged in chronological order to obtain a set of surface temperatures corresponding to the storage units.

5. The method according to claim 1, It is characterized in that Before the step of inputting the number of write times, write intensity and error rate of the storage unit to be detected within a preset time period into a preset health assessment model to obtain the health index of the storage unit to be detected, the method further includes: Obtain the historical write count, historical write intensity, historical error rate, and historical health index of the training storage unit within a historical preset time period; The historical number of writes, the historical write intensity, and the historical error rate are marked as input features, and the historical health index is marked as an output feature; Using the input features and the output features to train a preset model to obtain the accuracy of the preset model; When the accuracy exceeds a preset accuracy threshold, a health assessment model is obtained.

6. A management system, It is characterized in that The management system includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the management system to execute the method described in any one of claims 1-5.

7. A computer-readable storage medium comprising instructions, It is characterized in that When the instruction is executed on a management system, the management system is caused to execute the method according to any one of claims 1 to 5.

8. A computer program product, It is characterized in that When the computer program product is run on a management system, the management system is enabled to execute the method according to any one of claims 1 to 5.