CN115831167B - Hard disk temperature inspection model generation and hard disk temperature inspection method and device - Google Patents

Hard disk temperature inspection model generation and hard disk temperature inspection method and device Download PDF

Info

Publication number
CN115831167B
CN115831167B CN202211468675.XA CN202211468675A CN115831167B CN 115831167 B CN115831167 B CN 115831167B CN 202211468675 A CN202211468675 A CN 202211468675A CN 115831167 B CN115831167 B CN 115831167B
Authority
CN
China
Prior art keywords
hard disk
temperature
reading operation
data reading
operation time
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
CN202211468675.XA
Other languages
Chinese (zh)
Other versions
CN115831167A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211468675.XA priority Critical patent/CN115831167B/en
Publication of CN115831167A publication Critical patent/CN115831167A/en
Application granted granted Critical
Publication of CN115831167B publication Critical patent/CN115831167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to a method for generating a hard disk temperature inspection model, which comprises the following steps: acquiring a high-temperature frequency-reducing threshold value of the hard disk; executing data writing operation on the hard disk until the hard disk is fully written; continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time; and generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.

Description

Hard disk temperature inspection model generation and hard disk temperature inspection method and device
Technical Field
The present application relates to the field of computer testing technologies, and in particular, to a test environment monitoring and managing method, apparatus, and computer device.
Background
At present, with the increase of the calculation amount of the server, the demands of people on hard disks are also higher and higher, and the capacity quantity of the hard disks in the server is increased. The number of hard disks in one server reaches as many as several tens. While SSDs (SolidState Drives; solid state drives) and NVMEs are increasingly replacing HDDs (HARDDISKDRIVE; hard drives), a lot of heat is generated due to their high speed computation. As the temperature increases, the electronics in the server may overheat, causing a malfunction or enter overheat protection to self-lock. For the hard disk, once the threshold value set in the hard disk is exceeded, the hard disk is subjected to frequency reduction due to overheat protection, so that the calculation speed is greatly reduced. In severe cases, hard disk life is greatly reduced. Therefore, monitoring the hard disk temperature is an important task for server development.
At present, the monitoring of the temperature of the hard disk is usually realized based on hardware monitoring equipment, but the monitoring of the temperature of the hard disk by the hardware monitoring equipment generally has the following disadvantages: 1. the economic cost is high; in the existing technical scheme for monitoring the hardware temperature, hardware monitoring equipment is required to be additionally arranged, and in order to ensure the accuracy of the monitored hardware temperature, the number of the hardware monitoring equipment is required to be large; 2. the accuracy of the hard disk temperature monitored by the hardware monitoring equipment is not high; because a large number of computing modules are arranged in the hard disk, the internal temperature is far higher than the external temperature, and the hardware monitoring equipment is usually arranged on the back plate, the actual temperature in the hard disk cannot be accurately obtained by the hard disk monitoring equipment; in addition, the hard disk and the backboard are usually arranged at the position of the air inlet of the server, so that the temperature monitored by the hard disk monitoring equipment arranged on the backboard is lower than the actual temperature of the hard disk; 3. the bandwidth waste rate is high; based on the fact that the hardware monitoring equipment monitors the temperature of the hard disk, in the prior art, the hardware monitoring equipment monitors the temperature of the hard disk through a smart command, in order to ensure the accuracy of reading the temperature of the hard disk, the temperature of the hard disk needs to be repeatedly read within a certain time interval, and when the hard disk frequently executes reading operation, a large amount of bandwidth is wasted, and the performance and consistency of the hard disk are adversely affected; 4. the hardware monitoring equipment has hysteresis, namely when the hardware temperature is monitored by the hardware monitoring equipment, whether the hardware temperature is abnormal or not can only be monitored, and early warning can not be carried out on the hardware temperature.
Therefore, there is an urgent need to provide a method, a device and a computer device for generating a hard disk temperature inspection model and inspecting the hard disk temperature, which can solve the above technical problems.
Disclosure of Invention
Accordingly, it is necessary to provide a method, a device and a computer device for generating a hard disk temperature inspection model and inspecting the hard disk temperature, which can improve the accuracy and timeliness of the hard disk temperature reading.
In one aspect, a method for generating a hard disk temperature inspection model is provided, and the method comprises the following steps:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In one embodiment, the generating the hard disk temperature inspection model based on the data read operation time and the temperature of the hard disk at each data read operation time includes: acquiring a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time; fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model.
In one embodiment, the reference hard disk temperature patrol model is: y=Wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega,/>B is a parameter to be fitted.
In one embodiment, fitting the reference hard disk temperature inspection model to generate the hard disk temperature inspection model includes: parameters to be fitted of the reference hard disk temperature inspection modelFitting with B; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model; based on the fitted parameters A, B, ω and/>And generating the hard disk temperature inspection model.
In one embodiment, parameters to be fitted to the reference hard disk temperature inspection modelAnd B, fitting, including: based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period, the parameters/>, to be fitted, are obtainedAnd the average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted.
In one embodiment, fitting parameters ω and a to be fitted of the reference hard disk temperature inspection model includes: based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
Wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined; and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain: Wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time; and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent; based on the matrix R, the matrix M and the matrix N, the following steps are obtained: r TRM=RT N; the method comprises the following steps: m= (R TR)-1RT M; based on the matrix M, obtaining parameters omega and A to be fitted, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, obtaining the high temperature down-conversion threshold of the hard disk includes: controlling the cooling device of the hard disk to the lower limit of cooling; executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments; when the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained; and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
In yet another aspect, a method for inspecting temperature of a hard disk is provided, the method comprising: executing data reading operation on the hard disk according to a preset data reading operation time interval; and inputting the data reading operation time into the hard disk temperature inspection model generated based on the temperature inspection model generation method so as to acquire the hard disk temperature corresponding to the data reading operation time.
On the other hand, a hard disk temperature inspection model generating device is provided, and the device comprises:
The acquisition unit is used for acquiring a high-temperature frequency-reducing threshold value of the hard disk;
a data writing operation unit, configured to perform a data writing operation on the hard disk until the hard disk is full;
The data writing operation unit is further used for continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval;
The acquisition unit is also used for acquiring the temperature of the hard disk at each data reading operation moment;
The model generating unit is used for generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In yet another aspect, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In yet another aspect, a computer readable storage medium is provided, having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
The method for generating the temperature inspection model of the hard disk, the device and the computer equipment for generating the temperature inspection model of the hard disk comprise the following steps: acquiring a high-temperature frequency-reducing threshold value of the hard disk; executing data writing operation on the hard disk until the hard disk is fully written; continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time; and generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time. The hard disk temperature inspection model generated based on the method is used for inspecting the hard disk temperature, and has the following technical effects:
1. Resource waste is reduced; a large number of hard disk temperature monitoring devices are prevented from being deployed on a hard disk backboard, and the problem that the backboard sensor cannot identify the internal temperature of the hard disk is solved;
2. the stability and consistency of the hard disk are improved; when the hard disk temperature is obtained, the smart command is not required to be frequently called to read the hard disk temperature, so that the waste of hard disk bandwidth resources is reduced;
3. The timeliness of the hard disk temperature inspection is improved, and the hard disk temperature overtemperature condition can be predicted in time and accurately calculated in the process of inspecting the hard disk temperature based on the hard disk temperature inspection model generated by the method.
Drawings
FIG. 1 is a flow chart of a method for generating a hard disk temperature inspection model in one embodiment;
FIG. 2 is a flow chart of a method for temperature inspection of a hard disk according to an embodiment;
FIG. 3 is a block diagram of a device for generating a model of hard disk temperature inspection in one embodiment;
FIG. 4 is a block diagram of a hard disk temperature inspection device according to an embodiment;
FIG. 5 is an internal block diagram of a computer device in one embodiment;
FIG. 6 is a schematic diagram of a reference hard disk temperature patrol model in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, there is provided a method for generating a hard disk temperature inspection model, the method comprising:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In one embodiment, obtaining the high temperature down-conversion threshold of the hard disk includes: using smatrctl commands to view information of the hard disk, wherein the information of the hard disk comprises a hard disk name, a manufacturer and a capacity; and searching a specification of the hard disk according to the hard disk name, and finding out a high-temperature frequency-reducing threshold of the hard disk. If the specification of the hard disk is not searched, maintaining the fan at an ultralow rotation speed, pressurizing the hard disk, continuously collecting the temperature and the read-write speed of the hard disk, obtaining the moment when the read-write speed of the hard disk is replied to be reduced and the temperature corresponding to the moment, and obtaining the high-temperature frequency reduction value of the hard disk. And finally, saving the name, manufacturer, capacity and high-temperature frequency-reducing threshold value of the hard disk into a file or a database for subsequent retrieval.
In one embodiment, performing a data write operation on the hard disk until the hard disk is full, includes: and pre-reading and writing the hard disk, and fully writing the hard disk by using fio to ensure that the hard disk is in a stable state and the reading and writing speed of the hard disk is maintained in a stable state.
In one embodiment, according to a preset data reading operation time interval, continuously performing at least one period of data reading operation on the hard disk, and obtaining the temperature of the hard disk at each data reading operation time, including: setting a preset data reading operation time interval to be 1s, wherein the total length of the data reading operation time is 30min; namely, the temperature information of the hard disk is collected through smart, the data are read once every 1s, 30 minutes are continuously read, 1800 groups of data are counted, the time is taken as a horizontal axis X, the temperature is taken as a vertical axis Y, the collected hard disk temperature reading time and the hard disk temperature corresponding to each time are used for drawing a scatter diagram, and a Matplotlib. Pyplot diagram library is used for drawing the scatter diagram, as shown in fig. 6. It should be understood that the preset data read operation time interval may be selectively set by those skilled in the art according to actual situations.
It should be understood that, based on the drawn scatter diagram, a reference hard disk temperature inspection model is obtained, as shown in fig. 6, where the reference hard disk temperature inspection model of the hard disk is: +B; wherein x represents the hard disk temperature reading operation time, y represents the hard disk temperature at the hard disk temperature reading operation time, and A, omega,/> B is a parameter to be fitted.
In one embodiment, the generating the hard disk temperature inspection model based on the data read operation time and the temperature of the hard disk at each data read operation time includes: fitting parameters A, omega to be fitted,B。
Specifically, parameters A, omega to be fitted are fitted,B comprises: based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period, the parameters/>, to be fitted, are obtainedThe average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted; based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time: /(I)Wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined; and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain: /(I)Wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time; and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent; based on the matrix R, the matrix M and the matrix N, the following steps are obtained: r TRM=RT N; the method comprises the following steps: m= (R TR)-1RT M; based on the matrix M, obtaining parameters omega and A to be fitted, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, the method further comprises: optimizing the hard disk temperature inspection model; specifically, the data reading operation time interval is adjusted, at least one period of data reading operation is continuously executed on the hard disk, the temperature of the hard disk at each data reading operation time is obtained, and the hard disk temperature inspection model is corrected based on errors among the temperatures of the hard disk read by different data reading operation time intervals. Optimizing the hard disk temperature inspection model further comprises regularization optimization based on a two-norm.
In one embodiment, the method further includes storing the generated hard disk temperature inspection model in a file or a database, so as to call the hard disk temperature inspection model to perform hard disk temperature inspection later.
In one embodiment, as shown in fig. 1, the present application provides a method for generating a hard disk temperature inspection model, which includes:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In the method for generating the hard disk temperature inspection model, the hard disk temperature inspection model generated based on the method for generating the temperature inspection model can avoid a large number of hard disk temperature monitoring devices from being deployed on the hard disk backboard, and can effectively reduce resource waste; the method can avoid frequently calling the temperature acquisition instruction to read the temperature of the hard disk, and can reduce the resource occupancy rate of the bandwidth of the hard disk; the early warning of the hard disk temperature can be realized, and the probability of hard disk damage can be reduced.
In one embodiment, the generating the hard disk temperature inspection model based on the data read operation time and the temperature of the hard disk at each data read operation time includes: acquiring a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time; fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model.
In one embodiment, the reference hard disk temperature patrol model is:
wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega, B is a parameter to be fitted.
In one embodiment, fitting the reference hard disk temperature inspection model to generate the hard disk temperature inspection model includes: parameters to be fitted of the reference hard disk temperature inspection modelFitting with B; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model; based on the fitted parameters A, B, ω and/>And generating the hard disk temperature inspection model.
In one embodiment, parameters to be fitted to the reference hard disk temperature inspection modelAnd B, fitting, including: based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period, the parameters/>, to be fitted, are obtainedAnd the average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted.
In one embodiment, fitting parameters ω and a to be fitted of the reference hard disk temperature inspection model includes: based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined;
and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain:
wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time;
and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent;
based on the matrix R, the matrix M and the matrix N, the following steps are obtained:
RTRM=RTN;
The method comprises the following steps:
M=(RTR)-1RTM;
And obtaining parameters omega and A to be fitted based on the matrix M, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, obtaining the high temperature down-conversion threshold of the hard disk includes: controlling the cooling device of the hard disk to the lower limit of cooling; executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments; when the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained; and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
In one embodiment, as shown in fig. 2, the present application further provides a method for inspecting the temperature of a hard disk, where the method includes: executing data reading operation on the hard disk according to a preset data reading operation time interval; and inputting the data reading operation time into a hard disk temperature inspection model generated based on the temperature inspection model generation method described in the previous embodiment to obtain the hard disk temperature corresponding to the data reading operation time.
It should be understood that, although the steps in the flowcharts of fig. 1-2 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
In one embodiment, as shown in fig. 3, there is provided a hard disk temperature inspection model generating device, including: the device comprises an acquisition unit, a data writing operation unit and a model generation unit, wherein:
The acquisition unit is used for acquiring a high-temperature frequency-reducing threshold value of the hard disk;
a data writing operation unit, configured to perform a data writing operation on the hard disk until the hard disk is full;
The data writing operation unit is further used for continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval;
The acquisition unit is also used for acquiring the temperature of the hard disk at each data reading operation moment;
The model generating unit is used for generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In one embodiment, the model generating unit is further configured to obtain a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time; fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model; the reference hard disk temperature inspection model is as follows:
wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega, B is a parameter to be fitted.
In one embodiment, the model generating unit is further configured to perform fitting on parameters to be fitted of the reference hard disk temperature inspection modelFitting with B; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model; based on the fitted parameters A, B, ω and/>Generating the hard disk temperature inspection model; wherein, to-be-fitted parameters/>, of the reference hard disk temperature inspection modelAnd B, fitting, including: based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period, the parameters/>, to be fitted, are obtainedThe average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model comprises the following steps: based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
Wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined; and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain:
wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time;
and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent;
based on the matrix R, the matrix M and the matrix N, the following steps are obtained:
RTRM=RTN;
The method comprises the following steps:
M=(RTR)-1RTM;
And obtaining parameters omega and A to be fitted based on the matrix M, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, the obtaining unit is further configured to control the cooling device of the hard disk to a lower cooling limit; executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments; when the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained; and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
In one embodiment, as shown in fig. 4, there is provided a hard disk temperature patrol system, the system comprising: the data reading operation device and the hard disk temperature inspection device;
The data reading operation device is used for executing data degree operation on the hard disk according to a preset data reading operation time interval;
the hard disk temperature inspection device comprises an input unit and a hard disk temperature inspection model, wherein the input unit is used for inputting the data reading operation time to the hard disk temperature inspection model; the hard disk temperature inspection model is used for acquiring the hard disk temperature corresponding to the data reading operation moment based on the data reading operation moment.
The specific limitation of the hard disk temperature inspection model generating device can be referred to the limitation of the hard disk temperature inspection model generating method hereinabove, and the description thereof will not be repeated here. All or part of the modules in the hard disk temperature inspection model generating device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by the processor is used for realizing a hard disk temperature inspection model generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time; fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model; the reference hard disk temperature inspection model is as follows: Wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega,/> B is a parameter to be fitted.
In one embodiment, the processor when executing the computer program further performs the steps of:
parameters to be fitted of the reference hard disk temperature inspection model Fitting with B; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model; based on the fitted parameters A, B, ω and/>And generating the hard disk temperature inspection model.
In one embodiment, the processor when executing the computer program further performs the steps of:
Based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; the parameters to be fitted are based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period And the average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted.
In one embodiment, the processor when executing the computer program further performs the steps of:
Based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
Wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined; and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain: Wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time; and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent; based on the matrix R, the matrix M and the matrix N, the following steps are obtained: r TRM=RT N; the method comprises the following steps: m= (R TR)-1RT M; based on the matrix M, obtaining parameters omega and A to be fitted, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, the processor when executing the computer program further performs the steps of:
Controlling the cooling device of the hard disk to the lower limit of cooling; executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments; when the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained; and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
And generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time; fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model; the reference hard disk temperature inspection model is as follows: Wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega,/> B is a parameter to be fitted.
In one embodiment, the computer program when executed by the processor further performs the steps of:
parameters to be fitted of the reference hard disk temperature inspection model Fitting with B; fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model; based on the fitted parameters A, B, ω and/>And generating the hard disk temperature inspection model.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period; based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk; determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; the parameters to be fitted are based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period And the average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
Wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined; and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain: Wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time; and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]'
Wherein r 1(x1)…rm(xn) is linearly independent; based on the matrix R, the matrix M and the matrix N, the following steps are obtained: r TRM=RT N; the method comprises the following steps: m= (R TR)-1RT M; based on the matrix M, obtaining parameters omega and A to be fitted, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Controlling the cooling device of the hard disk to the lower limit of cooling; executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments; when the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained; and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (7)

1. The method for generating the hard disk temperature inspection model is characterized by comprising the following steps:
acquiring a high-temperature frequency-reducing threshold value of the hard disk;
Executing data writing operation on the hard disk until the hard disk is fully written;
continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval, and acquiring the temperature of the hard disk at each data reading operation time;
generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time;
based on the data read operation time and the temperature of the hard disk at each data read operation time, generating the hard disk temperature inspection model includes:
Acquiring a reference hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time;
fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model;
the reference hard disk temperature inspection model is as follows:
wherein x is the data reading operation time; y is the temperature of the hard disk at the time of data reading operation; the A, omega, B is a parameter to be fitted;
Fitting the standard hard disk temperature inspection model to generate the hard disk temperature inspection model, wherein the method comprises the following steps of:
parameters to be fitted of the reference hard disk temperature inspection model Fitting with B;
Fitting parameters omega and A to be fitted of the reference hard disk temperature inspection model;
based on the fitted parameters A, B, ω and ω to be fitted And generating the hard disk temperature inspection model.
2. The method for generating a hard disk temperature inspection model according to claim 1, wherein parameters to be fitted to the reference hard disk temperature inspection modelAnd B, fitting, including:
Based on an bubbling sequencing algorithm, the temperatures of the hard disks are arranged in a descending order, wherein the temperatures of the hard disks at least comprise the highest temperature of the hard disks and adjacent values thereof in a data reading operation period;
Based on an bubbling ordering algorithm, carrying out ascending order on data reading operation time corresponding to the temperature of the hard disk;
Determining the data reading operation period based on the data reading operation time, wherein the data reading operation period is at least one; the parameters to be fitted are based on the data reading operation time corresponding to the highest temperature of the hard disk in any data reading operation period
And the average value of the data reading operation time corresponding to the highest temperature of the hard disk and the data reading operation time corresponding to the lowest temperature of the hard disk in the reading operation period is the parameter B to be fitted.
3. The method for generating a hard disk temperature inspection model according to claim 2, wherein fitting parameters ω and a to be fitted of the reference hard disk temperature inspection model comprises:
Based on the hard disk temperature and the hard disk reading operation time, obtaining a fitting result of the hard disk temperature and the hard disk reading operation time:
wherein y is a fitting result of the hard disk temperature and the hard disk reading operation time, r (x) is a reference function of the reference hard disk temperature inspection model, x represents the data reading operation time, r (x) =cos (x), k represents the numbers of r (x) and a, and a is a coefficient to be determined;
and deforming the relational expression between the hard disk temperature and the hard disk reading operation time to obtain:
wherein y i is the temperature of the hard disk corresponding to the ith data reading operation time;
and (3) performing deviation conduction on a k to obtain:
And performing matrix conversion on the obtained product to obtain:
M=[a1 … am]′
N=[y1 … yn]′
Wherein r 1(x1)…rm(xn) is linearly independent;
based on the matrix R, the matrix M and the matrix N, the following steps are obtained:
RTRM=RTN;
The method comprises the following steps:
M=(RTR)-1RTM;
And obtaining parameters omega and A to be fitted based on the matrix M, wherein M is a one-dimensional array containing two parameters, a first parameter in the one-dimensional array is omega, and a second parameter in the one-dimensional array is A.
4. The method for generating a hard disk temperature inspection model according to any one of claims 1 to 3, wherein obtaining a high-temperature frequency-reducing threshold of the hard disk comprises:
controlling the cooling device of the hard disk to the lower limit of cooling;
executing data writing operation on the hard disk, and acquiring the data writing operation performance of the hard disk in adjacent moments;
When the data writing operation performance of the hard disk in the adjacent time is not more than the preset data writing operation performance, any time in the adjacent time and the temperature of the hard disk corresponding to the time are obtained;
and defining the temperature of the hard disk corresponding to the moment as a high-temperature frequency-reducing threshold value of the hard disk.
5. The method for inspecting the temperature of the hard disk is characterized by comprising the following steps of:
Executing data reading operation on the hard disk according to a preset data reading operation time interval;
inputting the data reading operation time into a hard disk temperature inspection model generated based on the temperature inspection model generation method according to any one of claims 1 to 4 so as to obtain the hard disk temperature corresponding to the data reading operation time.
6. A hard disk temperature patrol model generating device for implementing the hard disk temperature patrol model generating method according to any one of claims 1-4, the device comprising:
The acquisition unit is used for acquiring a high-temperature frequency-reducing threshold value of the hard disk;
a data writing operation unit, configured to perform a data writing operation on the hard disk until the hard disk is full;
The data writing operation unit is further used for continuously executing data reading operation of at least one period on the hard disk according to a preset data reading operation time interval;
The acquisition unit is also used for acquiring the temperature of the hard disk at each data reading operation moment;
The model generating unit is used for generating the hard disk temperature inspection model based on the data reading operation time and the temperature of the hard disk at each data reading operation time.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
CN202211468675.XA 2022-11-22 Hard disk temperature inspection model generation and hard disk temperature inspection method and device Active CN115831167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211468675.XA CN115831167B (en) 2022-11-22 Hard disk temperature inspection model generation and hard disk temperature inspection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211468675.XA CN115831167B (en) 2022-11-22 Hard disk temperature inspection model generation and hard disk temperature inspection method and device

Publications (2)

Publication Number Publication Date
CN115831167A CN115831167A (en) 2023-03-21
CN115831167B true CN115831167B (en) 2024-06-21

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110289027A (en) * 2019-06-28 2019-09-27 深圳忆联信息系统有限公司 Storage particle method for excessive heating protection and device based on solid state hard disk
CN110659135A (en) * 2019-09-12 2020-01-07 苏州浪潮智能科技有限公司 RAID (redundant array of independent disks) inspection method and device, electronic equipment and readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110289027A (en) * 2019-06-28 2019-09-27 深圳忆联信息系统有限公司 Storage particle method for excessive heating protection and device based on solid state hard disk
CN110659135A (en) * 2019-09-12 2020-01-07 苏州浪潮智能科技有限公司 RAID (redundant array of independent disks) inspection method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110413227B (en) Method and system for predicting remaining service life of hard disk device on line
US8245060B2 (en) Memory object relocation for power savings
US8645734B2 (en) Power aware memory allocation
JP4896593B2 (en) Performance monitoring method, computer and computer system
US20080115014A1 (en) Method and apparatus for detecting degradation in a remote storage device
CN105247492B (en) Detection to the user behavior for using time series modeling
CN112684987A (en) Data classification storage method and device based on double-core intelligent electric meter
CN116088652A (en) Hard disk heat dissipation coordination control method, system, equipment, medium and storage server
US10705580B2 (en) Intelligent energy-optimization technique for computer datacenters
CN115795928A (en) Accelerated degradation test data processing method and device based on gamma process
RU2731321C2 (en) Method for determining a potential fault of a storage device
CN115831167B (en) Hard disk temperature inspection model generation and hard disk temperature inspection method and device
US7725285B2 (en) Method and apparatus for determining whether components are not present in a computer system
CN115831167A (en) Hard disk temperature inspection model generation method and device and hard disk temperature inspection method and device
CN112303811B (en) Processing method, device and system for air conditioner operation data, air conditioner and storage medium
CN110442531A (en) Reading performance method for improving, device and computer equipment based on solid state hard disk
CN113986142B (en) Disk fault monitoring method, device, computer equipment and storage medium
JP5708053B2 (en) Information processing apparatus, defragmentation method, and defragmentation program
CN116826669B (en) Device junction temperature protection method, device, equipment and storage medium
CN116820861B (en) Method and device for testing enterprise-level solid state disk garbage collection mechanism
US11868223B2 (en) Read-disturb-based read temperature information utilization system
CN116521490B (en) PC system health degree self-checking method, self-checking device, equipment and medium
Van Houdt On the cost of near-perfect wear leveling in flash-based SSDs
US11907564B2 (en) Method of and system for initiating garbage collection requests
CN112562774B (en) Storage device mounting method and device, computer device and storage medium

Legal Events

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