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

By calculating the current power consumption of the hard disk in real time and setting the power consumption level, the problem of mismatch between the hard disk power consumption and the application scenario is solved, and dynamic balance and energy-saving effects of the hard disk power consumption and application scenarios are achieved.

CN119127064AActive Publication Date: 2024-12-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult for existing hard disks to dynamically adjust their power consumption during use, resulting in mismatch between power consumption and application scenarios, affecting performance and energy saving effects.

Method used

By obtaining the difference between the current load parameters of the hard disk and the target load parameters, calculate the current power consumption, and set the power consumption level according to the predefined range to ensure that the power consumption is within the load range and real-time power consumption regulation is achieved.

Benefits of technology

It realizes dynamic matching between hard disk power consumption and application scenarios, ensures that the hard disk is used at a reasonable level, achieves a balance between performance and power consumption, and has the effect of energy saving and consumption reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127064A_ABST
    Figure CN119127064A_ABST
Patent Text Reader

Abstract

The invention discloses a hard disk power consumption regulation and control method and system, computer equipment and a medium, and relates to the technical field of hard disks, and the method comprises the following steps: in response to operation and use of the hard disk, obtaining a current load parameter of the hard disk, and confirming that a difference value between the current load parameter and a target load parameter meets a predefined range; obtaining input and output data of the hard disk, and calculating 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 is included in a power consumption bearing range of the hard disk; and in response to completion of power consumption level setting of the hard disk, reading real-time power consumption data of the hard disk, and confirming that the real-time power consumption data does not exceed the power consumption bearing range. The power consumption of the hard disk can be dynamically adjusted in real time by taking the actual power consumption in the running process of the scene where the hard disk is located as the reference, so that the power consumption of the hard disk is matched with the application scene, and meanwhile, the effects of saving energy and reducing consumption are achieved.
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 disk is a basic storage device. One of its main functions is to store data. All data in the computer system, including operating system, applications, files, photos, videos, etc., need to be stored in the hard disk. Hard disk provides a large storage space that can accommodate a large amount of data. Whether it is individual users or corporate users, hard disks are needed to store and manage data. The continuous increase in data volume has led to a rapid increase in hard disk performance. Therefore, it is necessary to control the hard disk performance and power consumption to balance during the use of the hard disk.

[0003] In some related technologies, a default power consumption level is set when a hard disk is produced. Such a hard disk can only work 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 use scenarios of the hard disk, but such a hard disk can only be used for the initial scenario. When it comes to 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 of the hard disk during operation, so as to achieve the matching of the hard disk power consumption and the application scenario, and at the same time play a role in energy saving and consumption reduction.

[0005] The specific technical solutions provided by 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 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 completion of setting the power consumption level of the hard disk, reading real-time power consumption data of the hard disk, and confirming that the real-time power consumption data does not exceed a 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 to turn on the power consumption adjustment mode 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] 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 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 values ​​of the current load parameters, and simultaneously obtaining the feature values ​​of the target load parameters; calculating the difference between the feature values ​​of the current load parameters and the feature values ​​of the current load parameters; 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 current power consumption of the hard disk is calculated based on the input and output data of the hard disk, specifically including: 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 power consumption of other components in idle state;

[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 inputs and outputs within a preset time; N ioi Indicates the number of inputs and outputs at the current moment.

[0017] In a specific embodiment, the method also 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 a 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 also 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, which is used to implement the hard disk power consumption control method as described above, and the system includes:

[0020] an acquisition unit, in response to the hard disk being operated and used, 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, which obtains input and output data of the hard disk that meets the predefined range, and calculates the current power consumption of the hard disk according to 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 used to read the real-time power consumption data of the hard disk in response to the power consumption level setting of the hard disk being completed, and confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0024] In a third aspect, a computer program product is provided, including 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 operated, 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 characteristics, 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 power consumption level of the hard disk being 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 a 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 implemented:

[0030] Step A: 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;

[0031] Step B: 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;

[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 power consumption level of the hard disk being 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 a 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 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;

[0036] Step B: 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;

[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 power consumption level of the hard disk being 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 a 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 according to the input and output data of the hard disk, and sets the power consumption level of the hard disk according to the current power consumption, to ensure 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 take the actual power consumption of the hard disk in the operation process of the scenario where the hard disk is located as a benchmark, and dynamically adjust the hard disk power consumption in real time to achieve the matching of the hard disk power consumption and the application scenario, while playing a role in energy saving and consumption reduction.

[0041] 2. 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, and when power consumption adjustment is required, 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 drawings required for use in the description of the embodiments will be briefly introduced below. 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 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 control process of a running hard disk according to the hard disk power consumption control method in the present 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 solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] The hard disk power consumption control method provided in this application can be applied to Figure 1 In the application environment shown. Among them, 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. Among them, 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 with 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, and the method is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:

[0051] Step 101: In response to a hard disk being operated, a current load parameter of the hard disk is obtained, and it is confirmed 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. During actual use of the hard disk, the power consumption level requirements for the hard disk are different according to the different upper-layer business operations on the hard disk. In order to ensure that the hard disk power consumption level is adjusted within the target load parameter range to achieve accurate 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 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 values ​​of the current load parameters, and simultaneously obtaining the feature values ​​of the target load parameters; calculating the difference between the feature values ​​of the current load parameters and the feature values ​​of the current load parameters; 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 a time series, namely preset cycles, and the power consumption, application scenario and other data in each cycle are stored to facilitate monitoring of the hard disk 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, 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 according to 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 to turn on the power consumption adjustment mode 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] Exemplarily, after it is recognized that the hard disk is in operation, it is possible to confirm whether the power consumption adjustment mode is turned on 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; setting power-adjust-switch to 0 turns off the hard disk power consumption adjustment mode, and the default power consumption mode is executed at this time.

[0059] In this embodiment, the power consumption adjustment mode is also 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 also 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 continues to determine whether to confirm to turn on the default power consumption mode. If it is confirmed to be turned on, the hard disk continues 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] The 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 power consumption of other components in idle state;

[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 inputs and outputs within a 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, 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 10000, 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 range of the hard disk in this embodiment can be set by the user, including in response to self-configuring the maximum value of the power consumption range, setting the maximum value of the power consumption 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; or, in response to not self-configuring the maximum value of the power consumption range, setting the maximum value of the power consumption range to the predefined upper limit power consumption of the hard disk.

[0074] Among them, the maximum power consumption of the hard disk does not exceed the predefined upper limit power consumption of the hard disk. Exemplarily, the predefined upper limit power consumption of the hard disk can be set to the upper limit of power consumption of the corresponding protocol, such as the upper limit of GEN4 NVME U.2 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, and when the power consumption adjustment is needed, the power consumption adjustment mode is controlled to be turned on; and when the real-time power consumption data does not exceed the power consumption carrying range, the hard disk power consumption continues 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, it will continue to monitor; if an abnormality occurs, the power consumption adjustment mode will be executed and the default power consumption mode will be restored to avoid abnormal situations caused by power consumption adjustment, and the alarm module will be triggered to notify the maintenance person.

[0079] Through the above scheme, 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 the running 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 achieving the effect of 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 comprises:

[0084] an acquisition unit, in response to the hard disk being operated and used, 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, which obtains input and output data of the hard disk that meets the predefined range, and calculates the current power consumption of the hard disk according to 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 used to read the real-time power consumption data of the hard disk in response to the power consumption level setting of the hard disk being completed, and confirm that the real-time power consumption data does not exceed the power consumption carrying range.

[0088] In a specific embodiment, it also includes a control unit, which is used to confirm whether to turn on the power consumption adjustment mode 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 range is the power consumption of the hard disk in an idle state; the maximum value of the power consumption 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 previous 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, confirm 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 used to obtain the idle state power consumption of the controller associated with the hard disk, the idle state power consumption of the flash memory medium associated with the hard disk, and the idle state 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 power consumption of other components in idle state;

[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 inputs and outputs within a 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 an idle state and not exceeding a 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] For the specific definition of the hard disk power consumption control system, please refer to the definition of the hard disk power consumption control method in the above text, which will not be repeated here. Each module in the above hard disk power consumption control system can be implemented in whole or in part by software, hardware and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0102] In one embodiment, a computer program product is provided, including 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: 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;

[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, 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.

[0107] In one embodiment, when the computer program is executed by a processor, the following steps are also 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, so as to determine 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, 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 also 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 also implemented:

[0112] Obtain key features of the current load parameters of the hard disk, and simultaneously obtain a feature combination of the hard disk in 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 values ​​of the current load parameters, and simultaneously obtain the feature values ​​of the target load parameters; calculate the difference between the feature values ​​of the current load parameters and the feature values ​​of the current load parameters; 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, 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 also 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 power consumption of other components in idle state;

[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 inputs and outputs within a 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 also 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 an idle state and not exceeding a 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 also 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 satisfies 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 through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 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 the computer program in the non-volatile storage medium. The database of the computer device is used to store the 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 through 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 those shown in the figure, or combine certain components, or have a different arrangement of components.

[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, wherein the processor implements the following steps when executing the computer program:

[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: 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;

[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, so as to determine 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, 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, the processor also implements the following steps when executing the computer program: 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 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 parameters and the feature value of the current load parameters; 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] 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;

[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 power consumption of other components in idle state;

[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 inputs and outputs within a 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 an idle state and not exceeding a 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 satisfies 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, and 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: 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;

[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, 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.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also 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, so as to determine 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, 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 also 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 also implemented:

[0161] Obtain key features of the current load parameters of the hard disk, and simultaneously obtain a feature combination of the hard disk in 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 values ​​of the current load parameters, and simultaneously obtain the feature values ​​of the target load parameters; calculate the difference between the feature values ​​of the current load parameters and the feature values ​​of the current load parameters; 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, 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 also implemented:

[0163] 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;

[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 power consumption of other components in idle state;

[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 inputs and outputs within a 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 also 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 an idle state and not exceeding a 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 also 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 satisfies 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 can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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. As an illustration and not limitation, RAM is available in many 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 may 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-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached 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; Acquire 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; 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 turn on 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: 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 specifically includes: Acquire key features of the current load parameters of the hard disk, and simultaneously acquire 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 the characteristic value of the current load parameter and simultaneously acquire the 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, confirming 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 power consumption of other components in idle state; 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 inputs and outputs within a 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; Or, if not, turn on the power consumption adjustment mode.

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 acquisition unit, in response to the hard disk being operated and used, 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, which obtains input and output data of the hard disk that meets the predefined range, and calculates the current power consumption of the hard disk according to 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 used to read the real-time power consumption data of the hard disk in response to the power consumption level setting of the hard disk being completed, and confirm that the real-time power consumption data does not exceed the 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, characterized in that: 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

  • Solid state disk power consumption management method and solid state disk

    CN116301662A

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

    CN116560488A

  • Power saving device controlled by controller or disk

    US20080244290A1