A hard disk power control method, device and storage medium
By controlling the power of the hard drive to below the over-temperature power before the hard drive overheats, the problem of hard drive damage after overheating is solved, and the stability and service life of the hard drive are improved.
Patent Information
- Application Number
- CN202211394319.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-11-08
AI Technical Summary
The existing technology triggers cooling measures only after the hard disk is overheated, causing damage to the hard disk during the high temperature period and reducing the stability of the hard disk.
When the current hard drive temperature does not exceed the rated temperature, the target power of the hard drive is determined and controlled to be less than or equal to the over-temperature power, thereby preventing the hard drive from overheating. This includes dynamically adjusting the power based on the hard drive ID, slot ID, and ambient temperature.
By pre-controlling the hard drive power, the hard drive is prevented from overheating, thus improving the stability and service life of the hard drive.
Smart Images

Figure CN115793808B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of hard disk storage, and in particular to a hard disk power control method, device, and storage medium. Background Art
[0002] As is known to all, when the operating temperature of a hard disk is higher than the rated temperature of the hard disk (abbreviated as: hard disk overheating), it will affect the service life of the hard disk, and in severe cases, it will directly cause damage to the hard disk.
[0003] In order to reduce the impact of hard disk overheating on the hard disk, the current temperature of the hard disk is usually detected periodically. When the hard disk is overheated, the service volume of the hard disk is reduced or the service of the hard disk is directly terminated to reduce the temperature of the hard disk.
[0004] However, the above method is triggered after the hard disk is overheated. During the period of overheating, the high temperature has caused certain damage to the hard disk, thereby reducing the stability of the hard disk. Therefore, how to ensure that the hard disk does not overheat is a technical problem that needs to be solved urgently in this field. Summary of the Invention
[0005] The embodiments of the present application provide a hard disk power control method, device, and storage medium, which can improve the stability of the hard disk.
[0006] To achieve the above objectives, the present invention adopts the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a method for controlling hard disk power, the method comprising: determining a target power of a target hard disk when a current temperature of the target hard disk is less than or equal to a rated temperature of the target hard disk; wherein the target power is less than or equal to a target over-temperature power, the target over-temperature power being the power of the target hard disk when operating at the rated temperature of the target hard disk; and controlling the target hard disk to operate at the target power.
[0008] Compared to the method of reducing the target hard disk's service volume or directly terminating its service after the target hard disk overheats, the hard disk power control method provided in the embodiment of the present application determines the target power of the target hard disk when the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk (i.e., when it is not overheated), and controls the target hard disk to operate at the target power; wherein the target power of the target hard disk is less than or equal to the target over-temperature power, and the target over-temperature power is the power of the target hard disk when it is operating at the rated temperature of the target hard disk. In this way, before the target hard disk overheats, the target power of the target hard disk is controlled to be at or below the target over-temperature power, thereby avoiding overheating of the target hard disk and improving the stability of the hard disk.
[0009] In a possible implementation, the method further includes: obtaining an identifier of a target hard disk; and determining a target over-temperature power corresponding to the identifier of the target hard disk based on a correspondence between identifiers of multiple hard disks and multiple over-temperature powers.
[0010] Since the rated temperatures of different hard disks are different, the over-temperature powers of different hard disks are also different. Based on this, the embodiment of the present application determines the target over-temperature power corresponding to the target hard disk according to the identification of the target hard disk from the correspondence between the identifications of multiple hard disks and multiple over-temperature powers; thereby improving the accuracy of the target over-temperature power.
[0011] In one possible implementation, the method further includes: obtaining an identifier of a target hard disk and an identifier of a target slot in which the target hard disk is inserted; determining a target over-temperature power corresponding to both the identifier of the target hard disk and the identifier of the target slot based on a correspondence between identifiers of multiple hard disks, identifiers of multiple slots, and multiple over-temperature powers; the target hard disk corresponds to the identifier of at least one slot; the target over-temperature power is the power of the target hard disk when it is inserted in the target slot and operates at the rated temperature of the target hard disk; the identifier of the at least one slot includes the identifier of the target slot.
[0012] The embodiment of the present application determines the target over-temperature power corresponding to the identifier of the target hard disk and the identifier of the target slot where the target hard disk is located from the correspondence between the identifiers of multiple hard disks, the identifiers of multiple slots and multiple over-temperature powers, wherein the target over-temperature power is the power when the target hard disk is inserted in the target slot and operates at the rated temperature of the hard disk; and controls the hard disk to operate below or equal to the target over-temperature power, so that different hard disks can avoid overheating when inserted in different slots, thereby improving the stability of the hard disk.
[0013] In one possible implementation, the method further includes: obtaining the identifier of the target hard disk and the identifier of the target slot in which the target hard disk is inserted; determining the target power to be adjusted corresponding to both the identifier of the target hard disk and the identifier of the target slot based on the correspondence between the identifiers of multiple hard disks, the identifiers of multiple slots and the multiple powers to be adjusted; the target hard disk corresponds to the identifier of at least one slot; the target power to be adjusted is the rated power of the target hard disk and the difference between the power of the target hard disk when it is inserted in the target slot and operates at the rated temperature of the target hard disk; the identifier of the at least one slot includes the identifier of the target slot; and determining the target over-temperature power based on the rated power of the target hard disk and the target power to be adjusted.
[0014] In one possible implementation, the above-mentioned determination and control of the target hard disk to operate at the target power includes: when the current temperature of the target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, reducing the current actual power of the target hard disk in sequence according to at least one order of power to be reduced, and controlling the target hard disk to operate at the reduced actual power until the current temperature of the target hard disk is less than the above-mentioned preset temperature, and the preset temperature is less than the rated temperature of the target hard disk, and the above-mentioned target power is the actual power of the target hard disk when the current temperature of the target hard disk is less than the preset temperature.
[0015] In one possible implementation, the above method also includes: obtaining the identification of the target hard disk; when the current temperature of the target hard disk is greater than or equal to the above preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, based on the correspondence between the identifications of multiple hard disks and multiple power sets to be reduced, determining the target power set to be reduced corresponding to the identification of the above target hard disk; wherein the above target power set to be adjusted includes the above at least one power to be reduced.
[0016] The embodiment of the present application determines the target power set to be reduced corresponding to the target hard disk through the identification of the target hard disk. When the current temperature of the above-mentioned target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the current actual power of the target hard disk is reduced in sequence according to the order of at least one power to be reduced in the target power set to be reduced, and the target hard disk is controlled to operate with the reduced actual power until the current temperature of the target hard disk is less than the above-mentioned preset temperature; wherein, the preset temperature is less than the rated temperature of the above-mentioned target hard disk, so that the current operating temperature of the target hard disk is accurately reduced to below the rated temperature of the target hard disk, thereby avoiding overheating of the target hard disk and improving the stability of the target hard disk.
[0017] In one possible implementation, when the current temperature of the target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the actual power of the target hard disk is reduced in sequence according to at least one order of power to be reduced, including: when the current temperature of the target hard disk is greater than or equal to the above-mentioned preset temperature, and the current temperature of the target hard disk is less than the rated temperature of the above-mentioned target hard disk, when the current rotational speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotational speed of the above-mentioned heat dissipation device, the actual power of the target hard disk is reduced in sequence according to the at least one order of power to be reduced.
[0018] In a possible implementation, the identifier of the target hard disk includes an identifier of a manufacturer of the target hard disk and / or a model of the target hard disk.
[0019] The identification of the target hard disk in the embodiment of the present application includes the manufacturer identification and / or the model of the target hard disk, so that multiple manufacturer identifications and / or target hard disk models correspond to a set of power to be reduced in the above correspondence, thereby saving storage resources in the computing device.
[0020] In a second aspect, an embodiment of the present application provides a computing device, which includes: a determination module and a control module; the determination module is used to determine the target power of the target hard disk when the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk; wherein the target power is less than or equal to the target over-temperature power, and the target over-temperature power is the power of the target hard disk when operating at the rated temperature of the target hard disk; the control module is used to control the target hard disk to operate at the target power.
[0021] In one possible implementation, the computing device further includes: a transceiver module; the transceiver module is used to obtain the identification of the target hard disk; and the determination module is used to determine the target over-temperature power corresponding to the identification of the target hard disk based on the correspondence between the identifications of multiple hard disks and multiple over-temperature powers.
[0022] In one possible implementation, the transceiver module is used to obtain the identification of the target hard disk and the identification of the target slot in which the target hard disk is inserted; the determination module is used to determine the target over-temperature power corresponding to the identification of the target hard disk and the identification of the target slot based on the correspondence between the identifications of multiple hard disks, the identifications of multiple slots and multiple over-temperature powers; the target hard disk corresponds to the identification of at least one slot; the target over-temperature power is the power when the target hard disk is inserted in the target slot and operates at the rated temperature of the target hard disk; the identification of at least one slot includes the identification of the target slot.
[0023] In one possible implementation, the transceiver module is used to obtain the identification of the target hard disk and the identification of the target slot in which the target hard disk is inserted; the determination module is used to determine the target power to be adjusted corresponding to the identification of the target hard disk and the identification of the target slot based on the correspondence between the identifications of multiple hard disks, the identifications of multiple slots and the multiple powers to be adjusted; the target hard disk corresponds to the identification of at least one slot; the target power to be adjusted is the rated power of the target hard disk and the difference between the power of the target hard disk when it is inserted in the target slot and working at the rated temperature of the target hard disk; the identification of at least one slot includes the identification of the target slot; the determination module is also used to determine the target over-temperature power based on the rated power of the target hard disk and the target power to be adjusted.
[0024] In one possible implementation, the control module is used to reduce the current actual power of the target hard disk in sequence according to at least one order of power reduction when the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, and control the target hard disk to operate at the reduced actual power until the current temperature of the target hard disk is less than the preset temperature and the preset temperature is less than the rated temperature of the target hard disk; the above-mentioned target power is the actual power of the target hard disk when the current temperature of the target hard disk is less than the preset temperature.
[0025] In one possible implementation, the transceiver module is used to obtain the identification of the target hard disk; the determination module is used to determine the target power set to be reduced corresponding to the identification of the target hard disk based on the correspondence between the identifications of multiple hard disks and multiple power sets to be reduced when the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk; wherein the target power set to be reduced includes at least one power to be reduced.
[0026] In one possible implementation, the control module is used to reduce the actual power of the target hard disk in sequence according to at least one order of power to be reduced when the current temperature of the target hard disk is greater than or equal to a preset temperature and the current temperature of the target hard disk is less than the rated temperature of the target hard disk, and when the current rotational speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotational speed of the heat dissipation device.
[0027] In a possible implementation, the identifier of the target hard disk includes a manufacturer identifier of the target hard disk and / or a model of the target hard disk.
[0028] In a third aspect, an embodiment of the present application provides a computing device comprising a memory and a processor, wherein the memory is coupled to the processor; the memory is used to store computer program code, wherein the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the computing device executes the method described in the first aspect and any one of its possible implementations.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed on a computing device, the computing device executes the method described in the first aspect above and any one of its possible implementation methods.
[0030] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any one of its possible implementations.
[0031] It should be understood that the beneficial effects achieved by the technical solutions of the second to fifth aspects of the embodiments of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first aspect and its corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of the internal structure of a computing device provided in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of the internal structure of an SSD provided in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of a hard disk power control method provided in an embodiment of the present application Figure 1 ;
[0036] Figure 5 A schematic diagram of a hard disk power control method provided in an embodiment of the present application Figure 2 ;
[0037] Figure 6 A schematic diagram of a hard disk power control method provided in an embodiment of the present application Figure 3 ;
[0038] Figure 7 A schematic diagram of a hard disk power control method provided in an embodiment of the present application Figure 4 ;
[0039] Figure 8 A schematic diagram of a hard disk power control method provided in an embodiment of the present application Figure 5 ;
[0040] Figure 9 A schematic diagram of the structure of a hard disk power control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0042] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0043] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple hard disks" refers to the identification of two or more hard disks; "multiple slots" refers to the identification of two or more slots.
[0044] Typically, to reduce the production costs of computing devices, major manufacturers will reduce the cooling devices in the computing devices. For example, they will reduce the number of cooling fans or replace high-power cooling fans with low-power cooling fans. However, after the reduction in configuration, the operating temperature of the hard drives installed in some slots of the computing devices will exceed the rated temperature of the hard drives (abbreviated as: overheating).
[0045] like Figure 1 As shown in the internal schematic diagram of the computing device, slots 40-41 in the computing device are located on the back of the cooling fan, so the hard disk installed in slots 40-41 is prone to overheating, which affects the service life of the hard disk and may directly damage the hard disk in severe cases.
[0046] Based on the above problem, a common method is to periodically detect the current temperature of the hard disk. When the hard disk is overheated, the service volume of the hard disk is reduced or the service of the hard disk is directly terminated to reduce the temperature of the hard disk.
[0047] However, the above method is triggered after the hard disk is overheated. During the period of overheating, the high temperature has caused certain damage to the hard disk, thereby reducing the stability of the hard disk. Therefore, how to ensure that the hard disk does not overheat is a technical problem that needs to be solved urgently in this field.
[0048] Based on this, an embodiment of the present application provides a method for controlling hard disk power, which controls the temperature of the hard disk by controlling the power of the hard disk; the method specifically includes: when the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, determining the target power of the target hard disk; wherein the target power is less than or equal to the target over-temperature power, and the target over-temperature power is the power of the target hard disk when it operates at the rated temperature of the target hard disk; then, controlling the target hard disk to operate at the above-mentioned target power; so that before the target hard disk overheats, the target power of the target hard disk is controlled to be below the above-mentioned target over-temperature power or the target over-temperature power, thereby avoiding overheating of the target hard disk and thereby improving the stability of the hard disk.
[0049] like Figure 2 As shown, it is a schematic diagram of a system architecture provided by an embodiment of the present application. The system architecture diagram is an example of a computer device. Figure 2 The hardware part of the computer device mainly includes a processor, such as a central processing unit (CPU), an out-of-band controller, and a hard disk. The software part mainly includes an out-of-band management module, processor firmware, and an operating system (OS) management unit. Among them, the out-of-band management module is located in the out-of-band controller, the OS management unit is located in the processor, and the processor firmware can be located in the processor (such as Figure 1 Alternatively, the processor firmware may be located on a firmware chip outside the processor ( Figure 1 The out-of-band management module may be a management unit of a non-business module. For example, the out-of-band management module may remotely maintain and manage a computer device via a dedicated data channel. The out-of-band management module is completely independent of the operating system of the computer device and may communicate with the basic input and output system (basic input and output system, processor firmware) and the OS (or OS management unit) via the out-of-band management interface of the computer device.
[0050] Exemplarily, the out-of-band management module may include a monitoring management unit external to the computer device, a management system in a management chip external to the processor, a baseboard management controller (BMC) of the computer device, a system management module (SMM), etc. It should be noted that the embodiments of the present application do not limit the specific form of the out-of-band management module, and the above description is merely an example. In the following embodiments, the out-of-band management module is described as a BMC.
[0051] It should be noted that the out-of-band management module described in the following embodiments performs a certain step (such as S201 below), which can be understood as: the out-of-band controller calls the out-of-band management module to perform the step.
[0052] Exemplarily, processor firmware (also referred to as processor firmware program) may be firmware, basic input and output system (BIOS), management engine (ME), microcode, or intelligent management unit (IMU). It should be noted that the embodiments of the present application do not limit the specific form of processor firmware, and the above description is merely exemplary.
[0053] It should be noted that the processor firmware described in the following embodiments executes a certain step (such as S210 below), which can be understood as: the CPU calls the processor firmware to execute the step.
[0054] The hard disk, also known as memory, is inserted into a hard disk slot on a motherboard of a computer device. The hard disk can be a solid state drive (SSD) or a hard disk drive (HDD).
[0055] When the hard disk is an SSD, Figure 3 As shown, the SSD includes: an input / output interface 301 , a controller 302 , and storage areas 1 -N.
[0056] The input / output interface 301 is used to forward instructions to be executed to the CPU, wherein the input / output interface 301 can be a physical interface or a virtual interface.
[0057] The controller 302 is configured to execute instructions to be executed based on instructions received by the input / output interface 301 , such as writing data to be written into the storage area of the SSD.
[0058] Optionally, the controller 302 implements the hard disk power control method provided in the embodiment of the present application by reading instructions stored in the storage areas 1-N.
[0059] Storage areas 1-N are used to store data, such as the area corresponding to a Rank, Device, BankGroup, Bank, Row, or Column in an SSD.
[0060] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0061] It should be noted that the hard disk in the embodiments of the present application is described using SSD as an example, and will not be described in detail later.
[0062] The embodiment of the present application provides a method for controlling hard disk power. The specific execution subject of the hard disk power control method can be the processor (such as: CPU) in the above-mentioned computing device, or the above-mentioned out-of-band management module (such as BMC), or the above-mentioned hard disk (the hard disk is Figure 3 SSD in) controller 302; Figure 4As shown, the method includes: S110-S120.
[0063] S110 : When the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the computing device determines the target power of the target hard disk.
[0064] The target hard disk is any one of the at least one hard disk installed in the computing device.
[0065] It should be noted that the current temperature of the above-mentioned target hard disk is less than or equal to the rated temperature of the target hard disk, which actually means that the target hard disk is not overheated; that is, overheating refers to the situation where the current temperature of the hard disk is greater than the rated temperature of the hard disk. For example: assuming that the rated temperature of hard disk A is 50 degrees Celsius (abbreviated as: degrees), when the temperature of hard disk A exceeds 50 degrees during operation, hard disk A is said to be overheated.
[0066] The target power of the above-mentioned target hard disk is less than or equal to the target over-temperature power; wherein, the target over-temperature power is the power of the target hard disk when it operates at the rated temperature of the target hard disk, that is, the target over-temperature power is the basis for judging whether the target hard disk is overheated. When the current power of the target hard disk is greater than the target over-temperature power, the target hard disk will cause overheating; when the current power of the target hard disk is less than or equal to the target over-temperature power, the target hard disk is not overheated.
[0067] Based on the above example, assuming that the power of hard disk A when operating at its rated temperature (50 degrees) is 50W, at this time, the target over-temperature power of the target hard disk is 50W; that is, the computing device determines the power less than or equal to the target over-temperature power of 50W as the above target power, such as 40W or 50W.
[0068] It should be noted that regarding the specific implementation method of how to determine the target over-temperature power of the target hard disk, please refer to S210-S220 of Example 1, S310-S320 of Example 2 or S410-S430 of Example 3 below, and no further details will be given here.
[0069] S120: The computing device controls the target hard disk to operate at a target power.
[0070] It should be noted that the specific method of controlling the target hard disk to operate at the target power may be achieved by controlling the input / output bandwidth (abbreviated as: I / O bandwidth) of the hard disk.
[0071] It should be understood that the greater the current I / O bandwidth of the hard disk, the greater the current power consumption of the hard disk; therefore, the power consumption of the hard disk can be controlled by controlling the I / O bandwidth of the hard disk. Based on this, when the implementation method of the above S120 is a method of controlling the I / O bandwidth of the hard disk, it specifically includes: S1.
[0072] S1. The computing device determines a target I / O bandwidth from a target correspondence according to a target power of a target hard disk.
[0073] The above-mentioned target correspondence includes multiple different power levels of the target hard disk and multiple different I / O bandwidths of the target hard disk, which are specifically shown in Table 1 below. Among them, when the target hard disk operates at a power of 30W, the I / O bandwidth of the target hard disk is 3GB / s; when the target hard disk operates at a power of 40W, the I / O bandwidth of the target hard disk is 4GB / s; when the target hard disk operates at a power of 50W, the I / O bandwidth of the target hard disk is 5GB / s.
[0074] Table 1
[0075] Hard disk identification power I / O bandwidth Target hard drive 30W 3GB / s Target hard drive 40W 4GB / s Target hard drive 50W 5GB / s
[0076] Based on this, the above S120 is essentially to set the I / O bandwidth of the hard disk to the I / O bandwidth corresponding to the above determined target power.
[0077] For example, based on the example in S110 above, assuming that the I / O bandwidth of hard disk A is 4 GB / s, the target power of hard disk A is 40 W.
[0078] Compared to the method of reducing the target hard disk's service volume or directly terminating its service after the target hard disk overheats, the hard disk power control method provided in the embodiment of the present application determines the target power of the target hard disk before the target hard disk overheats, and controls the target hard disk to operate at the target power; wherein the target power of the target hard disk is less than or equal to the target over-temperature power, and the target over-temperature power is the power of the target hard disk when operating at the rated temperature of the target hard disk. Therefore, before the target hard disk overheats, the target power of the target hard disk is controlled to be at or below the target over-temperature power, thereby avoiding overheating of the target hard disk and improving the stability of the hard disk.
[0079] Based on the above hard disk power control method, the present application provides four specific hard disk power control method embodiments, which are respectively Examples 1-4 and are as follows:
[0080] It should be noted that the execution subject of the following embodiments 1-4 can be the processor (such as: CPU) in the above computing device, or the above out-of-band management module (such as BMC), or the above hard disk (the hard disk is Figure 3 The controller 302 in the SSD in the present application; the embodiment of the present application is described by taking the execution subject as the BMC as an example, and no further details will be given later.
[0081] Example 1
[0082] like Figure 5As shown, an embodiment of the present application provides a method for controlling hard disk power, which may include S210-S240.
[0083] S210: The BMC in the computing device obtains an identifier of the target hard disk.
[0084] The target hard disk is any one of at least one hard disk installed in the computing device. The identifier of the target hard disk may include the manufacturer identifier and / or the model number of the target hard disk. For example, the identifier of hard disk A is "Manufacturer A + Model 1001."
[0085] In one implementation, the BMC obtains the identifier of the target hard disk by sending, via a target slot, a request for the identifier of the target hard disk to a controller in the target hard disk. Upon receiving the request, the controller in the target hard disk reads the identifier of the target hard disk from a storage area of the target hard disk and sends the identifier of the target hard disk to the BMC via an input / output interface of the target hard disk. The target slot is a slot for inserting a hard disk into which the target hard disk is located.
[0086] In another implementation, the BMC obtains the identifier of the target hard disk by: a controller in the target hard disk actively reads the identifier of the target hard disk from a storage area of the target hard disk, and sends the identifier of the target hard disk to the BMC through an input / output interface.
[0087] S220 : The BMC in the computing device determines a target over-temperature power corresponding to the identifier of the target hard disk based on a correspondence between the identifiers of the multiple hard disks and the multiple over-temperature powers.
[0088] It should be noted that the description of the above target over-temperature power is consistent with the description of the target over-temperature power in S110. For the specific description of the target over-temperature power in S220, please refer to the above description of S110, which will not be repeated here.
[0089] The over-temperature power corresponding to Hard Drive A in the above correspondence is the power of Hard Drive A when operating at its rated temperature. The identifiers of the aforementioned multiple hard drives include "Hard Drive A." This correspondence is shown in Table 2 below. The over-temperature power corresponding to Hard Drive A is 50W; the over-temperature power corresponding to Hard Drive B is 60W; and the over-temperature power corresponding to Hard Drive C is 40W.
[0090] Table 2
[0091] Hard disk identification Overtemperature power Hard Drive A 50W Hard Drive B 60W Hard Drive C 40W
[0092] The specific implementation of the above S220 is: determine the target identifier from the identifiers of multiple hard disks according to the identifier of the target hard disk, wherein the target identifier is exactly the same as the identifier of the target hard disk, and determine the over-temperature power corresponding to the target identifier in the correspondence between the identifiers of multiple hard disks and multiple over-temperature powers as the target over-temperature power.
[0093] For example, assuming that the target hard disk is identified as "hard disk A", the BMC determines the over-temperature power of 50W corresponding to "hard disk A" in the correspondence between multiple hard disk identifiers and multiple over-temperature powers as the target over-temperature power.
[0094] S230 : The BMC in the computing device determines a target power of the target hard disk when the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk.
[0095] S240: The BMC in the computing device controls the target hard disk to operate at the target power.
[0096] It should be noted that the implementation method of the above S230-S240 is similar to that of S110-S120. For the specific description of S230-S240, please refer to the above description of S110-S120, which will not be repeated here.
[0097] Because different hard drives have different rated temperatures, their over-temperature powers also vary. Based on this, the present embodiment determines the target over-temperature power for the target hard drive based on the identifier of the target hard drive and the corresponding relationships between multiple hard drive identifiers and multiple over-temperature powers. This improves the accuracy of the target over-temperature power. Furthermore, a power less than or equal to the target over-temperature power is subsequently determined as the target power, and the target hard drive is controlled to operate at the target power, thereby greatly ensuring that the target hard drive does not overheat, thereby improving the stability of the hard drive.
[0098] Example 2
[0099] Since a computing device includes multiple slots for inserting hard disks, and since the multiple slots are at different distances and angles from the heat dissipation device in the computing device, the overheating conditions of the hard disks inserted in the multiple slots are the same; for example, hard disks inserted in slots close to the heat dissipation device are less likely to overheat, while hard disks inserted in slots farther from the heat dissipation device are more likely to overheat.
[0100] Based on this, Figure 6 As shown, an embodiment of the present application provides a method for controlling hard disk power, the method including: S310-S340.
[0101] S310: The BMC in the computing device obtains an identifier of a target hard disk and an identifier of a target slot where the target hard disk is inserted.
[0102] It should be understood that after the target hard disk is inserted into the target slot, the controller in the hard disk will obtain the identifier of the target slot and save it in the storage area of the hard disk.
[0103] It should be noted that the implementation method of the above BMC obtaining the identifier of the target hard disk and the identifier of the target slot where the target hard disk is inserted is similar to S210. For the specific description of S310, please refer to the above description of S210, which will not be repeated here.
[0104] S320: The BMC in the computing device determines a target over-temperature power based on a correspondence between identifiers of multiple hard disks, identifiers of multiple slots, and multiple over-temperature powers.
[0105] The target hard drive corresponds to at least one slot identifier; the target over-temperature power is the power output when the target hard drive is installed in the target slot and operates at the rated temperature of the hard drive; wherein the identifier of the at least one slot corresponding to the target hard drive includes the identifier of the target slot. In other words, the over-temperature power A is the power output when hard drive A is installed in slot A and operates at the rated temperature of hard drive A.
[0106] The above correspondence is shown in Table 3 below; among them, when hard disk A is inserted in slot 1, the corresponding over-temperature power is 50W; when hard disk A is inserted in slot 2, the corresponding over-temperature power is 40W; when hard disk B is inserted in slot 1, the corresponding over-temperature power is 60W; when hard disk B is inserted in slot 2, the corresponding over-temperature power is 20W.
[0107] Table 3
[0108] serial number Hard disk identification Slot identification Overtemperature power 1 Hard Drive A Slot 1 50W 2 Hard Drive A Slot 2 40W 3 Hard Drive B Slot 1 60W 4 Hard Drive B Slot 2 20W
[0109] The specific implementation of the above S320 is: determining the over-temperature power corresponding to both the identifier of the above target hard disk and the identifier of the above target slot from the above correspondence, and determining the over-temperature power as the target over-temperature power.
[0110] For example, assuming that the target hard disk is identified as "hard disk A" and the target slot is identified as "slot 1", based on the corresponding relationship shown in Table 3 above, the over-temperature power of 50W is determined as the target over-temperature rated temperature.
[0111] Optionally, the identifiers of the above-mentioned multiple slots can be identifiers of sensitive slots corresponding to hard disks, wherein a sensitive slot corresponding to a hard disk is a slot among multiple slots in the computing device that will cause the hard disk to overheat.
[0112] S330 : When the current temperature of the BMC in the computing device is less than or equal to the rated temperature of the target hard disk, determine the target power of the target hard disk.
[0113] S340: The BMC in the computing device controls the target hard disk to operate at the target power.
[0114] It should be noted that the implementation method of the above S330-S340 is similar to that of S110-S120. For the specific description of S330-S340, please refer to the above description of S110-S120, which will not be repeated here.
[0115] The embodiment of the present application determines the target over-temperature power corresponding to the identifier of the target hard disk and the identifier of the target slot where the target hard disk is located from the correspondence between the identifiers of multiple hard disks, the identifiers of multiple slots and multiple over-temperature powers, wherein the target over-temperature power is the power when the target hard disk is inserted in the target slot and operates at the rated temperature of the hard disk; and controls the hard disk to operate below or equal to the target over-temperature power, so that different hard disks can avoid overheating when inserted in different slots, thereby improving the stability of the hard disk.
[0116] Example 3
[0117] Another implementation of the above embodiment 2 is as follows: Figure 7 As shown, the method includes: S410-S450.
[0118] S410: The BMC in the computing device obtains an identifier of a target hard disk and an identifier of a target slot where the target hard disk is inserted.
[0119] It should be noted that the implementation method of the above BMC obtaining the identifier of the target hard disk and the identifier of the target slot where the target hard disk is inserted is consistent with the implementation method of S310. For the specific description of S410, please refer to the above description of S310 and will not be repeated here.
[0120] S420: The BMC in the computing device determines a target power to be adjusted based on a correspondence between identifiers of the multiple hard disks, identifiers of the multiple slots, and the multiple powers to be adjusted.
[0121] The target hard disk corresponds to an identifier of at least one slot.
[0122] The target power to be adjusted is the difference between the rated power of the target hard drive and the power of the target hard drive when installed in the target slot and operating at the target hard drive's rated temperature. The identifier of at least one slot corresponding to the target hard drive includes the identifier of the target slot. In other words, if the rated power of hard drive A in slot 1 is reduced by the target power to be adjusted, and hard drive A is operated at the reduced rated power, the temperature of hard drive A will be the rated temperature of hard drive A.
[0123] The target power to be adjusted is the power to be adjusted corresponding to both the identifier of the target hard disk and the identifier of the target slot in the above correspondence.
[0124] The above correspondence is specifically shown in Table 4 below, where after hard disk A is installed in slot 1, the rated power of hard disk A is reduced by 10W, and hard disk A operates at the rated temperature of hard disk A; after hard disk A is installed in slot 2, the rated power of hard disk A is reduced by 20W, and hard disk A operates at the rated temperature of hard disk A; after hard disk B is installed in slot 1, the rated power of hard disk B is reduced by 5W, and hard disk B operates at the rated temperature of hard disk B; after hard disk B is installed in slot 2, the rated power of hard disk B is reduced by 45W, and hard disk B operates at the rated temperature of hard disk B.
[0125] Table 4
[0126] serial number Hard disk identification Slot identification Power to be adjusted 1 Hard Drive A Slot 1 10W 2 Hard Drive A Slot 2 20W 3 Hard Drive B Slot 1 5W 4 Hard Drive B Slot 2 45W
[0127] The specific implementation of the above S420 is: determining the power to be adjusted corresponding to both the identifier of the target hard disk and the identifier of the target slot from the above correspondence relationship, and determining the power to be adjusted as the target power to be adjusted.
[0128] For example, assuming that the target hard disk is identified as "hard disk A" and the target slot is identified as "slot 1", the power to be adjusted 10W corresponding to both "hard disk A" and "slot 1" is determined as the target power to be adjusted.
[0129] S430: The BMC in the computing device determines a target over-temperature power according to the rated power of the target hard disk and the target power to be adjusted.
[0130] The specific implementation of the above S430 is to determine the difference between the rated power of the target hard disk and the target power to be adjusted as the target over-temperature power.
[0131] For example, based on the example in S420 above, the target power to be adjusted is 10W; assuming that the rated power of the target hard disk is 60W, then the difference of 50W between 60W and 10W is determined as the target over-temperature power.
[0132] S440 : When the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the BMC in the computing device determines the target power of the target hard disk.
[0133] S450: The BMC in the computing device controls the target hard disk to operate at the target power.
[0134] It should be noted that the implementation method of the above S440-S450 is similar to that of S110-S120. For the specific description of S440-S450, please refer to the above description of S110-S120, which will not be repeated here.
[0135] Example 4
[0136] Due to the high complexity of the environment in which the hard disk is located, for example, whether a hard disk is overheated is not only affected by the power of the hard disk, but also by the temperature of the environment in which the hard disk is located. The temperature in the environment is constantly changing, so the target overheat power of the target hard disk is also constantly changing. Based on this, Figure 8 As shown, an embodiment of the present application provides a method for controlling hard disk power, the method including: S510-S540.
[0137] S510: The BMC in the computing device obtains the identifier of the target hard disk and the current temperature of the target hard disk.
[0138] It should be noted that the implementation method of the above S510 is similar to that of S210. For the specific description of S510, please refer to the above description of S210, which will not be repeated here.
[0139] S520: The BMC in the computing device determines whether the current temperature of the target hard disk is greater than or equal to a preset temperature, and whether the current temperature of the target hard disk is less than or equal to a rated temperature of the target hard disk.
[0140] The above preset temperature is lower than the rated temperature of the target hard disk.
[0141] When the current temperature of the target hard disk is lower than the preset temperature, or the current temperature of the target hard disk is higher than the rated temperature of the target hard disk, an ending action is performed.
[0142] When the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, S530 is executed.
[0143] Optionally, the condition of the above S520 can also be: the BMC in the computing device determines whether the current temperature of the target hard disk is greater than or equal to the preset temperature, whether the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, and whether the current rotation speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotation speed of the heat dissipation device.
[0144] When the current temperature of the target hard disk is greater than or equal to the preset temperature, the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, and the current rotation speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotation speed of the heat dissipation device, execute S530.
[0145] When the current temperature of the target hard disk is lower than the preset temperature, or the current temperature of the target hard disk is higher than the rated temperature of the target hard disk, and the current rotation speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotation speed of the heat dissipation device, the end action is executed.
[0146] When the current temperature of the target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, and the current rotational speed of the heat dissipation device of the computing device where the target hard disk is located is not equal to the rated rotational speed of the heat dissipation device, the current rotational speed of the heat dissipation device is controlled to be equal to the rated rotational speed of the heat dissipation device.
[0147] The specific implementation of controlling the current rotation speed of the heat dissipation device to be equal to the rated rotation speed of the heat dissipation device is described with reference to the prior art and is not limited in the embodiments of the present application.
[0148] S530: The BMC in the computing device determines a target power set to be reduced corresponding to the identifier of the target hard disk based on the correspondence between the identifiers of the multiple hard disks and the multiple power sets to be reduced.
[0149] The above-mentioned target power to be reduced set includes at least one power to be reduced, and the reduced power is used to represent the amount by which the hard disk currently needs to reduce its power.
[0150] The above correspondence is shown in Table 5 below; the power set to be reduced corresponding to hard disk A is {1, 2, 3, 3, 3, 4, 6}; the power set to be reduced corresponding to hard disk B is {1, 2, 3, 4, 4, 6, 6}; and the power set to be reduced corresponding to hard disk C is {1, 2, 2, 4, 6, 6, 8}.
[0151] Table 5
[0152] serial number Hard disk identification Power set to be reduced 1 Hard Drive A {1,2,3,3,3,4,6} 2 Hard Drive B {1,2,3,4,4,6,6} 3 Hard Drive C {1,2,2,4,6,6,8}
[0153] The specific implementation of the above S530 is: determine the target identifier from the identifiers of multiple hard disks according to the identifier of the target hard disk, wherein the target identifier is exactly the same as the identifier of the target hard disk, and determine the power set to be reduced corresponding to the target identifier in the correspondence between the identifiers of multiple hard disks and the multiple power sets to be reduced as the target power set to be reduced.
[0154] For example, assuming that the target hard disk is identified as "Hard Disk A", from the correspondence shown in Table 5 above, the power reduction set {1, 2, 3, 3, 3, 4, 6} corresponding to "Hard Disk A" is determined as the target power reduction set.
[0155] S540. The BMC in the computing device reduces the current actual power of the target hard disk in sequence according to the order of at least one power to be reduced in the target power reduction set, and controls the target hard disk to operate at the reduced actual power until the current temperature of the target hard disk is lower than the preset temperature.
[0156] The specific implementation of the above S540 is: first use the first power to be reduced among the at least one power to be reduced to reduce the current actual power of the target hard disk (abbreviated as: the first current actual power) to obtain the reduced power (abbreviated as: the second current actual power), so that the target hard disk works at the second current actual power; then, execute the above S510-530 until it is determined in the above S520 that the current temperature of the target hard disk is less than the preset temperature, the current power of the target hard disk is the target power of the target hard disk, and the end action is executed.
[0157] Exemplarily, based on the example in S530 above, the target power set to be reduced is {1, 2, 3, 3, 3, 4, 6}; assuming the preset temperature is 50 degrees, the rated temperature of the target hard disk is 70, the current temperature of the target hard disk is 55 degrees, and the current power of the target hard disk is 55W. First, the BMC uses the first power to be reduced, 1W, in the target power set to be reduced to reduce the current power of the target hard disk to 55W, so that the target hard disk works at 54W. Then, the temperature of the target hard disk when the target hard disk works at 54W is obtained to be 54 degrees; since 54 degrees is greater than the preset temperature of 50 degrees; the BMC uses the second power to be reduced, 2W, in the target power set to be reduced to reduce the current power of the target hard disk to 54W, so that the target hard disk works at 52W. Subsequently, the target hard disk temperature is obtained as 52 degrees when it is working at 52W. Since 52 degrees is greater than the preset temperature of 50 degrees, the BMC uses the third power to be reduced in the target power reduction set, 3W, to reduce the current power of the target hard disk to 52W, so that the target hard disk works at 49W. The target hard disk temperature is obtained as 49 degrees when it is working at 49W. Since the current temperature of the target hard disk, 49 degrees, is less than the preset temperature of 50 degrees, at this time, 49W is the target power of the target hard disk, and the iterative process ends.
[0158] Optionally, when there is only one hard disk in the computing device, the solution of Example 4 can, when the current temperature of the target hard disk is greater than or equal to a preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, sequentially reduce the current actual power of the target hard disk according to the order of at least one power to be reduced, and control the target hard disk to operate at the reduced actual power until the current temperature of the target hard disk is less than the preset temperature; wherein the at least one power to be reduced is a preset set of target powers to be reduced. Since the computing device only stores one set of powers to be reduced, the storage resources of the computing device are conserved.
[0159] The embodiment of the present application determines the target power set to be reduced corresponding to the target hard disk through the identification of the target hard disk. When the current temperature of the above-mentioned target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the current actual power of the target hard disk is reduced in sequence according to the order of at least one power to be reduced in the target power set to be reduced, and the target hard disk is controlled to operate with the reduced actual power until the current temperature of the target hard disk is less than the above-mentioned preset temperature; wherein, the preset temperature is less than the rated temperature of the above-mentioned target hard disk, so that the current operating temperature of the target hard disk is accurately reduced to below the rated temperature of the target hard disk, thereby avoiding overheating of the target hard disk and improving the stability of the target hard disk.
[0160] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to realize the above functions, the hard disk power control device (such as BMC) includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0161] In the embodiment of the present application, the hard disk power control device (such as BMC) can be divided into functional modules according to the above method. For example, the hard disk power control device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0162] like Figure 9 A structural diagram of a hard disk power control device is shown; the hard disk power control device includes: a determination module 901 and a control module 902.
[0163] The determination module 901 is used to determine the target power of the target hard disk when the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk; for example, executing steps S110, S230, S330 and S440 in the above method embodiment.
[0164] The control module 902 is used to control the target hard disk to operate at the target power; for example, executing steps S120, S240, S340 and S450 in the above method embodiment.
[0165] Optionally, the hard disk power control device further includes: a transceiver module 903 .
[0166] The transceiver module 903 is used to obtain the identification of the target hard disk; for example, executing step S210 in the above method embodiment.
[0167] The determination module 901 is configured to determine a target over-temperature power corresponding to the identifier of the target hard disk based on the correspondence between the identifiers of the multiple hard disks and the multiple over-temperature powers; for example, executing step S220 in the above method embodiment.
[0168] Optionally, the transceiver module 903 is configured to obtain an identifier of the target hard disk and an identifier of the target slot where the target hard disk is inserted; for example, executing step S310 in the above method embodiment.
[0169] The determination module 901 is used to determine the target over-temperature power corresponding to the identification of the target hard disk and the identification of the target slot based on the correspondence between the identifications of multiple hard disks, the identifications of multiple slots and multiple over-temperature powers; for example, execute step S320 in the above method embodiment.
[0170] Optionally, the transceiver module 903 is configured to obtain an identifier of the target hard disk and an identifier of the target slot where the target hard disk is inserted; for example, executing step S410 in the above method embodiment.
[0171] The determination module 901 is used to determine the target power to be adjusted corresponding to the identification of the target hard disk and the identification of the target slot based on the correspondence between the identifications of multiple hard disks, the identifications of multiple slots and the multiple powers to be adjusted; for example, execute step S420 in the above method embodiment.
[0172] The determination module 901 is further configured to determine a target over-temperature power according to the rated power of the target hard disk and the target power to be adjusted; for example, executing step S430 in the above method embodiment.
[0173] Optionally, the control module 902 is used to reduce the current actual power of the target hard disk in sequence according to at least one order of power reduction when the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, and control the target hard disk to operate with the reduced actual power until the current temperature of the target hard disk is less than the preset temperature; for example, execute step S540 in the above method embodiment.
[0174] Optionally, the transceiver module 903 is configured to obtain an identifier of the target hard disk; for example, executing step S510 in the above method embodiment.
[0175] The determination module 901 is used to determine the target power set to be reduced corresponding to the identifier of the target hard disk based on the correspondence between the identifiers of multiple hard disks and multiple power sets to be reduced when the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk; for example, execute step S530 in the above method embodiment.
[0176] Optionally, the control module 902 is used to reduce the actual power of the target hard disk in sequence according to at least one order of power to be reduced when the current temperature of the target hard disk is greater than or equal to a preset temperature and the current temperature of the target hard disk is less than the rated temperature of the target hard disk, and when the current rotational speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotational speed of the heat dissipation device.
[0177] In addition, the explanation and beneficial effects of any of the hard disk power control devices provided above can be referred to the corresponding method embodiments above, which will not be repeated here.
[0178] The embodiment of the present application also provides a computer device, comprising: a processor and a memory, wherein the processor is connected to the memory. The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby achieving the above Figure 4-Figure 8 In one example, the processor may be a BMC.
[0179] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is run on a computer, the computer is caused to execute any of the methods executed by the computer devices provided above.
[0180] For explanations of the relevant contents and descriptions of the beneficial effects of any of the computer-readable storage media provided above, reference may be made to the corresponding embodiments described above, and no further details will be given here.
[0181] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions in accordance with the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0182] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0183] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0184] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0185] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0186] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.
[0187] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for controlling hard disk power, characterized in that: include: When the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, determining a target power of the target hard disk; wherein the target power is less than or equal to a target over-temperature power, and the target over-temperature power is the power of the target hard disk when operating at the rated temperature of the target hard disk; controlling the target hard disk to operate at the target power; The method further comprises: Obtaining an identifier of the target hard disk and an identifier of a target slot where the target hard disk is inserted; Based on the correspondence between the identifiers of multiple hard disks, the identifiers of multiple slots and multiple over-temperature powers, the target over-temperature power corresponding to the identifier of the target hard disk and the identifier of the target slot is determined; the target hard disk corresponds to the identifier of at least one slot; the target over-temperature power is the power of the target hard disk when it is inserted in the target slot and works at the rated temperature of the target hard disk; the identifier of the at least one slot includes the identifier of the target slot.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining an identifier of the target hard disk; Based on the correspondence between the identifiers of the plurality of hard disks and the plurality of over-temperature powers, the target over-temperature power corresponding to the identifier of the target hard disk is determined.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining an identifier of the target hard disk and an identifier of a target slot where the target hard disk is inserted; Based on the correspondence between the identifiers of multiple hard disks, the identifiers of multiple slots, and the multiple powers to be adjusted, determining a target power to be adjusted that corresponds to both the identifier of the target hard disk and the identifier of the target slot; the target hard disk corresponds to the identifier of at least one slot; the target power to be adjusted is the difference between the rated power of the target hard disk and the power of the target hard disk when inserted in the target slot and operating at the rated temperature of the target hard disk; the identifier of the at least one slot includes the identifier of the target slot; The target over-temperature power is determined according to the rated power of the target hard disk and the target power to be adjusted.
4. The method according to claim 1, wherein Determining and controlling the target hard disk to operate at the target power includes: When the current temperature of the target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, the current actual power of the target hard disk is reduced in sequence according to at least one order of power to be reduced, and the target hard disk is controlled to operate with the reduced actual power until the current temperature of the target hard disk is less than the preset temperature, and the preset temperature is less than the rated temperature of the target hard disk, and the target power is the actual power of the target hard disk when the current temperature of the target hard disk is less than the preset temperature.
5. The method according to claim 4, characterized in that The method further comprises: Obtaining an identifier of the target hard disk; When the current temperature of the target hard disk is greater than or equal to the preset temperature, and the current temperature of the target hard disk is less than or equal to the rated temperature of the target hard disk, based on the correspondence between the identifiers of multiple hard disks and multiple power sets to be reduced, the target power set to be reduced corresponding to the identifier of the target hard disk is determined; wherein, the target power set to be reduced includes the at least one power to be reduced.
6. The method according to claim 4 or 5, characterized in that When the current temperature of the target hard disk is greater than or equal to a preset temperature and the current temperature of the target hard disk is less than or equal to a rated temperature of the target hard disk, reducing the current actual power of the target hard disk in sequence according to at least one order of power to be reduced, including: When the current temperature of the target hard disk is greater than or equal to the preset temperature and the current temperature of the target hard disk is less than the rated temperature of the target hard disk, and when the current rotational speed of the heat dissipation device of the computing device where the target hard disk is located is equal to the rated rotational speed of the heat dissipation device, the actual power of the target hard disk is reduced in sequence according to the order of the at least one power to be reduced.
7. The method according to any one of claims 2, 3 or 5, characterized in that The identifier of the target hard disk includes the manufacturer identifier of the target hard disk and / or the model of the target hard disk.
8. A computing device, characterized in that The method comprises a memory and a processor, wherein the memory is coupled to the processor; the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the processor executes the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that The device stores computer instructions, which, when executed on a computing device, cause the computing device to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Speed regulating method and device for cooling fan of server
CN108255272A
Temperature compensation in data storage device
US9405356B1