CN113656204B - Solid state disk management method and device and computing equipment - Google Patents

Solid state disk management method and device and computing equipment Download PDF

Info

Publication number
CN113656204B
CN113656204B CN202010396309.2A CN202010396309A CN113656204B CN 113656204 B CN113656204 B CN 113656204B CN 202010396309 A CN202010396309 A CN 202010396309A CN 113656204 B CN113656204 B CN 113656204B
Authority
CN
China
Prior art keywords
health value
solid state
state disk
historical
ssd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010396309.2A
Other languages
Chinese (zh)
Other versions
CN113656204A (en
Inventor
戴伟
郭岳
金天骄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010396309.2A priority Critical patent/CN113656204B/en
Publication of CN113656204A publication Critical patent/CN113656204A/en
Application granted granted Critical
Publication of CN113656204B publication Critical patent/CN113656204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/008Reliability or availability analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to the technical field of computers, and discloses a solid state disk management method, a solid state disk management device and computing equipment. The method comprises the following steps: acquiring historical use data of the solid state disk, wherein the historical use data comprises a current health value and a historical health value; calculating the average wear rate of the solid state disk according to the current health value and the historical health value; calculating the wear change rate of the solid state disk according to the current health value and the historical health value; determining a health value threshold of the solid state disk; calculating the residual life of the solid state disk according to the current health value, the average wear rate, the wear change rate and the health value threshold; and determining the replacement time of the solid state disk according to the residual life of the solid state disk. Through the mode, the embodiment of the invention can accurately predict the residual life of the SSD, so that the SSD can be effectively managed according to the residual life of the SSD.

Description

Solid state disk management method and device and computing equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a solid state disk management method, a solid state disk management device and computing equipment.
Background
Compared with the traditional magnetic Disk, the Solid State Disk (Solid State Disk or Solid State Drive, SSD) has great advantages in terms of bandwidth, IOPS and time delay. The SSD mainly comprises two parts of flash memory particles and a main control chip, no mechanical part exists, reading and writing are based on electric signals, only data in the flash memory chip is sensed in the reading process, effective data operation is not carried out on the flash memory chip, the flash memory chip can be rewritten after erasing in the writing process, but the erasing and writing times of a flash memory storage unit are limited, and therefore the SSD is limited in service life.
At present, the health value of the SSD is generally inquired in the information of a Self-monitoring, analyzing and reporting technology (Self-Monitoring Analysis and Reporting Technology, SMART) of a hard disk, but the health value inquired by the SMART is a dynamic instantaneous value, the service life of the SSD cannot be accurately predicted, and therefore the SSD cannot be effectively managed according to the service life of the SSD.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, and a computing device for managing a solid state disk, which can accurately predict the remaining life of an SSD, so as to effectively manage the SSD according to the remaining life of the SSD.
According to a first aspect of an embodiment of the present invention, there is provided a solid state disk management method, including: acquiring historical use data of the solid state disk, wherein the historical use data comprises a current health value and a historical health value; calculating the average wear rate of the solid state disk according to the current health value and the historical health value; calculating the wear change rate of the solid state disk according to the current health value and the historical health value; determining a health value threshold of the solid state disk; calculating the residual life of the solid state disk according to the current health value, the average wear rate, the wear change rate and the health value threshold; and determining the replacement time of the solid state disk according to the residual life of the solid state disk.
In an optional manner, the calculating the average wear rate of the solid state disk according to the current health value and the historical health value specifically includes: the average wear rate is calculated according to the following formula:
Ma=(k 0 -k n )/n
wherein Ma is the average wear rate, k 0 K is the current health value n And the historical health value is n preset periods before the current health value.
In an optional manner, the calculating the wear change rate of the solid state disk according to the current health value and the historical health value specifically includes: the wear rate was calculated according to the following formula:
wherein v is the wear change rate, m is the number of measured cycles, and when i=0, k i K is the current health value i+1 、k i+2 Is the historical health value; when i is E [1, m]When k is i 、k i+1 、k i+2 Are all the historical health values.
In an optional manner, the calculating the remaining life of the solid state hard disk according to the current health value, the average wear rate, the wear change rate and the health value threshold value specifically includes: calculating the residual life of the solid state disk according to the following formula:
wherein K is t For the health value threshold, k 0 For the current health value, ma is the average wear rate, v is the wear rate, j ε [0, L]And is a positive integer, L is the remaining lifetime.
In an optional manner, the determining the health value threshold of the solid state disk specifically includes: determining production information of the solid state disk; and determining the health value threshold corresponding to the production information according to the corresponding relation between the preset production information and the health value threshold.
In an optional manner, the determining, according to the remaining life of the solid state disk, the replacement time of the solid state disk specifically includes: determining the replacement process time of the solid state disk; and subtracting the replacement process time from the residual life, and calculating to obtain the replacement time.
In an optional manner, after the time of replacing the solid state disk is determined according to the remaining life of the solid state disk, the method further includes: and triggering an alarm according to the replacement time.
According to a second aspect of an embodiment of the present invention, there is provided a solid state disk management device, including: the collection module is used for obtaining historical use data of the solid state disk, wherein the historical use data comprises a current health value and a historical health value;
the parameter determining module is used for calculating the average wear rate of the solid state disk according to the current health value and the historical health value, calculating the wear change rate of the solid state disk according to the current health value and the historical health value, and determining the health value threshold of the solid state disk; the predicting module is used for calculating the residual life of the solid state disk according to the current health value, the average wear rate, the wear change rate and the health value threshold value, and determining the replacement time of the solid state disk according to the residual life of the solid state disk.
According to a third aspect of embodiments of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation of the solid state disk management method.
According to a fourth aspect of an embodiment of the present invention, there is provided a computer readable storage medium, where at least one executable instruction is stored, where the executable instruction when executed on a computing device causes the computing device to perform the method for managing a solid state hard disk described above.
According to the embodiment of the invention, the historical use data of the SSD are periodically collected, the average wear rate of the SSD is calculated according to the historical use data, meanwhile, the change trend of the wear rate is considered, the wear change rate of the SSD is calculated according to the historical use data, and the health value thresholds of the SSDs of different models of different manufacturers are taken into prediction, so that the residual life of the SSD can be accurately predicted, and the SSD can be effectively managed according to the residual life of the SSD.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 shows a schematic diagram of an application scenario of a solid state disk management method provided by an embodiment of the present invention;
fig. 2 shows a flow chart of a method for managing a solid state disk according to an embodiment of the present invention;
fig. 3 shows a schematic diagram of acquiring SMART information according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a solid state disk management device according to an embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
In order to facilitate understanding of the technical solution provided by the embodiments of the present invention, the following explains some related terms used in the embodiments of the present invention:
compared with the traditional magnetic Disk, the Solid State Disk (Solid State Disk or Solid State Drive, SSD) has great advantages in terms of bandwidth, IOPS and time delay. The SSD mainly comprises two parts of flash memory particles and a main control chip, no mechanical part exists, reading and writing are based on electric signals, only data in the flash memory chip is sensed in the reading process, effective data operation is not carried out on the flash memory chip, the flash memory chip can be rewritten after erasing in the writing process, but the erasing and writing times of a flash memory storage unit are limited, and therefore the SSD is limited in service life. Moreover, the service life of the SSD is mainly determined by the writing service life of the flash memory particles, and the data writing quantity of the flash memory is a key index for measuring the service life of the SSD disk.
The hard disk Self-monitoring, analysis and reporting technology (Self-Monitoring Analysis and Reporting Technology, SMART) is a hard disk Self-analysis detection technology. SSD supporting SMART can be through the monitoring instruction on the hard disk and the monitoring software on the host computer to the operation condition, history record and the safe value of predetermineeing of magnetic head, disc, motor, circuit, when the condition outside the safe value range appears, will send the warning to the user voluntarily, and part can also support automatic deceleration and backup data to guarantee SSD's data security. The SMART information is retained in a system retention area (service area) of the SSD, which is typically located in the foremost tens of physical tracks of the physical surface of the hard disk 0, and related internal management programs are written by a manufacturer, including a low-level formatting program, an encryption and decryption program, a self-monitoring program, an automatic repair degree, and the like, in addition to the SMART information, a user can install monitoring software on the user device, and read the SMART information through a specific command, for example, a "MART RETURN STATUS" command.
Currently, the health value of SSD can be queried by SMART tool commands. The health value ranges from 100 to 0, the initial value is 100, when the health value is reduced to a certain degree, the damage speed of the SSD is increased, the SSD needs to be replaced immediately, and when the health value is 0, the write-in frequency reaches the limit, and the SSD is possibly damaged at any time.
The inventor finds out after analyzing the prior art that the health value obtained by SMART in the prior art is a dynamic instantaneous value, and calculates the damage condition of SSD along with time according to the history record of the health value so as to calculate the life of SSD, wherein the method does not consider the possible change of subsequent traffic and can not accurately predict the life of SSD; moreover, the SSD is usually used in a frequent writing/reading scenario, such as a database integrated machine, a distributed storage scenario, etc., and there may be a case that the life of the SSD in batches expires simultaneously, so that in order to ensure the security of the data copy and the stability of the system performance, the SSD cannot be replaced in a large-scale parallel manner, so that the whole replacement process is longer, and the health value of the SSD in the replacement process may be reduced below the replacement threshold rapidly due to insufficient prediction before the replacement, thereby bringing data risk.
Based on this, the embodiment of the invention provides a solid state disk management method, a device and a computing device, by continuously collecting historical usage data of an SSD, calculating the average wear rate of the SSD according to the historical usage data, simultaneously considering the change trend of the wear rate, calculating the wear change rate of the SSD according to the historical usage data, and incorporating a health value threshold of the SSD into a prediction, the residual life of the SSD can be accurately predicted, and therefore the SSD can be effectively managed according to the residual life of the SSD.
Fig. 1 shows a schematic diagram of an application scenario of a solid state disk management method provided by an embodiment of the present invention. As shown in fig. 1, the application scenario includes: a server 11 and a solid state disk management device 12.
Wherein the number of servers 11 may be one or more. Each server 11 may include one or more SSDs. Each server 11 may also be provided with a monitoring module for collecting usage data of the SSD in the server 10 where it resides. For example, the monitoring module may be a proxy monitoring program running on the server 10.
The solid state disk management device 12 is configured to obtain historical usage data from the server 10, predict a remaining lifetime of the SSD according to the historical usage data, and manage the SSD according to a prediction result. Alternatively, the solid state disk management apparatus 12 may be implemented by a computing device (e.g., a server).
The server 11 and the solid state disk management device 12 may be connected through a network, where the network may be a wired network, or may be a wireless network, for example, a wireless local area network (Wireless LocalArea Networks, WLAN) or a mobile cellular network, or may be other wireless networks, which is not limited in this embodiment of the present invention.
In practical applications, the server 11 and the solid state disk management device 12 may be implemented by the same device, for example, the solid state disk management device 12 is disposed on the server 11, and the solid state disk management device 12 only manages the server 11. Of course, when there are a plurality of servers 11, the solid state disk management device 12 may be provided on another main server, and history use data of the other plurality of servers 11 may be acquired by the main server to manage.
Of course, the method provided by the embodiment of the present invention is not limited to the application scenario shown in fig. 1, but may be used in other possible application scenarios, and the embodiment of the present invention is not limited. The functions that can be implemented by each device in the application scenario shown in fig. 1 will be described together in the following method embodiments, which are not described in detail herein.
In particular, embodiments of the present invention are further described below with reference to the accompanying drawings.
It should be understood, however, that the following examples provided herein may be combined with one another to form new embodiments, so long as they do not conflict.
Fig. 2 shows a flow chart of a method for managing a solid state disk according to an embodiment of the present invention. The method can be applied to an application scenario as shown in fig. 1. As shown in fig. 2, the method includes:
step 210, obtaining historical usage data of the SSD, wherein the historical usage data comprises a current health value and a historical health value.
In this embodiment, in order to provide a data basis for the subsequent remaining life prediction of the SSD, during the running process of the server, the monitoring device disposed on the server may collect the usage data of the SSD on the server, and then the solid state disk management device is connected to the server at regular time, and collects the usage data of the SSD through a smarttl command. The usage data collected through the smartctl command each time is current latest data of the SSD, and the current latest data each time is recorded so that historical usage data is obtained.
The usage data may include SMART information, among other things. SMART information may include, in addition to health values, model, capacity, temperature, wear, density, sector, seek time, transmission, bit error rate, etc. The interval of the health value may be 0-100, the new disc may default to 100, and the health value of the SSD may gradually decrease as the SSD writes wear. For example, as shown in fig. 3, the health value item of the SSD in fig. 3 is "media_weather_indicator", and the corresponding data of "media_weather_indicator" is 66, that is, the health value is 66. Of course, in some embodiments, the health value entry of the SSD may also be "Wear_Leveling_Count" or the like, with the health value entry identification of the SSD depending on the model or vendor of the SSD.
The historical use data comprises a current health value and a historical health value, wherein the current health value is a health value in the use data collected last time, and the historical health value is a health value in the use data collected in the past. For example, the usage data is collected once every preset period, five times are collected in total, and health values in the usage data collected five times are respectively x in sequence 1 、x 2 、x 3 、x 4 、x 5 Then the historical health value is x 1 、x 2 、x 3 、x 4 The current health value is x 5
Step 220, calculating the average wear rate of the SSD according to the current health value and the historical health value.
In the present embodiment, the remaining lifetime of the SSD depends on the data writing amount of the SSD, and the change in the health value (i.e., the health value per certain period) in the history use data reflects the change in the remaining lifetime of the SSD. Since the health value of the SSD gradually decreases as the SSD is written and worn, the remaining life of the SSD also depends on the average wear rate Ma of the SSD, and if the average wear rate Ma of the SSD is higher, the remaining life of the SSD decreases faster.
Specifically, step 220 may include:
the average wear rate Ma is calculated according to the following formula:
Ma=(k 0 -k n )/n
wherein k is 0 K is the current health value n The historical health value n preset periods before the current health value. The health value of each period can be obtained as the usage data is collected once every preset period. Wherein,the duration of the preset period can be set according to actual demand conditions. For example, the preset period may be one day, and the usage data is collected once every day, so as to obtain a daily health value, and the current health value is the daily health value, and the historical health value is the past daily health value.
Wherein, the average wear rate Ma can be calculated by selecting the historical health value before n preset periods. For example, taking n=5, assuming that the preset period is one day, the average wear rate Ma is calculated from the health value of the day and the health value before 5 days. Of course, in some other embodiments, n may be taken according to practical situations, and when n is smaller, the average wear rate Ma is calculated more accurately.
Step 230, calculating the wear change rate of the SSD according to the current health value and the historical health value.
In this embodiment, the health value of the SSD depends on the write data amount of the SSD, and when the traffic scene applied by the SSD changes, the wear of the health value also changes (for example, the traffic volume increases rapidly, the wear of the health value increases rapidly), and the change of the traffic scene is reflected by the wear change rate v. When the wear change rate v is 0, the service scene is considered to be basically unchanged, and the average wear rate Ma is basically unchanged.
In order to better evaluate the wear change rate v, the wear change is predicted by a moving average method, thereby estimating the wear change rate v. Specifically, the wear change rate v may be calculated according to the following formula:
where m is the number of measured cycles, when i=0, k i K is the current health value i+1 、k i+2 For historical health value, when i is E [1, m]When k is i 、k i+1 、k i+2 All are historical health values. The cycle number can be calculated to take a value according to actual conditions. k (k) i+1 Is k i Health value, k, of the previous preset period i+2 Is k i Health values for the first two preset periods.
For example, taking the number of measured cycles m=3, there is
In the present embodiment, if the wear change rate v >0 is calculated, it indicates that the wear value (writing amount) shows an increasing trend; if the wear change rate v=0 is calculated, it means that the wear value (writing amount) is substantially unchanged; if the wear change rate v <0 is calculated, it indicates that the wear value (writing amount) tends to decrease.
Step 240, determining a health value threshold of the SSD.
In this embodiment, when the health value of the SSD decreases to a certain extent, the performance and stability of the SSD are obviously reduced, and the damage speed of the SSD is accelerated, which is not acceptable for many service scenarios running in the production environment, so that a critical point of the health value capable of considering both the performance and the stability, that is, a health value threshold value needs to be determined.
The health value threshold is mainly dependent on the manufacturer and model of SSD. Specifically, step 240 may include: step 241, determining production information of SSD; step 242, determining a health value threshold corresponding to the production information according to the corresponding relation between the preset production information and the health value threshold.
The corresponding relation between the preset production information and the health value threshold is preset and recorded. The production information may include manufacturer and model of the SSD, and the different manufacturer and model of the SSD may respectively correspond to different health value thresholds, and the health value threshold of the SSD may be determined according to a preset corresponding relationship.
For example, as shown in the following table 1, table 1 is a correspondence between preset production information and a health value threshold.
TABLE 1
Step 250, calculating the residual life of the SSD according to the current health value, the average wear rate, the wear change rate and the health value threshold.
Wherein the remaining life of the SSD can be calculated according to the following formula:
wherein K is t For the health value threshold, k 0 For the current health value, ma is the average wear rate, v is the wear rate, j E [0, L]And is a positive integer, L is the remaining life. Due to K t 、k 0 When Ma, v are known, the remaining life L, i.e., the number of cycles remaining in the SSD, can be calculated. For example, if L is calculated to be 7 and the preset period is one day, the remaining period number of the SSD is 7, i.e. the remaining lifetime is 7 days.
In this embodiment, by calculating the remaining lifetime of the SSD, a device list of the SSD that reaches the health value threshold at a certain period in the future can be predicted, so as to conduct replacement of the SSD that guides maintenance and approaches the critical value wear.
Step 260, determining the replacement time of the SSD according to the remaining life of the SSD.
Specifically, step 260 may include: step 261, determining the replacement process time of the SSD; step 262, subtracting the replacement process time from the remaining life, and calculating the replacement time. That is, the replacement time lc=the remaining life L-the replacement process time Tc.
The replacement process time refers to the time required for replacing the SSD. In this embodiment, the wear conditions of multiple SSDs in the same batch may be similar, and once multiple SSDs enter the replacement process at the same time, in order to ensure the data copy security and the system performance stability, the replacement time of the SSDs may not be estimated, so that the SSDs may be replaced in batches, and the replacement of all SSDs may be completed before the SSDs reach the health value threshold. Therefore, a replacement process time Tc needs to be introduced to avoid too late a replacement time, resulting in a part of the cluster SSD disks being replaced less quickly, with a potential risk of data loss.
According to the embodiment of the invention, the historical use data of the SSD are periodically collected, the average wear rate of the SSD is calculated according to the historical use data, meanwhile, the change trend of the wear rate is considered, the wear change rate of the SSD is calculated according to the historical use data, and the health value thresholds of the SSDs of different models of different manufacturers are taken into prediction, so that the residual life of the SSD can be accurately predicted, and the SSD can be effectively managed according to the residual life of the SSD.
In some embodiments, after step 260, the method further comprises:
step 270, triggering an alarm according to the replacement time of the SSD.
In this embodiment, by triggering an alarm to notify the operation and maintenance personnel to enter the repair replacement process in advance before the SSD reaches the health value threshold, cost input and resource waste caused by too early replacement of the SSD can be avoided, and potential data safety hazards possibly existing in replacement of the health value threshold in part of the scenes can be greatly reduced.
Fig. 4 shows a schematic structural diagram of a solid state disk management device according to an embodiment of the present invention. The device can be applied to an application scenario as shown in fig. 1. As shown in fig. 4, the apparatus includes: an acquisition module 310, a parameter determination module 320, and a prediction module 330.
The collection module 310 is configured to obtain historical usage data of the solid state disk, where the historical usage data includes a current health value and a historical health value; the parameter determining module 320 is configured to calculate an average wear rate of the solid state disk according to the current health value and the historical health value, calculate a wear change rate of the solid state disk according to the current health value and the historical health value, and determine a health value threshold of the solid state disk; the prediction module 330 is configured to calculate a remaining life of the solid state disk according to the current health value, the average wear rate, the wear change rate, and the health value threshold, and determine a replacement time of the solid state disk according to the remaining life of the solid state disk.
In an alternative manner, the parameter determination module 320 is specifically configured to: the average wear rate is calculated according to the following formula:
Ma=(k 0 -k n )/n
wherein Ma is the average wear rate, k 0 K is the current health value n And the historical health value is n preset periods before the current health value.
In an alternative manner, the parameter determination module 320 is specifically configured to: the wear rate was calculated according to the following formula:
wherein v is the wear change rate, m is the number of measured cycles, and when i=0, k i K is the current health value i+1 、k i+2 Is the historical health value; when i is E [1, m]When k is i 、k i+1 、k i+2 Are all the historical health values.
In an alternative manner, the parameter determination module 320 is specifically configured to: determining production information of the solid state disk; and determining the health value threshold corresponding to the production information according to the corresponding relation between the preset production information and the health value threshold.
In an alternative manner, the prediction module 330 is specifically configured to: calculating the residual life of the solid state disk according to the following formula:
wherein K is t For the health value threshold, k 0 For the current health value, ma is the average wear rate, v is the wear rate, j ε [0, L]And is a positive integer, L is the remaining lifetime.
In an alternative manner, the prediction module 330 is specifically configured to: determining the replacement process time of the solid state disk; and subtracting the replacement process time from the residual life, and calculating to obtain the replacement time.
In an alternative, the apparatus further comprises: and an alarm module. And the alarm module is used for triggering an alarm according to the replacement time.
It should be noted that, the solid state disk management device provided in the embodiments of the present invention is a device capable of executing the solid state disk management method, and all embodiments of the solid state disk management method are applicable to the device, and the same or similar beneficial effects can be achieved.
According to the embodiment of the invention, the historical use data of the SSD are periodically collected, the average wear rate of the SSD is calculated according to the historical use data, meanwhile, the change trend of the wear rate is considered, the wear change rate of the SSD is calculated according to the historical use data, and the health value thresholds of the SSDs of different models of different manufacturers are taken into prediction, so that the residual life of the SSD can be accurately predicted, and the SSD can be effectively managed according to the residual life of the SSD.
FIG. 5 illustrates a schematic diagram of a computing device provided by an embodiment of the present invention. The specific embodiments of the present invention are not limited to a particular implementation of a computing device.
As shown in fig. 5, the computing device may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein: processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408. A communication interface 404 for communicating with other devices such as network elements or network elements of other servers and the like. The processor 402 is configured to execute the program 410, and may specifically perform the relevant steps in the embodiments of the method for managing a solid state disk.
In particular, program 410 may include program code including computer-executable instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically invoked by processor 402 to cause a computing device to perform operations in the solid state disk management method of the above embodiments.
According to the embodiment of the invention, the historical use data of the SSD are periodically collected, the average wear rate of the SSD is calculated according to the historical use data, meanwhile, the change trend of the wear rate is considered, the wear change rate of the SSD is calculated according to the historical use data, and the health value thresholds of the SSDs of different models of different manufacturers are taken into prediction, so that the residual life of the SSD can be accurately predicted, and the SSD can be effectively managed according to the residual life of the SSD.
The embodiment of the invention provides a computer readable storage medium, which stores at least one executable instruction, and the executable instruction enables a computing device to execute the solid state disk management method in any method embodiment. The executable instructions may be specifically configured to cause a computing device to perform operations in the solid state disk management method in the above embodiment.
According to the embodiment of the invention, the historical use data of the SSD are periodically collected, the average wear rate of the SSD is calculated according to the historical use data, meanwhile, the change trend of the wear rate is considered, the wear change rate of the SSD is calculated according to the historical use data, and the health value thresholds of the SSDs of different models of different manufacturers are taken into prediction, so that the residual life of the SSD can be accurately predicted, and the SSD can be effectively managed according to the residual life of the SSD.
The embodiment of the invention provides a solid state disk management device which is used for executing the solid state disk management method.
The embodiment of the invention provides a computer program which can be called by a processor to enable computing equipment to execute the solid state disk management method in any of the method embodiments.
An embodiment of the present invention provides a computer program product, where the computer program product includes a computer program stored on a computer readable storage medium, where the computer program includes program instructions, when the program instructions are executed on a computer, cause the computer to execute the method for managing a solid state hard disk in any of the above method embodiments.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (7)

1. The solid state disk management method is characterized by comprising the following steps of:
acquiring historical use data of the solid state disk, wherein the historical use data comprises a current health value and a historical health value;
according to the current health value and the historical health value, calculating the average wear rate of the solid state disk specifically comprises the following steps: the average wear rate is calculated according to the following formula:
Ma=(k 0 -k n )/n
wherein Ma is the average wear rate, k 0 K is the current health value n Historical health values before n preset periods of the current health value;
according to the current health value and the historical health value, calculating the wear change rate of the solid state disk specifically comprises the following steps:
the wear rate was calculated according to the following formula:
wherein v is the wear change rate, m is the number of measured cycles, and when i=0, k i K is the current health value i+1 、k i+2 Is the historical health value; when i is E [1, m]When k is i 、k i+1 、k i+2 All are the historical health values;
determining a health value threshold of the solid state disk;
calculating the remaining life of the solid state disk according to the current health value, the average wear rate, the wear change rate and the health value threshold, wherein the method specifically comprises the following steps:
calculating the residual life of the solid state disk according to the following formula:
wherein K is t For the health value threshold, k 0 For the current health value, ma is the average wear rate, v is the wear rate, j ε [0, L]And is a positive integer, L is the remaining lifetime;
and determining the replacement time of the solid state disk according to the residual life of the solid state disk.
2. The method of claim 1, wherein the determining the health value threshold of the solid state disk specifically comprises:
determining production information of the solid state disk;
and determining the health value threshold corresponding to the production information according to the corresponding relation between the preset production information and the health value threshold.
3. The method of claim 1, wherein the determining the replacement time of the solid state disk according to the remaining lifetime of the solid state disk specifically includes:
determining the replacement process time of the solid state disk;
and subtracting the replacement process time from the residual life, and calculating to obtain the replacement time.
4. The method of any of claims 1-3, wherein after the determining the replacement time of the solid state disk based on the remaining life of the solid state disk, the method further comprises:
and triggering an alarm according to the replacement time.
5. A solid state disk management apparatus, comprising:
the collection module is used for obtaining historical use data of the solid state disk, wherein the historical use data comprises a current health value and a historical health value;
the parameter determining module is used for calculating the average wear rate of the solid state disk according to the current health value and the historical health value, calculating the wear change rate of the solid state disk according to the current health value and the historical health value, and determining the health value threshold of the solid state disk;
wherein the average wear rate is calculated according to the following formula:
Ma=(k 0 -k n )/n
wherein Ma is the average wear rate, k 0 K is the current health value n Historical health values before n preset periods of the current health value;
according to the current health value and the historical health value, calculating the wear change rate of the solid state disk specifically comprises the following steps:
the wear rate was calculated according to the following formula:
wherein v is the wear change rate, m is the number of measured cycles, and when i=0, k i K is the current health value i+1 、k i+2 Is the historical health value; when i is E [1, m]When k is i 、k i+1 、k i+2 All are the historical health values; the prediction module is used for calculating the residual life of the solid state disk according to the current health value, the average wear rate, the wear change rate and the health value threshold value, and determining the replacement time of the solid state disk according to the residual life of the solid state disk;
the remaining life of the solid state disk is calculated according to the following formula:
wherein K is t For the health value threshold, k 0 For the current health value, ma is the average wear rateV is the wear rate, j ε [0, L]And is a positive integer, L is the remaining lifetime.
6. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the solid state disk management method according to any one of claims 1-4.
7. A computer-readable storage medium having stored therein at least one executable instruction that, when executed on a computing device, causes the computing device to perform the operations of the solid state disk management method of any of claims 1-4.
CN202010396309.2A 2020-05-12 2020-05-12 Solid state disk management method and device and computing equipment Active CN113656204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010396309.2A CN113656204B (en) 2020-05-12 2020-05-12 Solid state disk management method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010396309.2A CN113656204B (en) 2020-05-12 2020-05-12 Solid state disk management method and device and computing equipment

Publications (2)

Publication Number Publication Date
CN113656204A CN113656204A (en) 2021-11-16
CN113656204B true CN113656204B (en) 2023-11-21

Family

ID=78476812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010396309.2A Active CN113656204B (en) 2020-05-12 2020-05-12 Solid state disk management method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN113656204B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893231A (en) * 2016-05-06 2016-08-24 思创数码科技股份有限公司 Method and device for predicting hard disk sub-health index based on SMART (self-monitoring analysis and reporting technology)
CN105988720A (en) * 2015-02-09 2016-10-05 中国移动通信集团浙江有限公司 Data storage device and method
CN106688044A (en) * 2014-12-22 2017-05-17 桑迪士克科技有限责任公司 Measuring memory wear and data retention individually based on cell voltage distributions
WO2019052208A1 (en) * 2017-09-18 2019-03-21 华为技术有限公司 Method and apparatus for memory evaluation
CN110413430A (en) * 2019-07-19 2019-11-05 苏州浪潮智能科技有限公司 A kind of life-span prediction method of solid state hard disk, device and equipment
CN110688069A (en) * 2019-09-20 2020-01-14 苏州浪潮智能科技有限公司 Service life prediction method, device and equipment of solid state disk and readable storage medium
CN110990174A (en) * 2019-10-25 2020-04-10 苏州浪潮智能科技有限公司 Method, device and medium for predicting SSD available time based on Prophet model
CN111104342A (en) * 2018-10-29 2020-05-05 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for storage

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106688044A (en) * 2014-12-22 2017-05-17 桑迪士克科技有限责任公司 Measuring memory wear and data retention individually based on cell voltage distributions
CN105988720A (en) * 2015-02-09 2016-10-05 中国移动通信集团浙江有限公司 Data storage device and method
CN105893231A (en) * 2016-05-06 2016-08-24 思创数码科技股份有限公司 Method and device for predicting hard disk sub-health index based on SMART (self-monitoring analysis and reporting technology)
WO2019052208A1 (en) * 2017-09-18 2019-03-21 华为技术有限公司 Method and apparatus for memory evaluation
CN111104342A (en) * 2018-10-29 2020-05-05 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for storage
CN110413430A (en) * 2019-07-19 2019-11-05 苏州浪潮智能科技有限公司 A kind of life-span prediction method of solid state hard disk, device and equipment
CN110688069A (en) * 2019-09-20 2020-01-14 苏州浪潮智能科技有限公司 Service life prediction method, device and equipment of solid state disk and readable storage medium
CN110990174A (en) * 2019-10-25 2020-04-10 苏州浪潮智能科技有限公司 Method, device and medium for predicting SSD available time based on Prophet model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
存储系统可靠性预测综述;李静 等;《计算机科学与探索》;第11卷(第03期);第341-354页 *

Also Published As

Publication number Publication date
CN113656204A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN110413227B (en) Method and system for predicting remaining service life of hard disk device on line
US20110107053A1 (en) Allocating Storage Memory Based on Future Use Estimates
US20200004435A1 (en) Determining when to replace a storage device by training a machine learning module
US9405695B2 (en) Cache modeling using random sampling and a timestamp histogram
EP2661707A1 (en) Selecting storage locations for storing data based on storage location attributes and data usage statistics
CN107391301A (en) Data managing method, device, computing device and the storage medium of storage system
CN103123604A (en) Method for tracking memory usages of a data processing system
JP2013171305A (en) Storage device, storage system, storage management method and storage management program
WO2014209234A1 (en) Method and apparatus for hot data region optimized dynamic management
CN101826367A (en) Method and device for monitoring reliability of semiconductor storage device
US8281102B2 (en) Computer-readable recording medium storing management program, management apparatus, and management method
EP4078380A1 (en) Behavior-driven die management on solid-state drives
KR20170113343A (en) Dynamic bandwidth reporting for solid-state drives
US11237893B2 (en) Use of error correction-based metric for identifying poorly performing data storage devices
US9916220B2 (en) Smart logging of trace data for storage systems
US10168944B2 (en) Information processing apparatus and method executed by an information processing apparatus
CN113656204B (en) Solid state disk management method and device and computing equipment
US10585592B2 (en) Disk area isolation method and device
CN103399783A (en) Storage method and device of mirror image documents of virtual machines
US11941450B2 (en) Automatic placement decisions for running incoming workloads on a datacenter infrastructure
Kurniawan et al. Ionet: Towards an open machine learning training ground for i/o performance prediction
CN112446490A (en) Network training data set caching method, device, equipment and storage medium
JP2017010196A (en) Storage control device, storage control program, and storage control method
CN112286843B (en) System and method for data storage system
CN118035058A (en) Method, device, equipment and medium for determining residual life

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant