[go: up one dir, main page]

CN112947734B - Server power consumption control method, system, terminal and storage medium - Google Patents

Server power consumption control method, system, terminal and storage medium Download PDF

Info

Publication number
CN112947734B
CN112947734B CN202110239119.4A CN202110239119A CN112947734B CN 112947734 B CN112947734 B CN 112947734B CN 202110239119 A CN202110239119 A CN 202110239119A CN 112947734 B CN112947734 B CN 112947734B
Authority
CN
China
Prior art keywords
power consumption
bmc
local
server
traffic
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.)
Active
Application number
CN202110239119.4A
Other languages
Chinese (zh)
Other versions
CN112947734A (en
Inventor
吴韶峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110239119.4A priority Critical patent/CN112947734B/en
Publication of CN112947734A publication Critical patent/CN112947734A/en
Application granted granted Critical
Publication of CN112947734B publication Critical patent/CN112947734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

本发明提供一种服务器电源功耗控制方法、系统、终端及存储介质,包括:将机房内所有服务器BMC互相建立通信连接;各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;各BMC根据本地电源功耗和接收的电源功耗计算总功耗;若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。本发明能够有效控制机房内的服务器电源功耗,且可任意添加服务器,若所需功耗超出原本机房设计,也可发挥服务器最大效能。并且充分使用机房最大电源功耗。

Figure 202110239119

The present invention provides a method, system, terminal and storage medium for controlling power consumption of server power, including: establishing communication connections among all server BMCs in a computer room; each BMC broadcasts local power consumption and receives power consumption broadcasted by other BMCs; The BMC calculates the total power consumption according to the local power consumption and the received power consumption; if the total power consumption calculated by each BMC reaches the preset power consumption threshold, each BMC controls the local power consumption to reduce. The invention can effectively control the power consumption of the server in the computer room, and the server can be added arbitrarily. If the required power consumption exceeds the original design of the computer room, the maximum performance of the server can also be exerted. And make full use of the maximum power consumption of the equipment room.

Figure 202110239119

Description

一种服务器电源功耗控制方法、系统、终端及存储介质A method, system, terminal and storage medium for controlling power consumption of server power

技术领域technical field

本发明涉及服务器技术领域,具体涉及一种服务器电源功耗控制方法、系统、终端及存储介质。The present invention relates to the technical field of servers, in particular to a method, system, terminal and storage medium for controlling power consumption of server power.

背景技术Background technique

目前机房的总电源功耗上限为固定上限,当机房服务器扩充或者升级时,机房的总功耗设定往往无法满足所有的服务器最大功耗。因此只能固定服务器的功耗上限。如此一来,若所有的服务器都固定功耗上限之后,当部分的服务器闲置时,需要高效能运算的服务器还是锁定在固定上限,导致无法发挥服务器的最高效能。At present, the upper limit of the total power consumption of the computer room is a fixed upper limit. When the servers in the computer room are expanded or upgraded, the total power consumption setting of the computer room often cannot meet the maximum power consumption of all servers. Therefore, only the power consumption limit of the server can be fixed. As a result, if all servers have a fixed power consumption upper limit, when some servers are idle, servers that require high-performance computing are still locked at the fixed upper limit, resulting in the inability to exert the highest performance of the server.

发明内容SUMMARY OF THE INVENTION

针对现有技术的上述不足,本发明提供一种服务器电源功耗控制方法、系统、终端及存储介质,以解决上述技术问题。In view of the above deficiencies in the prior art, the present invention provides a method, system, terminal and storage medium for controlling power consumption of a server power supply to solve the above technical problems.

第一方面,本发明提供一种服务器电源功耗控制方法,包括:In a first aspect, the present invention provides a method for controlling power consumption of a server power supply, including:

将机房内所有服务器BMC互相建立通信连接;Establish communication connections between all server BMCs in the computer room;

各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;The local power consumption of each BMC broadcast and the power consumption of receiving other BMC broadcasts;

各BMC根据本地电源功耗和接收的电源功耗计算总功耗;Each BMC calculates the total power consumption according to the local power consumption and the received power consumption;

若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。If the total power consumption distance calculated by each BMC reaches the preset power consumption threshold, each BMC controls the local power consumption to reduce.

进一步的,所述方法还包括:Further, the method also includes:

从所述机房的服务器BMC中选取管理BMC;Select the management BMC from the server BMC of the computer room;

在所述管理BMC中设置功耗阈值;setting a power consumption threshold in the management BMC;

通过所述管理BMC将所述功耗阈值广播至其余BMC。The power consumption threshold is broadcast to the remaining BMCs through the management BMC.

进一步的,所述各BMC控制本地电源功耗降低,包括:Further, each BMC controls the local power consumption to reduce, including:

BMC采集本地服务器业务量;BMC collects local server traffic;

BMC广播本地业务量并接收其他BMC广播的业务量;BMC broadcasts local traffic and receives traffic broadcast by other BMCs;

BMC根据本地业务量和接收的业务量计算总业务量;BMC calculates total traffic based on local traffic and received traffic;

BMC计算本地业务量占总业务量的比例;BMC calculates the proportion of local traffic to total traffic;

BMC根据所述功耗阈值和所述比例计算本地目标功耗;The BMC calculates the local target power consumption according to the power consumption threshold and the ratio;

BMC将本地电源功耗调节至所述本地目标功耗。The BMC adjusts the local power consumption to the local target power consumption.

第二方面,本发明提供一种服务器电源功耗控制系统,包括:In a second aspect, the present invention provides a server power consumption control system, including:

通信建立单元,配置用于将机房内所有服务器BMC互相建立通信连接;The communication establishment unit is configured to establish communication connections between all the server BMCs in the computer room;

功耗广播单元,配置用于各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;The power consumption broadcast unit is configured to broadcast the local power consumption of each BMC and receive the power consumption of other BMC broadcasts;

功耗计算单元,配置用于各BMC根据本地电源功耗和接收的电源功耗计算总功耗;A power consumption calculation unit, configured for each BMC to calculate the total power consumption according to the local power consumption and the received power consumption;

功耗调节单元,配置用于若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。The power consumption adjustment unit is configured to reduce the power consumption of the local power supply controlled by each BMC if the total power consumption distance calculated by each BMC reaches a preset power consumption threshold.

进一步的,所述系统还包括:Further, the system also includes:

管理选取单元,配置用于从所述机房的服务器BMC中选取管理BMC;a management selection unit, configured to select a management BMC from the server BMC of the computer room;

阈值设置单元,配置用于在所述管理BMC中设置功耗阈值;a threshold setting unit, configured to set a power consumption threshold in the management BMC;

阈值广播单元,配置用于通过所述管理BMC将所述功耗阈值广播至其余BMC。a threshold broadcasting unit, configured to broadcast the power consumption threshold to the remaining BMCs through the management BMC.

进一步的,所述功耗调节单元包括:Further, the power consumption adjustment unit includes:

业务采集模块,配置用于BMC采集本地服务器业务量;Service collection module, configured for BMC to collect local server service volume;

业务广播模块,配置用于BMC广播本地业务量并接收其他BMC广播的业务量;The service broadcast module is configured for BMC to broadcast local traffic and receive traffic from other BMC broadcasts;

业务计算模块,配置用于BMC根据本地业务量和接收的业务量计算总业务量;The service calculation module is configured for the BMC to calculate the total service volume according to the local service volume and the received service volume;

比例计算模块,配置用于BMC计算本地业务量占总业务量的比例;Proportion calculation module, configured for BMC to calculate the proportion of local business volume to total business volume;

目标计算模块,配置用于BMC根据所述功耗阈值和所述比例计算本地目标功耗;a target calculation module, configured for the BMC to calculate the local target power consumption according to the power consumption threshold and the ratio;

目标调节模块,配置用于BMC将本地电源功耗调节至所述本地目标功耗。A target adjustment module, configured for the BMC to adjust the local power consumption to the local target power consumption.

第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:

处理器、存储器,其中,processor, memory, where,

该存储器用于存储计算机程序,The memory is used to store computer programs,

该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned method of the terminal.

第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.

本发明的有益效果在于,The beneficial effect of the present invention is that,

本发明提供的服务器电源功耗控制方法、系统、终端及存储介质,能够有效控制机房内的服务器电源功耗,且可任意添加服务器,若所需功耗超出原本机房设计,也可发挥服务器最大效能。并且充分使用机房最大电源功耗。The server power consumption control method, system, terminal and storage medium provided by the present invention can effectively control the power consumption of the server in the computer room, and servers can be added arbitrarily. If the required power consumption exceeds the original computer room design, the server can also be maximized. efficacy. And make full use of the maximum power consumption of the equipment room.

此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the present invention has reliable design principle and simple structure, and has a very wide application prospect.

附图说明Description of drawings

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

图1是本发明一个实施例的方法的示意性流程图。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.

图2是本发明一个实施例的系统的示意性框图。FIG. 2 is a schematic block diagram of a system according to an embodiment of the present invention.

图3为本发明实施例提供的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种服务器电源功耗控制系统。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention. The executive body of FIG. 1 may be a server power consumption control system.

如图1所示,该方法包括:As shown in Figure 1, the method includes:

步骤110,将机房内所有服务器BMC互相建立通信连接;Step 110, establishing communication connections among all the server BMCs in the computer room;

步骤120,各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;Step 120, each BMC broadcasts the local power consumption and receives the power consumption broadcasted by other BMCs;

步骤130,各BMC根据本地电源功耗和接收的电源功耗计算总功耗;Step 130, each BMC calculates the total power consumption according to the local power consumption and the received power consumption;

步骤140,若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。Step 140: If the total power consumption distance calculated by each BMC reaches a preset power consumption threshold, each BMC controls the local power consumption to reduce power consumption.

具体的,所述服务器电源功耗控制方法包括:Specifically, the server power consumption control method includes:

S1、将机房内所有服务器BMC互相建立通信连接。S1. Establish communication connections between all server BMCs in the computer room.

服务器内的BMC管理模块可以主动与机房内所有的服务器内的BMC通讯。The BMC management module in the server can actively communicate with the BMCs in all servers in the computer room.

S2、各BMC广播本地电源功耗并接收其他BMC广播的电源功耗。S2. Each BMC broadcasts the local power consumption and receives the power consumption of other BMC broadcasts.

当服务器安装之后,管理员会设定BMC目前机房的总电源功耗设定。BMC自动透过网络广播本身服务器的目前电源功耗,并且同时间接收其他服务器BMC的广播信息(X2,X3…)。After the server is installed, the administrator will set the total power consumption of the BMC's current computer room. BMC automatically broadcasts the current power consumption of its own server through the network, and at the same time receives the broadcast information (X2, X3...) of other server BMCs.

S3、各BMC根据本地电源功耗和接收的电源功耗计算总功耗。S3. Each BMC calculates the total power consumption according to the local power consumption and the received power consumption.

当收到其他的服务器功耗广播时,会将其信息记录到BMC内部的功耗清单内。同时,也将本身服务器的电源功耗(X1)也加到功耗清单。When other server power consumption broadcasts are received, the information will be recorded in the power consumption list inside the BMC. At the same time, the power consumption (X1) of the server itself is also added to the power consumption list.

S4、若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。S4. If the total power consumption distance calculated by each BMC reaches the preset power consumption threshold, each BMC controls the local power consumption to reduce.

当功耗清单内的总电源功耗等于或大于机房总功耗设定的时候,将通知本身服务器减少电源功耗。When the total power consumption in the power consumption list is equal to or greater than the total power consumption of the equipment room, the server will be notified to reduce the power consumption.

具体减少电源功耗的方法包括:Specific ways to reduce power consumption include:

(1)BMC采集本地服务器业务量;(1) BMC collects local server traffic;

(2)BMC广播本地业务量并接收其他BMC广播的业务量;(2) BMC broadcasts local traffic and receives traffic broadcast by other BMCs;

(3)BMC根据本地业务量和接收的业务量计算总业务量;(3) BMC calculates the total traffic according to the local traffic and the received traffic;

(4)BMC计算本地业务量占总业务量的比例;(4) BMC calculates the proportion of local traffic to total traffic;

(5)BMC根据所述功耗阈值和所述比例计算本地目标功耗;(5) BMC calculates local target power consumption according to the power consumption threshold and the ratio;

(6)BMC将本地电源功耗调节至所述本地目标功耗。(6) The BMC adjusts the local power consumption to the local target power consumption.

如图2所示,该系统200包括:As shown in Figure 2, the system 200 includes:

通信建立单元210,配置用于将机房内所有服务器BMC互相建立通信连接;A communication establishing unit 210, configured to establish communication connections between all the server BMCs in the computer room;

功耗广播单元220,配置用于各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;The power consumption broadcasting unit 220 is configured to broadcast the local power consumption of each BMC and receive the power consumption of other BMC broadcasts;

功耗计算单元230,配置用于各BMC根据本地电源功耗和接收的电源功耗计算总功耗;The power consumption calculation unit 230 is configured for each BMC to calculate the total power consumption according to the local power consumption and the received power consumption;

功耗调节单元240,配置用于若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低。The power consumption adjustment unit 240 is configured to control the local power consumption to reduce the power consumption of each BMC if the total power consumption distance calculated by each BMC reaches a preset power consumption threshold.

可选地,作为本发明一个实施例,所述系统还包括:Optionally, as an embodiment of the present invention, the system further includes:

管理选取单元,配置用于从所述机房的服务器BMC中选取管理BMC;a management selection unit, configured to select a management BMC from the server BMC of the computer room;

阈值设置单元,配置用于在所述管理BMC中设置功耗阈值;a threshold setting unit, configured to set a power consumption threshold in the management BMC;

阈值广播单元,配置用于通过所述管理BMC将所述功耗阈值广播至其余BMC。a threshold broadcasting unit, configured to broadcast the power consumption threshold to the remaining BMCs through the management BMC.

可选地,作为本发明一个实施例,所述功耗调节单元包括:Optionally, as an embodiment of the present invention, the power consumption adjustment unit includes:

业务采集模块,配置用于BMC采集本地服务器业务量;Service collection module, configured for BMC to collect local server service volume;

业务广播模块,配置用于BMC广播本地业务量并接收其他BMC广播的业务量;The service broadcast module is configured for BMC to broadcast local traffic and receive traffic from other BMC broadcasts;

业务计算模块,配置用于BMC根据本地业务量和接收的业务量计算总业务量;The service calculation module is configured for the BMC to calculate the total service volume according to the local service volume and the received service volume;

比例计算模块,配置用于BMC计算本地业务量占总业务量的比例;Proportion calculation module, configured for BMC to calculate the proportion of local business volume to total business volume;

目标计算模块,配置用于BMC根据所述功耗阈值和所述比例计算本地目标功耗;a target calculation module, configured for the BMC to calculate the local target power consumption according to the power consumption threshold and the ratio;

目标调节模块,配置用于BMC将本地电源功耗调节至所述本地目标功耗。A target adjustment module, configured for the BMC to adjust the local power consumption to the local target power consumption.

图3为本发明实施例提供的一种终端300的结构示意图,该终端300可以用于执行本发明实施例提供的服务器电源功耗控制方法。FIG. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute the method for controlling power consumption of a server power supply provided by the embodiment of the present invention.

其中,该终端300可以包括:处理器310、存储器320及通信单元330。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal 300 may include: a processor 310 , a memory 320 and a communication unit 330 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation of the present invention. It can be either a bus structure, a star structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.

其中,该存储器320可以用于存储处理器310的执行指令,存储器320可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器320中的执行指令由处理器310执行时,使得终端300能够执行以下上述方法实施例中的部分或全部步骤。Wherein, the memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or their combination, such as static random access memory (SRAM), electrical Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk . When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 is enabled to execute some or all of the steps in the following method embodiments.

处理器310为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器310可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 310 is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing the software programs and/or modules stored in the memory 320, and calling the data stored in the memory, To perform various functions of the electronic terminal and/or process data. The processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions. For example, the processor 310 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiment of the present invention, the CPU may be a single computing core, or may include multiple computing cores.

通信单元330,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The communication unit 330 is used for establishing a communication channel, so that the storage terminal can communicate with other terminals. Receive user data sent by other terminals or send user data to other terminals.

本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the embodiments provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).

因此,本发明能够有效控制机房内的服务器电源功耗,且可任意添加服务器,若所需功耗超出原本机房设计,也可发挥服务器最大效能。并且充分使用机房最大电源功耗,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention can effectively control the power consumption of the server in the computer room, and the server can be added arbitrarily. If the required power consumption exceeds the original design of the computer room, the maximum performance of the server can also be exerted. In addition, the maximum power consumption of the computer room is fully used, and the technical effects that can be achieved in this embodiment can be referred to the description above, and will not be repeated here.

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium such as a USB flash drive, a mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, refer to the description in the method embodiment.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method may be implemented in other manners. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection between systems or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all fall within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (6)

1.一种服务器电源功耗控制方法,其特征在于,包括:1. A method for controlling power consumption of a server power supply, comprising: 将机房内所有服务器BMC互相建立通信连接;Establish communication connections between all server BMCs in the computer room; 各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;The local power consumption of each BMC broadcast and the power consumption of receiving other BMC broadcasts; 各BMC根据本地电源功耗和接收的电源功耗计算总功耗;Each BMC calculates the total power consumption according to the local power consumption and the received power consumption; 若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低;If the total power consumption distance calculated by each BMC reaches the preset power consumption threshold, each BMC controls the local power consumption to reduce; 所述各BMC控制本地电源功耗降低,包括:Each BMC controls the local power consumption to reduce, including: BMC采集本地服务器业务量;BMC collects local server traffic; BMC广播本地业务量并接收其他BMC广播的业务量;BMC broadcasts local traffic and receives traffic broadcast by other BMCs; BMC根据本地业务量和接收的业务量计算总业务量;BMC calculates total traffic based on local traffic and received traffic; BMC计算本地业务量占总业务量的比例;BMC calculates the proportion of local traffic to total traffic; BMC根据所述功耗阈值和所述比例计算本地目标功耗;The BMC calculates the local target power consumption according to the power consumption threshold and the ratio; BMC将本地电源功耗调节至所述本地目标功耗。The BMC adjusts the local power consumption to the local target power consumption. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 从所述机房的服务器BMC中选取管理BMC;Select the management BMC from the server BMC of the computer room; 在所述管理BMC中设置功耗阈值;setting a power consumption threshold in the management BMC; 通过所述管理BMC将所述功耗阈值广播至其余BMC。The power consumption threshold is broadcast to the remaining BMCs through the management BMC. 3.一种服务器电源功耗控制系统,其特征在于,包括:3. A server power consumption control system, characterized in that, comprising: 通信建立单元,配置用于将机房内所有服务器BMC互相建立通信连接;The communication establishment unit is configured to establish communication connections between all the server BMCs in the computer room; 功耗广播单元,配置用于各BMC广播本地电源功耗并接收其他BMC广播的电源功耗;The power consumption broadcast unit is configured to broadcast the local power consumption of each BMC and receive the power consumption of other BMC broadcasts; 功耗计算单元,配置用于各BMC根据本地电源功耗和接收的电源功耗计算总功耗;A power consumption calculation unit, configured for each BMC to calculate the total power consumption according to the local power consumption and the received power consumption; 功耗调节单元,配置用于若各BMC计算出的总功耗距达到预设功耗阈值,则各BMC控制本地电源功耗降低;a power consumption adjustment unit, configured to reduce the power consumption of the local power supply controlled by each BMC if the total power consumption distance calculated by each BMC reaches a preset power consumption threshold; 所述功耗调节单元包括:The power consumption adjustment unit includes: 业务采集模块,配置用于BMC采集本地服务器业务量;Service collection module, configured for BMC to collect local server service volume; 业务广播模块,配置用于BMC广播本地业务量并接收其他BMC广播的业务量;The service broadcast module is configured for BMC to broadcast local traffic and receive traffic from other BMC broadcasts; 业务计算模块,配置用于BMC根据本地业务量和接收的业务量计算总业务量;The service calculation module is configured for the BMC to calculate the total service volume according to the local service volume and the received service volume; 比例计算模块,配置用于BMC计算本地业务量占总业务量的比例;Proportion calculation module, configured for BMC to calculate the proportion of local business volume to total business volume; 目标计算模块,配置用于BMC根据所述功耗阈值和所述比例计算本地目标功耗;a target calculation module, configured for the BMC to calculate the local target power consumption according to the power consumption threshold and the ratio; 目标调节模块,配置用于BMC将本地电源功耗调节至所述本地目标功耗。A target adjustment module, configured for the BMC to adjust the local power consumption to the local target power consumption. 4.根据权利要求3所述的系统,其特征在于,所述系统还包括:4. The system of claim 3, wherein the system further comprises: 管理选取单元,配置用于从所述机房的服务器BMC中选取管理BMC;a management selection unit, configured to select a management BMC from the server BMC of the computer room; 阈值设置单元,配置用于在所述管理BMC中设置功耗阈值;a threshold setting unit, configured to set a power consumption threshold in the management BMC; 阈值广播单元,配置用于通过所述管理BMC将所述功耗阈值广播至其余BMC。a threshold broadcasting unit, configured to broadcast the power consumption threshold to the remaining BMCs through the management BMC. 5.一种终端,其特征在于,包括:5. A terminal, characterized in that, comprising: 处理器;processor; 用于存储处理器的执行指令的存储器;memory for storing instructions for execution of the processor; 其中,所述处理器被配置为执行权利要求1-2任一项所述的方法。wherein the processor is configured to perform the method of any one of claims 1-2. 6.一种存储有计算机程序的计算机可读存储介质,其特征在于,该程序被处理器执行时实现如权利要求1-2中任一项所述的方法。6. A computer-readable storage medium storing a computer program, characterized in that, when the program is executed by a processor, the method according to any one of claims 1-2 is implemented.
CN202110239119.4A 2021-03-04 2021-03-04 Server power consumption control method, system, terminal and storage medium Active CN112947734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110239119.4A CN112947734B (en) 2021-03-04 2021-03-04 Server power consumption control method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110239119.4A CN112947734B (en) 2021-03-04 2021-03-04 Server power consumption control method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112947734A CN112947734A (en) 2021-06-11
CN112947734B true CN112947734B (en) 2022-05-13

Family

ID=76247543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110239119.4A Active CN112947734B (en) 2021-03-04 2021-03-04 Server power consumption control method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112947734B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113688001B (en) * 2021-07-23 2023-06-16 苏州浪潮智能科技有限公司 Dynamic balancing method and device for power consumption of server hard disk, terminal and storage medium
CN113849365B (en) * 2021-08-19 2023-08-22 苏州浪潮智能科技有限公司 Controlling method, system, terminal and storage medium of server performance and power consumption ratio
CN113505001B (en) * 2021-09-10 2022-05-31 阿里云计算有限公司 Server management method, server, electronic device and computer-readable storage medium
CN114416363B (en) * 2022-01-17 2025-06-06 飞腾信息技术有限公司 Data center system and management method of data center system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1736122A (en) * 2003-01-14 2006-02-15 艾利森电话股份有限公司 Resource allocation management
CN1920745A (en) * 2005-08-23 2007-02-28 国际商业机器公司 System and method for maximizing server utilization in a resource constrained environment
CN101277200A (en) * 2007-03-30 2008-10-01 联想(北京)有限公司 Method and device for managing multiserver power supply
CN103791509A (en) * 2012-10-31 2014-05-14 阿尔斯通技术有限公司 An oxy-fuel boiler system and its operation
CN103823545A (en) * 2014-03-05 2014-05-28 南京邮电大学 Server awaking method of cloud computing system
CN104284404A (en) * 2014-09-23 2015-01-14 北京邮电大学 Method for reducing energy consumption of D2D system and macro base station
CN107124768A (en) * 2017-04-13 2017-09-01 中国联合网络通信集团有限公司 A kind of method and device of power distribution
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device
CN111352497A (en) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 A method, system, device and medium for limiting power consumption of a server
CN111625080A (en) * 2020-05-22 2020-09-04 苏州浪潮智能科技有限公司 Server energy saving method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105390096A (en) * 2015-11-24 2016-03-09 深圳创维-Rgb电子有限公司 Method and device for over-driving control of regional dimming

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1736122A (en) * 2003-01-14 2006-02-15 艾利森电话股份有限公司 Resource allocation management
CN1920745A (en) * 2005-08-23 2007-02-28 国际商业机器公司 System and method for maximizing server utilization in a resource constrained environment
CN101277200A (en) * 2007-03-30 2008-10-01 联想(北京)有限公司 Method and device for managing multiserver power supply
CN103791509A (en) * 2012-10-31 2014-05-14 阿尔斯通技术有限公司 An oxy-fuel boiler system and its operation
CN103823545A (en) * 2014-03-05 2014-05-28 南京邮电大学 Server awaking method of cloud computing system
CN104284404A (en) * 2014-09-23 2015-01-14 北京邮电大学 Method for reducing energy consumption of D2D system and macro base station
CN107124768A (en) * 2017-04-13 2017-09-01 中国联合网络通信集团有限公司 A kind of method and device of power distribution
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device
CN111352497A (en) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 A method, system, device and medium for limiting power consumption of a server
CN111625080A (en) * 2020-05-22 2020-09-04 苏州浪潮智能科技有限公司 Server energy saving method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112947734A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112947734B (en) Server power consumption control method, system, terminal and storage medium
CN110890980A (en) Method, device, server and system for switching main terminal and standby terminal
CN108108286A (en) Method of data capture and device, server, storage medium
CN108540568B (en) Computing capacity sharing method and intelligent equipment
EP3817255A1 (en) Data verification method and apparatus, and storage medium
JP6785332B2 (en) Bluetooth speaker Data processing method, device and bluetooth speaker
CN106131185B (en) Video data processing method, device and system
CN103530193A (en) Method and device used for adjusting application process
US11662925B2 (en) Data processing method and distributed storage system
CN114442794A (en) Server power consumption control method, system, terminal and storage medium
CN113849271B (en) Cloud desktop display method, device, equipment, system and storage medium
CN113688001B (en) Dynamic balancing method and device for power consumption of server hard disk, terminal and storage medium
RU2545187C1 (en) Method and apparatus for implementing baseband resource pool in lte base station
WO2020155591A1 (en) Method and device for real time synchronization of bios and bmc power-off policy, terminal and storage medium
CN111949216A (en) Method, system, terminal and storage medium for automatic expansion of cloud platform storage volume
CN108924203B (en) Data copy self-adaptive distribution method, distributed computing system and related equipment
CN111737027A (en) Lookup processing method, system, terminal and storage medium of distributed storage system
CN111736993A (en) A cluster high-availability service configuration method, system, terminal and storage medium
WO2021012795A1 (en) Network node scheduling method and apparatus, electronic device and storage medium
CN104572402A (en) Server and method for realizing power consumption management of server
CN109343688A (en) A kind of OCP current range adjustment method, device, terminal and storage medium
EP4542416A1 (en) Method and apparatus for determining carbon emissions, and device
CN112003730A (en) A method, system, terminal and storage medium for rapid cluster deployment
WO2024131161A1 (en) Server architecture for supporting cloud gaming
CN111984991A (en) Data encryption storage method, system, terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant