CN114327243A - Dynamic power adjustment method and device - Google Patents

Dynamic power adjustment method and device Download PDF

Info

Publication number
CN114327243A
CN114327243A CN202011061947.5A CN202011061947A CN114327243A CN 114327243 A CN114327243 A CN 114327243A CN 202011061947 A CN202011061947 A CN 202011061947A CN 114327243 A CN114327243 A CN 114327243A
Authority
CN
China
Prior art keywords
value
maximum
electronic device
set value
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011061947.5A
Other languages
Chinese (zh)
Inventor
毕德春
杨天文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011061947.5A priority Critical patent/CN114327243A/en
Publication of CN114327243A publication Critical patent/CN114327243A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The application provides a power dynamic adjustment method and device. The method comprises the following steps: acquiring an operation parameter value of an operation parameter of a system; the system comprises a plurality of electronic devices, and the operation parameters are used for indicating the total operation power consumption of the electronic devices; a maximum operating power value for each of at least some of the plurality of electronic devices is determined based on the operating parameter values. In the above manner, the set power of the power consumption device in the system is adjusted according to the real-time operation parameters of the system, so as to dynamically adjust the maximum operation power consumption of the power consumption device, thereby bringing the performance of the power consumption device into full play as much as possible. Furthermore, the local electronic device can be guaranteed to exert the maximum performance under the limited power supply condition.

Description

Dynamic power adjustment method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for dynamically adjusting power.
Background
With the rapid development of computer technology and internet technology, people have higher and higher requirements on data transmission speed, and currently, a Solid State Disk (SSD) with high read/write speed advantage slowly occupies an important position in the market.
At present, a solid-state storage scheme generally organizes and manages a plurality of hard disks, and when a power supply cannot fully support the maximum operation power consumption of each hard disk, the solid-state storage scheme is set to operate at a fixed value, for example, the maximum operation power consumption of an SSD is 25W, and the SSD is generally set to operate at the maximum operation power consumption of 16W. Therefore, the performance of the hard disk can not be well exerted, and resource waste is caused.
Disclosure of Invention
The application provides a power dynamic adjustment method and device, which are used for enabling an SSD to exert the maximum performance by dynamically adjusting the power value of the SSD on the basis that the power capacity is not improved and a system can normally run.
In a first aspect, the present application provides a power dynamic adjustment method, which may be performed by a device (e.g., a terminal device, a server, a host), or may be implemented by a component of the device, such as a processing device, a circuit, a chip, or the like in the device. The method comprises the following steps: acquiring an operation parameter value of an operation parameter of a system; wherein the system comprises a plurality of electronic devices, the operating parameter being indicative of a total operating power consumption of the plurality of electronic devices; determining a maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values.
By the method, the set power of the power consumption device in the system is adjusted according to the real-time operation parameters of the system, so that the maximum operation power consumption of the power consumption device is dynamically adjusted, and the performance of the power consumption device is exerted as much as possible. Furthermore, the local electronic device can be guaranteed to exert the maximum performance under the limited power supply condition.
In one possible implementation, the determining a maximum operating power value for each of at least some of the plurality of electronic devices according to the operating parameter value includes: determining a maximum operation power value corresponding to a range interval in which the operation parameter value is located according to a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between different range intervals and at least one maximum operation power value, wherein the at least one maximum operation power value corresponds to each of the at least part of the electronic equipment.
By the method, different adjustment granularities can be defined through the preset corresponding relation, for example, the preset corresponding relation comprises the corresponding relation between a specific operation parameter value and the maximum operation power value, and/or the preset corresponding relation comprises the corresponding relation between the range interval of the operation parameter value and the maximum operation power value, and the adjustment mode is flexible.
In one possible implementation method, the plurality of electronic devices include a first electronic device and a second electronic device, and the priority of the first electronic device is higher than the priority of the second electronic device;
the preset corresponding relation comprises one or more of the following items:
the operation parameter value is not greater than a first preset threshold value, the maximum operation power value of the first electronic device is a first set value, the maximum operation power value of the second electronic device is a second set value, and the first set value is not less than the second set value;
the operation parameter value is greater than the first preset threshold and not greater than a second preset threshold, the maximum operation power value of the first electronic device is a third set value, the maximum operation power value of the second electronic device is a fourth set value, the third set value is not greater than the first set value, and the fourth set value is smaller than the second set value;
the operation parameter value is greater than the second preset threshold, the maximum operation power value of the first electronic device is a fifth set value, the maximum operation power value of the second electronic device is a sixth set value, the fifth set value is smaller than the first set value, and the sixth set value is smaller than the fourth set value.
By the method, the local electronic device can be guaranteed to exert the maximum performance under the limited power supply condition. For example, it is ensured that the electronic device with high priority exerts a larger performance as much as possible, thereby providing the overall performance of the system and avoiding resource waste.
In one possible implementation, the determining a maximum operating power value for each of at least some of the plurality of electronic devices according to the operating parameter value includes: determining the maximum operating power value according to the operating parameter value, the first parameter value and the first operating power value; and the first operation power value is the maximum operation power value corresponding to the operation parameter value as the first parameter value.
By the method, the maximum operation power value of the electronic equipment can be dynamically adjusted according to the operation parameter value acquired in real time.
In a possible implementation method, the operation parameter is a total power consumption of the system, or the operation parameter is a performance parameter of the system.
In a second aspect, an embodiment of the present application provides an apparatus, including a processor and a memory, where the memory is used to store one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the terminal device to implement any of the possible design methods of any of the aspects described above.
In a third aspect, an apparatus is also provided, including: means for performing the method of the first aspect or any one of the possible designs of the first aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a fourth aspect, a chip is further provided, where the chip is coupled with a memory in the apparatus according to the first aspect, so that the chip calls program instructions stored in the memory when running to implement the method according to the first aspect.
In a fifth aspect, there is also provided a computer readable storage medium comprising a computer program which, when run on an apparatus, causes the apparatus to perform the method as provided in the first aspect above.
In a sixth aspect, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method as provided in the first aspect above.
For the above beneficial effects of the second aspect to the sixth aspect, please refer to the first aspect to provide beneficial effects of various technical solutions, and repeated descriptions are omitted here.
Drawings
Fig. 1 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an internal structure of an apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a power dynamic adjustment method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a power conditioning system according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another power conditioning system provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another apparatus provided in the embodiment of the present application.
Detailed Description
Referring to fig. 1, a schematic structural diagram of an apparatus according to an embodiment of the present disclosure is shown, where the apparatus is composed of one or more power consumption components, and as shown in fig. 1, the apparatus 10 at least includes a power supply 101, a processor 102, and a memory 103.
The power supply 101 is configured to supply power to each power consumption component of the apparatus 10 to ensure that the power consumption component operates normally, and the power supply 101 may supply power to the memory 103 to complete data access. It should be understood that the power consumption of the memory 103 will vary with the amount of data accessed, but the maximum power consumption will not exceed the power rating of the memory 103. Alternatively, the power supply 101 may independently supply power to some of the power consuming components, such as only the memory 103.
The processor 102 is a Central Processing Unit (CPU), and may be used to perform calculation processing and the like on data.
The storage 103 is a device for storing data, and may be a memory or a hard disk. The memory is an internal memory which directly exchanges data with the processor, can read and write data at any time, is fast, and is used as a temporary data storage of an operating system or other programs in operation.
The Memory includes at least two types of Memory, for example, the Memory may be a random access Memory (ram) or a Read Only Memory (ROM). For example, the Random Access Memory may be a Dynamic Random Access Memory (DRAM) or a Storage Class Memory (SCM). Static Random Access Memory (SRAM), and the like.
The memory in this embodiment may also be a hard disk. Hard disks are typically used to store data persistently. The hard disk type is a Solid State Disk (SSD), a mechanical hard disk (HDD), or other types of hard disks. Among them, the SSD has higher performance (e.g. high read/write speed), and therefore has wider application and faster development, and at present, the SSD has at least NVME, SATA, SAS, etc. interface types.
The device 10 may be provided with one or more hard disks. Please refer to fig. 1, which is a schematic structural diagram of an apparatus 10. In another form, as shown in fig. 2, the storage system (storage array) is composed of a plurality of hard disks, which may be completely the same, may not be completely the same, and may also be completely different, and in addition, the form of the hard disk may be a standard form, and may also be a non-standard form, which is not limited in this application.
The hard disk in this embodiment may also have a memory interface, and the processor may directly access the hard disk. As shown in fig. 2, a plurality of hard disks are connected to the same splitter and connected to a cpu, and the cpu can access the hard disks. It should be understood that fig. 2 is merely an example and that the apparatus 10 may include more or fewer devices than those shown in fig. 2.
A common storage scheme is to group multiple SSDs (e.g., 25 SSDs or 36 SSDs or more) together, so as to provide a large amount of storage space for the host, and also provide other value-added services for the host, which is not described herein in detail. Taking 25 as an example, assuming that the 25 SSDs are all 2.5 inch NVME SSDs (the maximum power consumption (rated power) of the 2.5 inch NVME SSDs is 25W), if the 25 SSDs operate at full speed, the total power consumption is 25W × N, and correspondingly, the required power supply is also larger. If the situation sets the power consumption of the hard disk to be a certain value, under certain conditions, for example, when the amount of data stored in the system is large and frequent, the high performance of the hard disk cannot be exerted, and it should be understood that the SSD access data amount is realized by electric energy, and the larger the electric energy is, the larger the amount of data to be accessed at one time is.
At present, a power distribution scheme for a storage system is to forcibly set the power consumption of all SSDs at a certain fixed value according to a power supply power and the power consumption value of the SSDs, for example, for a 2.5 inch NVME SSD, the maximum power consumption is set to be 16W for operation. The existing mode can cause that the performance of the hard disk cannot be exerted, the overall performance of the storage system is influenced, and in certain understanding, the method can also be regarded as waste of resources.
In view of this, an embodiment of the present application provides a dynamic power consumption adjustment method, in which an operation parameter of the system is monitored, the system is composed of a plurality of electronic devices, the operation parameter is used to indicate a total power consumption of the system, and a set power consumption corresponding to each of some or all power consumption devices of the at least one power consumption device is determined according to the operation parameter of the system; and configuring the maximum operation power consumption of each power consumption device as the determined set power consumption of the power consumption device. In the above manner, during the operation process, the operation parameter of the system is changed, and the set power of the power consumption device in the first system is adjusted according to the operation parameter, so as to dynamically adjust the maximum operation power consumption of the power consumption device, thereby bringing the performance of the power consumption device into full play as much as possible.
The technology of the present application is described in detail below with reference to the accompanying drawings.
Referring to fig. 3, a power dynamic adjustment method provided for the embodiment of the present application may be applied to the apparatus shown in fig. 2, and as shown in fig. 3, the method may include the following steps:
step 301: and acquiring an operation parameter value of an operation parameter of the system.
The system may be the storage system shown in fig. 2, or may be a system formed by a plurality of other electronic devices in the apparatus 10, where the electronic devices in the same system may be the same type of electronic devices, for example, all the electronic devices in the system are SSDs, or different types of electronic devices, for example, the system includes SSDs and memories, which is not limited in this embodiment of the present application.
The electronic device is operated based on electric energy, where the operation parameter may be used to indicate a total operation power consumption of a plurality of electronic devices in the system, for example, the operation parameter may be the total operation power consumption, or the operation parameter may be a parameter capable of reflecting the total operation power consumption of the system, for example, a performance parameter of the system, it should be understood that the electronic device has the highest performance when operating based on a rated power consumption, and there is an association relationship between the performance of the electronic device and the power consumption, therefore, the total performance of the system may also be monitored to determine the total power consumption of the system, and of course, the total operation power consumption may also be indicated by other parameters, which is not limited in the embodiment of the present application.
Step 302: and determining the maximum operation power value of each of at least part of the electronic equipment in the plurality of electronic equipment according to the acquired operation parameter values.
The method for determining the maximum operation power value of the electronic equipment in the system according to the operation parameter value in the embodiment of the application has various modes: two are exemplarily listed below:
the first method is as follows: and inquiring the preset corresponding relation according to the preset corresponding relation between the operation parameter value and the maximum operation power value of the system to determine the maximum operation power value corresponding to the obtained operation parameter value.
As shown in table 1 below, a specific example of a preset corresponding relationship is provided in the embodiments of the present application.
TABLE 1
Actual total operating power consumption of the system Maximum operating power value
(0,30%]A First set value
(30%,50%]A The second set value
(50%,70%]A Third set value
In table 1, a represents the maximum operating power consumption in the system, that is, the total operating power of the system when each electronic device in the system operates at the maximum operating power, which is also the maximum total operating power of the system. Where, illustratively, first set value > second set value > third set value, and so on.
As can be understood from table 1, when the total operating power of the system is not greater than 30% of the maximum total operating power of the system, the maximum operating power value of each electronic device of the system is a first set value; when the total operating power of the system is more than 30% of the maximum total operating power of the system and less than 50% of the maximum total operating power of the system, the maximum operating power of each electronic device of the system is a second set value; and so on.
It should be noted that table 1 is only an example given for convenience of description, where the total operating power consumption of the system may be determined according to the obtained operating parameter value, alternatively, table 1 may also represent a corresponding relationship between an actual operating parameter value of the system and the maximum operating power value, and this is not limited in this embodiment of the present application.
In an alternative embodiment, the maximum operation power value of part of the electronic devices in the system can be adjusted. See table 2 below for a specific example of another preset correspondence provided in the embodiments of the present application.
TABLE 2
Actual total operating power consumption of the system Maximum operating power value
(0,30%]A First setting, n-n 1
(30%,50%]A Second setting, n-n 2
(50%,70%]A Third setting, n-n 3
In table 2 a still indicates the maximum operating power consumption in the system, and illustratively, the first set value > the second set value > the third set value, and so on. Hereinafter, the same reference numerals are used for the same meaning, and the description will not be repeated. n represents the number of electronic devices in the system that need to be power regulated. Wherein n1, n2 and n3 are all positive integers and are all smaller than the number of all electronic devices in the system.
For example, when the total operation power of the system is not more than 30% of the maximum total operation power of the system, adjusting the maximum operation power value of n1 electronic devices in the system to be a first set value; when the total operating power of the system is more than 30% of the maximum total operating power of the system and less than 50% of the maximum total operating power of the system, adjusting the maximum operating power values of the n2 pieces of electronic equipment in the system to be a second set value; and so on. Where n2 ≧ n1, the n2 electronic devices that are adjusted may include the n1 electronic devices that are adjusted entirely, or include the n1 electronic devices that are adjusted entirely, or include the n1 electronic devices that are adjusted entirely. In addition, the n electronic devices to be adjusted may be randomly selected or may be selected according to the priority order of the electronic devices, for example, the electronic devices are ranked according to priority, and the electronic device with the lower priority is selected first.
The method and the device can sacrifice the performance of the electronic equipment with low priority to ensure that the electronic equipment with high priority exerts the maximum performance as much as possible. When the total operation function of the system is higher, the maximum operation power value of the electronic equipment with lower priority is reduced firstly, and the maximum operation power value of the electronic equipment with higher priority is reduced finally.
As shown in table 3 below, a specific example of yet another preset corresponding relationship is provided in the embodiments of the present application. In table 3, it is assumed that the system includes a first electronic device and a second electronic device, wherein the first electronic device has a higher priority than the second electronic device.
TABLE 3
Actual total operating power consumption of the system Maximum operating power value
(0,30%]A The first electronic device is a first set value, and the second electronic device is a fourth set value
(30%,50%]A The first electronic device is a first set value, and the second electronic device is a fifth set value
(50%,70%]A First electricityThe sub-device is the second set value, and the second electronic device is the sixth set value
For example, the first setting value is greater than (>) the second setting value > the fourth setting value > the fifth setting value > the sixth setting value, and it should be noted that the setting values listed in table 3 are only examples and do not limit the relationship between the setting values of the first electronic device and the second electronic device.
In table 3, when the total operating power of the system is not greater than 30% of the maximum total operating power of the system, the maximum operating power value of the first electronic device in the system is set to the first set value, and the maximum operating power value of the second electronic device is set to the fourth set value; when the total operating power of the system is greater than 30% of the maximum total operating power of the system and less than 50% of the maximum total operating power of the system, keeping the maximum operating power value of the first electronic device unchanged, and setting the maximum operating power value of the second electronic device as a fifth set value; when the total operating power of the system is greater than 50% of the maximum total operating power of the system and less than 70% of the maximum total operating power of the system, setting the maximum operating power value of the first electronic device as a second set value, and setting the maximum operating power value of the second electronic device as a sixth set value; and so on.
It should be understood that, in this embodiment of the present application, an initial maximum operating power value of each electronic device in the system may also be set, and if the initial maximum operating power value of the electronic device is the same as the maximum operating power value of the electronic device corresponding to the obtained operating parameter value, no adjustment is needed, for example, in table 3, if the initial maximum operating power value of the first electronic device is the first set value, and if the obtained operating parameter value indicates that the total operating power consumption of the system is (0, 30% ] a, the maximum operating power value of the first electronic device does not need to be changed, of course, the initial maximum operating power value of the electronic device may not be subjected to the apparatus in this embodiment, which is not limited in this embodiment, in addition, table 3 is illustrated with two electronic devices with different priorities, and actually there may be a plurality of electronic devices with different priorities included in the system in this embodiment, correspondingly, the preset corresponding relationship may also define adjustment manners of maximum operating power values of a plurality of electronic devices with different priorities, which is not limited in the embodiment of the present application.
The preset correspondences may also be combined with each other in the present application, for example, please refer to table 4, which is a specific example of another preset corresponding relation provided in the embodiment of the present application.
TABLE 4
Figure BDA0002712647280000061
Wherein n4, n5, n6, n7, n8 and n9 are all positive integers, n4, n6 and n8 are smaller than the number of first electronic devices included in the system, and n5, n7 and n9 are smaller than the number of second electronic devices included in the system.
As can be understood from table 4, when the total operating power of the system is not greater than 30% of the maximum total operating power of the system, the maximum operating power value of n4 first electronic devices in the system is set (or maintained) as the first set value, and the maximum operating power value of n5 second electronic devices is set (or maintained) as the fourth set value; when the total operating power of the system is more than 30% of the maximum total operating power of the system and less than 50% of the maximum total operating power of the system, setting (or keeping) the maximum operating power value of at least n6 first electronic devices unchanged, and setting (or keeping) the maximum operating power value of at least n7 second electronic devices unchanged; and so on.
The numerical values listed in tables 1 to 4 are examples, and the examples of the present application do not limit the values.
The following describes an example of a power dynamic adjustment method provided in the embodiments of the present application with reference to specific embodiments. For convenience of description, the technical solution of the present application is described below by taking a storage system as an example.
Referring to fig. 4, the apparatus includes a processor, a splitter, a storage system, a power supply, and a power supply monitoring unit, wherein the storage system includes a plurality of hard disks. The power supply is used for independently supplying power to the storage system, and the power supply monitoring unit can monitor the output power of the power supply, which is understood to be the total operating power of the storage system.
If the power supply can meet the condition that all the hard disks in the storage system work at the maximum operating power (rated power), the maximum operating power value of the hard disks does not need to be adjusted, and any hard disk can be kept to work at the maximum operating power so as to obtain the maximum hard disk performance.
If the power supply can not meet the condition that all the hard disks in the storage system work at the maximum operating power, the maximum operating power of the hard disks can be adjusted in the above mode.
Illustratively, in the storage system, part of the plurality of hard disks are used for cache use and part of the plurality of hard disks are used for persistent data storage, and the hard disks used for cache use are given higher priority than the hard disks used for persistent data storage. For convenience of description, a hard disk used for cache may be referred to as a cache disk, and a hard disk used for persistent data storage may be referred to as a data disk.
Taking the above-mentioned manner as an example, the preset corresponding relationship of the storage system may be as shown in table 5 below, and in table 5, the maximum operation power value of each hard disk is taken as an example of 25W.
TABLE 5
Power supply output power consumption/total power consumption Maximum operating power value
≤50% The Cache disk is 25W, and the data disk is 16W
50%<,≤70% The Cache disk is 25W, and the data disk is 12W
70%<,≤80% The Cache disk is 20W, and the data disk is 10W
80%< The Cache disk is 16W, and the data disk is 8W
Based on the preset corresponding relationship, the process of adjusting the power value of the storage system comprises the following steps:
step 1: acquiring an operation parameter value of an operation parameter of a storage system;
the operation parameter value can be the total operation power consumption of the storage system, namely the output power consumption of the power supply, and the output power consumption value is acquired by the power supply monitoring module; the total power consumption of the power supply is known and fixed.
Step 2: according to a preset corresponding relation (for example, table 5), determining a maximum operation power value of each of at least some of the plurality of electronic devices of the storage system corresponding to the operation parameter value.
For example: if the output power consumption of the power supply is less than 50% of the total power consumption of the power supply, the maximum operation power value of the data disk can be set to be 16W without adjusting the maximum operation power value of the cache disk; if the output power consumption of the power supply is more than 50% of the total power consumption of the power supply and not more than 70% of the total power consumption of the power supply, the maximum operation power value of the cache disk can still be set to 12W without adjusting the maximum operation power value of the cache disk; if the output power consumption of the power supply is more than 70% of the total power consumption of the power supply and not more than 80% of the total power consumption of the power supply, setting the maximum operation power value of the cache disk to be 20W, and setting the maximum operation power value of the data disk to be 10W; and so on.
It should be understood that table 5 is only an example and does not constitute a limitation to the storage system, and any parameter satisfying an actual scenario is applicable to the embodiment of the present application. In addition, the above table 5 may also be expressed by total power consumption for operation of the memory system/total power consumption for maximum operation of the memory system, for example, the power output power consumption/total power consumption for power supply may be replaced by total power consumption for operation of the memory system (power output function)/total power consumption for maximum operation of the memory system. Or may be identified by replacing the operating parameter values, which is not limited in the embodiments of the present application.
Referring to fig. 5, the apparatus includes a processor, a splitter, a storage system and a performance monitoring unit, wherein the storage system includes a plurality of hard disks. The performance monitoring unit is capable of monitoring performance parameters of the storage system.
If the power supply can meet the requirement that all the hard disks in the storage system work at the maximum performance (for example, work at rated power), the maximum operation power value of the hard disks does not need to be adjusted, and any hard disk can be kept to exert the maximum performance.
If the power supply can not meet the condition that all hard disks in the storage system work at the maximum performance, the maximum operation power of the hard disks can be adjusted in the above mode.
It is also exemplified below that the storage system shown in fig. 5 comprises at least a cache disk and a data disk.
When the storage system is powered on, firstly, the performance test is carried out on different hard disks of the storage system, and the performance parameters of the system when each hard disk in the system reaches the maximum operation power are recorded. For example, when each hard disk in the system operates at the maximum operating power, the performance parameter of the system is a, each hard disk in the system operates at 50% of the maximum operating power, the performance parameter of the system is b, each hard disk in the system operates at 70% of the maximum operating power, the performance parameter of the system is c, each hard disk in the system operates at 80% of the maximum operating power, and the performance parameter of the system is d, then the above table 5 may also be represented as the following table 6.
TABLE 6
Performance parameter Maximum operating power value
≤a The Cache disk is 25W, and the data disk is 16W
a<,≤b The Cache disk is 25W, and the data disk is 12W
b<,≤c The Cache disk is 20W, and the data disk is 10W
c< The Cache disk is 16W, and the data disk is 8W
Based on the preset corresponding relationship, the process of adjusting the power value of the storage system comprises the following steps:
step 1: acquiring a total performance parameter value of a total performance parameter of the storage system;
the value of the overall performance parameter may be collected by the performance monitoring module.
Step 2: according to a preset corresponding relation (for example, table 6), determining a maximum operation power value of each of at least some of the plurality of electronic devices of the storage system corresponding to the operation parameter value.
For example: if the total performance parameter value of the system is not larger than a, the maximum operation power value of the cache disk can be set to be 16W without adjusting the maximum operation power value of the data disk; if the total performance parameter value of the system is larger than a and not larger than b, the maximum operation power value of the cache disk can still not be adjusted, and the maximum operation power value of the data disk is set to be 12W; if the total performance parameter value of the system is larger than b and not larger than c, setting the maximum operation power value of the cache disk to be 20W, and setting the maximum operation power value of the data disk to be 10W; and so on.
It should be understood that table 6 is only an example and does not constitute a limitation to the storage system, and any parameter satisfying an actual scenario is applicable to the embodiment of the present application. In addition, the above table 5 may also be expressed by total power consumption for operation of the memory system/total power consumption for maximum operation of the memory system, for example, the power output power consumption/total power consumption for power supply may be replaced by total power consumption for operation of the memory system (power output function)/total power consumption for maximum operation of the memory system. Or may be identified by replacing the operating parameter values, which is not limited in the embodiments of the present application. Of course, the preset corresponding relationship is a semi-static adjustment manner, and in the embodiment of the present application, the maximum operation power value may also be determined by quantizing parameters in the preset corresponding relationship into a formula, so that each different total operation power consumption corresponds to a different set maximum operation power value, which is not limited in the embodiment of the present application.
For example, determining a maximum operation power value corresponding to the obtained operation parameter value according to the first parameter value, the first operation power value and the obtained operation parameter value; illustratively, the maximum operating power value satisfies the following equation 1 or equation 2:
pmax ═ max (P1V/V1, Pnominal) equation 1
Wherein Max () represents taking the maximum value within (); pmax represents the set maximum operating power value; v1 represents a first parameter value; p1 represents the corresponding maximum operation power value when the operation parameter value is V1; v represents the acquired operation parameter value of the system; the ptrade represents the maximum operating power value of the electronic device itself.
PmaxnKn x [ max (P1 XV/V1, P rating)]Equation 2
PmaxnIndicating a set maximum operating power value for electronic device n, Kn being a coefficient for electronic device n, which may be determined based on the priority of the electronic device.
For example, when the total performance parameter value of the system is a, the maximum operating power value corresponding to the electronic device is 16w, and when the total performance parameter value of the system is e, the maximum operating power value corresponding to the electronic device is 16 × e/a.
Alternatively, the preset corresponding relationship in this application may also define the maximum operating power corresponding to the specific operating parameter value, that is, the preset corresponding relationship may also include the specific operating parameter value and/or the range interval of the operating parameter value, which is not limited in this application.
By the mode, the maximum operation power consumption value of part or all electronic devices of the system can be dynamically adjusted to meet the dual requirements of balancing the power supply and the system performance to the maximum extent, and further, the local electronic devices can exert the maximum performance under the limited power supply condition, and the maximum performance of the system can be obtained at the same time.
Based on the above embodiments and the same concept, fig. 6 is a schematic diagram of an apparatus provided in the embodiments of the present application, and as shown in fig. 6, the apparatus 600 may be a chip or a circuit, such as a chip or a circuit that can be disposed in an electronic device.
As shown in fig. 6, the apparatus 600 may comprise at least a detection unit 601 and a processing unit 602.
In one embodiment, the detecting unit 601 is configured to obtain an operating parameter value of an operating parameter of the system; the system comprises a plurality of electronic devices, and the operation parameters are used for indicating the total operation power consumption of the electronic devices;
a processing unit 602, configured to determine a maximum operating power value for each of at least some of the plurality of electronic devices according to the operating parameter value.
In an alternative design, the processing unit 602 is specifically configured to: determining a maximum operation power value corresponding to a range interval in which the operation parameter value is located according to a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between different range intervals and at least one maximum operation power value, and the at least one maximum operation power value corresponds to each of at least part of the electronic equipment.
In an alternative design, the plurality of electronic devices includes a first electronic device and a second electronic device, the first electronic device having a higher priority than the second electronic device; the preset correspondence includes one or more of the following: the operation parameter value is not more than a first preset threshold value, the maximum operation power value of the first electronic equipment is a first set value, the maximum operation power value of the second electronic equipment is a second set value, and the first set value is not less than the second set value; the operation parameter value is greater than a first preset threshold and not greater than a second preset threshold, the maximum operation power value of the first electronic device is a third set value, the maximum operation power value of the second electronic device is a fourth set value, the third set value is not greater than the first set value, and the fourth set value is smaller than the second set value; the operation parameter value is greater than a second preset threshold value, the maximum operation power value of the first electronic device is a fifth set value, the maximum operation power value of the second electronic device is a sixth set value, the fifth set value is smaller than the first set value, and the sixth set value is smaller than the fourth set value.
In an alternative design, the processing unit 602 is specifically configured to: determining a maximum operating power value according to the operating parameter value, the first parameter value and the first operating power value; and the first operation power value is the maximum operation power value corresponding to the operation parameter value as the first parameter value.
In an alternative design, the operating parameter is a total power consumption of the system, or the operating parameter is a performance parameter of the system.
As shown in fig. 7, which is an apparatus 700 provided in the embodiment of the present application, the apparatus shown in fig. 7 may be implemented as a hardware circuit of the apparatus shown in fig. 6 or fig. 7. The communication device may be adapted to perform the functions of the executing agent in the above-described method embodiment in the flowchart shown in fig. 3. For ease of illustration, fig. 7 shows only the main components of the device.
The apparatus 700 shown in fig. 7 includes at least one processor 701 configured to implement any one of the methods in fig. 3 provided by the embodiments of the present application.
The apparatus 700 may also include at least one memory 702 for storing program instructions and/or data. A memory 702 is coupled to the processor 701. The coupling in the embodiments of the present application is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the devices, units or modules. The processor 701 may cooperate with the memory 702. The processor 701 may execute program instructions stored in the memory 702. At least one of the at least one memory may be included in the processor.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of the method disclosed in connection with the embodiments of the present application may be embodied as hardware processor, or may be implemented as a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
It should be noted that the processor in the embodiments of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied as being performed by a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, Synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The apparatus 700 may also include a communication interface 704 for communicating with other devices over a transmission medium such that the apparatus used in the apparatus 700 may communicate with other devices. In embodiments of the present application, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface. In the embodiment of the present application, when the communication interface is a transceiver, the transceiver may include an independent receiver and an independent transmitter; a transceiver that integrates transceiving functions, or an interface circuit may be used.
The apparatus 700 may also include a communication line 703. The communication interface 704, the processor 701, and the memory 702 may be connected to each other via a communication line 703; the communication line 703 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication line 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
In an example of the present application, the apparatus 700 may be configured to execute the steps of executing the main body in the process shown in fig. 3, for which reference is specifically made to the description of the process shown in fig. 3, which is not repeated herein.
Based on the above embodiments, the present application further provides a computer storage medium, in which a software program is stored, and the software program can implement the method provided by any one or more of the above embodiments when being read and executed by one or more processors. The computer storage medium may include: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
Based on the above embodiments, the present application further provides a computer program product, where the computer program product includes computer instructions, and when the computer instructions are executed by a computer, the computer is caused to execute the method provided by any one or more of the above embodiments.
Based on the above embodiments, the present application further provides a chip, where the chip includes a processor, and is configured to implement the functions related to any one or more of the above embodiments, such as obtaining or processing information or messages related to the above methods. Optionally, the chip further comprises a memory for storing program instructions and data for execution by the processor. The chip may also contain chips and other discrete devices.
It should be understood that in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general purpose processors, Digital Signal Processors (DSPs), application-specific integrated circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, transistor logic devices, discrete hardware components, etc., or any combination thereof designed to implement or operate the described functions. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory.
The bus system may include a power bus, a control bus, a status signal bus, and the like, in addition to the data bus. For clarity of illustration, however, the various buses are labeled as a bus system in the figures. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
Those of ordinary skill in the art will understand that: the various numbers of the first, second, etc. mentioned in this application are only used for the convenience of description and are not used to limit the scope of the embodiments of this application, but also to indicate the sequence. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one" means one or more. At least two means two or more. "at least one," "any," or similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one (one ) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. "plurality" means two or more, and other terms are analogous. Furthermore, for elements (elements) that appear in the singular form "a," an, "and" the, "they are not intended to mean" one or only one "unless the context clearly dictates otherwise, but rather" one or more than one. For example, "a device" means for one or more such devices.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The various illustrative logical units and circuits described in this application may be implemented or operated upon by design of a general purpose processor, a digital signal processor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration.
The steps of a method or algorithm described in the embodiments herein may be embodied directly in hardware, in a software element executed by a processor, or in a combination of the two. The software cells may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include such modifications and variations.

Claims (12)

1. A method for dynamic power adjustment, comprising:
acquiring an operation parameter value of an operation parameter of a system; wherein the system comprises a plurality of electronic devices, the operating parameter being indicative of a total operating power consumption of the plurality of electronic devices;
determining a maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values.
2. The method of claim 1, wherein said determining a maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values comprises:
determining a maximum operation power value corresponding to a range interval in which the operation parameter value is located according to a preset corresponding relation;
the preset corresponding relation comprises a corresponding relation between different range intervals and at least one maximum operation power value, wherein the at least one maximum operation power value corresponds to each of the at least part of the electronic equipment.
3. The method of claim 2, wherein the plurality of electronic devices includes a first electronic device and a second electronic device, the first electronic device having a higher priority than the second electronic device;
the preset corresponding relation comprises one or more of the following items:
the operation parameter value is not greater than a first preset threshold value, the maximum operation power value of the first electronic device is a first set value, the maximum operation power value of the second electronic device is a second set value, and the first set value is not less than the second set value;
the operation parameter value is greater than the first preset threshold and not greater than a second preset threshold, the maximum operation power value of the first electronic device is a third set value, the maximum operation power value of the second electronic device is a fourth set value, the third set value is not greater than the first set value, and the fourth set value is smaller than the second set value;
the operation parameter value is greater than the second preset threshold, the maximum operation power value of the first electronic device is a fifth set value, the maximum operation power value of the second electronic device is a sixth set value, the fifth set value is smaller than the first set value, and the sixth set value is smaller than the fourth set value.
4. The method of claim 1, wherein said determining a maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values comprises:
determining the maximum operating power value according to the operating parameter value, the first parameter value and the first operating power value;
and the first operation power value is the maximum operation power value corresponding to the operation parameter value as the first parameter value.
5. The method of any of claims 1-4, wherein the operating parameter is a total power consumption of the system or the operating parameter is a performance parameter of the system.
6. An apparatus, comprising:
the detection unit is used for acquiring the operation parameter value of the operation parameter of the system; wherein the system comprises a plurality of electronic devices, the operating parameter being indicative of a total operating power consumption of the plurality of electronic devices;
a processing unit configured to determine a maximum operating power value for each of at least some of the plurality of electronic devices according to the operating parameter value.
7. The apparatus as claimed in claim 6, wherein the processing unit, when determining the maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values, is specifically configured to: determining a maximum operation power value corresponding to a range interval in which the operation parameter value is located according to a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between different range intervals and at least one maximum operation power value, wherein the at least one maximum operation power value corresponds to each of the at least part of the electronic equipment.
8. The apparatus of claim 7, wherein the plurality of electronic devices includes a first electronic device and a second electronic device, the first electronic device having a higher priority than the second electronic device;
the preset corresponding relation comprises one or more of the following items:
the operation parameter value is not greater than a first preset threshold value, the maximum operation power value of the first electronic device is a first set value, the maximum operation power value of the second electronic device is a second set value, and the first set value is not less than the second set value;
the operation parameter value is greater than the first preset threshold and not greater than a second preset threshold, the maximum operation power value of the first electronic device is a third set value, the maximum operation power value of the second electronic device is a fourth set value, the third set value is not greater than the first set value, and the fourth set value is smaller than the second set value;
the operation parameter value is greater than the second preset threshold, the maximum operation power value of the first electronic device is a fifth set value, the maximum operation power value of the second electronic device is a sixth set value, the fifth set value is smaller than the first set value, and the sixth set value is smaller than the fourth set value.
9. The apparatus according to claim 6, wherein the processing unit, when determining the maximum operating power value for each of at least some of the plurality of electronic devices based on the operating parameter values, is specifically configured to: determining the maximum operating power value according to the operating parameter value, the first parameter value and the first operating power value; and the first operation power value is the maximum operation power value corresponding to the operation parameter value as the first parameter value.
10. The apparatus of any of claims 6-9, wherein the operating parameter is a total power consumption of the system, or the operating parameter is a performance parameter of the system.
11. An apparatus comprising a processor, a memory, and a communication interface;
the memory for storing computer programs or instructions;
the processor, for executing computer programs or instructions in the memory, for performing the method of any of claims 1-5 through the communication interface.
12. A computer-readable storage medium, comprising a computer program which, when run on an electronic device, causes the electronic device to perform the method of any of claims 1-5.
CN202011061947.5A 2020-09-30 2020-09-30 Dynamic power adjustment method and device Pending CN114327243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011061947.5A CN114327243A (en) 2020-09-30 2020-09-30 Dynamic power adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011061947.5A CN114327243A (en) 2020-09-30 2020-09-30 Dynamic power adjustment method and device

Publications (1)

Publication Number Publication Date
CN114327243A true CN114327243A (en) 2022-04-12

Family

ID=81011188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011061947.5A Pending CN114327243A (en) 2020-09-30 2020-09-30 Dynamic power adjustment method and device

Country Status (1)

Country Link
CN (1) CN114327243A (en)

Similar Documents

Publication Publication Date Title
CN102362464B (en) Memory access monitoring method and device
US9244520B2 (en) Techniques for managing power and performance of multi-socket processors
US11340684B2 (en) System and method for predictive battery power management
CN103270488A (en) Method and apparatus for improving the resume time of a platform
US10514848B2 (en) Data storage method for selectively storing data in a buffer preset in a memory of an electronic device or an inherent buffer in an SSD
US9305619B2 (en) Implementing simultaneous read and write operations utilizing dual port DRAM
CN112506427A (en) Method, system, equipment and medium for reducing power consumption of solid state disk
US20110055452A1 (en) Method and program for memory relocation control of computer, and computer system
CN111913669B (en) SSD power-down speed improving method and device, computer equipment and storage medium
CN112181124A (en) Method for power consumption management and related device
US10216634B2 (en) Cache directory processing method for multi-core processor system, and directory controller
US10331198B2 (en) Dynamically adapting to demand for server computing resources
CN108599774B (en) Compression method, system, device and computer readable storage medium
CN107329801B (en) Node management method and device and multi-subsatellite server
CN114327243A (en) Dynamic power adjustment method and device
CN111159009B (en) Pressure testing method and device for log service system
CN109344012B (en) Data reconstruction control method, device and equipment
US20220374062A1 (en) System management bus link, method and apparatus for determining pull-up resistance thereof, and device
US20220164196A1 (en) System and method for providing granular processor performance control
CN111913852B (en) Health management method and device for storage system
US20220113780A1 (en) Power management in a blade enclosure
CN116955129A (en) Automatic generation of code function and test case mappings
CN114020416A (en) Large-page memory dynamic management method and device and computer equipment
CN115495433A (en) Distributed storage system, data migration method and storage device
CN107273188B (en) Virtual machine Central Processing Unit (CPU) binding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination