[go: up one dir, main page]

CN115240723A - A kind of hard disk cooling method, device, computer equipment and storage medium - Google Patents

A kind of hard disk cooling method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN115240723A
CN115240723A CN202210868871.XA CN202210868871A CN115240723A CN 115240723 A CN115240723 A CN 115240723A CN 202210868871 A CN202210868871 A CN 202210868871A CN 115240723 A CN115240723 A CN 115240723A
Authority
CN
China
Prior art keywords
hard disk
temperature
preset
response
current hard
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
CN202210868871.XA
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202210868871.XA priority Critical patent/CN115240723A/en
Publication of CN115240723A publication Critical patent/CN115240723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B33/00Constructional parts, details or accessories not provided for in the other groups of this subclass
    • G11B33/14Reducing influence of physical parameters, e.g. temperature change, moisture, dust
    • G11B33/1406Reducing the influence of the temperature
    • G11B33/1413Reducing the influence of the temperature by fluid cooling
    • G11B33/142Reducing the influence of the temperature by fluid cooling by air cooling
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The invention relates to the field of hard disk temperature control, in particular to a hard disk cooling method and device, computer equipment and a storage medium. The method comprises the following steps: circularly collecting the temperature of the hard disk at intervals of preset time to obtain the current temperature of the hard disk; comparing the current hard disk temperature with a first preset temperature; in response to the fact that the current temperature of the hard disk exceeds a first preset temperature, starting a fan to cool the hard disk; and comparing the current temperature of the hard disk with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature, and starting a bandwidth limiting program to cool the hard disk in response to the fact that the current temperature of the hard disk exceeds the second preset temperature. The scheme of the invention adopts a mode of combining the fan and the limited bandwidth to quickly reduce the temperature of the disk, effectively prevents the hard disk from generating overhigh temperature and obviously improves the stability and safety of the hard disk.

Description

一种硬盘降温方法、装置、计算机设备及存储介质A kind of hard disk cooling method, device, computer equipment and storage medium

技术领域technical field

本发明涉及硬盘温度控制领域,尤其涉及一种硬盘降温方法、装置、计算机设备及存储介质。The invention relates to the field of hard disk temperature control, in particular to a hard disk cooling method, device, computer equipment and storage medium.

背景技术Background technique

固态硬盘是一种以NAND Flash(是闪存的一种,其内部采用非线性宏单元模式,为固态大容量内存的实现提供了廉价有效的解决方案)作为存储介质的存储设备,具有存取速度快、存储容量大等优点。由于固态硬盘可以快速准确的存储大量数据,所以其日益走进人们的生活中,随着固态硬盘的大量普及,数据存储的质量、速度得到明显的改善。A solid-state drive is a storage device that uses NAND Flash (a type of flash memory, which uses a nonlinear macrocell mode internally, providing a cheap and effective solution for the realization of solid-state large-capacity memory) as a storage medium, with access speed. Fast, large storage capacity and so on. Since solid-state drives can quickly and accurately store a large amount of data, they are increasingly entering people's lives. With the popularization of solid-state drives, the quality and speed of data storage have been significantly improved.

近些年来,随着信息大爆炸时代的到来,传统的机械硬盘愈发不能满足人们对于数据存储的高性能要求,固态硬盘的应用场景越来越复杂,例如一些极端场景的出现会造成不可预期的结果,然而当固态硬盘的温度过高时超过其最大容忍温度时,可能会导致NAND Flash中电子漂移,导致数据丢失,甚至会导致固态硬盘永久性破坏。In recent years, with the advent of the era of information explosion, traditional mechanical hard drives are increasingly unable to meet people's high-performance requirements for data storage, and the application scenarios of solid-state drives are becoming more and more complex. However, when the temperature of the SSD exceeds its maximum tolerance temperature, it may cause electronic drift in the NAND Flash, resulting in data loss, or even permanent damage to the SSD.

发明内容SUMMARY OF THE INVENTION

有鉴于此,有必要针对以上技术问题,提供一种硬盘降温方法、装置、计算机设备及存储介质。In view of this, it is necessary to provide a hard disk cooling method, device, computer equipment and storage medium in view of the above technical problems.

根据本发明的第一方面,提供了一种硬盘降温方法,所述方法包括:According to a first aspect of the present invention, a method for cooling a hard disk is provided, the method comprising:

以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;Collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature;

将当前硬盘温度与第一预设温度进行比较;comparing the current hard disk temperature with the first preset temperature;

响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;In response to the current hard disk temperature exceeding the first preset temperature, start the fan to cool the hard disk;

将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,comparing the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the current hard disk temperature exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

在一些实施例中,所述启动风扇对硬盘进行降温的步骤包括:In some embodiments, the step of activating the fan to cool the hard disk includes:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述启动带宽限制程序对硬盘进行降温的步骤包括:In some embodiments, the step of starting the bandwidth limiting program to cool down the hard disk includes:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

根据本发明的第二方面,提供了一种硬盘降温装置,所述装置包括:According to a second aspect of the present invention, a hard disk cooling device is provided, the device comprising:

获取模块,配置用于以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;an acquisition module, configured to collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature;

第一比较模块,配置用于将当前硬盘温度与第一预设温度进行比较;a first comparison module, configured to compare the current hard disk temperature with the first preset temperature;

第一降温模块,配置用于响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;a first cooling module, configured to start a fan to cool the hard disk in response to the current hard disk temperature exceeding the first preset temperature;

第二比较模块,配置用于将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,The second comparison module is configured to compare the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

第二降温模块,配置用于响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The second cooling module is configured to start the bandwidth limiting program to cool the hard disk in response to the current hard disk temperature exceeding the second preset temperature.

在一些实施例中,所述第一降温模块进一步配置用于:In some embodiments, the first cooling module is further configured to:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述第二降温模块进一步配置用于:In some embodiments, the second cooling module is further configured to:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

第三降温模块,响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The third cooling module, in response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, starts the bandwidth limiting program to cool the hard disk.

根据本发明的第三方面,还提供了一种计算机设备,该计算机设备包括:According to a third aspect of the present invention, a computer device is also provided, the computer device comprising:

至少一个处理器;以及at least one processor; and

存储器,存储器存储有可在处理器上运行的计算机程序,处理器执行程序时执行前述的硬盘降温方法。The memory stores a computer program that can run on the processor, and when the processor executes the program, the aforementioned method for cooling the hard disk is performed.

根据本发明的第四方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时执行前述的硬盘降温方法。According to a fourth aspect of the present invention, a computer-readable storage medium is also provided, where the computer-readable storage medium stores a computer program, and the computer program executes the aforementioned method for cooling a hard disk when executed by a processor.

上述一种硬盘降温方法,通过以预设时间为间隔循环采集当前硬盘温度,将当前硬盘温度与第一预设温度进行比较,如果当前硬盘温度超过第一预设温度则启动风扇进行降温,还将当前硬盘温度与第二预设温度进行比较,如果当前硬盘温度超过第二预设温度则启动带宽限制程序进行降温,采用风扇和限制带宽结合的方式快速降低盘片温度,有效防止硬盘出现温度过高的情形,显著提高硬盘的稳定性和安全性。In the above-mentioned method for cooling a hard disk, the current hard disk temperature is collected cyclically at preset time intervals, the current hard disk temperature is compared with the first preset temperature, and if the current hard disk temperature exceeds the first preset temperature, a fan is started to cool down, and the temperature is further reduced. Compare the current hard disk temperature with the second preset temperature. If the current hard disk temperature exceeds the second preset temperature, start the bandwidth limiting program to cool down, and use a combination of fans and bandwidth limiting to quickly reduce the disk temperature, effectively preventing the hard disk from overheating If it is too high, the stability and security of the hard disk will be significantly improved.

此外,本发明还提供了一种硬盘降温装置、一种计算机设备和一种计算机可读存储介质,同样能实现上述技术效果,这里不再赘述。In addition, the present invention also provides a hard disk cooling device, a computer device, and a computer-readable storage medium, which can also achieve the above technical effects, which will not be repeated here.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.

图1为本发明一个实施例提供的一种硬盘降温方法的流程示意图;1 is a schematic flowchart of a method for cooling a hard disk according to an embodiment of the present invention;

图2为本发明一个实施例提供的一种硬盘降温装置的结构示意图;2 is a schematic structural diagram of a hard disk cooling device according to an embodiment of the present invention;

图3为本发明另一个实施例中计算机设备的内部结构图。FIG. 3 is an internal structure diagram of a computer device in another embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.

在一个实施例中,请参照图1所示,本发明提供了一种硬盘降温方法100,具体来说所述方法包括以下步骤:In one embodiment, please refer to FIG. 1 , the present invention provides a method 100 for cooling a hard disk. Specifically, the method includes the following steps:

步骤101,以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;在具体实施过程中可以在硬盘的盘片上安装的温度传感器,该温度传感器可实时采集盘片温度Step 101, cyclically collect the temperature of the hard disk at preset time intervals to obtain the current temperature of the hard disk; in the specific implementation process, a temperature sensor can be installed on the disk of the hard disk, and the temperature sensor can collect the temperature of the disk in real time

步骤102,将当前硬盘温度与第一预设温度进行比较;Step 102, comparing the current hard disk temperature with the first preset temperature;

步骤103,响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;Step 103, in response to the current hard disk temperature exceeding the first preset temperature, start the fan to cool the hard disk;

步骤104,将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,Step 104, compare the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

步骤105,响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。Step 105, in response to the current hard disk temperature exceeding the second preset temperature, start a bandwidth limiting program to cool down the hard disk.

上述一种硬盘降温方法,通过以预设时间为间隔循环采集当前硬盘温度,将当前硬盘温度与第一预设温度进行比较,如果当前硬盘温度超过第一预设温度则启动风扇进行降温,还将当前硬盘温度与第二预设温度进行比较,如果当前硬盘温度超过第二预设温度则启动带宽限制程序进行降温,采用风扇和限制带宽结合的方式快速降低盘片温度,有效防止硬盘出现温度过高的情形,显著提高硬盘的稳定性和安全性。In the above-mentioned method for cooling a hard disk, the current hard disk temperature is collected cyclically at preset time intervals, the current hard disk temperature is compared with the first preset temperature, and if the current hard disk temperature exceeds the first preset temperature, a fan is started to cool down, and the temperature is further reduced. Compare the current hard disk temperature with the second preset temperature. If the current hard disk temperature exceeds the second preset temperature, start the bandwidth limiting program to cool down, and use a combination of fans and bandwidth limiting to quickly reduce the disk temperature, effectively preventing the hard disk from overheating If it is too high, the stability and security of the hard disk will be significantly improved.

在一些实施例中,所述启动风扇对硬盘进行降温的步骤包括:In some embodiments, the step of activating the fan to cool the hard disk includes:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述启动带宽限制程序对硬盘进行降温的步骤包括:In some embodiments, the step of starting the bandwidth limiting program to cool down the hard disk includes:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

在又一个实施例中,为了便于理解本发明的技术方案,下面以固态硬盘为例,由主控CPU(中央处理器)通过温度传感器采集固态硬盘盘片温度,实时反馈给主控CPU,主控CPI通过调节风扇转速来达到降低固态硬盘温度的目的,另外若在极端条件下风扇转速的提高,短时间内没有明显降低固态硬盘温度,则主控CPU通过启动其内部的降温算法来达到快速降低盘片温度的目的,防止温度过高造成用户数据的丢失甚至固态硬盘的永久性损坏,本实施例提供了又一种硬盘降温方法,具体实施如下:In yet another embodiment, in order to facilitate the understanding of the technical solution of the present invention, the following takes the solid-state hard disk as an example. Control CPI achieves the purpose of reducing the temperature of the solid state drive by adjusting the fan speed. In addition, if the fan speed increases under extreme conditions, the temperature of the solid state drive is not significantly reduced in a short period of time, the main control CPU will start its internal cooling algorithm to achieve fast speed The purpose of reducing the temperature of the disk is to prevent the loss of user data or even the permanent damage of the solid-state hard disk caused by excessive temperature. This embodiment provides another hard disk cooling method, and the specific implementation is as follows:

首先,设置一个温度阈值a,当温度传感器采集到的温度超过该阈值a时,主控CPU启动风扇,并且温度传感器采集的温度每升高n度,风扇转速升高r转,反之温度传感器采集的温度每降低n度,风扇转速降低r转。另外设置一个最大温度阈值b,当温度传感器采集到的盘片温度超过b时,启动带宽限制程序来达到快速降低盘片温度,具体实现步骤参考如下:First, set a temperature threshold a. When the temperature collected by the temperature sensor exceeds the threshold a, the main control CPU will start the fan, and the fan speed will increase by r for every n degree increase in the temperature collected by the temperature sensor. For every n degree decrease in temperature, the fan speed decreases by r revolutions. In addition, a maximum temperature threshold b is set. When the temperature of the disk collected by the temperature sensor exceeds b, the bandwidth limiting program is started to quickly reduce the temperature of the disk. The specific implementation steps are as follows:

步骤一,温度传感器定时采集盘片温度cur_temp,上报给主控cpu;Step 1, the temperature sensor periodically collects the disk temperature cur_temp and reports it to the main control CPU;

步骤二,主控CPU判断当前温度是否大于a,若大于则启动降温风扇,否则不启动;Step 2, the main control CPU determines whether the current temperature is greater than a, and if it is greater than a, starts the cooling fan, otherwise it does not start;

步骤三,主控CPU通过预设的温度和转速之间的映射算法,实时调节风扇转速;Step 3, the main control CPU adjusts the fan speed in real time through a preset mapping algorithm between the temperature and the speed;

步骤四,主控CPU判断当前温度是否大于b,若大于则启动降温程序,否则不启动;Step 4, the main control CPU judges whether the current temperature is greater than b, and if it is greater than b, starts the cooling program, otherwise it does not start;

风扇转速调控具体的算法参考如下:The specific algorithm for fan speed control is as follows:

If(cur_temp<a)If(cur_temp<a)

主控CPU不下发启动指令给风扇;The main control CPU does not issue a startup command to the fan;

else if(cur_temp>=a&&cur_temp<b)else if(cur_temp>=a&&cur_temp<b)

主控CPU下发启动指令给风扇,并记录old_temp=cur_temp;The main control CPU issues a startup command to the fan, and records old_temp=cur_temp;

若CPU下次收到的温度cur_temp大于old_temp,则提高风扇转速,温度每升高n度,风扇转速提高r转。If the temperature cur_temp received by the CPU next time is greater than old_temp, the fan speed will be increased. For every n degree increase in temperature, the fan speed will increase by r revolutions.

若CPU下次收到的温度cur_temp小于old_temp,则降低风扇转速,温度每降低n度,风扇转速降低r转。If the temperature cur_temp received by the CPU next time is less than old_temp, the fan speed will be reduced. For every n degree decrease in temperature, the fan speed will be reduced by r revolutions.

else if(cur_temp>=b)else if(cur_temp>=b)

则通过带宽限制算法限制硬盘带宽,从而达到降低盘片温度的目的。Then, the bandwidth of the hard disk is limited by the bandwidth limiting algorithm, so as to achieve the purpose of reducing the temperature of the disk.

其中限制硬盘带宽的算法参考如下:The algorithm for limiting hard disk bandwidth is as follows:

当盘片的当前温度大于设置的初始温度阀值b时,主控CPU启动带宽限制程序,若当前温度cur_temp大于初始温度b,则通过限制主控CPU处理IO个数的并发数量来降低io带宽,温度每升高t度,IO并发数量减少num条,反之当温度每降低n度,IO并发数量增加num条;当主控CPU收到的当前温度cur_temp小于初始温度b时,恢复原始的IO并发数量,达到恢复原始带宽。When the current temperature of the disk is greater than the set initial temperature threshold b, the main control CPU starts the bandwidth limiting program. If the current temperature cur_temp is greater than the initial temperature b, the IO bandwidth is reduced by limiting the concurrent number of IOs processed by the main control CPU. , every time the temperature increases by t degrees, the number of concurrent IOs decreases by num. On the contrary, when the temperature decreases by n degrees, the number of concurrent IOs increases by num. When the current temperature cur_temp received by the master CPU is less than the initial temperature b, the original IO is restored The number of concurrency to restore the original bandwidth.

本实施例的一种硬盘降温方法,固态硬盘温度过高时,通过温控风扇和限制带宽结合的方法,快速降低盘片温度,从而防止固态硬盘在长时间高温的情况下运行,避免数据丢失、甚至固态硬盘永久性损坏。In a method for cooling a hard disk in this embodiment, when the temperature of the solid state hard disk is too high, the temperature of the hard disk is quickly reduced by a combination of temperature control fans and bandwidth limitation, thereby preventing the solid state hard disk from running at high temperatures for a long time and avoiding data loss , or even permanently damaged solid-state drives.

在又一个实施例中,请参照图2所示,本发明还提供了一种硬盘降温装置200,所述装置包括:In yet another embodiment, please refer to FIG. 2 , the present invention also provides a hard disk cooling device 200 , the device includes:

获取模块201,配置用于以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;The acquiring module 201 is configured to collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature;

第一比较模块202,配置用于将当前硬盘温度与第一预设温度进行比较;a first comparison module 202, configured to compare the current hard disk temperature with the first preset temperature;

第一降温模块203,配置用于响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;The first cooling module 203 is configured to start a fan to cool the hard disk in response to the current hard disk temperature exceeding the first preset temperature;

第二比较模块204,配置用于将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,The second comparison module 204 is configured to compare the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

第二降温模块205,配置用于响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The second cooling module 205 is configured to start the bandwidth limiting program to cool the hard disk in response to the current hard disk temperature exceeding the second preset temperature.

上述一种硬盘降温装置,通过以预设时间为间隔循环采集当前硬盘温度,将当前硬盘温度与第一预设温度进行比较,如果当前硬盘温度超过第一预设温度则启动风扇进行降温,还将当前硬盘温度与第二预设温度进行比较,如果当前硬盘温度超过第二预设温度则启动带宽限制程序进行降温,采用风扇和限制带宽结合的方式快速降低盘片温度,有效防止硬盘出现温度过高的情形,显著提高硬盘的稳定性和安全性。The above-mentioned hard disk cooling device collects the current hard disk temperature cyclically at preset time intervals, compares the current hard disk temperature with the first preset temperature, and starts a fan to cool down if the current hard disk temperature exceeds the first preset temperature, and also Compare the current hard disk temperature with the second preset temperature. If the current hard disk temperature exceeds the second preset temperature, start the bandwidth limiting program to cool down, and use a combination of fans and bandwidth limiting to quickly reduce the disk temperature, effectively preventing the hard disk from overheating If it is too high, the stability and security of the hard disk will be significantly improved.

在一些实施例中,所述第一降温模块203进一步配置用于:In some embodiments, the first cooling module 203 is further configured to:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述第二降温模块205进一步配置用于:In some embodiments, the second cooling module 205 is further configured to:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:

第三降温模块,响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The third cooling module, in response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, starts the bandwidth limiting program to cool the hard disk.

需要说明的是,关于硬盘降温装置的具体限定可以参见上文中对硬盘降温方法的限定,在此不再赘述。上述硬盘降温装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。It should be noted that, for the specific limitation of the hard disk cooling device, please refer to the limitation on the hard disk cooling method above, which will not be repeated here. Each module in the above-mentioned hard disk cooling device can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

根据本发明的另一方面,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图请参照图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时实现以上所述的硬盘降温方法,具体来说,所述方法包括以下步骤:According to another aspect of the present invention, a computer device is provided. The computer device may be a server. Please refer to FIG. 3 for an internal structure diagram of the computer device. The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above-mentioned hard disk cooling method is implemented. Specifically, the method includes the following steps:

以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;Collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature;

将当前硬盘温度与第一预设温度进行比较;comparing the current hard disk temperature with the first preset temperature;

响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;In response to the current hard disk temperature exceeding the first preset temperature, start the fan to cool the hard disk;

将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,comparing the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the current hard disk temperature exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

在一些实施例中,所述启动风扇对硬盘进行降温的步骤包括:In some embodiments, the step of activating the fan to cool the hard disk includes:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述启动带宽限制程序对硬盘进行降温的步骤包括:In some embodiments, the step of starting the bandwidth limiting program to cool down the hard disk includes:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

根据本发明的又一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以上所述的硬盘降温方法,具体来说,包括执行以下步骤:According to another aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-described hard disk cooling method is implemented, specifically, the following steps are included:

以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;Collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature;

将当前硬盘温度与第一预设温度进行比较;comparing the current hard disk temperature with the first preset temperature;

响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;In response to the current hard disk temperature exceeding the first preset temperature, start the fan to cool the hard disk;

将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,comparing the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature,

响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the current hard disk temperature exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

在一些实施例中,所述启动风扇对硬盘进行降温的步骤包括:In some embodiments, the step of activating the fan to cool the hard disk includes:

响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions.

在一些实施例中,所述启动带宽限制程序对硬盘进行降温的步骤包括:In some embodiments, the step of starting the bandwidth limiting program to cool down the hard disk includes:

响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs;

响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity;

响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity.

在一些实施例中,所述方法还包括:In some embodiments, the method further includes:

响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1.一种硬盘降温方法,其特征在于,所述方法包括:1. a hard disk cooling method, is characterized in that, described method comprises: 以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;Collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature; 将当前硬盘温度与第一预设温度进行比较;comparing the current hard disk temperature with the first preset temperature; 响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;In response to the current hard disk temperature exceeding the first preset temperature, start the fan to cool the hard disk; 将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,comparing the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature, 响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the current hard disk temperature exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk. 2.根据权利要求1所述的硬盘降温方法,其特征在于,所述启动风扇对硬盘进行降温的步骤包括:2. The hard disk cooling method according to claim 1, wherein the step of starting the fan to cool the hard disk comprises: 响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed; 响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions; 响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions. 3.根据权利要求1所述的硬盘降温方法,其特征在于,所述启动带宽限制程序对硬盘进行降温的步骤包括:3. hard disk cooling method according to claim 1, is characterized in that, the step that described starting bandwidth limiting program cools hard disk comprises: 响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs; 响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity; 响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity. 4.根据权利要求1-3任意一项所述的硬盘降温方法,其特征在于,所述方法还包括:4. The hard disk cooling method according to any one of claims 1-3, wherein the method further comprises: 响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。In response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, the bandwidth limiting program is started to cool down the hard disk. 5.一种硬盘降温装置,其特征在于,所述装置包括:5. A hard disk cooling device, wherein the device comprises: 获取模块,配置用于以预设时间为间隔循环采集硬盘温度以得到当前硬盘温度;an acquisition module, configured to collect the hard disk temperature cyclically at preset time intervals to obtain the current hard disk temperature; 第一比较模块,配置用于将当前硬盘温度与第一预设温度进行比较;a first comparison module, configured to compare the current hard disk temperature with the first preset temperature; 第一降温模块,配置用于响应于当前硬盘温度超过第一预设温度,则启动风扇对硬盘进行降温;a first cooling module, configured to start a fan to cool the hard disk in response to the current hard disk temperature exceeding the first preset temperature; 第二比较模块,配置用于将当前硬盘温度与第二预设温度进行比较,其中,所述第二预设温度大于所述第一预设温度,The second comparison module is configured to compare the current hard disk temperature with a second preset temperature, wherein the second preset temperature is greater than the first preset temperature, 第二降温模块,配置用于响应于当前硬盘温度超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The second cooling module is configured to start the bandwidth limiting program to cool the hard disk in response to the current hard disk temperature exceeding the second preset temperature. 6.根据权利要求1所述的硬盘降温装置,其特征在于,所述第一降温模块进一步配置用于:6. The hard disk cooling device according to claim 1, wherein the first cooling module is further configured to: 响应于首次启动风扇,则基于预设温度与转速对应关系为当前硬盘温度匹配转速;In response to starting the fan for the first time, matching the rotational speed for the current hard disk temperature based on the corresponding relationship between the preset temperature and the rotational speed; 响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第一预设规则调整风扇转速,其中,所述第一预设规则为温度每升高预设度数,风扇转速提高预设转数;In response to the current hard disk temperature collected in the last time exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a first preset rule, wherein the first preset rule is that the temperature increases by a preset number of degrees, the fan speed increases preset number of revolutions; 响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第二预设规则调整风扇转速,其中,所述第二预设规则为温度每降低预设度数,风扇转速降低预设转数。In response to the current hard disk temperature used in the last time not exceeding the current hard disk temperature collected in the previous time, the fan speed is adjusted based on a second preset rule, wherein the second preset rule is that the fan speed decreases for every preset degree decrease in temperature. preset number of revolutions. 7.根据权利要求1所述的硬盘降温装置,其特征在于,所述第二降温模块进一步配置用于:7. The hard disk cooling device according to claim 1, wherein the second cooling module is further configured to: 响应于首次启动带宽限制程序,则基于预设温度与IO并发数量对应关系为当前硬盘温度匹配IO并发数量;In response to starting the bandwidth limiting program for the first time, the current hard disk temperature matches the number of concurrent IOs based on the corresponding relationship between the preset temperature and the number of concurrent IOs; 响应于后一次采集的当前硬盘温度超过前一次采集的当前硬盘温度,则基于第三预设规则调整IO并发数量,其中,所述第三预设规则为温度每升高预设度数,IO并发数量减少预设数量;In response to the current hard disk temperature collected in the next time exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a third preset rule, wherein the third preset rule is that the temperature increases by a preset number of degrees, and the number of concurrent IOs is increased. The quantity is reduced by the preset quantity; 响应于后一次采用的当前硬盘温度未超过前一次采集的当前硬盘温度,则基于第四预设规则调整IO并发数量,其中,所述第四预设规则为温度每降低预设度数,IO并发数量增加预设数量。In response to the current hard disk temperature adopted in the last time not exceeding the current hard disk temperature collected in the previous time, the number of concurrent IOs is adjusted based on a fourth preset rule, wherein the fourth preset rule is that each time the temperature decreases by a preset number of degrees, the number of concurrent IOs is increased. The quantity increases by the preset quantity. 8.根据权利要求5-7任意一项所述的硬盘降温装置,其特征在于,所述装置还包括:8. The hard disk cooling device according to any one of claims 5-7, wherein the device further comprises: 第三降温模块,响应于风扇转速已调整到最大转速、且当前硬盘温度未超过第二预设温度,则启动带宽限制程序对硬盘进行降温。The third cooling module, in response to the fan speed being adjusted to the maximum speed and the current hard disk temperature not exceeding the second preset temperature, starts the bandwidth limiting program to cool the hard disk. 9.一种计算机设备,其特征在于,包括:9. A computer equipment, characterized in that, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器中运行的计算机程序,所述处理器执行所述程序时执行权利要求1-4任意一项所述的方法。a memory, where the memory stores a computer program executable in the processor, and the processor executes the method according to any one of claims 1-4 when the processor executes the program. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时执行权利要求1-4任意一项所述的方法。10. A computer-readable storage medium storing a computer program, wherein the computer program executes the method of any one of claims 1-4 when the computer program is executed by a processor.
CN202210868871.XA 2022-07-22 2022-07-22 A kind of hard disk cooling method, device, computer equipment and storage medium Pending CN115240723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210868871.XA CN115240723A (en) 2022-07-22 2022-07-22 A kind of hard disk cooling method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210868871.XA CN115240723A (en) 2022-07-22 2022-07-22 A kind of hard disk cooling method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115240723A true CN115240723A (en) 2022-10-25

Family

ID=83675833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210868871.XA Pending CN115240723A (en) 2022-07-22 2022-07-22 A kind of hard disk cooling method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115240723A (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100254A1 (en) * 2008-10-21 2010-04-22 Dell Products, Lp System and Method for Adapting a Power Usage of a Server During a Data Center Cooling Failure
DE102011011847A1 (en) * 2011-02-21 2012-08-23 Fujitsu Technology Solutions Intellectual Property Gmbh Computer system, has data processing device executing parametrizable control algorithm for controlling fan, where algorithm is adapted to parameter that is selected based on change in operating temperature of heat generating component
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
CN104121213A (en) * 2013-04-24 2014-10-29 加弘科技咨询(上海)有限公司 Method and system for fan control
US20140376177A1 (en) * 2013-06-25 2014-12-25 Hon Hai Precision Co., Ltd. Server with a function of generating fan table and method for generating fan table
CN104572399A (en) * 2015-02-03 2015-04-29 联想(北京)有限公司 Temperature control method and electronic equipment
CN204480122U (en) * 2015-02-12 2015-07-15 吉林工程技术师范学院 A kind of hard disc of computer vibration-damping radiating device
WO2015131723A1 (en) * 2014-08-21 2015-09-11 中兴通讯股份有限公司 Method and apparatus for regulating speed of ptn device fan
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN108052292A (en) * 2017-12-25 2018-05-18 成都信息工程大学 A kind of high-temperature protection method of solid state disk
WO2019037784A1 (en) * 2017-08-24 2019-02-28 中兴通讯股份有限公司 Fan control method, apparatus and storage medium
CN110297531A (en) * 2019-06-20 2019-10-01 西安易朴通讯技术有限公司 A kind of control method for fan, device, electronic equipment and storage medium
CN110489303A (en) * 2019-08-22 2019-11-22 江苏华存电子科技有限公司 A kind of temperature prediction control management method and device based on NVMe SSD hard disk
CN110704274A (en) * 2019-09-06 2020-01-17 苏州浪潮智能科技有限公司 Temperature control method, device and equipment for solid state disk
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 A bandwidth control method, device and storage medium
CN111045500A (en) * 2019-12-12 2020-04-21 江苏纳博信息技术有限公司 Computer CPU cooling control system
CN112596680A (en) * 2020-12-25 2021-04-02 深圳忆联信息系统有限公司 SSD temperature control performance balancing method and device, computer equipment and storage medium
CN113377179A (en) * 2021-06-10 2021-09-10 深圳忆联信息系统有限公司 Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN113377188A (en) * 2021-06-29 2021-09-10 南昌华勤电子科技有限公司 Storage server temperature control method, device and equipment
CN114253368A (en) * 2021-12-03 2022-03-29 苏州浪潮智能科技有限公司 A kind of storage server hard disk vibration reduction method, device and storage medium
CN114461039A (en) * 2021-12-28 2022-05-10 浪潮(山东)计算机科技有限公司 A heat dissipation control method, device, system, BMC and readable storage medium
CN114495996A (en) * 2021-12-26 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 Solid state disk power consumption control method and device, computer equipment and medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100100254A1 (en) * 2008-10-21 2010-04-22 Dell Products, Lp System and Method for Adapting a Power Usage of a Server During a Data Center Cooling Failure
DE102011011847A1 (en) * 2011-02-21 2012-08-23 Fujitsu Technology Solutions Intellectual Property Gmbh Computer system, has data processing device executing parametrizable control algorithm for controlling fan, where algorithm is adapted to parameter that is selected based on change in operating temperature of heat generating component
CN102982836A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for improving reliability of solid state disk and solid state disk of method
CN104121213A (en) * 2013-04-24 2014-10-29 加弘科技咨询(上海)有限公司 Method and system for fan control
US20140376177A1 (en) * 2013-06-25 2014-12-25 Hon Hai Precision Co., Ltd. Server with a function of generating fan table and method for generating fan table
WO2015131723A1 (en) * 2014-08-21 2015-09-11 中兴通讯股份有限公司 Method and apparatus for regulating speed of ptn device fan
CN104572399A (en) * 2015-02-03 2015-04-29 联想(北京)有限公司 Temperature control method and electronic equipment
CN204480122U (en) * 2015-02-12 2015-07-15 吉林工程技术师范学院 A kind of hard disc of computer vibration-damping radiating device
WO2019037784A1 (en) * 2017-08-24 2019-02-28 中兴通讯股份有限公司 Fan control method, apparatus and storage medium
CN107342101A (en) * 2017-08-29 2017-11-10 郑州云海信息技术有限公司 The temprature control method and temperature control system of a kind of solid state hard disc
CN108052292A (en) * 2017-12-25 2018-05-18 成都信息工程大学 A kind of high-temperature protection method of solid state disk
CN110297531A (en) * 2019-06-20 2019-10-01 西安易朴通讯技术有限公司 A kind of control method for fan, device, electronic equipment and storage medium
CN110489303A (en) * 2019-08-22 2019-11-22 江苏华存电子科技有限公司 A kind of temperature prediction control management method and device based on NVMe SSD hard disk
CN110704274A (en) * 2019-09-06 2020-01-17 苏州浪潮智能科技有限公司 Temperature control method, device and equipment for solid state disk
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 A bandwidth control method, device and storage medium
CN111045500A (en) * 2019-12-12 2020-04-21 江苏纳博信息技术有限公司 Computer CPU cooling control system
CN112596680A (en) * 2020-12-25 2021-04-02 深圳忆联信息系统有限公司 SSD temperature control performance balancing method and device, computer equipment and storage medium
CN113377179A (en) * 2021-06-10 2021-09-10 深圳忆联信息系统有限公司 Method and device for reducing working temperature of solid state disk, computer equipment and medium
CN113377188A (en) * 2021-06-29 2021-09-10 南昌华勤电子科技有限公司 Storage server temperature control method, device and equipment
CN114253368A (en) * 2021-12-03 2022-03-29 苏州浪潮智能科技有限公司 A kind of storage server hard disk vibration reduction method, device and storage medium
CN114495996A (en) * 2021-12-26 2022-05-13 山东云海国创云计算装备产业创新中心有限公司 Solid state disk power consumption control method and device, computer equipment and medium
CN114461039A (en) * 2021-12-28 2022-05-10 浪潮(山东)计算机科技有限公司 A heat dissipation control method, device, system, BMC and readable storage medium

Similar Documents

Publication Publication Date Title
JP5520291B2 (en) Method and system for identifying file classification
TW201638808A (en) Technologies for computing rolling hashes
CN111651327B (en) Temperature control method and device for solid state disk, computer equipment and storage medium
CN114564446B (en) File storage method, device, system and storage medium
CN108388478B (en) Log data processing method and system
CN111208941A (en) File management method and device, computer equipment and computer readable storage medium
CN112527562A (en) Data backup method and device of distributed storage system and computer equipment
CN112466369A (en) Method, system, equipment and medium for testing Nand flash memory bit reversal
CN114185620B (en) Method and device for realizing acceleration of SSD firmware loading, computer equipment and storage medium
CN115240723A (en) A kind of hard disk cooling method, device, computer equipment and storage medium
CN111339538A (en) Online evidence obtaining method, device, equipment and storage medium based on macOS system
CN111125002A (en) Data backup filing method and system based on distributed storage
US11907076B2 (en) Data snapshot method and apparatus, computer device, and storage medium
CN114461259A (en) Firmware refreshing method and device, wireless module and storage medium
CN115543881B (en) PCIE (peripheral component interconnect express) equipment adaptation method, PCIE equipment adaptation system, computer equipment and storage medium
CN113312309A (en) Management method and device of snapshot chain and storage medium
CN114356369B (en) SSD firmware consistency loading method, device, computer equipment and storage medium
WO2021248406A1 (en) Method and apparatus for repairing file system
CN106201442A (en) The execution method and device of application program
TWI775501B (en) Method for a charging unit that backs up data stored on a mobile device
CN118778902A (en) Maximum power consumption control method, device and computer equipment based on solid state hard disk
CN114048443B (en) User identity verification method and device and computer storage medium
CN114185897B (en) Blockchain ledger data processing method, device, storage medium and electronic device
CN117194350B (en) Document storage method and system in engineering construction stage of data center
KR102386219B1 (en) Method And System for Policy-Based Versioning based on SGX-SSD

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