CN112596680A - SSD temperature control performance balancing method and device, computer equipment and storage medium - Google Patents

SSD temperature control performance balancing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112596680A
CN112596680A CN202011560279.0A CN202011560279A CN112596680A CN 112596680 A CN112596680 A CN 112596680A CN 202011560279 A CN202011560279 A CN 202011560279A CN 112596680 A CN112596680 A CN 112596680A
Authority
CN
China
Prior art keywords
performance
temperature
solid state
state disk
intermediate temperature
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.)
Pending
Application number
CN202011560279.0A
Other languages
Chinese (zh)
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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202011560279.0A priority Critical patent/CN112596680A/en
Publication of CN112596680A publication Critical patent/CN112596680A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a method and a device for balancing SSD temperature control performance, computer equipment and a storage medium, wherein the method comprises the steps of obtaining SMART temperature of a solid state disk in normal read-write operation to obtain initial temperature; judging whether the initial temperature exceeds a first threshold value; if the current performance exceeds the first set performance, reducing the IO performance of the solid state disk to the first set performance; acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature; judging whether the first intermediate temperature reaches a second threshold value; if so, recovering the IO performance of the solid state disk to the normal read-write performance, and acquiring the corresponding SMART temperature to obtain a second intermediate temperature; judging whether the second intermediate temperature is increased back relative to the first intermediate temperature; and if the current state is upgraded, the IO performance of the solid state disk is reduced again. According to the invention, the performance is balanced and regulated according to the SMART temperature of the solid state disk, so that the effect of flexibly balancing the temperature and the performance is achieved, and the user experience is improved.

Description

SSD temperature control performance balancing method and device, computer equipment and storage medium
Technical Field
The invention relates to a solid state disk, in particular to a method and a device for balancing SSD temperature control performance, computer equipment and a storage medium.
Background
The NVMe standard protocol provides a basic method for temperature control, which reduces read-write performance when the temperature reaches a preset threshold value, so that the temperature of an SSD (Solid State Disk) does not rise or slowly fall any more, to mitigate the negative temperature effect caused by high performance, as shown in fig. 1, the normal read-write performance of the SSD is the best performance, temperature inspection needs to be performed at regular intervals inside the SSD, and when the SMART temperature of the Solid State Disk is checked to exceed the preset threshold value, the read-write performance is reduced to the thermal performance, so that the temperature of the SSD gradually stops rising, and then falls back to a safe temperature range; and when the SMART temperature of the solid state disk is detected to be reduced to another threshold value, the SSD recovers to normal read-write performance.
The temperature control method is simple to implement, the working temperature of the SSD can be effectively controlled under general conditions, but the performance shock caused by the temperature rise can reduce the user experience in the actual use process; furthermore, if the SSD is constantly in a high temperature condition due to ambient temperature or ventilation, damage to the SSD device may occur.
Therefore, a new method is needed to be designed to achieve balanced regulation and control of performance according to the SMART temperature of the solid state disk, so that the effect of flexibly balancing the temperature and the performance is achieved, and user experience is improved.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a device for balancing the temperature control performance of an SSD, computer equipment and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the SSD temperature control performance balancing method comprises the following steps:
acquiring SMART temperature of the solid state disk in normal read-write operation to obtain initial temperature;
judging whether the initial temperature exceeds a first threshold value;
if the initial temperature exceeds a first threshold value, reducing the IO performance of the solid state disk to a first set performance;
acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature;
judging whether the first intermediate temperature reaches a second threshold value;
if the first intermediate temperature reaches a second threshold value, recovering the IO performance of the solid state disk to normal read-write performance, and acquiring a corresponding SMART temperature to obtain a second intermediate temperature;
judging whether the second intermediate temperature is increased back relative to the first intermediate temperature;
and if the second intermediate temperature rises back relative to the first intermediate temperature, reducing the IO performance of the solid state disk again to drive the solid state disk to be in a safe state.
The further technical scheme is as follows: after the determining whether the second intermediate temperature rises back relative to the first intermediate temperature, the method further includes:
and if the second intermediate temperature does not rise back relative to the first intermediate temperature, entering an end step.
The further technical scheme is as follows: reduce solid state disk's IO performance to first settlement performance, include:
and adjusting IO idle parameters of the solid state disk, and reducing the IO performance of the solid state disk to a first set performance according to the IO idle parameters.
The further technical scheme is as follows: before the determining whether the first intermediate temperature reaches the second threshold, the method further includes:
judging whether the first intermediate temperature falls back relative to the initial temperature;
if the first intermediate temperature does not fall back relative to the initial temperature, keeping the IO performance of the solid state disk at a first set performance, acquiring a corresponding SMART temperature, updating the first intermediate temperature according to the acquired SMART temperature, and judging whether the first intermediate temperature reaches a second threshold value or not;
and if the first intermediate temperature falls back relative to the initial temperature, executing the judgment to judge whether the first intermediate temperature reaches a second threshold value.
The further technical scheme is as follows: reducing the IO performance of the solid state disk again to drive the solid state disk to perform a security state, including:
the IO performance of the solid state disk in normal read-write operation is reduced to a second set performance;
reducing the IO performance of the solid state disk to a third set performance, and acquiring a corresponding SMART temperature to obtain a third intermediate temperature;
judging whether the third intermediate temperature is reduced to a third threshold value;
and if the third intermediate temperature is reduced to a third threshold value, recovering the IO performance of the solid state disk to a second set performance, acquiring the corresponding SMART temperature to update the initial temperature, and executing the judgment of whether the initial temperature exceeds the first threshold value.
The further technical scheme is as follows: the second set performance is 60% of the IO performance of the solid state disk during normal read/write operations.
The further technical scheme is as follows: the third set point performance is 30% of the second performance.
The invention also provides a device for balancing the temperature control performance of the SSD, which comprises:
the initial temperature acquisition unit is used for acquiring the SMART temperature of the solid state disk in normal read-write operation so as to obtain an initial temperature;
the first judging unit is used for judging whether the initial temperature exceeds a first threshold value;
the first reducing unit is used for reducing the IO performance of the solid state disk to a first set performance if the initial temperature exceeds a first threshold;
the first intermediate temperature acquisition unit is used for acquiring the corresponding SMART temperature when the IO performance of the solid state disk is reduced so as to obtain a first intermediate temperature;
a second judging unit, configured to judge whether the first intermediate temperature reaches a second threshold;
the recovery unit is used for recovering the IO performance of the solid state disk to the normal read-write performance and acquiring the corresponding SMART temperature to obtain a second intermediate temperature if the first intermediate temperature reaches a second threshold value;
a third judging unit configured to judge whether the second intermediate temperature rises back relative to the first intermediate temperature;
and the secondary reduction unit is used for reducing the IO performance of the solid state disk again to drive the solid state disk to perform a safety state if the second intermediate temperature is increased back to the first intermediate temperature.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the method and the device, the SMART temperature of the solid state disk during read-write operation is acquired and judged, when the SMART temperature exceeds a first threshold value, the IO performance is recovered after the IO performance is reduced to a second threshold value, and when the IO performance is recovered, the temperature rises immediately, the IO performance is reduced, so that the solid state disk is adjusted to enter a safe state, balanced regulation and control of the performance according to the SMART temperature of the solid state disk are realized, the effect of flexibly balancing the temperature and the performance is achieved, and the user experience is improved.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a graph of prior art temperature management;
fig. 2 is a schematic view of an application scenario of the SSD temperature control performance balancing method according to the embodiment of the invention;
fig. 3 is a schematic flowchart of a method for balancing SSD temperature control performance according to an embodiment of the present invention;
FIG. 4 is a sub-flow diagram of a SSD temperature control performance balancing method according to an embodiment of the present invention;
FIG. 5 is a graph of performance adjustment provided by an embodiment of the present invention;
FIG. 6 is a graph of performance processing from a low temperature ramp to a high temperature provided by an embodiment of the present invention;
FIG. 7 is a graph of performance processing at high temperatures for extended periods of time provided by an embodiment of the present invention;
FIG. 8 is a schematic flow chart of a method for balancing SSD temperature control performance according to another embodiment of the present invention;
FIG. 9 is a schematic block diagram of an SSD temperature control performance balancing apparatus provided by an embodiment of the present invention;
fig. 10 is a schematic block diagram of a secondary reduction unit of the SSD temperature control performance balancing apparatus provided in the embodiment of the invention;
FIG. 11 is a schematic block diagram of an SSD temperature control performance balancing apparatus provided by another embodiment of the present invention;
FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic view of an application scenario of the SSD temperature control performance balancing method according to the embodiment of the invention. Fig. 2 is a schematic flowchart of a method for balancing SSD temperature control performance according to an embodiment of the present invention. The SSD temperature control performance balancing method is applied to a server. This server carries out the data interaction with solid state disk, and the server acquires the SMART temperature when solid state disk is in read-write operation in real time to reduce solid state disk IO performance when the SMART temperature exceeds first threshold value, appear going up and down repeatedly of SMART temperature when resuming solid state disk IO performance after falling SMART temperature back, then carry out the safe management and control of temperature, realize taking into account temperature and performance balance's processing simultaneously in control SSD temperature, the bad user experience influence that arouses when reducing the temperature management and control.
Referring to fig. 5, when the solid state disk performs read/write operations, that is, the solid state disk is forced to be in an idle state during IO read/write, processing of any IO command is stopped, so as to achieve the purpose of reducing read/write performance. Read-write performance can be accurately adjusted by adjusting the ratio of the processing time of the IO in the idle state to the processing time of the IO command, when the temperature is low, the SSD is in a full-speed running state, and the IO is always in a busy state; be in the control by temperature change needs, when carrying out the performance and slowly descending, can be through the time proportion that real-time adjustment IO is in busy state and IO is in idle state, this proportion is that IO is in the time of busy state/(IO is in the time of busy state + IO is in idle state), the concrete proportion of performance promptly to accurate regulation and control performance, control IO performance slowly descends, and final balance is about 50%, and then reaches SSD temperature control performance's balance.
Fig. 3 is a schematic flowchart of a method for balancing SSD temperature control performance according to an embodiment of the present invention. As shown in fig. 3, the method includes the following steps S110 to S180.
S110, acquiring SMART temperature of the solid state disk in normal read-write operation to obtain initial temperature.
In this embodiment, the initial temperature refers to a SMART temperature when the solid state disk performs a read/write test operation in a low temperature state and the Performance is in a normal state, and the normal read/write operation refers to a situation when the solid state disk performs the read/write test operation in the low temperature state and the Performance is in the normal state, and is marked as Best Performance.
And S120, judging whether the initial temperature exceeds a first threshold value.
In this embodiment, the first Threshold is a temperature Threshold set according to an actual situation, and when the acquired SMART temperature exceeds the first Threshold, the temperature control performance balancing function is started, and the first Threshold is labeled as Thermal Threshold.
In this embodiment, this step is mainly performed to determine whether the initial temperature exceeds the first threshold for the first time, and since there is a subsequent second ramp after the IO performance is reduced, a non-first ramp may be separately adjusted according to an actual situation, or a processing manner consistent with the first threshold exceeding mode may be set.
And S130, if the initial temperature exceeds a first threshold, reducing the IO performance of the solid state disk to a first set performance.
In this embodiment, the first setting performance is half of the read-write performance of the solid state disk when the initial temperature does not exceed the first threshold.
Specifically, the IO idle parameter of the solid state disk is adjusted, and the IO performance of the solid state disk is reduced to a first set performance according to the IO idle parameter.
In this embodiment, the IO idle parameter refers to a ratio of the processing time of the IO command to the IO idle state. The first threshold is a temperature control threshold set according to actual conditions, and when the SMART temperature exceeds the first threshold, the temperature control performance needs to be balanced.
As shown in fig. 6, specifically, when the temperature rises from low temperature to the first threshold for the first time, the temperature control performance balancing function is started, the IO idle parameter is adjusted in real time according to the time difference of entering the temperature control performance balancing state, and the IO performance is slowly decreased to 50% of the SMART temperature when the solid state disk is in the low temperature state for performing the read/write test operation and the performance is in the normal state, although this percentage may be adjusted according to the actual situation.
Of course, when the temperature ramps up from low temperature to the first threshold multiple times, the decrease may be used when the recovery performance ramps up to the first threshold after not decreasing the performance.
S140, acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature.
In the present embodiment, the first intermediate temperature refers to a SMART temperature at which IO performance of the solid state disk is reduced.
S150, judging whether the first intermediate temperature reaches a second threshold value.
In this embodiment, the second threshold is the first threshold minus 3 ℃, and in other embodiments, the second threshold may also be the first threshold minus other values.
If the first intermediate temperature does not reach the second threshold, the step S140 is executed;
and S160, if the first intermediate temperature reaches a second threshold value, recovering the IO performance of the solid state disk to the normal read-write performance, and acquiring the corresponding SMART temperature to obtain a second intermediate temperature. When the temperature falls back to the first threshold value of-3 ℃, the read-write performance is recovered to be the normal read-write performance; the 3 ℃ non-constant value can be set as the difference parameter to other values.
In this embodiment, the second intermediate temperature is a SMART temperature at which the IO performance of the solid state disk is reduced and then the IO performance of the solid state disk is restored to the normal read/write performance. The second intermediate temperature is obtained to verify whether the temperature will rise immediately after the IO performance is recovered, and to determine whether the SSD is always at a higher temperature due to the environmental temperature or ventilation.
And S170, judging whether the second intermediate temperature is increased back relative to the first intermediate temperature.
If it is determined whether the second intermediate temperature has risen back relative to the first intermediate temperature, it can be verified whether the following occurs: the SMART temperature slowly decreases when the IO performance decreases but immediately rises after the IO performance recovers, the temperature repeatedly rises and falls, and the SSD is in a relatively high-temperature state; when this occurs, the performance adjustment IO cannot meet the requirement for temperature control performance balance, and the performance needs to be adjusted again.
In the embodiment, it is verified that the SMART temperature slowly decreases when the IO performance decreases but immediately increases after the IO performance recovers, and the temperature repeatedly increases and decreases; in other embodiments, the IO performance of the solid state disk may be reduced again after the temperature is set to rise and fall repeatedly for a period of time, so as to drive the solid state disk to perform the security state, and the actual selection may be determined according to the actual situation.
And S180, if the second intermediate temperature is increased back to the first intermediate temperature, reducing the IO performance of the solid state disk again to drive the solid state disk to be in a safe state.
In an embodiment, referring to fig. 4, the step S180 may include steps S181 to S184.
And S181, reducing the IO performance of the solid state disk in normal read-write operation to a second set performance.
In this embodiment, the second set Performance is 60% of the IO Performance of the solid state disk during normal read/write operations, that is, Safety Best Performance; specifically, the second setting performance is 60% of the IO performance during normal read/write operations, and of course, in other embodiments, the above-mentioned 60% may be other values, which may be determined according to actual situations.
S182, reducing the IO performance of the solid state disk to a third set performance, and acquiring the corresponding SMART temperature to obtain a third intermediate temperature.
In the present embodiment, the third setting Performance refers to 30% of the second setting Performance, that is, the third setting Performance is 30% of the second Performance, that is, Safety Performance. Of course, in other embodiments, the above-mentioned 30% may be other values, which may be determined according to actual situations.
As shown in fig. 7, after the period when the SMART temperature is at the relatively high temperature is counted for a certain period, controlling the temperature to enter the safe state becomes a primary consideration, and this period may be referred to as a safe state period, and the normal Performance of this period is adjusted to 60% of the IO Performance during normal read/write operations, i.e., 60% of Best Performance, and this parameter is adjustable, so that the IO Performance of the solid state disk, i.e., Thermal Performance, is correspondingly adjusted to 30% of the normal Performance, i.e., 30% of the second setting Performance.
And S183, judging whether the third intermediate temperature is reduced to a third threshold value.
In this embodiment, the third Threshold refers to a Threshold of a set Safety state, i.e., Safety Exit Threshold, and this value may be set according to actual situations.
And S184, if the third intermediate temperature is reduced to a third threshold value, recovering the IO performance of the solid state disk to a second set performance, acquiring the corresponding SMART temperature to update the initial temperature, and executing the step S120.
If the third intermediate temperature does not drop to the third threshold value, the step S182 is executed.
The SMART temperature slowly drops to a third Threshold value, namely Safety Exit Threshold, the IO Performance is recovered to Best Performance, and the SSD is determined to be in a low-temperature normal state at the moment; if the temperature rises again, the above steps S110 to S180 are repeated to perform the temperature-performance balance control.
And if the second intermediate temperature does not rise back relative to the first intermediate temperature, entering an end step.
If the initial temperature does not exceed the first threshold, step S110 is executed.
According to the SSD temperature control performance balancing method, the SMART temperature of the solid state disk during read-write operation is obtained and judged, when the SMART temperature exceeds the first threshold value, the IO performance is recovered after the IO performance of the solid state disk is reduced to the second threshold value, and when the IO performance is recovered, the temperature rises immediately, the IO performance is reduced, so that the solid state disk is adjusted to enter a safe state, balanced regulation and control of the performance according to the SMART temperature of the solid state disk are realized, the effect of flexibly balancing the temperature and the performance is achieved, and the user experience is improved.
Fig. 8 is a flowchart illustrating a method for balancing SSD temperature control performance according to another embodiment of the invention. As shown in fig. 8, the SSD temperature control performance balancing method of this embodiment includes steps S210-S300. Steps S210 to S240 are similar to steps S110 to S140 in the above-described embodiment, and steps S270 to S300 are similar to steps S150 to S180 in the above-described embodiment, and are not repeated herein. The added steps S250 to S260 in the present embodiment are explained in detail below.
S250, judging whether the first intermediate temperature falls back relative to the initial temperature;
s260, if the first intermediate temperature does not fall back relative to the initial temperature, keeping the IO performance of the solid state disk at a first set performance, acquiring a corresponding SMART temperature, updating the first intermediate temperature according to the acquired SMART temperature, and executing judgment S270;
if the first intermediate temperature falls back with respect to the initial temperature, the step S270 is performed.
When the SMART temperature does not fall back, the IO performance of the solid state disk is kept at the first set performance, so that the SMART temperature slowly falls back.
Fig. 9 is a schematic block diagram of an SSD temperature control performance balancing device 300 according to an embodiment of the invention. As shown in fig. 9, the present invention also provides an SSD temperature control performance balancing apparatus 300 corresponding to the above SSD temperature control performance balancing method. The SSD temperature control performance balancing apparatus 300 includes a unit for performing the above SSD temperature control performance balancing method, and the apparatus may be configured in a server. Specifically, referring to fig. 9, the SSD temperature control performance balancing apparatus 300 includes an initial temperature obtaining unit 301, a first determining unit 302, a first decreasing unit 303, a first intermediate temperature obtaining unit 304, a second determining unit 307, a recovering unit 308, a third determining unit 309, and a second decreasing unit 310.
An initial temperature obtaining unit 301, configured to obtain a SMART temperature of the solid state disk during normal read-write operation, so as to obtain an initial temperature; a first judging unit 302, configured to judge whether the initial temperature exceeds a first threshold; a first reducing unit 303, configured to reduce the IO performance of the solid state disk to a first set performance if the initial temperature exceeds a first threshold; a first intermediate temperature obtaining unit 304, configured to obtain a corresponding SMART temperature when the IO performance of the solid state disk is reduced, so as to obtain a first intermediate temperature; a second judging unit 307, configured to judge whether the first intermediate temperature reaches a second threshold; a recovering unit 308, configured to recover the IO performance of the solid state disk to a normal read-write performance if the first intermediate temperature reaches a second threshold, and obtain a corresponding SMART temperature to obtain a second intermediate temperature; a third determining unit 309, configured to determine whether the second intermediate temperature rises back relative to the first intermediate temperature, and if the second intermediate temperature does not rise back relative to the first intermediate temperature, enter an ending step; and a secondary reducing unit 310, configured to reduce the IO performance of the solid state disk again if the second intermediate temperature rises back relative to the first intermediate temperature, so as to drive the solid state disk to perform a security state.
In an embodiment, the first reducing unit 303 is configured to adjust an IO idle parameter of the solid state disk, and reduce the IO performance of the solid state disk to a first set performance according to the IO idle parameter.
In one embodiment, as shown in fig. 10, the secondary reduction unit 310 includes a second reduction subunit 3101, a third reduction subunit 3102, a fifth judgment subunit 3103 and a performance recovery subunit 3104.
A second reduction subunit 3101, configured to reduce IO performance of the solid state disk during normal read/write operation to a second set performance; a third reducing subunit 3102, configured to reduce the IO performance of the solid state disk to a third set performance, and obtain a corresponding SMART temperature to obtain a third intermediate temperature; a fifth judging subunit 3103, configured to judge whether the third intermediate temperature has dropped to a third threshold value; a performance recovery subunit 3104, configured to, if the third intermediate temperature is decreased to a third threshold, recover the IO performance of the solid state disk to a second set performance, obtain a corresponding SMART temperature, update the initial temperature, and perform the determining whether the initial temperature exceeds the first threshold.
Fig. 11 is a schematic block diagram of an SSD temperature control performance balancing device 300 according to another embodiment of the invention. As shown in fig. 11, the SSD temperature control performance balancing device 300 of the present embodiment is the above embodiment, and is added with a fourth determination unit 305 and a holding unit 306.
A fourth determination unit 305 configured to determine whether the first intermediate temperature falls back with respect to the initial temperature; and if the first intermediate temperature falls back relative to the initial temperature, executing the judgment to judge whether the first intermediate temperature reaches a second threshold value. A maintaining unit 306, configured to maintain the IO performance of the solid state disk at a first set performance if the first intermediate temperature does not fall back relative to the initial temperature, acquire a corresponding SMART temperature, update the first intermediate temperature according to the acquired SMART temperature, and perform judgment on whether the first intermediate temperature reaches a second threshold.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the SSD temperature control performance balancing device 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The SSD temperature-control performance balancing apparatus 300 described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 12, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a SSD temperature control performance balancing method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be caused to execute a SSD temperature control performance balancing method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring SMART temperature of the solid state disk in normal read-write operation to obtain initial temperature; judging whether the initial temperature exceeds a first threshold value; if the initial temperature exceeds a first threshold value, reducing the IO performance of the solid state disk to a first set performance; acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature; judging whether the first intermediate temperature reaches a second threshold value; if the first intermediate temperature reaches a second threshold value, recovering the IO performance of the solid state disk to normal read-write performance, and acquiring a corresponding SMART temperature to obtain a second intermediate temperature; judging whether the second intermediate temperature is increased back relative to the first intermediate temperature; and if the second intermediate temperature rises back relative to the first intermediate temperature, reducing the IO performance of the solid state disk again to drive the solid state disk to be in a safe state.
In an embodiment, after implementing the step of determining whether the second intermediate temperature is raised back relative to the first intermediate temperature, the processor 502 further implements the steps of:
and if the second intermediate temperature does not rise back relative to the first intermediate temperature, entering an end step.
In an embodiment, when the step of reducing the IO performance of the solid state disk to the first set performance is implemented by the processor 502, the following steps are specifically implemented:
and adjusting IO idle parameters of the solid state disk, and reducing the IO performance of the solid state disk to a first set performance according to the IO idle parameters.
In an embodiment, before implementing the step of determining whether the first intermediate temperature reaches the second threshold value, the processor 502 further implements the following steps:
judging whether the first intermediate temperature falls back relative to the initial temperature; if the first intermediate temperature does not fall back relative to the initial temperature, keeping the IO performance of the solid state disk at a first set performance, acquiring a corresponding SMART temperature, updating the first intermediate temperature according to the acquired SMART temperature, and judging whether the first intermediate temperature reaches a second threshold value or not; and if the first intermediate temperature falls back relative to the initial temperature, executing the judgment to judge whether the first intermediate temperature reaches a second threshold value.
In an embodiment, when the processor 502 implements the step of reducing the IO performance of the solid state disk again to drive the solid state disk to perform the security state, the following steps are specifically implemented:
the IO performance of the solid state disk in normal read-write operation is reduced to a second set performance; reducing the IO performance of the solid state disk to a third set performance, and acquiring a corresponding SMART temperature to obtain a third intermediate temperature; judging whether the third intermediate temperature is reduced to a third threshold value; and if the third intermediate temperature is reduced to a third threshold value, recovering the IO performance of the solid state disk to a second set performance, acquiring the corresponding SMART temperature to update the initial temperature, and executing the judgment of whether the initial temperature exceeds the first threshold value.
And the second set performance is 60% of the IO performance of the solid state disk in normal read-write operation.
The third set point performance is 30% of the second performance.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
acquiring SMART temperature of the solid state disk in normal read-write operation to obtain initial temperature; judging whether the initial temperature exceeds a first threshold value; if the initial temperature exceeds a first threshold value, reducing the IO performance of the solid state disk to a first set performance; acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature; judging whether the first intermediate temperature reaches a second threshold value; if the first intermediate temperature reaches a second threshold value, recovering the IO performance of the solid state disk to normal read-write performance, and acquiring a corresponding SMART temperature to obtain a second intermediate temperature; judging whether the second intermediate temperature is increased back relative to the first intermediate temperature; and if the second intermediate temperature rises back relative to the first intermediate temperature, reducing the IO performance of the solid state disk again to drive the solid state disk to be in a safe state.
In an embodiment, after the processor executes the computer program to implement the step of determining whether the second intermediate temperature is increased back relative to the first intermediate temperature, the processor further implements the steps of:
and if the second intermediate temperature does not rise back relative to the first intermediate temperature, entering an end step.
In an embodiment, when the processor executes the computer program to implement the step of reducing the IO performance of the solid state disk to the first set performance, the following steps are specifically implemented:
and adjusting IO idle parameters of the solid state disk, and reducing the IO performance of the solid state disk to a first set performance according to the IO idle parameters.
In one embodiment, before the step of determining whether the first intermediate temperature reaches the second threshold value is implemented by the processor executing the computer program, the following steps are further implemented:
judging whether the first intermediate temperature falls back relative to the initial temperature; if the first intermediate temperature does not fall back relative to the initial temperature, keeping the IO performance of the solid state disk at a first set performance, acquiring a corresponding SMART temperature, updating the first intermediate temperature according to the acquired SMART temperature, and judging whether the first intermediate temperature reaches a second threshold value or not; and if the first intermediate temperature falls back relative to the initial temperature, executing the judgment to judge whether the first intermediate temperature reaches a second threshold value.
In an embodiment, when the processor executes the computer program to implement the reduction of the IO performance of the solid state disk again to drive the solid state disk to perform the security state step, the following steps are specifically implemented:
the IO performance of the solid state disk in normal read-write operation is reduced to a second set performance; reducing the IO performance of the solid state disk to a third set performance, and acquiring a corresponding SMART temperature to obtain a third intermediate temperature; judging whether the third intermediate temperature is reduced to a third threshold value; and if the third intermediate temperature is reduced to a third threshold value, recovering the IO performance of the solid state disk to a second set performance, acquiring the corresponding SMART temperature to update the initial temperature, and executing the judgment of whether the initial temperature exceeds the first threshold value.
And the second set performance is 60% of the IO performance of the solid state disk in normal read-write operation.
The third set point performance is 30% of the second performance.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

  1. A method for balancing SSD temperature control performance, comprising:
    acquiring SMART temperature of the solid state disk in normal read-write operation to obtain initial temperature;
    judging whether the initial temperature exceeds a first threshold value;
    if the initial temperature exceeds a first threshold value, reducing the IO performance of the solid state disk to a first set performance;
    acquiring a corresponding SMART temperature when the IO performance of the solid state disk is reduced to obtain a first intermediate temperature;
    judging whether the first intermediate temperature reaches a second threshold value;
    if the first intermediate temperature reaches a second threshold value, recovering the IO performance of the solid state disk to normal read-write performance, and acquiring a corresponding SMART temperature to obtain a second intermediate temperature;
    judging whether the second intermediate temperature is increased back relative to the first intermediate temperature;
    and if the second intermediate temperature rises back relative to the first intermediate temperature, reducing the IO performance of the solid state disk again to drive the solid state disk to be in a safe state.
  2. 2. The SSD temperature control performance balancing method of claim 1, wherein after determining whether the second intermediate temperature has risen back relative to the first intermediate temperature, further comprising:
    and if the second intermediate temperature does not rise back relative to the first intermediate temperature, entering an end step.
  3. 3. The SSD temperature control performance balancing method of claim 2, wherein the reducing the IO performance of the solid state disk to a first set performance comprises:
    and adjusting IO idle parameters of the solid state disk, and reducing the IO performance of the solid state disk to a first set performance according to the IO idle parameters.
  4. 4. The SSD temperature control performance balancing method of claim 3, wherein before determining whether the first intermediate temperature reaches a second threshold, further comprising:
    judging whether the first intermediate temperature falls back relative to the initial temperature;
    if the first intermediate temperature does not fall back relative to the initial temperature, keeping the IO performance of the solid state disk at a first set performance, acquiring a corresponding SMART temperature, updating the first intermediate temperature according to the acquired SMART temperature, and judging whether the first intermediate temperature reaches a second threshold value or not;
    and if the first intermediate temperature falls back relative to the initial temperature, executing the judgment to judge whether the first intermediate temperature reaches a second threshold value.
  5. 5. The SSD temperature control performance balancing method of claim 1, wherein the lowering the IO performance of the solid state disk again to drive the solid state disk to the safe state comprises:
    the IO performance of the solid state disk in normal read-write operation is reduced to a second set performance;
    reducing the IO performance of the solid state disk to a third set performance, and acquiring a corresponding SMART temperature to obtain a third intermediate temperature;
    judging whether the third intermediate temperature is reduced to a third threshold value;
    and if the third intermediate temperature is reduced to a third threshold value, recovering the IO performance of the solid state disk to a second set performance, acquiring the corresponding SMART temperature to update the initial temperature, and executing the judgment of whether the initial temperature exceeds the first threshold value.
  6. 6. The SSD temperature control performance balancing method of claim 5, wherein the second set performance is 60% of the IO performance of the solid state disk during normal read and write operations.
  7. 7. The SSD temperature control performance balancing method of claim 5, wherein the third set performance is 30% of the second performance.
  8. An SSD temperature control performance balancing device, comprising:
    the initial temperature acquisition unit is used for acquiring the SMART temperature of the solid state disk in normal read-write operation so as to obtain an initial temperature;
    the first judging unit is used for judging whether the initial temperature exceeds a first threshold value;
    the first reducing unit is used for reducing the IO performance of the solid state disk to a first set performance if the initial temperature exceeds a first threshold;
    the first intermediate temperature acquisition unit is used for acquiring the corresponding SMART temperature when the IO performance of the solid state disk is reduced so as to obtain a first intermediate temperature;
    a second judging unit, configured to judge whether the first intermediate temperature reaches a second threshold;
    the recovery unit is used for recovering the IO performance of the solid state disk to the normal read-write performance and acquiring the corresponding SMART temperature to obtain a second intermediate temperature if the first intermediate temperature reaches a second threshold value;
    a third judging unit configured to judge whether the second intermediate temperature rises back relative to the first intermediate temperature;
    and the secondary reduction unit is used for reducing the IO performance of the solid state disk again to drive the solid state disk to perform a safety state if the second intermediate temperature is increased back to the first intermediate temperature.
  9. 9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 7.
  10. 10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202011560279.0A 2020-12-25 2020-12-25 SSD temperature control performance balancing method and device, computer equipment and storage medium Pending CN112596680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011560279.0A CN112596680A (en) 2020-12-25 2020-12-25 SSD temperature control performance balancing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011560279.0A CN112596680A (en) 2020-12-25 2020-12-25 SSD temperature control performance balancing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112596680A true CN112596680A (en) 2021-04-02

Family

ID=75202458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011560279.0A Pending CN112596680A (en) 2020-12-25 2020-12-25 SSD temperature control performance balancing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112596680A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377179A (en) * 2021-06-10 2021-09-10 深圳忆联信息系统有限公司 Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN116302799A (en) * 2023-02-18 2023-06-23 深圳市晶封半导体有限公司 Temperature control method for solid state disk

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206314A1 (en) * 2006-03-03 2007-09-06 Derosa Jeffrey V Methods and apparatus for controlling read/write duty cycle in a data storage device based on thermal inputs
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN110825327A (en) * 2019-11-11 2020-02-21 深圳忆联信息系统有限公司 SSD temperature control method and device, computer equipment and storage medium
CN111625067A (en) * 2020-04-21 2020-09-04 至誉科技(武汉)有限公司 SSD-based adaptive temperature control method and device
CN111651327A (en) * 2020-06-03 2020-09-11 深圳忆联信息系统有限公司 Temperature control method and device for solid state disk, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206314A1 (en) * 2006-03-03 2007-09-06 Derosa Jeffrey V Methods and apparatus for controlling read/write duty cycle in a data storage device based on thermal inputs
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN110825327A (en) * 2019-11-11 2020-02-21 深圳忆联信息系统有限公司 SSD temperature control method and device, computer equipment and storage medium
CN111625067A (en) * 2020-04-21 2020-09-04 至誉科技(武汉)有限公司 SSD-based adaptive temperature control method and device
CN111651327A (en) * 2020-06-03 2020-09-11 深圳忆联信息系统有限公司 Temperature control method and device for solid state disk, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377179A (en) * 2021-06-10 2021-09-10 深圳忆联信息系统有限公司 Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN116302799A (en) * 2023-02-18 2023-06-23 深圳市晶封半导体有限公司 Temperature control method for solid state disk

Similar Documents

Publication Publication Date Title
CN112596680A (en) SSD temperature control performance balancing method and device, computer equipment and storage medium
US20160283711A1 (en) eMMC Monitoring Method and Apparatus
WO2017107330A1 (en) Temperature control method and mobile terminal
CN110209502B (en) Information storage method and device, electronic equipment and storage medium
CN111651327B (en) Temperature control method and device for solid state disk, computer equipment and storage medium
CN110825327A (en) SSD temperature control method and device, computer equipment and storage medium
JP5986607B2 (en) Data storage device and data maintenance method
WO2021157515A1 (en) Machine learning device, computer device, control system, and machine learning method
CN113377179A (en) Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN110109628A (en) Data re-establishing method, device, equipment and the storage medium of distributed memory system
CN112486745A (en) SSD (solid State disk) safety power failure test method and device, computer equipment and storage medium
CN111637601A (en) Air conditioner and air conditioner control method and device
CN112631870B (en) Temperature control method and device and solid state disk
CN107329881B (en) Application system performance test method and device, computer equipment and storage medium
CN111078151A (en) Solid state disk data re-reading method and device and solid state disk
CN111459413B (en) Method, device, computer equipment and storage medium for improving SSD performance
WO2018228323A1 (en) Service level control method and system for on-line service system, and readable storage medium
CN112114752A (en) Method and device for improving reliability of solid-state storage device, computer device and storage medium
CN114791818B (en) Storage controller system update method, system, computer device and storage medium
CN111949460A (en) Method and device for testing D3-supported characteristic of solid state disk, computer equipment and storage medium
CN117240859A (en) Automatic adjustment method, device, equipment and storage medium for equalization parameters of transmitting end
CN111581004A (en) Solid state disk overheating protection method and device, computer equipment and storage medium
EP3139566A1 (en) Communication method, communication device, and communication program
CN112925474B (en) Control method of terminal equipment, storage medium and terminal equipment
CN113805814A (en) Cache management method and device, storage equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210402