Hard disk power consumption control method, system, computer equipment and medium

By obtaining the difference in hard disk load parameters and calculating the current power consumption, the hard disk power consumption level is adjusted, solving the problem of power consumption mismatch in different application scenarios, and achieving energy saving and performance balance of the hard disk.

CN119127064BActive Publication Date: 2025-09-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411055343.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2025-09-23
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

Existing hard drives are unable to dynamically adjust power consumption during use, resulting in an inability to adapt to the needs of different application scenarios, affecting system operation and uneven energy consumption.

Method used

By obtaining the difference between the current load parameters of the hard disk and the target load parameters, the current power consumption is calculated, and the power consumption level of the hard disk is adjusted according to the power consumption level to ensure that it is within the power consumption range. The power consumption is monitored and adjusted in real time to match the application scenario.

Benefits of technology

It achieves dynamic matching between hard drive power consumption and application scenarios, ensuring that the hard drive is used at a reasonable level and achieving energy saving and consumption reduction effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127064B_ABST
    Figure CN119127064B_ABST
Patent Text Reader

Abstract

The present application discloses a hard disk power consumption control method, system, computer equipment and medium, which relates to the technical field of hard disks, including obtaining the current load parameters of the hard disk in response to the hard disk being operated and used, and confirming that the difference between the current load parameters and the target load parameters meets a predefined range; obtaining the input and output data of the hard disk, and calculating the current power consumption of the hard disk based on the input and output data of the hard disk; setting the power consumption level of the hard disk based on the current power consumption, wherein the power consumption level is included in the power consumption carrying range of the hard disk; in response to the completion of the setting of the power consumption level of the hard disk, reading the real-time power consumption data of the hard disk, and confirming that the real-time power consumption data does not exceed the power consumption carrying range. The present application can dynamically adjust the power consumption of the hard disk in real time based on the actual power consumption of the hard disk during operation, so as to match the power consumption of the hard disk with the application scenario, while also playing a role in energy saving and consumption reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hard disks, and in particular to a hard disk power consumption control method, system, computer equipment, and medium. Background Art

[0002] Hard drives are fundamental storage devices, one of their primary functions being data storage. All data in a computer system, including operating systems, applications, files, photos, videos, and more, must be stored on a hard drive. Hard drives provide large-capacity storage space, accommodating vast amounts of data. Both individual and enterprise users rely on hard drives to store and manage data. The continuous increase in data volume is driving a rapid increase in hard drive performance, necessitating a balance between performance and power consumption.

[0003] In some related technologies, a hard disk is set with a default power consumption level when it is produced. Such a hard disk can only operate within a single power consumption range during subsequent use. Some users may also customize a hard disk with corresponding power consumption from the hard disk manufacturer based on the subsequent usage scenarios of the hard disk, but such a hard disk can only be used for the initial scenario. When it is used in other application scenarios, the power consumption cannot be adjusted. In addition, it also includes setting different power consumption levels for the hard disk, such as high power consumption mode or low power consumption mode, and switching between different modes according to power consumption requirements during use. There is also an impact on system operation when switching levels. Summary of the Invention

[0004] In order to solve at least one of the problems mentioned in the above background technology, the present application provides a hard disk power consumption control method, system, computer equipment and medium, which can dynamically adjust the hard disk power consumption in real time based on the actual power consumption during the operation of the scenario in which the hard disk is located, so as to achieve the matching of the hard disk power consumption and the application scenario, while playing a role in energy saving and consumption reduction.

[0005] The specific technical solutions provided in the embodiments of this application are as follows:

[0006] In a first aspect, a method for controlling hard disk power consumption is provided, the method comprising: in response to a hard disk being operated and used, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range; obtaining input and output data of the hard disk that satisfies the predefined range, and calculating the current power consumption of the hard disk based on the input and output data of the hard disk; setting a power consumption level of the hard disk based on the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk; in response to completion of the setting of the power consumption level of the hard disk, reading the real-time power consumption data of the hard disk, and confirming that the real-time power consumption data does not exceed the power consumption carrying range.

[0007] In a specific embodiment, before calculating the current power consumption of the hard disk based on the input and output data of the hard disk, confirming whether the power consumption adjustment mode is turned on specifically includes: defining a power consumption adjustment switch attribute value at a register position of the hard disk to determine whether to turn on the power consumption adjustment mode based on the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, turning on the power consumption adjustment mode; or, in response to setting the power consumption adjustment switch attribute value to 0, turning off the power consumption adjustment mode and executing the default power consumption mode.

[0008] In a specific embodiment, the minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0009] In a specific embodiment,

[0010] Obtain the current load parameters of the hard disk, and confirm that the difference between the current load parameters and the target load parameters meets the predefined range, specifically including: obtaining the key features of the current load parameters of the hard disk, and simultaneously obtaining the feature combination of the hard disk in the previous preset period; performing similarity matching between the key features of the current load parameters and the features in the feature combination; obtaining similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; querying the load parameters associated with the similar features, and setting the load parameters associated with the similar features as the target load parameters; obtaining the feature value of the current load parameters, and simultaneously obtaining the feature value of the target load parameters; calculating the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed the predefined range, confirming that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, the hard disk does not meet the predefined range.

[0011] In a specific embodiment, the calculation of the current power consumption of the hard disk based on the input and output data of the hard disk specifically includes: obtaining the idle power consumption of the controller associated with the hard disk, the idle power consumption of the flash memory medium associated with the hard disk, and the idle power consumption of other components associated with the hard disk; and calculating the idle power consumption of the hard disk according to formula (1):

[0012] W idle =W c_idle +W n_idle +W o_idle (1)

[0013] Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idle Indicates the power consumption of the controller in idle state; W o_idleIndicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0014] Obtain the average power consumption of the hard disk within a preset time, the number of inputs and outputs within the preset time, and the number of inputs and outputs at the current moment; calculate the power consumption of the hard disk at the current moment according to formula (2);

[0015]

[0016] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0017] In a specific embodiment, the method further includes: in response to self-configuring the maximum value of the power consumption carrying range, setting the maximum value of the power consumption carrying range to be greater than the power consumption of the hard disk in an idle state and not exceeding the predefined upper limit power consumption of the hard disk; or, in response to not self-configuring the maximum value of the power consumption carrying range, setting the maximum value of the power consumption carrying range to the predefined upper limit power consumption of the hard disk.

[0018] In a specific embodiment, after turning off the power consumption adjustment mode and executing the default power consumption mode, the method further includes: obtaining the real-time load parameter value of the hard disk, and determining whether the difference between the real-time load parameter value and the target load parameter satisfies a predefined range; if so, continuing to execute the default power consumption mode; or, if not, turning on the power consumption adjustment mode.

[0019] In a second aspect, a hard disk power consumption control system is provided, for implementing the hard disk power consumption control method described above, the system comprising:

[0020] an acquiring unit, in response to the hard disk being operated, acquiring a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0021] a calculation unit, configured to obtain input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk;

[0022] A setting unit, configured to set a power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed a power consumption carrying range of the hard disk;

[0023] The monitoring unit is configured to read the real-time power consumption data of the hard disk in response to the completion of setting the power consumption level of the hard disk, and confirm that the real-time power consumption data does not exceed a power consumption carrying range.

[0024] In a third aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method described below:

[0025] Step A: in response to the hard disk being in operation, obtaining a current load characteristic of the hard disk, and confirming that the current load characteristic is a target load characteristic;

[0026] Step B: obtaining input and output data of the hard disk in the target load characteristic, and calculating the current power consumption of the hard disk according to the input and output data of the hard disk;

[0027] Step C: setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0028] Step D: In response to the completion of setting the power consumption level of the hard disk, reading the real-time power consumption data of the hard disk to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0029] In a fourth aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are performed:

[0030] Step A: in response to the hard disk being in operation, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0031] Step B: obtaining input and output data of the hard disk that meets the predefined range, and calculating the current power consumption of the hard disk according to the input and output data of the hard disk;

[0032] Step C: setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0033] Step D: In response to the completion of setting the power consumption level of the hard disk, reading the real-time power consumption data of the hard disk to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0034] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Step A: in response to the hard disk being in operation, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0036] Step B: obtaining input and output data of the hard disk that meets the predefined range, and calculating the current power consumption of the hard disk according to the input and output data of the hard disk;

[0037] Step C: setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0038] Step D: In response to the completion of setting the power consumption level of the hard disk, reading the real-time power consumption data of the hard disk to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0039] The embodiments of the present application have the following beneficial effects:

[0040] 1. The solution provided in the embodiment of the present application obtains the hard disk being used and the current load parameters, and confirms that the difference between the current load parameters and the target load parameters meets the predefined range, calculates the current power consumption of the hard disk based on the input and output data of the hard disk, and sets the power consumption level of the hard disk based on the current power consumption, ensuring that the real-time power consumption of the hard disk in this scenario does not exceed the power consumption carrying range, thereby ensuring that the hard disk is used at a reasonable level, so that the hard disk performance and power consumption are dynamically balanced; it can use the actual power consumption of the hard disk during operation as a benchmark, and dynamically adjust the hard disk power consumption in real time to achieve matching of the hard disk power consumption with the application scenario, while also playing a role in energy saving and consumption reduction.

[0041] 2. After the hard disk power consumption level is set, the real-time power consumption data of the hard disk is obtained to achieve real-time monitoring of the hard disk power consumption, and when power consumption adjustment is needed, the power consumption adjustment mode is controlled to be turned on. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0043] Figure 1 A schematic diagram showing an application environment according to the present application;

[0044] Figure 2 A schematic diagram showing a hard disk power consumption control method according to the present application;

[0045] Figure 3A schematic diagram showing a process for regulating a running hard disk according to the hard disk power consumption regulation method in this application;

[0046] Figure 4 A schematic diagram showing a hard disk power consumption control system according to the present application is shown;

[0047] Figure 5 A schematic diagram showing a computer device according to the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0049] The hard disk power consumption control method provided in this application can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the server 104 through the network. A hard disk is installed in the terminal, and the terminal can identify that the hard disk is in operation, obtain the current load parameters of the hard disk, and confirm that the difference between the current load parameters and the target load parameters meets the predefined range; obtain the input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk according to the input and output data of the hard disk; set the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level is included in the power consumption carrying range of the hard disk. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.

[0050] In one embodiment, Figure 2 and Figure 3 As shown, a hard disk power consumption control method is provided, which is applied to Figure 1 The following steps are used as an example to illustrate the terminal in the figure:

[0051] Step 101: In response to a hard disk being operated, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range.

[0052] In this embodiment, one or more hard disks are provided, and the hard disks include but are not limited to mechanical hard disks and solid-state hard disks. Since the power consumption level requirements of the hard disk are different according to the different upper-layer business operations on the hard disk during actual use, in order to ensure that the hard disk power consumption level is adjusted within the target load parameter range to achieve precise adjustment of the hard disk power consumption level, the current load parameter of the hard disk is obtained, and it is confirmed that the difference between the current load parameter and the target load parameter meets the predefined range.

[0053] Among them, obtaining the current load parameters of the hard disk and confirming that the difference between the current load parameters and the target load parameters meets the predefined range specifically includes obtaining the key features of the current load parameters of the hard disk, and simultaneously obtaining the feature combination of the hard disk in the previous preset period; performing similarity matching on the key features of the current load parameters and the features in the feature combination; obtaining similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; querying the load parameters associated with the similar features, and setting the load parameters associated with the similar features as the target load parameters; obtaining the feature value of the current load parameters, and simultaneously obtaining the feature value of the target load parameters; calculating the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed the predefined range, confirming that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, the hard disk does not meet the predefined range.

[0054] It should be noted that the use of the hard disk is divided into different time periods according to the time series, that is, preset cycles. By storing data such as power consumption and application scenarios in each cycle, the hard disk can be monitored during the entire use process.

[0055] Exemplarily, the current load parameters of the hard disk in this embodiment include the controller status and power consumption data, the status and power consumption data of the flash memory medium associated with the hard disk, and the status and power consumption data of other components. Specifically, the characteristic values ​​of the current load parameters are obtained, including the controller power consumption of 4W, the flash memory medium power consumption of 3W, and the power consumption of other components of 1W, and the predefined range is set to "±0.2W". The characteristic values ​​of the target load parameters are obtained, specifically including the controller power consumption of 3.9W, the flash memory medium power consumption of 2.8W, and the power consumption of other components of 1.1W. Through calculation, it can be obtained that the controller parameter difference is 0.1, the flash memory medium parameter difference is 0.2, and the other component parameter difference is 0.1, that is, the difference does not exceed the predefined range, then it is confirmed that the difference between the current load parameter and the target load parameter meets the predefined range.

[0056] Step 102: Acquire input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk.

[0057] In a specific embodiment, before calculating the current power consumption of the hard disk based on the input and output data of the hard disk, confirming whether the power consumption adjustment mode is turned on specifically includes: defining a power consumption adjustment switch attribute value at a register position of the hard disk to determine whether to turn on the power consumption adjustment mode based on the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, turning on the power consumption adjustment mode; or, in response to setting the power consumption adjustment switch attribute value to 0, turning off the power consumption adjustment mode and executing the default power consumption mode.

[0058] For example, when it is recognized that the hard disk is in operation, the power consumption adjustment mode can be confirmed by defining the power consumption adjustment switch attribute value in the register position of the hard disk. Specifically, by setting power-adjust-switch to 1 through the NVME protocol, the hard disk power consumption adjustment mode is turned on; by setting power-adjust-switch to 0, the hard disk power consumption adjustment mode is turned off, and the default power consumption mode is executed.

[0059] In this embodiment, the power consumption adjustment mode is further turned off by executing "nvme set-feature / dev / nvme0-f0x9-p0-s".

[0060] In a specific embodiment, after turning off the power consumption adjustment mode and executing the default power consumption mode, the method further includes: obtaining the real-time load parameter value of the hard disk, and determining whether the difference between the real-time load parameter value and the target load parameter satisfies a predefined range; if so, continuing to execute the default power consumption mode; or, if not, turning on the power consumption adjustment mode.

[0061] It should be noted that after executing the default power consumption mode, it is continued to determine whether to confirm to turn on the default power consumption mode. If it is confirmed to be turned on, the hard disk is continued to be monitored and a power consumption analysis report is generated. If it is not confirmed to turn on the default power consumption mode, it is reconfirmed to determine whether the difference between the real-time load parameter value and the target load parameter meets the predefined range.

[0062] Calculating the current power consumption of the hard disk according to the input and output data of the hard disk specifically includes: obtaining the idle power consumption of the controller associated with the hard disk, the idle power consumption of the flash memory medium associated with the hard disk, and the idle power consumption of other components associated with the hard disk;

[0063] The idle power consumption of the hard disk is calculated according to formula (1):

[0064] W idle =W c_idle +W n_idle +W o_idle (1)

[0065] Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idle Indicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0066] Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment;

[0067] Calculate the current power consumption of the hard disk according to formula (2);

[0068]

[0069] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0070] Specifically, the idle power consumption of the controller is 3W, the idle power consumption of the flash memory medium is 1.5W, and the idle power consumption of other components except the controller and flash memory medium is 0.2W. The preset time period is set to 20ms, the average power consumption of the hard disk within the preset time is 18.5W, the number of inputs and outputs within the preset time is 10,000, and the number of inputs and outputs at the current moment is 200. The above formula is used to calculate that the power consumption of the hard disk at the current moment is 10.22W.

[0071] Step 103: Setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk.

[0072] It should be noted that the minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0073] The minimum and maximum values ​​of the power consumption carrying range of the hard disk in this embodiment can be set by the user, including setting the maximum value of the power consumption carrying range to be greater than the power consumption of the hard disk in idle state and not exceeding the predefined upper limit power consumption of the hard disk in response to self-configuration of the maximum value of the power consumption carrying range; or, setting the maximum value of the power consumption carrying range to the predefined upper limit power consumption of the hard disk in response to not self-configuring the maximum value of the power consumption carrying range.

[0074] Among them, the maximum power consumption of the hard disk does not exceed the predefined upper limit power consumption of the hard disk. For example, the predefined upper limit power consumption of the hard disk can be set to the power consumption upper limit of the corresponding protocol, such as the GEN4 NVME U.2 upper limit is 25W.

[0075] Step 104 : In response to the power consumption level of the hard disk being set, read the real-time power consumption data of the hard disk to confirm that the real-time power consumption data does not exceed a power consumption carrying range.

[0076] After the power consumption level of the hard disk is set, the real-time power consumption data of the hard disk is obtained to realize real-time monitoring of the hard disk power consumption. When the power consumption adjustment is needed, the power consumption adjustment mode is controlled to be turned on. Moreover, when the real-time power consumption data does not exceed the power consumption carrying range, the hard disk power consumption is continued to be monitored and a power consumption analysis report is generated. If the real-time power consumption data exceeds the power consumption carrying range, an early warning notification is issued, which can be specifically notified by email or SMS.

[0077] In a specific embodiment, when a hard disk is used in a storage device, due to the large storage capacity requirement, several hard disks are provided in the storage device. After the power consumption level of the hard disk is set, the status information of each hard disk is obtained to detect the health status of each hard disk. Specifically, after the power consumption level of the hard disk is set, the power consumption level setting time is recorded, and the hard disk is set to enter the running state. The current time of the hard disk is queried, and the difference between the current time and the power consumption level setting time is calculated; the hard disks are arranged in descending order according to the length of the difference between the current time and the power consumption level setting time; in response to performing a health check on the hard disk, the status information of the hard disk having the longest difference between the current time and the power consumption level setting time is read to detect the health status of the hard disk.

[0078] It should be noted that in this embodiment, the health status of each hard disk is monitored in real time through the Smart attribute health monitoring module. If it is normal, the monitoring is continued; if an abnormality occurs, the power consumption adjustment mode is executed and the default power consumption mode state is restored to avoid abnormal conditions caused by the power consumption adjustment, and the alarm module is triggered to notify the maintenance person.

[0079] Through the above solution, after completing the setting of the power consumption level of the hard disk, in order to ensure the stable operation of the hard disk in the storage device, the status of the running hard disk is detected according to the length of operation time, thereby ensuring the continuous use of the storage device.

[0080] In a specific embodiment, after confirming that the hard disk is in power consumption adjustment mode or confirming that the hard disk is in execution mode power consumption mode, the hard disk power consumption is continuously analyzed and a power consumption analysis report is generated.

[0081] The solution in this embodiment can ensure that the hard disk is used at a reasonable level, so that the hard disk performance and power consumption are dynamically balanced; it can use the actual power consumption of the hard disk during operation as a benchmark, and dynamically adjust the hard disk power consumption in real time to achieve a match between the hard disk power consumption and the application scenario, while also playing a role in energy saving and consumption reduction.

[0082] It should be understood that although Figure 2 and Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Figure 2 and Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0083] In one embodiment, a hard disk power consumption control system is provided. Figure 4 As shown, the system includes:

[0084] an acquiring unit, in response to the hard disk being operated, acquiring a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0085] a calculation unit, configured to obtain input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk;

[0086] A setting unit, configured to set a power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed a power consumption carrying range of the hard disk;

[0087] The monitoring unit is configured to read the real-time power consumption data of the hard disk in response to the completion of setting the power consumption level of the hard disk, and confirm that the real-time power consumption data does not exceed a power consumption carrying range.

[0088] In a specific embodiment, it also includes a control unit, which is used to confirm whether the power consumption adjustment mode is turned on before calculating the current power consumption of the hard disk based on the input and output data of the hard disk; specifically used to define the power consumption adjustment switch attribute value at the register position of the hard disk, so as to judge whether to turn on the power consumption adjustment mode according to the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, the power consumption adjustment mode is turned on; or, in response to setting the power consumption adjustment switch attribute value to 0, the power consumption adjustment mode is turned off and the default power consumption mode is executed.

[0089] In a specific embodiment, the minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0090] In a specific embodiment, the acquisition unit is also used to obtain the key features of the current load parameters of the hard disk, and at the same time obtain the feature combination of the hard disk in the last preset period; perform similarity matching on the key features of the current load parameters with the features in the feature combination; obtain similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; query the load parameters associated with the similar features, and set the load parameters associated with the similar features as the target load parameters; obtain the feature value of the current load parameters, and at the same time obtain the feature value of the target load parameters; calculate the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed the predefined range, it is confirmed that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, the hard disk does not meet the predefined range.

[0091] In a specific embodiment, the calculation unit is further configured to obtain idle power consumption of a controller associated with the hard disk, idle power consumption of a flash memory medium associated with the hard disk, and idle power consumption of other components associated with the hard disk;

[0092] The idle power consumption of the hard disk is calculated according to formula (1):

[0093] W idle =W c_idle +W n_idle +W o_idle (1)

[0094] Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idleIndicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0095] Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment;

[0096] Calculate the current power consumption of the hard disk according to formula (2);

[0097]

[0098] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0099] In a specific embodiment, the setting unit is also used to, in response to self-configuring the maximum value of the power consumption carrying range, set the maximum value of the power consumption carrying range to be greater than the power consumption of the hard disk in the idle state and not exceeding the predefined upper limit power consumption of the hard disk; or, in response to not self-configuring the maximum value of the power consumption carrying range, set the maximum value of the power consumption carrying range to the predefined upper limit power consumption of the hard disk.

[0100] In a specific embodiment, the control unit is also used to obtain the real-time load parameter value of the hard disk after turning off the power consumption adjustment mode and executing the default power consumption mode, and determine whether the difference between the real-time load parameter value and the target load parameter meets the predefined range; if so, continue to execute the default power consumption mode; or, if not, turn on the power consumption adjustment mode.

[0101] The specific definition of the hard disk power consumption control system can be found in the definition of the hard disk power consumption control method above and will not be repeated here. Each module in the above-mentioned hard disk power consumption control system can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0102] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of the method described below:

[0103] Step 201: In response to a hard disk being operated, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0104] Step 202: Acquire input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk;

[0105] Step 203: setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0106] Step 204: After the power consumption level of the hard disk is set, the real-time power consumption data of the hard disk is read to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0107] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0108] Before calculating the current power consumption of the hard disk based on the input and output data of the hard disk, confirm whether the power consumption adjustment mode is turned on, specifically including defining a power consumption adjustment switch attribute value at a register position of the hard disk to determine whether to turn on the power consumption adjustment mode based on the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, turning on the power consumption adjustment mode; or, in response to setting the power consumption adjustment switch attribute value to 0, turning off the power consumption adjustment mode and executing the default power consumption mode.

[0109] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0110] The minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0111] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0112] Obtain key features of the current load parameters of the hard disk, and simultaneously obtain a feature combination of the hard disk within the previous preset period; perform similarity matching between the key features of the current load parameters and features in the feature combination; obtain similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; query the load parameters associated with the similar features, and set the load parameters associated with the similar features as target load parameters; obtain the feature value of the current load parameters, and simultaneously obtain the feature value of the target load parameters; calculate the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed a predefined range, confirm that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, confirm that the hard disk does not meet the predefined range.

[0113] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0114] Acquire idle power consumption of a controller associated with the hard disk, idle power consumption of a flash memory medium associated with the hard disk, and idle power consumption of other components associated with the hard disk;

[0115] The idle power consumption of the hard disk is calculated according to formula (1):

[0116] W idle =W c_idle +W n_idle +W o_idle (1)

[0117] Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idle Indicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0118] Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment;

[0119] Calculate the current power consumption of the hard disk according to formula (2);

[0120]

[0121] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioiIndicates the number of inputs and outputs at the current moment.

[0122] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0123] In response to self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to be greater than the power consumption of the hard disk in idle state and not exceeding the predefined upper limit power consumption of the hard disk; or, in response to not self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to the predefined upper limit power consumption of the hard disk.

[0124] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0125] Obtain the real-time load parameter value of the hard disk, and determine whether the difference between the real-time load parameter value and the target load parameter meets a predefined range; if so, continue to execute the default power consumption mode; or, if not, turn on the power consumption adjustment mode.

[0126] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. 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 and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store power consumption data of the hard disk within a preset period. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a hard disk power consumption control method is implemented.

[0127] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0128] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed:

[0129] Step 301: In response to a hard disk being operated, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0130] Step 302: Acquire input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk;

[0131] Step 303: Setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0132] Step 304: After the power consumption level of the hard disk is set, read the real-time power consumption data of the hard disk to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0133] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0134] Before calculating the current power consumption of the hard disk based on the input and output data of the hard disk, confirm whether the power consumption adjustment mode is turned on, specifically including defining a power consumption adjustment switch attribute value at a register position of the hard disk to determine whether to turn on the power consumption adjustment mode based on the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, turning on the power consumption adjustment mode; or, in response to setting the power consumption adjustment switch attribute value to 0, turning off the power consumption adjustment mode and executing the default power consumption mode.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] The minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0137] In one embodiment, when the processor executes the computer program, it also implements the following steps: obtaining the key features of the current load parameters of the hard disk, and simultaneously obtaining the feature combination of the hard disk in the last preset period; performing similarity matching on the key features of the current load parameters with the features in the feature combination; obtaining similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; querying the load parameters associated with the similar features, and setting the load parameters associated with the similar features as the target load parameters; obtaining the feature value of the current load parameters, and simultaneously obtaining the feature value of the target load parameters; calculating the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed the predefined range, confirming that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, the hard disk does not meet the predefined range.

[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0139] Obtaining idle power consumption of a controller associated with the hard disk, idle power consumption of a flash memory medium associated with the hard disk, and idle power consumption of other components associated with the hard disk;

[0140] The idle power consumption of the hard disk is calculated according to formula (1):

[0141] W idle =W c_idle +W n_idle +W o_idle (1)

[0142] Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idle Indicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0143] Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment;

[0144] Calculate the current power consumption of the hard disk according to formula (2);

[0145]

[0146] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N ioiIndicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0148] In response to self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to be greater than the power consumption of the hard disk in idle state and not exceeding the predefined upper limit power consumption of the hard disk; or, in response to not self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to the predefined upper limit power consumption of the hard disk.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Obtain the real-time load parameter value of the hard disk, and determine whether the difference between the real-time load parameter value and the target load parameter meets a predefined range; if so, continue to execute the default power consumption mode; or, if not, turn on the power consumption adjustment mode.

[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0152] Step 401: In response to a hard disk being operated, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range;

[0153] Step 402: Acquire input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk;

[0154] Step 403: Setting the power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed the power consumption carrying range of the hard disk;

[0155] Step 404: After the power consumption level of the hard disk is set, the real-time power consumption data of the hard disk is read to confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0157] Before calculating the current power consumption of the hard disk based on the input and output data of the hard disk, confirm whether the power consumption adjustment mode is turned on, specifically including defining a power consumption adjustment switch attribute value at a register position of the hard disk to determine whether to turn on the power consumption adjustment mode based on the power consumption adjustment switch attribute value; in response to setting the power consumption adjustment switch attribute value to 1, turning on the power consumption adjustment mode; or, in response to setting the power consumption adjustment switch attribute value to 0, turning off the power consumption adjustment mode and executing the default power consumption mode.

[0158] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0159] The minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0161] Obtain key features of the current load parameters of the hard disk, and simultaneously obtain a feature combination of the hard disk within the previous preset period; perform similarity matching between the key features of the current load parameters and features in the feature combination; obtain similar features in the feature combination whose similarity to the key features of the current load parameters is higher than a preset threshold; query the load parameters associated with the similar features, and set the load parameters associated with the similar features as target load parameters; obtain the feature value of the current load parameters, and simultaneously obtain the feature value of the target load parameters; calculate the difference between the feature value of the current load parameter and the feature value of the current load parameter; if the difference does not exceed a predefined range, confirm that the hard disk meets the predefined range; or, if the difference exceeds the predefined range, confirm that the hard disk does not meet the predefined range.

[0162] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0163] Obtaining idle power consumption of a controller associated with the hard disk, idle power consumption of a flash memory medium associated with the hard disk, and idle power consumption of other components associated with the hard disk;

[0164] The idle power consumption of the hard disk is calculated according to formula (1):

[0165] W idle =W c_idle +W n_idle +W o_idle (1)

[0166] Among them, W idle Indicates the power consumption of the hard disk in idle state; Wc_idle Indicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components;

[0167] Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment;

[0168] Calculate the current power consumption of the hard disk according to formula (2);

[0169]

[0170] Among them, W t Indicates the current power consumption of the hard disk; W idle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0172] In response to self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to be greater than the power consumption of the hard disk in idle state and not exceeding the predefined upper limit power consumption of the hard disk; or, in response to not self-configuring the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to the predefined upper limit power consumption of the hard disk.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0174] Obtain the real-time load parameter value of the hard disk, and determine whether the difference between the real-time load parameter value and the target load parameter meets a predefined range; if so, continue to execute the default power consumption mode; or, if not, turn on the power consumption adjustment mode.

[0175] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0176] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0177] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A method for controlling hard disk power consumption, characterized in that: The method comprises: In response to the hard disk being operated, obtaining a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range; Acquiring input and output data of the hard disk that meets the predefined range, and calculating the current power consumption of the hard disk according to the input and output data of the hard disk; Setting a power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed a power consumption carrying range of the hard disk; In response to the power consumption level of the hard disk being set, real-time power consumption data of the hard disk is read to confirm that the real-time power consumption data does not exceed a power consumption carrying range.

2. The hard disk power consumption control method according to claim 1, characterized in that: Before calculating the current power consumption of the hard disk according to the input and output data of the hard disk, confirming whether to enable the power consumption adjustment mode specifically includes: defining a power consumption adjustment switch attribute value at a register position of the hard disk, so as to determine whether to enable a power consumption adjustment mode according to the power consumption adjustment switch attribute value; In response to setting the power consumption adjustment switch attribute value to 1, executing the power consumption adjustment mode; Alternatively, in response to setting the power consumption adjustment switch attribute value to 0, the power consumption adjustment mode is turned off and the default power consumption mode is executed.

3. The hard disk power consumption control method according to claim 1 or 2, characterized in that: The minimum value of the power consumption carrying range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption carrying range is the maximum power consumption of the hard disk within a preset period.

4. The hard disk power consumption control method according to claim 3, characterized in that: Obtaining a current load parameter of the hard disk and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range includes: Obtaining key features of the current load parameters of the hard disk and simultaneously obtaining a feature combination of the hard disk in the previous preset period; Performing similarity matching between the key features of the current load parameter and the features in the feature combination; Acquire similar features in the feature combination whose similarity to the key features of the current load parameter is higher than a preset threshold; querying a load parameter associated with the similar feature, and setting the load parameter associated with the similar feature as a target load parameter; Acquire a characteristic value of the current load parameter and simultaneously acquire a characteristic value of the target load parameter; Calculating a difference between a characteristic value of the current load parameter and a characteristic value of the current load parameter; If the difference does not exceed the predefined range, it is determined that the hard disk meets the predefined range; Alternatively, if the difference exceeds a predefined range, the hard disk does not meet the predefined range.

5. The hard disk power consumption control method according to claim 1 or 2, characterized in that: The calculating the current power consumption of the hard disk according to the input and output data of the hard disk specifically includes: Acquire idle power consumption of a controller associated with the hard disk, idle power consumption of a flash memory medium associated with the hard disk, and idle power consumption of other components associated with the hard disk; The idle power consumption of the hard disk is calculated according to formula (1): IN idle =In c_idle +W n_idle +W o_idle (1) Among them, W idle Indicates the power consumption of the hard disk in idle state; W c_idle Indicates the power consumption of the controller in idle state; W n_idle Indicates the idle power consumption of the flash memory medium; W o_idle Indicates the idle state power consumption of other components; Get the average power consumption of the hard disk within the preset time, the number of input and output within the preset time, and the number of input and output at the current moment; Calculate the current power consumption of the hard disk according to formula (2); Among them, W t Indicates the current power consumption of the hard disk; W dle Indicates the power consumption of the hard disk in idle state; W trp Indicates the average power consumption of the hard disk within the preset time; Δt indicates the preset time period; N iot Indicates the number of input and output within the preset time; N ioi Indicates the number of inputs and outputs at the current moment.

6. The hard disk power consumption control method according to claim 1 or 2, characterized in that: The method further comprises: In response to the self-configuration of the maximum value of the power consumption carrying range, the maximum value of the power consumption carrying range is set to be greater than the power consumption of the hard disk in an idle state and not exceeding a predefined upper limit power consumption of the hard disk; Alternatively, in response to not configuring the maximum value of the power consumption carrying range by itself, the maximum value of the power consumption carrying range is set to a predefined upper limit power consumption of the hard disk.

7. The hard disk power consumption control method according to claim 4, characterized in that: After turning off the power consumption adjustment mode and executing the default power consumption mode, the method further includes: Obtaining a real-time load parameter value of the hard disk, and determining whether a difference between the real-time load parameter value and the target load parameter satisfies a predefined range; If yes, continue to execute the default power consumption mode; Alternatively, if not, power consumption adjustment mode is enabled.

8. A hard disk power consumption control system, used to implement the hard disk power consumption control method according to any one of claims 1 to 7, characterized in that: The system comprises: an acquiring unit, in response to the hard disk being operated, acquiring a current load parameter of the hard disk, and confirming that a difference between the current load parameter and a target load parameter satisfies a predefined range; a calculation unit, configured to obtain input and output data of the hard disk that meets the predefined range, and calculate the current power consumption of the hard disk based on the input and output data of the hard disk; A setting unit, configured to set a power consumption level of the hard disk according to the current power consumption, wherein the power consumption level does not exceed a power consumption carrying range of the hard disk; The monitoring unit is configured to read the real-time power consumption data of the hard disk in response to the completion of setting the power consumption level of the hard disk, and confirm that the real-time power consumption data does not exceed a power consumption carrying range.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Server hard disk power consumption dynamic balancing method and device, terminal and storage medium

    CN113688001A

  • Hard disk power consumption adjusting method and system, electronic equipment and storage medium

    CN116560488A