CN109918192B - BMC resource allocation method for server - Google Patents

BMC resource allocation method for server Download PDF

Info

Publication number
CN109918192B
CN109918192B CN201711421955.4A CN201711421955A CN109918192B CN 109918192 B CN109918192 B CN 109918192B CN 201711421955 A CN201711421955 A CN 201711421955A CN 109918192 B CN109918192 B CN 109918192B
Authority
CN
China
Prior art keywords
bmc
electronic device
time
resource allocation
calculating
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
CN201711421955.4A
Other languages
Chinese (zh)
Other versions
CN109918192A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711421955.4A priority Critical patent/CN109918192B/en
Publication of CN109918192A publication Critical patent/CN109918192A/en
Application granted granted Critical
Publication of CN109918192B publication Critical patent/CN109918192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a BMC resource allocation method for a server, which comprises the following steps: acquiring signal routing delay time corresponding to communication between a BMC in a target server and each electronic device controlled by the BMC; acquiring the required calculation time for calculating the information of each electronic device controlled by the BMC, wherein the required calculation time corresponds to the information; calculating the resource distribution weight corresponding to each electronic device according to the signal routing delay time and the required calculation time corresponding to each electronic device; and correspondingly allocating the computing resources of the BMC to the electronic equipment corresponding to each resource allocation weight according to the resource allocation weight. The corresponding resource allocation weight is allocated to each electronic device to allocate the computing resource of the BMC to each electronic device, so that the management of the BMC on the electronic devices is optimized, the BMC can process appropriate signals under limited capacity, the resource of the BMC is effectively utilized, and the condition that the system is delayed for too long due to uneven load allocation is avoided.

Description

BMC resource allocation method for server
Technical Field
The invention relates to the technical field of servers, in particular to a BMC resource allocation method for a server.
Background
In the current server design, a Basic Management Controller (BMC) is usually configured as a core for controlling and managing the system peripheral, and the main signals for controlling the peripheral electronic devices are used as a communication medium through an integrated circuit bus I2C to control the speed of the fan, the system temperature, the system voltage and the operation of the CPU, so that the system administrator can know the status information of the current server system by the form of event transmission, thereby facilitating the administrator to read the information remotely.
As more and more electronic devices need to be managed and controlled by the BMC in the server system, it is very important to effectively manage the messages read by the electronic devices. Even if the BMC can process the appropriate signal with limited capability to achieve the optimized effect.
Therefore, how to optimize the management of the BMC on the electronic device to effectively utilize the resources of the BMC is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a BMC resource allocation method for a server, which can optimize the management of BMC on electronic equipment and effectively utilize the resources of BMC.
In order to solve the technical problems, the invention provides the following technical scheme:
a BMC resource allocation method for a server, comprising:
acquiring signal routing delay time corresponding to communication between a BMC in a target server and each electronic device controlled by the BMC;
acquiring the calculation time required by the BMC for calculating the information of each electronic device managed and controlled by the BMC;
calculating the resource distribution weight corresponding to each electronic device according to the signal routing delay time and the required calculation time corresponding to each electronic device;
and correspondingly allocating the computing resources of the BMC to the electronic equipment corresponding to each resource allocation weight according to the resource allocation weights.
Preferably, before allocating the computing resource of the BMC to the electronic device corresponding to each resource allocation weight according to the resource allocation weight, the method further includes:
acquiring the communication priority of each electronic device;
and recalculating the resource allocation weight corresponding to each electronic device according to the communication priority of each electronic device.
Preferably, the obtaining of the signal routing delay time corresponding to the communication between the BMC in the target server and each electronic device controlled by the BMC includes:
acquiring time t1, t2, t3 and t4 when the BMC and the target electronic device communicate, wherein t1 is a time point when the BMC sends out a signal, t2 is a time point when the target electronic device receives a signal sent by the BMC, t3 is a time point when the target electronic device feeds back a signal to the BMC, and t4 is a time point when the BMC receives the feedback signal;
calculating the average delay time of signal routing corresponding to the communication between the BMC and the target electronic equipment according to the following formula:
t2-t1=DelayBD+offset From BMC
t4-t3=DelayDB–offset From BMC
DelayBD+DelayDB=(t4-t1)–(t3-t2)
Mean Path Delay=(DelayBD+DelayDB)/2=[(t4–t1)-(t3–t2)]/2
the Delay bd is a Delay time From the BMC to the target electronic device, the Delay db is a Delay time From the target electronic device to the BMC, the offset From BMC is a time difference required for the BMC to calculate a signal of the target electronic device, and the Mean Path Delay is an average Delay time for signal routing between the BMC and the target electronic device.
Preferably, the obtaining of the time required for the BMC to calculate the calculation corresponding to the message of each electronic device managed by the BMC includes:
acquiring time t1, t2, t3 and t4 when the BMC is communicated with the target electronic equipment;
calculating the required calculation time corresponding to the message of the target electronic equipment controlled by the BMC according to the following formula:
t2-t1=DelayBD+offset From BMC
t4-t3=DelayDB–offset From BMC
Time consume=offset From BMC=[(t2-t1)+(t3-t4)]/2
the Time constant From BMC is a Time difference required for the BMC to calculate the signal of the target electronic device, that is, a Time required for the BMC to calculate the Time corresponding to the message of each electronic device managed by the BMC.
Preferably, the calculating the resource allocation weight corresponding to each of the electronic devices according to the signal routing delay time and the calculation time corresponding to each of the electronic devices includes:
calculating the sum of the signal routing delay time corresponding to each electronic device and the corresponding time of the time required for calculation;
calculating the time summation ratio corresponding to each electronic device;
and giving the corresponding resource distribution weight to each electronic device according to the ratio.
Compared with the prior art, the technical scheme has the following advantages:
the invention provides a BMC resource allocation method for a server, which comprises the following steps: acquiring signal routing delay time corresponding to communication between a BMC in a target server and each electronic device controlled by the BMC; acquiring the required calculation time for calculating the information of each electronic device controlled by the BMC, wherein the required calculation time corresponds to the information; calculating the resource distribution weight corresponding to each electronic device according to the signal routing delay time and the required calculation time corresponding to each electronic device; and correspondingly allocating the computing resources of the BMC to the electronic equipment corresponding to each resource allocation weight according to the resource allocation weight. The time required by the BMC for operating each electronic device can be analyzed and calculated through calculating the signal routing delay time and the corresponding message calculation time when the BMC communicates with each electronic device managed by the BMC, the corresponding resource distribution weight is distributed to each electronic device according to the calculated time, and the calculation resource of the BMC is distributed to each electronic device, so that the management of the BMC on the electronic devices is optimized, the BMC can process appropriate signals under limited capacity, the resource of the BMC is effectively utilized, and the condition that the system is delayed for too long due to uneven load capacity distribution is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a BMC resource allocation method for a server according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of signal transmission between the BMC and the target electronic device according to an embodiment of the invention.
Detailed Description
The core of the invention is to provide a BMC resource allocation method for the server, which can optimize the management of the BMC on the electronic equipment and effectively utilize the resources of the BMC.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The invention can be implemented in a number of ways different from those described herein and similar generalizations can be made by those skilled in the art without departing from the spirit of the invention. The invention is therefore not limited to the specific implementations disclosed below.
Referring to fig. 1, fig. 1 is a flowchart illustrating a BMC resource allocation method for a server according to an embodiment of the present invention.
A specific embodiment of the present invention provides a BMC resource allocation method for a server, including:
s11: and acquiring signal routing delay time corresponding to communication between the BMC in the target server and each electronic device controlled by the BMC.
When the BMC in the server communicates with each electronic device controlled by the BMC each time, the signal routing delay time of the electronic device currently communicating is acquired at the same time, and the time is determined as a first time parameter.
S12: and acquiring the required calculation time for the BMC to calculate the information of each electronic device managed and controlled by the BMC.
Besides the signal routing delay time, the time for reading and processing the message of each electronic device when the BMC communicates with each electronic device is also obtained, and the time is determined as a second time parameter.
S13: and calculating the resource distribution weight corresponding to each electronic device according to the signal routing delay time and the required calculation time corresponding to each electronic device.
And calculating the resource distribution weight corresponding to each electronic device according to the first time parameter and the corresponding second time parameter of each electronic device.
Wherein, according to the signal routing delay time and the calculation required time corresponding to each electronic device, calculating the resource distribution weight corresponding to each electronic device, comprises: calculating the sum of the signal routing delay time corresponding to each electronic device and the corresponding time of the time required for calculation; calculating the time summation ratio corresponding to each electronic device; and giving the corresponding resource distribution weight to each electronic device according to the ratio.
S14: and correspondingly allocating the computing resources of the BMC to the electronic equipment corresponding to each resource allocation weight according to the resource allocation weight.
The total time required by the BMC for operating each electronic device can be analyzed and calculated through the first time parameter and the second time parameter of each electronic device managed and controlled by the BMC in the calculation server, the corresponding resource distribution weight is distributed to each electronic device according to the calculated time, the calculation resource of the BMC is distributed to each electronic device, and therefore management of the BMC on the electronic devices is optimized, the BMC can process appropriate signals under limited capacity, the resource of the BMC is effectively utilized, and the condition that the system is delayed for too long due to uneven load capacity distribution is avoided.
In an embodiment of the present invention, before allocating the computing resource of the BMC to the electronic device corresponding to each resource allocation weight according to the resource allocation weight, the method further includes: acquiring the communication priority of each electronic device; and recalculating the resource allocation weight corresponding to each electronic device according to the communication priority of each electronic device.
Since different electronic devices have different roles in the server, their priorities are different. When resource allocation is performed, different electronic devices can be classified according to processing priority, electronic devices in high priority preferentially perform computing resource allocation, and electronic devices in the same priority allocate computing resources according to resource allocation weights calculated by two time parameters.
In addition to the above resource allocation manner, the priority may be directly used as a calculation parameter of the resource allocation weight, and the priority parameter is calculated into the resource allocation weight according to a certain proportion to recalculate the resource allocation weight corresponding to each electronic device. And allocating the computing resources of the BMC according to the recalculated resource allocation weight.
Referring to fig. 2, fig. 2 is a schematic diagram of signal transmission between a BMC and a target electronic device according to an embodiment of the present invention
In an embodiment of the present invention, obtaining a signal routing delay time corresponding to a communication between a BMC in a target server and each electronic device managed and controlled by the BMC includes:
acquiring time t1, t2, t3 and t4 when the BMC and the target electronic device communicate, wherein t1 is a time point when the BMC sends out a signal, t2 is a time point when the target electronic device receives a signal sent by the BMC, t3 is a time point when the target electronic device sends back a BMC feedback signal, and t4 is a time point when the BMC receives the feedback signal;
calculating the average delay time of signal routing corresponding to the communication between the BMC and the target electronic equipment according to the following formula:
t2-t1=DelayBD+offset From BMC
t4-t3=DelayDB–offset From BMC
DelayBD+DelayDB=(t4-t1)–(t3-t2)
Mean Path Delay=(DelayBD+DelayDB)/2=[(t4–t1)-(t3–t2)]/2
the Delay BD is a Delay time From the BMC to the target electronic device, the Delay DB is a Delay time From the target electronic device to the BMC, the offset From BMC is a time difference required by the BMC to calculate a signal of the target electronic device, and the Mean Path Delay is an average Delay time of signal routing between the BMC and the target electronic device.
Acquiring the required calculation time corresponding to the information of each electronic device managed and controlled by the BMC, wherein the required calculation time comprises the following steps:
acquiring time t1, t2, t3 and t4 when the BMC is communicated with the target electronic equipment;
calculating the required calculation time corresponding to the message of the target electronic equipment controlled by the BMC according to the following formula:
t2-t1=DelayBD+offset From BMC
t4-t3=DelayDB–offset From BMC
Time consume=offset From BMC=[(t2-t1)+(t3-t4)]/2
the Time constant From BMC is a Time difference required for the BMC to calculate the signal of the target electronic device, that is, a Time required for the BMC to calculate the Time corresponding to the message of each electronic device managed by the BMC.
In this embodiment, several parameters t1, t2, t3, and t4 corresponding to each electronic device are obtained, and the first time parameter and the second time parameter corresponding to each electronic device under the control of the BMC can be calculated through the above formula.
The detailed description of the BMC resource allocation method for a server according to the present invention is provided above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (3)

1. A BMC resource allocation method for a server, comprising:
acquiring signal routing delay time corresponding to communication between a BMC in a target server and each electronic device controlled by the BMC;
acquiring the calculation time required by the BMC for calculating the information of each electronic device managed and controlled by the BMC;
calculating the resource distribution weight corresponding to each electronic device according to the signal routing delay time and the required calculation time corresponding to each electronic device;
correspondingly allocating the computing resources of the BMC to the electronic equipment corresponding to each resource allocation weight according to the resource allocation weight;
the method for acquiring the signal routing delay time corresponding to the communication between the BMC in the target server and each electronic device controlled by the BMC comprises the following steps:
acquiring time t1, t2, t3 and t4 when the BMC and the target electronic device communicate, wherein t1 is a time point when the BMC sends out a signal, t2 is a time point when the target electronic device receives a signal sent by the BMC, t3 is a time point when the target electronic device feeds back a signal to the BMC, and t4 is a time point when the BMC receives the feedback signal;
calculating the average delay time of signal routing corresponding to the communication between the BMC and the target electronic equipment according to the following formula:
t2 - t1 = DelayBD + offset From BMC
t4 - t3 = DelayDB – offset From BMC
DelayBD + DelayDB = (t4 - t1) – (t3 - t2)
Mean Path Delay = (DelayBD + DelayDB)/2 = [(t4 – t1) - (t3 – t2)]/2
wherein DelayBD is a Delay time From the BMC to the target electronic device, DelayDB is a Delay time From the target electronic device to the BMC, offset From BMC is a time difference required for the BMC to calculate a signal of the target electronic device, and Mean Path Delay is an average Delay time for signal routing between the BMC and the target electronic device;
the obtaining of the calculation time required by the BMC to calculate the information of each of the electronic devices managed and controlled by the BMC includes:
acquiring time t1, t2, t3 and t4 when the BMC is communicated with the target electronic equipment;
calculating the required calculation time corresponding to the message of the target electronic equipment controlled by the BMC according to the following formula:
t2 - t1 = DelayBD + offset From BMC
t4 - t3 = DelayDB – offset From BMC
Time consume =offset From BMC = [(t2 - t1) + (t3 - t4)]/2
time control = offset From BMC is a Time difference required for the BMC to calculate the signal of the target electronic device, that is, a Time required for the BMC to calculate the Time corresponding to the message of each electronic device managed by the BMC.
2. The method of claim 1, further comprising, before allocating the computing resources of the BMC to the electronic devices corresponding to the resource allocation weights according to the resource allocation weights, respectively:
acquiring the communication priority of each electronic device;
and recalculating the resource allocation weight corresponding to each electronic device according to the communication priority of each electronic device.
3. The method of claim 2, wherein calculating the resource allocation weight corresponding to each of the electronic devices according to the signal routing delay time and the calculation time corresponding to each of the electronic devices comprises:
calculating the sum of the signal routing delay time corresponding to each electronic device and the corresponding time of the time required for calculation;
calculating the time summation ratio corresponding to each electronic device;
and giving the corresponding resource distribution weight to each electronic device according to the ratio.
CN201711421955.4A 2017-12-25 2017-12-25 BMC resource allocation method for server Active CN109918192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711421955.4A CN109918192B (en) 2017-12-25 2017-12-25 BMC resource allocation method for server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711421955.4A CN109918192B (en) 2017-12-25 2017-12-25 BMC resource allocation method for server

Publications (2)

Publication Number Publication Date
CN109918192A CN109918192A (en) 2019-06-21
CN109918192B true CN109918192B (en) 2022-02-18

Family

ID=66959485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711421955.4A Active CN109918192B (en) 2017-12-25 2017-12-25 BMC resource allocation method for server

Country Status (1)

Country Link
CN (1) CN109918192B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354663A (en) * 2007-07-25 2009-01-28 联想(北京)有限公司 Method and apparatus for scheduling true CPU resource applied to virtual machine system
CN102521055A (en) * 2011-12-15 2012-06-27 广州杰赛科技股份有限公司 Virtual machine resource allocating method and virtual machine resource allocating system
CN104954496A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Cloud resource allocation method and device
CN105912439A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Method, device and system for computer monitoring

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323574B2 (en) * 2014-02-21 2016-04-26 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Processor power optimization with response time assurance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354663A (en) * 2007-07-25 2009-01-28 联想(北京)有限公司 Method and apparatus for scheduling true CPU resource applied to virtual machine system
CN102521055A (en) * 2011-12-15 2012-06-27 广州杰赛科技股份有限公司 Virtual machine resource allocating method and virtual machine resource allocating system
CN104954496A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Cloud resource allocation method and device
CN105912439A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Method, device and system for computer monitoring

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Practical experience with IEEE 1588 high Precision Time Synchronization in electrical substation based on IEC 61850 Process Bus;R. Moore;《IEEE》;20101231;全文 *
电力系统IEEE 1588一致性测试研究;黄曙;《电网技术》;20120605;全文 *

Also Published As

Publication number Publication date
CN109918192A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
US10355959B2 (en) Techniques associated with server transaction latency information
US9392050B2 (en) Automatic configuration of external services based upon network activity
US10257066B2 (en) Interconnect congestion control in a storage grid
CN112437018B (en) Flow control method, device, equipment and storage medium of distributed cluster
CN110830391A (en) Resource allocation method and device and cluster system
US9317427B2 (en) Reallocating unused memory databus utilization to another processor when utilization is below a threshold
CN108337179B (en) Link flow control method and device
US9485185B2 (en) Adjusting connection validating control signals in response to changes in network traffic
CN105162716A (en) Flow control method and apparatus under NFV configuration
CN107395458B (en) System monitoring method and device
CN112711479A (en) Load balancing system, method and device of server cluster and storage medium
US10306344B2 (en) Method and system for distributed control of large photonic switched networks
US20190199644A1 (en) Scheduling of Data Flow Transmission in a Data Center
CN111418187A (en) Scalable statistics and analysis mechanism in cloud networks
CN107896196B (en) Method and device for distributing messages
US11979335B2 (en) Network controller
CN109918192B (en) BMC resource allocation method for server
CN116048791B (en) Regulation and control method and device of test node, electronic equipment and storage medium
CN110838989A (en) Method and device for network current limiting based on token
CN110933122A (en) Method, apparatus, and computer storage medium for managing server
CN108989239B (en) Overload protection method and device, controller and storage medium
US20240214327A1 (en) Dynamic configuration of switch network port bandwidth based on server priority
CN116708557A (en) Resource allocation method and device, electronic equipment and readable storage medium
CN115248741A (en) Serdes PHY multiplexing method, device, equipment and storage medium
CN117614958A (en) SDN controller-based load balancing processing method, device and equipment

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