Temperature control method for solid state hard disk, solid state hard disk and storage medium

By obtaining the temperature of the solid state drive in real time and using the PID control algorithm to adaptively set the read and write delays, and dynamically controlling the read and write delays to cool down, the problem of performance degradation and input and output blocking caused by the rise in temperature of the solid state drive is solved, ensuring the normal operation of the hard drive. run.

CN118506815BActive Publication Date: 2024-10-15BIWIN STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962429.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-15
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

During high-performance operation, the temperature of the solid-state drive increases due to the increase in particle power. If the temperature is not cooled down in time, the reading and writing performance may be reduced or input and output may be blocked, or even the solid-state drive may be damaged.

Method used

By obtaining the temperature of the solid-state drive heating element in real time, the PID control algorithm is used to adaptively set the read and write delays according to temperature changes, and dynamically control the read and write delays to reduce the temperature and prevent input and output blockage caused by excessive temperature.

Benefits of technology

It effectively prevents the input and output from being blocked due to excessive temperature of flash memory particles, ensures the normal operation of the solid state drive, and avoids the solid state drive stopping working due to excessive temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506815B_ABST
    Figure CN118506815B_ABST
Patent Text Reader

Abstract

The present invention provides a temperature control method for a solid state hard disk, a solid state hard disk and a storage medium, and relates to the technical field of solid state hard disks. The method includes: obtaining the current temperature of a heating element in a solid state hard disk in real time; if the current temperature is greater than a first temperature control threshold and less than or equal to an I / O blocking temperature threshold, determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determining the control parameters based on a control algorithm; if the current temperature difference decreases, obtaining the temperature difference amplitude of the current temperature difference; if the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, determining the current read and write delay value according to the current temperature difference and the control parameter, and controlling the solid state hard disk to perform read and write delay based on the current read and write delay value. In this way, the control algorithm is used to dynamically control the read and write delay of the solid state hard disk according to the current temperature difference and the temperature difference amplitude of the heating element in the solid state hard disk, thereby controlling the temperature change while more accurately ensuring the performance of the solid state hard disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a temperature control method for a solid state hard disk, a solid state hard disk and a storage medium. Background Art

[0002] As the performance of SSDs continues to improve, the particle power is also increasing, and the temperature is naturally rising. The faster the read and write speed, the longer it lasts, and the faster the temperature rises. If the SSD is not cooled down in time, the read and write performance of the SSD will be severely reduced, or even the input and output will be blocked, and the SSD may be damaged. Summary of the invention

[0003] In view of this, the purpose of the present invention is to overcome the deficiencies in the prior art and provide a temperature control method for a solid state drive, a solid state drive and a storage medium, which are used to adjust the read and write delay of the solid state drive according to temperature changes by using a control algorithm while reducing the flash memory and the clock when the temperature reaches a threshold. The present invention provides the following technical solutions:

[0004] In a first aspect, the present invention provides a temperature control method for a solid state hard disk, the method comprising:

[0005] Get the current temperature of the heating element in the solid state drive in real time;

[0006] If the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determining the control parameter based on the control algorithm;

[0007] If the current temperature difference decreases, obtaining the temperature difference amplitude of the current temperature difference;

[0008] If the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, the current read and write delay value is determined according to the current temperature difference and the control parameter, and the solid state drive is controlled to perform read and write delays based on the current read and write delay value.

[0009] In one embodiment, determining the current read / write delay value according to the current temperature difference and the control parameter includes:

[0010] Determine a proportional control output value, an integral control output value, and a differential control output value according to the control parameter and the current temperature difference;

[0011] Determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value;

[0012] The sum of the current output value and the basic read / write delay value is determined as the current read / write delay value.

[0013] In one embodiment, the control parameters include a proportional gain parameter, an integral gain parameter, and a differential gain parameter, and the determining of the proportional control output value, the integral control output value, and the differential control output value according to the control parameters and the current temperature difference includes:

[0014] Determine the product value of the current temperature difference and the proportional gain parameter as the proportional control output value;

[0015] Determine a temperature difference sum value based on a plurality of current temperature differences acquired in real time, and determine a product value of the temperature difference sum value and the integral gain parameter as the integral control output value;

[0016] The temperature difference amplitude of the current temperature difference is determined, and the product value of the temperature difference amplitude and the differential gain parameter is determined as the differential control output value.

[0017] In one embodiment, after determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, the method further includes:

[0018] If the current temperature difference remains unchanged, the sum of the historical read-write delay value and the historical output value is determined as the increased historical read-write delay value; and the solid-state hard disk is controlled to perform read-write delay based on the increased historical read-write delay value;

[0019] If the current temperature difference increases, the difference between the historical read / write delay value and the historical output value is determined as the reduced historical read / write delay value; and the solid state drive is controlled to perform read / write delay based on the reduced historical read / write delay value;

[0020] Among them, the historical read and write delay value is the current read and write delay value determined last time by the solid state drive, the historical read and write delay value is calculated based on the historical output value, and the historical output value is the current output value determined last time by the solid state drive.

[0021] In one embodiment, after obtaining the temperature difference amplitude of the current temperature difference, the method further includes:

[0022] If the temperature difference variation is greater than the second variation threshold, the solid state hard disk I / O is controlled to be blocked.

[0023] In one embodiment, after obtaining the current temperature of the heating element in the solid state drive, the method further includes:

[0024] If the current temperature is greater than the second temperature control threshold and less than or equal to the first temperature control threshold, the solid state drive is controlled to perform read and write delays based on a preset fixed read and write delay value.

[0025] In one embodiment, after obtaining the current temperature of the heating element in the solid state drive, the method further includes:

[0026] If the current temperature is greater than the I / O blocking temperature threshold, the solid state drive I / O is controlled to be blocked.

[0027] In one embodiment, the control algorithm is a PID control algorithm.

[0028] In a second aspect, the present invention provides a temperature control device for a solid state hard disk, the device comprising:

[0029] A first acquisition module is used to acquire the current temperature of the heating element in the solid state drive in real time;

[0030] A determination module, if the current temperature is greater than a first temperature control threshold and less than or equal to an I / O blocking temperature threshold, determines a current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determines a control parameter based on a control algorithm;

[0031] A second acquisition module, configured to acquire a temperature difference amplitude of the current temperature difference if the current temperature difference decreases;

[0032] A control module, configured to determine a current read / write delay value according to the current temperature difference and the control parameter if the temperature difference amplitude is greater than a first amplitude threshold and less than or equal to a second amplitude threshold, and control the solid state drive to perform read / write delay based on the current read / write delay value;

[0033] The control module is also used to determine the proportional control output value, the integral control output value and the differential control output value according to the control parameters and the current temperature difference; determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value; and determine the sum of the current output value and the basic read-write delay value as the current read-write delay value.

[0034] In a third aspect, the present invention proposes a solid state drive, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the temperature control method of the solid state drive as described in the first aspect is implemented.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the temperature control method for a solid state hard disk as described in the first aspect.

[0036] The temperature control method, solid state hard disk and storage medium disclosed in the present invention obtain the current temperature of the heating element in the solid state hard disk in real time; if the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, the current temperature difference is determined in real time according to the current temperature and the I / O blocking temperature threshold, and the control parameter is determined based on the control algorithm; if the current temperature difference decreases, the temperature difference amplitude of the current temperature difference is obtained; if the temperature difference amplitude is greater than the first amplitude amplitude threshold and less than or equal to the second amplitude amplitude threshold, the current read and write delay value is determined according to the current temperature difference and the control parameter, and the solid state hard disk is controlled to perform read and write delay based on the current read and write delay value. In this way, the control algorithm is used, and the read and write delay of the solid state hard disk is dynamically controlled according to the current temperature difference and temperature difference amplitude of the heating element in the solid state hard disk, so as to achieve effective cooling of the solid state hard disk, greatly preventing the input and output from being blocked due to the excessive temperature of the flash memory particles, and finally causing the solid state hard disk to stop working.

[0037] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A schematic diagram showing a flow chart of a temperature control method for a solid state hard disk provided by the present invention;

[0040] Figure 2 A schematic diagram showing the three-level temperature control strategy of the solid state drive proposed by the present invention;

[0041] Figure 3 Another schematic diagram of the process flow of the temperature control method for a solid state hard disk provided by the present invention is shown;

[0042] Figure 4 Another schematic diagram of a process flow of the temperature control method of a solid state hard disk proposed by the present invention is shown;

[0043] Figure 5 A schematic diagram showing the read speed of a solid state hard disk with the current read and write delay value added according to the present invention;

[0044] Figure 6 A schematic diagram showing the read speed of a solid state hard disk without adding the current read and write delay value proposed by the present invention;

[0045] Figure 7 A schematic diagram showing the write speed of a solid state hard disk with the current read and write delay value added proposed by the present invention;

[0046] Figure 8 A schematic diagram showing the write speed of a solid state hard disk without adding the current read and write delay value proposed by the present invention; Fig. 9 A schematic structural diagram of a temperature control device for a solid state hard disk proposed by the present invention is shown.

[0047] Description of the accompanying drawings: 900 - temperature control device of solid state hard disk, 901 - acquisition module, 902 - determination module, 903 - judgment module, 904 - control module. DETAILED DESCRIPTION

[0048] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0049] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of the template are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0051] Example 1

[0052] The disclosed embodiment provides a temperature control method for a solid state hard disk, which is used to adaptively adjust the read and write delays of the solid state hard disk according to temperature changes by using a control algorithm while reducing flash memory and clock when the temperature reaches a threshold.

[0053] See also Figure 1 The temperature control method of the solid state hard disk includes steps S101 to S104, and each step is described in detail below.

[0054] Step S101, obtaining the current temperature of the heating element in the solid state drive in real time.

[0055] In this embodiment, the heating element includes a flash memory (NAND) and a central processing unit (CPU). Before obtaining the current temperature of the flash memory and the CPU in the solid state drive from the temperature sensor in real time, a first temperature control threshold value needs to be preset according to actual needs.

[0056] Step S102: If the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, determine the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determine the control parameters based on the control algorithm.

[0057] In this example, see Figure 2 , the first temperature control threshold can be 113°C, and the I / O blocking temperature threshold can be 125°C. When the current temperature of the flash memory and the CPU is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, the PID temperature control mechanism is triggered, and in order to prevent a sudden temperature increase, subsequent I / O read and write operations need to be performed based on the difference between the current temperature and the I / O blocking temperature threshold, that is, the current temperature difference. This can be regarded as the secondary temperature control strategy of the solid state drive.

[0058] In a specific embodiment, the control algorithm is a PID control algorithm.

[0059] In this embodiment, based on the proportional-integral-derivative algorithm (PID), the temperature parameters of the solid state drive are continuously adjusted until the most suitable control parameters are obtained. After the most suitable control parameters are obtained, the control parameters are used for subsequent calculations. In this way, the PID algorithm can be used to achieve adaptive temperature control of the solid state drive.

[0060] In a specific embodiment, after the real-time acquisition of the current temperature of the heating element in the solid-state hard disk, it also includes: if the current temperature is greater than a second temperature control threshold and less than or equal to the first temperature control threshold, the solid-state hard disk is controlled to perform read and write delays based on a preset fixed read and write delay value.

[0061] In this example, see Figure 2 , the second temperature control threshold can be 100°C. If the current temperature is greater than the second temperature control threshold and less than or equal to the first temperature control threshold, the solid-state drive is controlled to perform read and write delays based on the preset fixed read and write delay value. Among them, the fixed read and write delay value is the maximum performance of the solid-state drive at the temperature of the second temperature control threshold. At this time, it can be regarded as the first-level temperature control strategy of the solid-state drive. Among them, the second temperature control threshold is also determined according to actual needs, and this embodiment is not limited here.

[0062] In a specific embodiment, after obtaining the current temperature of the heating element in the solid state drive in real time, the method further includes: if the current temperature is greater than the I / O blocking temperature threshold, controlling the solid state drive I / O blocking.

[0063] In this example, see Figure 2 , the I / O blocking temperature threshold may be 125°C. If the current temperature is greater than the I / O blocking temperature threshold, the solid state drive I / O is controlled to be blocked and reading and writing are stopped. The I / O blocking temperature threshold is also determined according to actual needs and is not limited in this embodiment.

[0064] It should be noted that the current temperature of the CPU is generally higher than the current temperature of the flash memory at the same time. In addition, since the temperature of the solid-state hard disk should be maintained within the first temperature control threshold as a whole, if the current temperature of the flash memory is not higher than the first temperature control threshold, and the current temperature of the CPU is higher than the first temperature control threshold, then the current temperature of the heating element is also considered to be higher than the first temperature control threshold; similarly, if the current temperature of the flash memory is not higher than the second temperature control threshold, and the current temperature of the CPU is higher than the second temperature control threshold, then the current temperature of the heating element is also considered to be higher than the second temperature control threshold; if the current temperature of the flash memory is not higher than the I / O blocking temperature threshold, and the current temperature of the CPU is higher than the I / O blocking temperature threshold, then the current temperature of the heating element is also considered to be higher than the I / O blocking temperature threshold.

[0065] Step S103: if the current temperature difference decreases, then the temperature difference amplitude of the current temperature difference is obtained.

[0066] In this embodiment, if the current temperature difference Ek at a certain moment obtained in real time is smaller than the current temperature difference E(k-1) at the previous moment, that is, the current temperature at this time rises, then the temperature difference amplitude Dk of the current temperature difference is obtained, that is, Dk= E(k-1)-Ek. Then, the current temperature difference amplitude Dk is judged against the first amplitude threshold and the second amplitude threshold, and temperature control is performed based on the judgment result, so that the read and write performance of the solid state drive is controlled according to the specific temperature difference amplitude. Among them, the first amplitude threshold and the second amplitude threshold are set according to actual needs.

[0067] Step S104, if the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, determine the current read and write delay value according to the current temperature difference and the control parameter, and control the solid state drive to perform read and write delay based on the current read and write delay value.

[0068] In this embodiment, the first amplitude threshold can be 1, and the second amplitude threshold can be 3. When the temperature difference amplitude at this time is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, it can be known that the current temperature change of the heating element is small, and the current read and write delay value can be determined according to the current temperature difference and the control parameter, and the solid state drive can be controlled to read and write delay according to the current read and write delay value, which can more accurately guarantee the performance while controlling the temperature change, thereby controlling the read and write performance of the solid state drive. At this time, the current read and write delay value is determined according to the current temperature difference. In this way, when the current temperature is greater than the first temperature control threshold, and the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, there will be different current read and write delay values ​​under different current temperature differences. The solid state drive can also read and write delays based on different delay values ​​before reading and writing at different current temperatures, thereby achieving effective cooling of the solid state drive and avoiding the situation where the solid state drive stops working due to the continuous increase in the current temperature of the heating element. In other embodiments, the PID control algorithm can also be used under the primary temperature control strategy to keep the overall temperature of the solid state drive between the first temperature control threshold and the second temperature control threshold.

[0069] In a specific embodiment, after obtaining the temperature difference variation of the current temperature difference, the method further includes: if the temperature difference variation is greater than the second variation threshold, controlling the solid state hard disk I / O to be blocked.

[0070] In this embodiment, if the current temperature difference amplitude is greater than the second amplitude threshold, it can be known that the current temperature of the heating element has increased suddenly. To avoid the heating element being too high, the solid state drive is directly controlled to block I / O and stop reading and writing, thereby cooling the solid state drive.

[0071] See also Figure 3 In a specific embodiment, determining the current read / write delay value according to the current temperature difference and the control parameter includes steps S1041 to S1043, and each step is described in detail below.

[0072] Step S1041, determining a proportional control output value, an integral control output value and a differential control output value according to the control parameter and the current temperature difference.

[0073] In this embodiment, the proportional control output value pout, the integral control output value iout and the differential control output value dout are calculated according to the control parameters and the current temperature difference.

[0074] See also Figure 4In a specific embodiment, the control parameters include proportional gain parameters, integral gain parameters and differential gain parameters. The proportional control output value, integral control output value and differential control output value are determined according to the control parameters and the current temperature difference, including steps S401 to S403. The above steps are described in detail below.

[0075] Step S401: determine the product value of the current temperature difference and the proportional gain parameter as the proportional control output value.

[0076] In this embodiment, the control parameters include a proportional gain parameter Kp, an integral gain parameter Ki, and a differential gain parameter Kd. Generally, the above parameters are different for different flash memory types, and need to be continuously debugged based on the PID control algorithm and the current temperature of the solid state drive in a temperature box environment until the most suitable parameters are obtained.

[0077] Multiply the current temperature difference Ek by the proportional gain parameter Kp to obtain the proportional control output value pout, that is, pout = Ek×Kp.

[0078] Step S402, determining a temperature difference sum value based on a plurality of current temperature differences acquired in real time, and determining a product value of the temperature difference sum value and the integral gain parameter as the integral control output value.

[0079] In this embodiment, when the current temperature difference Ek at this moment decreases, it is necessary to add the current temperature difference Ek at this moment and the current temperature differences [E1, E2...E(k-1)] of all moments acquired in real time before this moment to obtain the temperature difference sum Sk, that is, Sk=E1+E2+E3+...+E(k-1)+Ek. Then, the temperature difference sum Sk and the integral gain parameter Ki are added to obtain the integral control output value iout, that is, iout=Sk×Ki.

[0080] Step S403: determine the product of the temperature difference amplitude and the differential gain parameter as the differential control output value.

[0081] In this embodiment, the current temperature difference amplitude Dk and the differential gain parameter Kd are combined to obtain the differential control output value dout, that is, dout=Dk×Kd.

[0082] Step S1042: determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value.

[0083] In this embodiment, the sum of the proportional control output value pout, the integral control output value iout and the differential control output value dout is taken as the current output value output, that is, intput=pout+iout+dout. output is an adaptive value outputted by a temperature difference change.

[0084] It should be noted that when the appropriate control parameters are debugged, a corresponding optimal output value will be obtained, which is the current output value under the current temperature difference. When calculating the current read and write delay value next time, the current output value is calculated based on the debugged control parameters.

[0085] Step S1043: determine the sum of the current output value and the basic read / write delay value as the current read / write delay value.

[0086] In this embodiment, the basic read-write delay value Base is the maximum read-write performance of the solid-state drive at the temperature of the first temperature control threshold. The sum of the current output value output and the basic read-write delay value Base is determined as the current read-write delay value. At this time, after the current read-write delay value under the current temperature difference is calculated, the read-write performance of the solid-state drive is controlled based on the read-write delay value. In this way, while reducing the clock frequency of NAND and CPU to reduce heat, the control parameters are used to control the read-write delay of the solid-state drive, and the read-write delay of the solid-state drive can be adaptively adjusted according to temperature changes, thereby controlling the read-write performance of the solid-state drive, and being able to more accurately guarantee performance while controlling temperature changes, thereby achieving effective cooling of the solid-state drive.

[0087] See also Figure 5 From "ts_cpu: 114ts_nand: 99", we can know that the CPU temperature in the SSD has exceeded the first temperature control threshold (113°C) and has not reached the I / O blocking temperature threshold (125°C); from "rt: 1074, pt: 2074", we can know that the current read and write delay value "1074 microseconds" calculated according to the CPU temperature has been set; and it can be seen that after setting the current read and write delay value, the read speed of the SSD is "372.0MB / Sec".

[0088] See also Figure 6 From "ts_cpu: 113ts_nand: 100", we can know that the CPU temperature in the solid state drive does not exceed the first temperature control threshold (113°C) and the read and write delay is not set; at this time, the read speed of the solid state drive is "478.0MB / Sec".

[0089] Combination Figure 5 and Figure 6 It is known that in Figure 5 The temperature of the solid state drive exceeds the first temperature control threshold, and Figure 6When the temperature of the solid state drive does not exceed the first temperature control threshold, Figure 5 The SSD read speed (372.0MB / Sec) after adding read and write delay is less than Figure 6 The read speed of the SSD without adding read / write delay (478.0MB / Sec) shows that adding read / write delay according to the current temperature can effectively reduce the read speed of the SSD, thereby reducing the temperature of the SSD and improving the performance of the SSD.

[0090] See also Figure 7 From "ts_cpu: 115ts_nand: 102", we can know that the CPU temperature in the SSD has exceeded the first temperature control threshold (113°C) and has not reached the I / O blocking temperature threshold (125°C); from "rt: 1088, pt: 2088", we can know that the current read and write delay value "1088 microseconds" calculated according to the CPU temperature has been set; and it can be seen that after setting the current read and write delay value, the write speed of the SSD is "34.0MB / Sec".

[0091] See also Figure 8 From "ts_cpu: 112ts_nand: 99", we can know that the CPU temperature in the solid-state drive does not exceed the first temperature control threshold (113°C) at this time, and the read and write delays are not set; at this time, the write speed of the solid-state drive is "80.0MB / Sec".

[0092] Combination Figure 7 and Figure 8 It is known that in Figure 7 The temperature of the solid state drive exceeds the first temperature control threshold, and Figure 8 When the temperature of the solid state drive does not exceed the first temperature control threshold, Figure 7 The SSD write speed (34.0MB / Sec) after adding read and write delay is less than Figure 8 The write speed of the SSD without adding read / write delay (80.0MB / Sec) can be seen. It can be seen that adding read / write delay according to the current temperature can effectively reduce the write speed of the SSD, thereby reducing the temperature of the SSD and improving the performance of the SSD.

[0093] In a specific embodiment, after determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, it also includes: if the current temperature difference remains unchanged, the sum of the historical read and write delay value and the historical output value is determined as the increased historical read and write delay value; and based on the increased historical read and write delay value, the solid-state hard disk is controlled to perform read and write delay; if the current temperature difference increases, the difference between the historical read and write delay value and the historical output value is determined as the reduced historical read and write delay value; and based on the reduced historical read and write delay value, the solid-state hard disk is controlled to perform read and write delay; wherein, the historical read and write delay value is the current read and write delay value determined last time by the solid-state hard disk, the historical read and write delay value is calculated based on the historical output value, and the historical output value is the current output value determined last time by the solid-state hard disk.

[0094] In this embodiment, if the current temperature difference at a certain moment obtained in real time is unchanged compared with the current temperature difference at the previous moment, that is, the current temperature of the heating element remains unchanged at this time, then it is necessary to reduce the read and write performance of the solid-state hard disk a little, that is, increase the historical read and write delay value of the solid-state hard disk. Specifically, the historical output value of the solid-state hard disk is added to the historical read and write delay value to obtain the increased historical read and write delay value. Then, based on the increased historical read and write delay value, the solid-state hard disk is controlled to perform read and write delays, thereby reducing the temperature of the solid-state hard disk. In this way, just accumulating a little output value can not only achieve cooling of the solid-state hard disk, but also will not have much impact on the read and write performance of the solid-state hard disk.

[0095] If the current temperature difference at a certain moment obtained in real time is larger than the current temperature difference at the previous moment, that is, the current temperature of the heating element decreases at this time, then the read and write performance of the solid-state drive can be improved at this time, that is, the historical read and write delay value of the solid-state drive can be reduced. Specifically, the historical read and write delay value is subtracted from the historical output value to obtain the reduced historical read and write delay value. Then, based on the reduced historical read and write delay value, the solid-state drive is controlled to perform read and write delay.

[0096] It should be noted that each time the solid-state drive determines the current output value and the current read-write delay value and performs corresponding read-write delays, the current output value and the current read-write delay value will become the historical output value and the historical read-write delay value of the solid-state drive. In other words, the historical output value and the historical read-write delay value of the solid-state drive refer to the current output value and the current read-write delay value determined by the solid-state drive last time.

[0097] The temperature control method of the solid state hard disk proposed in this embodiment obtains the current temperature of the heating element in the solid state hard disk in real time; if the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, the current temperature difference is determined in real time according to the current temperature and the I / O blocking temperature threshold, and the control parameter is determined based on the control algorithm; if the current temperature difference decreases, the temperature difference amplitude of the current temperature difference is obtained; if the temperature difference amplitude is greater than the first amplitude amplitude threshold and less than or equal to the second amplitude amplitude threshold, the current read and write delay value is determined according to the current temperature difference and the control parameter, and the solid state hard disk is controlled to perform read and write delay based on the current read and write delay value. In this way, the control algorithm is used, and the read and write delay of the solid state hard disk is dynamically controlled according to the current temperature difference and temperature difference amplitude of the heating element in the solid state hard disk, which can more accurately guarantee the performance while controlling the temperature change, thereby achieving effective cooling of the solid state hard disk, greatly preventing the input and output from being blocked due to the excessive temperature of the flash memory particles, and ultimately causing the solid state hard disk to stop working.

[0098] Example 2

[0099] In addition, the present disclosure provides a temperature control device 900 for a solid state hard disk, see Fig. 9 , the device comprises:

[0100] The acquisition module 901 is used to acquire the current temperature of the heating element in the solid state drive in real time;

[0101] A determination module 902 is used to determine a current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold if the current temperature is greater than a first temperature control threshold and less than or equal to an I / O blocking temperature threshold, and determine a control parameter based on a control algorithm; the control algorithm is a PID control algorithm;

[0102] The judgment module 903 is used to obtain the temperature difference amplitude of the current temperature difference if the current temperature difference decreases;

[0103] The control module 904 is used to determine the current read and write delay value according to the current temperature difference and the control parameter if the temperature difference variation is greater than the first variation threshold and less than or equal to the second variation threshold, and control the solid state drive to perform read and write delay based on the current read and write delay value.

[0104] Optionally, the control module 904 is also used to determine the proportional control output value, the integral control output value and the differential control output value according to the control parameters and the current temperature difference; determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value; and determine the sum of the current output value and the basic read and write delay value as the current read and write delay value.

[0105] Optionally, the control module 904 is also used for the control parameters including a proportional gain parameter, an integral gain parameter and a differential gain parameter, and the proportional control output value, the integral control output value and the differential control output value are determined according to the control parameters and the current temperature difference, including: determining the product value of the current temperature difference and the proportional gain parameter as the proportional control output value; determining the temperature difference sum value based on multiple current temperature differences acquired in real time, and determining the product value of the temperature difference sum value and the integral gain parameter as the integral control output value; determining the temperature difference amplitude of the current temperature difference, and determining the product value of the temperature difference amplitude and the differential gain parameter as the differential control output value.

[0106] Optionally, the judgment module 903 is also used to determine the sum of the historical read-write delay value and the historical output value as the increased historical read-write delay value if the current temperature difference remains unchanged; and control the solid-state hard disk to perform read-write delay based on the increased historical read-write delay value; if the current temperature difference increases, determine the difference between the historical read-write delay value and the historical output value as the reduced historical read-write delay value; and control the solid-state hard disk to perform read-write delay based on the reduced historical read-write delay value; wherein, the historical read-write delay value is the current read-write delay value determined last by the solid-state hard disk, the historical read-write delay value is calculated based on the historical output value, and the historical output value is the current output value determined last by the solid-state hard disk.

[0107] Optionally, the control module 904 is further configured to control the solid state drive I / O to be blocked if the temperature difference variation is greater than the second variation threshold.

[0108] Optionally, the determination module 902 is further used to control the solid-state hard disk to perform read and write delays based on a preset fixed read and write delay value if the current temperature is greater than a second temperature control threshold and less than or equal to the first temperature control threshold.

[0109] Optionally, the determination module 902 is further configured to control I / O blocking of the solid state drive if the current temperature is greater than the I / O blocking temperature threshold.

[0110] The device provided in the embodiment of the present disclosure can execute the steps of the temperature control method of the solid state hard disk provided in Example 1, which will not be described again to avoid repetition.

[0111] The temperature control device of the solid state hard disk proposed in this embodiment, if the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, then the current temperature difference is determined in real time according to the current temperature and the I / O blocking temperature threshold, and the control parameter is determined based on the control algorithm; if the current temperature difference decreases, the temperature difference amplitude of the current temperature difference is obtained; if the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, then the current read and write delay value is determined according to the current temperature difference and the control parameter, and the solid state hard disk is controlled to perform read and write delay based on the current read and write delay value. In this way, by using the control algorithm and dynamically controlling the read and write delay of the solid state hard disk according to the current temperature difference and temperature difference amplitude of the heating element in the solid state hard disk, the performance can be more accurately guaranteed while controlling the temperature change, thereby achieving effective cooling of the solid state hard disk, greatly preventing the input and output from being blocked due to the excessive temperature of the flash memory particles, and ultimately causing the solid state hard disk to stop working.

[0112] Example 3

[0113] In addition, an embodiment of the present disclosure provides a solid state drive, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the temperature control method of the solid state drive described in Example 1 is implemented.

[0114] The solid state drive provided in the embodiment of the present disclosure can execute the steps of the temperature control method for the solid state drive provided in Example 1, which will not be described again to avoid repetition.

[0115] Example 4

[0116] The embodiment of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the temperature control method of the solid state hard disk described in the first embodiment is implemented.

[0117] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0118] The computer-readable storage medium provided in this embodiment can implement the temperature control method of the solid state hard disk provided in Example 1, and will not be described again here to avoid repetition.

[0119] In all examples shown and described herein, any specific values ​​should be interpreted as merely exemplary and not as limiting, and thus other examples of the exemplary embodiments may have different values.

[0120] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0121] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A temperature control method for a solid state hard disk, characterized in that: The method comprises: Get the current temperature of the heating element in the solid state drive in real time; If the current temperature is greater than the first temperature control threshold and less than or equal to the I / O blocking temperature threshold, determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determining the control parameter based on the control algorithm; If the current temperature difference decreases, obtaining the temperature difference amplitude of the current temperature difference; If the temperature difference amplitude is greater than the first amplitude threshold and less than or equal to the second amplitude threshold, determine the current read / write delay value according to the current temperature difference and the control parameter, and control the solid state drive to perform read / write delay based on the current read / write delay value; The determining the current read / write delay value according to the current temperature difference and the control parameter includes: Determine a proportional control output value, an integral control output value, and a differential control output value according to the control parameter and the current temperature difference; Determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value; The sum of the current output value and the basic read / write delay value is determined as the current read / write delay value.

2. The temperature control method of a solid state hard disk according to claim 1, characterized in that: The control parameters include a proportional gain parameter, an integral gain parameter, and a differential gain parameter, and the determining of the proportional control output value, the integral control output value, and the differential control output value according to the control parameters and the current temperature difference includes: Determine the product value of the current temperature difference and the proportional gain parameter as the proportional control output value; Determine a temperature difference sum value based on a plurality of current temperature differences acquired in real time, and determine a product value of the temperature difference sum value and the integral gain parameter as the integral control output value; The temperature difference amplitude of the current temperature difference is determined, and the product value of the temperature difference amplitude and the differential gain parameter is determined as the differential control output value.

3. The temperature control method of a solid state hard disk according to claim 1, characterized in that: After determining the current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, the method further includes: If the current temperature difference remains unchanged, the sum of the historical read-write delay value and the historical output value is determined as the increased historical read-write delay value; and the solid-state hard disk is controlled to perform read-write delay based on the increased historical read-write delay value; If the current temperature difference increases, the difference between the historical read / write delay value and the historical output value is determined as the reduced historical read / write delay value; and the solid state drive is controlled to perform read / write delay based on the reduced historical read / write delay value; Among them, the historical read and write delay value is the current read and write delay value determined last time by the solid state drive, the historical read and write delay value is calculated based on the historical output value, and the historical output value is the current output value determined last time by the solid state drive.

4. The temperature control method of a solid state hard disk according to claim 1, characterized in that: After obtaining the temperature difference amplitude of the current temperature difference, the method further includes: If the temperature difference variation is greater than the second variation threshold, the solid state hard disk I / O is controlled to be blocked.

5. The temperature control method of a solid state hard disk according to claim 1, characterized in that: After obtaining the current temperature of the heating element in the solid state drive, the method further includes: If the current temperature is greater than the second temperature control threshold and less than or equal to the first temperature control threshold, the solid state drive is controlled to perform read and write delays based on a preset fixed read and write delay value.

6. The temperature control method of a solid state hard disk according to claim 1, characterized in that: After obtaining the current temperature of the heating element in the solid state drive, the method further includes: If the current temperature is greater than the I / O blocking temperature threshold, the solid state drive I / O is controlled to be blocked.

7. The temperature control method of a solid state hard disk according to claim 1, characterized in that: The control algorithm is a PID control algorithm.

8. A temperature control device for a solid state hard disk, characterized in that: The device comprises: A first acquisition module is used to acquire the current temperature of the heating element in the solid state drive in real time; A determination module, if the current temperature is greater than a first temperature control threshold and less than or equal to an I / O blocking temperature threshold, determines a current temperature difference in real time according to the current temperature and the I / O blocking temperature threshold, and determines a control parameter based on a control algorithm; A second acquisition module, configured to acquire a temperature difference amplitude of the current temperature difference if the current temperature difference decreases; A control module, configured to determine a current read / write delay value according to the current temperature difference and the control parameter if the temperature difference amplitude is greater than a first amplitude threshold and less than or equal to a second amplitude threshold, and control the solid state drive to perform read / write delay based on the current read / write delay value; The control module is also used to determine the proportional control output value, the integral control output value and the differential control output value according to the control parameters and the current temperature difference; determine the sum of the proportional control output value, the integral control output value and the differential control output value as the current output value; and determine the sum of the current output value and the basic read-write delay value as the current read-write delay value.

9. A solid state hard disk, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the temperature control method of the solid state hard disk according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: It stores a computer program, and when the computer program is executed by a processor, the temperature control method of the solid state hard disk as described in any one of claims 1 to 7 is implemented.