CN114327017A - Server control method and device and server - Google Patents

Server control method and device and server Download PDF

Info

Publication number
CN114327017A
CN114327017A CN202111446000.0A CN202111446000A CN114327017A CN 114327017 A CN114327017 A CN 114327017A CN 202111446000 A CN202111446000 A CN 202111446000A CN 114327017 A CN114327017 A CN 114327017A
Authority
CN
China
Prior art keywords
server
target server
current
power consumption
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.)
Withdrawn
Application number
CN202111446000.0A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111446000.0A priority Critical patent/CN114327017A/en
Publication of CN114327017A publication Critical patent/CN114327017A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a server control method, a device and a server, wherein the method comprises the following steps: acquiring current hardware equipment configuration information and current service requirements of a target server; determining the maximum traffic volume which can be borne by a target server based on the current hardware equipment configuration information; and adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume. Therefore, the maximum service volume which can be borne by the target server is determined through the hardware equipment which is configured in real time by the server, and then the power consumption mode of the server is flexibly adjusted according to the relation between the real-time service demand and the maximum service volume, so that the service demand is met, the problem that each hardware equipment in the server is damaged when running at a high speed for a long time is solved, the power consumption of the server is reduced, the purposes of energy conservation and emission reduction are achieved, the long-term operation of the server is facilitated, the maintenance cost of the server is reduced, and the service life of the server is prolonged.

Description

Server control method and device and server
Technical Field
The invention relates to the technical field of servers, in particular to a server control method, a server control device and a server.
Background
In recent years, the data center industry has been in a high-speed growth period under the promotion of technologies such as cloud computing, big data, internet of things and the like. The server with high-speed computing capability, long-time reliable operation and strong external data throughput capacity is deployed on a large scale as an exclusive form of a large-scale internet enterprise, is widely used in other traditional enterprises with large volume and self-built data centers, and is greatly required by various industries.
The server is composed of a plurality of hardware parts such as a mainboard, a memory, a hard disk, a cooling fan, peripheral equipment and the like, and each hardware needs to consume certain power consumption during operation. In the existing server design, the communication rate and bandwidth of PCIe devices are generally obtained through trailing or set by BIOS, and the rotational speed of the fan is adjusted by the BMC according to a certain heat dissipation policy according to the temperature in the server. The current server has high power consumption, mainly because each device runs at a high speed for a long time, and each device in the hardware of the server is seriously worn.
The state of the server running at a high speed may cause an overlarge load of the server, which affects the out-of-band management of the BMC, and a large amount of power consumption may be consumed when a large amount of devices run at a high speed for a long time, which generates a large amount of heat energy.
Disclosure of Invention
In view of this, embodiments of the present invention provide a server control method, an apparatus, and a server, so as to overcome the problems that a high-speed operation mode of each device in the server in the prior art is not favorable for long-term operation of the server and increases maintenance cost.
According to a first aspect, an embodiment of the present invention provides a server control method, including:
acquiring current hardware equipment configuration information and current service requirements of a target server;
determining the maximum traffic volume which can be borne by the target server based on the current hardware equipment configuration information;
and adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume.
Optionally, the determining, based on the current hardware device configuration information, the maximum traffic that can be carried by the target server includes:
determining the type and the quantity of the hardware equipment contained in the target server and the maximum operation power which can be provided based on the current hardware equipment configuration information;
determining power consumption corresponding to different services based on the type and the number of first hardware equipment required by different services and the operating power corresponding to each hardware equipment;
and determining the maximum service volume which can be borne by the target server based on the maximum operating power and the power corresponding to different services.
Optionally, the adjusting the current power consumption mode of the server based on the relationship between the current service demand and the maximum traffic includes:
when the traffic corresponding to the current traffic demand is smaller than a first traffic range corresponding to the maximum traffic, controlling the target server to enter a low-power-consumption operation mode, wherein the maximum value of the first traffic range is smaller than the maximum traffic;
when the traffic corresponding to the current traffic demand is larger than a first traffic range corresponding to the maximum traffic, controlling the target server to enter a high-power-consumption operation mode;
and controlling the target server to enter a normal power consumption operation mode when the traffic corresponding to the current service demand belongs to the first traffic range corresponding to the maximum traffic.
Optionally, the controlling the target server to enter a low power consumption operation mode includes:
determining second hardware equipment which does not participate in service operation in the target server based on the current hardware equipment configuration information and the current service requirement;
controlling the second hardware device to sleep;
and reducing the communication rate of the hardware equipment already running in the target server.
Optionally, the controlling the target server to enter a high power consumption operation mode includes:
and improving the communication rate of the hardware equipment already running in the target server.
Optionally, after controlling the target server to enter a low power consumption operation mode, the method further includes:
when the current service requirement is monitored to belong to the first service volume range, controlling the target server to enter a normal power consumption operation mode;
after controlling the target server to enter a high power consumption operation mode, the method further comprises:
monitoring the running state of the target server;
and controlling the target server to enter a normal power consumption operation mode when the abnormal operation state is monitored.
Optionally, the controlling the target server to enter a low power consumption operation mode further includes:
reducing the rotation speed of a fan in the target server;
the controlling the target server to enter a low power consumption operation mode further comprises:
and increasing the rotating speed of the fan in the target server.
According to a second aspect, an embodiment of the present invention provides a server control apparatus, including:
the acquisition module is used for acquiring the current hardware equipment configuration information and the current service requirement of the target server;
the first processing module is used for determining the maximum traffic volume which can be borne by the target server based on the current hardware equipment configuration information;
and the second processing module is used for adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume.
Optionally, the first processing module includes:
the first processing unit is used for determining the type and the quantity of the hardware equipment contained in the target server and the maximum operation power which can be provided based on the current hardware equipment configuration information;
the second processing unit is used for determining the power consumption corresponding to different services based on the types and the number of the first hardware equipment required by the different services and the running power corresponding to each hardware equipment;
and the third processing unit is used for determining the maximum service volume which can be borne by the target server based on the maximum operating power and the power corresponding to different services.
Optionally, the second processing module includes:
a fourth processing unit, configured to control the target server to enter a low power consumption operation mode when the traffic corresponding to the current service demand is smaller than a first traffic range corresponding to the maximum traffic, where a maximum value of the first traffic range is smaller than the maximum traffic;
a fifth processing unit, configured to control the target server to enter a high power consumption operation mode when a traffic volume corresponding to the current service demand is greater than a first traffic volume range corresponding to the maximum traffic volume;
and the sixth processing unit is configured to control the target server to enter a normal power consumption operation mode when the traffic corresponding to the current service demand belongs to the first traffic range corresponding to the maximum traffic.
Optionally, the fourth processing unit is specifically configured to determine, based on the current hardware device configuration information and the current service requirement, a second hardware device that does not participate in service operation in the target server; controlling the second hardware device to sleep; and reducing the communication rate of the hardware equipment already running in the target server.
Optionally, the fifth processing unit is specifically configured to increase a communication rate of a hardware device already running in the target server.
Optionally, the fourth processing unit is further specifically configured to control the target server to enter a normal power consumption operation mode when it is monitored that the current service requirement belongs to the first service volume range;
the fifth processing unit is specifically further configured to monitor an operating state of the target server; and controlling the target server to enter a normal power consumption operation mode when the abnormal operation state is monitored.
Optionally, the fourth processing unit is further specifically configured to reduce a rotation speed of a fan in the target server;
the fifth processing unit is specifically further configured to increase the rotation speed of the fan in the target server.
According to a third aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the method of the first aspect of the present invention and any one of its alternatives.
According to a fourth aspect, an embodiment of the present invention provides a server, including:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor being configured to execute the computer instructions to perform the method of the first aspect of the present invention and any one of the alternatives thereof.
The technical scheme of the invention has the following advantages:
the embodiment of the invention provides a server control method, a device and a server, which are used for obtaining the current hardware equipment configuration information and the current service requirement of a target server; determining the maximum traffic volume which can be borne by the target server based on the current hardware equipment configuration information; and adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume. The maximum service volume which can be borne by the target server is determined according to the number of external hardware devices such as hard disks and the like which are configured in real time by the server, the power consumption mode of the server is flexibly adjusted according to the relation between the real-time service requirement and the maximum service volume, so that the service requirement is met, the problem that each hardware device in the server is damaged when running at a high speed for a long time is solved, the power consumption of the server is reduced, the purposes of energy conservation and emission reduction are achieved, long-term operation of the server is facilitated, the maintenance cost of the server is reduced, and the service life of the server is prolonged.
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 described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic structural diagram of a server according to an embodiment of the present invention;
FIG. 2 is a flowchart of a server control method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a power consumption operation mode of a user control server in an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a server control apparatus according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a server in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
In recent years, the data center industry has been in a high-speed growth period under the promotion of technologies such as cloud computing, big data, internet of things and the like. The server with high-speed computing capability, long-time reliable operation and strong external data throughput capacity is deployed on a large scale as an exclusive form of a large-scale internet enterprise, is widely used in other traditional enterprises with large volume and self-built data centers, and is greatly required by various industries.
The server is composed of a plurality of hardware parts such as a mainboard, a memory, a hard disk, a cooling fan, peripheral equipment and the like, and each hardware needs to consume certain power consumption during operation. In the existing server design, the communication rate and bandwidth of PCIe devices are generally obtained through trailing or set by BIOS, and the rotational speed of the fan is adjusted by the BMC according to a certain heat dissipation policy according to the temperature in the server. The current server has high power consumption, mainly because each device runs at a high speed for a long time, and each device in the hardware of the server is seriously worn.
The state of the server running at a high speed may cause an overlarge load of the server, which affects the out-of-band management of the BMC, and a large amount of power consumption may be consumed when a large amount of devices run at a high speed for a long time, which generates a large amount of heat energy.
In the existing server design, as shown in fig. 1, the bandwidth and the rate of PCIe devices are generally obtained by tracing or set by BIOS, a 3PIN in a high-speed connector is used as a PCIe bandwidth allocation ID to a BMC, a PCH and the BMC acquire the bandwidth ID of the device after communication to allocate a corresponding bandwidth, and then a suitable rate is achieved after a tracing test; still other add-in devices may include ASPM (Active State Power Management) and software-based control of Power Management mechanisms using their own Power saving functions or by PCIe Power Management, but PCIe Power Management is not typically used in servers.
Based on the above problem, an embodiment of the present invention provides a server control method, which is applied to a server shown in fig. 1, where PCIE DEVICE is a PCIe device, and belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, and the connected devices allocate an exclusive channel bandwidth and do not share a bus bandwidth, and mainly support functions such as active power management, error reporting, end-to-end reliability transmission, hot plug, and quality of service (QOS). The HDD is a hard disk mounted on a server, the CPU0 and the CPU1 are processors of the server, the CPLD is a complex programmable logic device in the server, the BMC is a baseboard management controller, the PCH is an integrated south bridge in the server, the PSU is a server power supply unit of the server, and the FAN is a FAN of the server, the above hardware devices form the server, the number of each hardware device in the server, the type of the server, and the user requirements can be flexibly set, and the present invention is explained by taking the server shown in fig. 1 as an example, which is not limited thereto.
As shown in fig. 2, the server control method specifically includes the following steps:
step S101: and acquiring the current hardware equipment configuration information and the current service requirement of the target server.
Wherein the current hardware device configuration information includes: the type and number of all hardware devices on the server, such as the size of the external hard disk mounted on the server, the number of PSUs, i.e., server power supply units, equipped on the server, and the supportable load power of each PSU. The current service requirement is a service volume that the server needs to process in real time, and can be obtained by calculating a service instruction received by the server, and a specific calculation and statistics process is the prior art and is not described herein again.
Step S102: and determining the maximum traffic which can be borne by the target server based on the current hardware equipment configuration information.
Specifically, different hardware configurations of the server determine a maximum traffic volume that can be carried by the server, where the maximum traffic volume refers to a set of all services that the server can currently guarantee normal operation of the service, and the maximum traffic volume may be a maximum throughput of a single service or a throughput of a combination of different types of services, which is not limited in the present invention.
Step S103: and adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume.
Specifically, the larger the traffic carried by the server is, the larger the power consumption required for executing the service is, and conversely, the smaller the traffic carried by the server is, the smaller the power consumption required for executing the service is, so that the power consumption mode of the server can be flexibly adjusted under the condition of meeting the service requirement, and the purpose of reducing the power consumption is achieved.
By executing the above steps, the server control method provided in the embodiment of the present invention determines the maximum service volume that can be carried by the target server according to the number of external hardware devices, such as hard disks, configured in real time by the server and the number of PSUs in the server, and then flexibly adjusts the power consumption mode of the server according to the relationship between the real-time service demand and the maximum service volume, so as to meet the service demand, avoid the problem that each hardware device in the server is damaged during long-time high-speed operation, reduce the power consumption of the server, achieve the purpose of energy saving and emission reduction, facilitate long-term operation of the server, reduce the maintenance cost of the server, and prolong the service life of the server.
Specifically, in an embodiment, the step S102 specifically includes the following steps:
step S201: and determining the type and the quantity of the hardware equipment contained in the target server and the maximum available running power based on the current hardware equipment configuration information.
The maximum operating power may be determined by the number of PSUs included in the server and the maximum power that can be provided by a single PSU. The types of hardware devices of the server include all the types of hardware devices shown in fig. 1, and other hardware devices that are not shown in fig. 1 are also within the scope of the present invention, which is not limited thereto.
Step S202: and determining the power consumption corresponding to different services based on the type and the number of the first hardware equipment required by different services and the operating power corresponding to each hardware equipment.
Specifically, when the server executes different services, the hardware devices on the server that are needed to be used are different, and the operating powers corresponding to the different hardware devices are different, so that the power consumption for executing each service can be determined according to the service type.
Step S203: and determining the maximum service volume which can be borne by the target server based on the maximum operating power and the power corresponding to different services.
Specifically, in order to ensure the performance of the server, the server can only operate within the maximum operating power range, and in the maximum operating power range, a service combination formed by arranging and combining power consumptions required by different services is the maximum traffic that can be carried by the target server. In addition, in practical application, the maximum traffic is also limited by the hardware device resource of the server, so in the embodiment of the present invention, the maximum traffic is the traffic that the target hardware device resource of the server can satisfy the service execution, and the present invention is not limited thereto.
Specifically, in an embodiment, the step S103 specifically includes the following steps:
step S301: and when the traffic corresponding to the current traffic demand is smaller than the first traffic range corresponding to the maximum traffic, controlling the target server to enter a low-power-consumption operation mode.
Wherein the maximum value of the first traffic volume range is smaller than the maximum traffic volume. The first traffic range may be flexibly set according to the maximum traffic and the requirement of the user for the power consumption of the server, and assuming that the maximum traffic is 100, the first traffic range may be 60-80, and the invention is not limited thereto.
Specifically, in step S301, a second hardware device that does not participate in service operation in the target server is determined based on the current hardware device configuration information and the current service requirement; controlling the second hardware device to sleep; and reducing the communication rate of the hardware equipment already running in the target server. And reducing the rotating speed of the fan in the target server.
Therefore, the hardware equipment irrelevant to the service enters the dormancy, unnecessary monitoring is reduced, the total operation power consumption of the server is reduced, the risk that the hardware equipment is damaged due to the long-time operation of the hardware equipment which does not execute the service is avoided, and the maintenance cost of the server is further reduced. And the running power consumption of the server is further reduced by reducing the communication rate of the hardware devices participating in the running. In practical applications, since the bandwidth and the rate of the PCIe device are related to the communication rate of the server, the rate of the PCIe device may be reduced to operate within an acceptable range, so as to reduce power consumption, for example, assuming that the current rate of the PCIe device is GEN5, the current rate of the PCIe device may be reduced to GEN4, GEN3, and the like in a manner of reducing the rate step by step, and the service execution state is monitored in real time during the speed reduction process, so as to avoid that the normal operation of the service is affected by too much speed reduction. In addition, the power consumption of the server can be further reduced by reducing the rotating speed of the fan in the server, the heat dissipation capacity required by the server is reduced because the hardware equipment which does not execute the service enters a dormant state, and the normal operation of the server is not influenced by reducing the rotating speed of the fan at the moment, so that the purposes of energy conservation and emission reduction are achieved.
Further, in step S301, when it is monitored that the current service requirement belongs to the first service volume range, the target server is controlled to enter a normal power consumption operation mode.
Specifically, by monitoring the service requirement of the server in real time, when the service requirement of the server is increased to the first service range, in order to meet the requirement that the service requirement controls the server to enter the normal power consumption mode, it should be noted that the normal power consumption operation mode referred to in the embodiments of the present invention is a conventional operation mode adopted by the server in the prior art, for example, the server does not perform speed reduction, all hardware devices perform regulation and control according to the normal mode, and perform automatic regulation and control on devices in the server according to the traffic volume, and the specific working process of the server in the operation mode refers to the related description in the prior art, which is not described herein again.
Step S302: and when the traffic corresponding to the current traffic demand is larger than the first traffic range corresponding to the maximum traffic, controlling the target server to enter a high-power-consumption operation mode.
Specifically, step S302 is executed by increasing the communication rate of the hardware device already running in the target server. And increasing the rotating speed of the fan in the target server.
Illustratively, in the high power mode of operation, the communication rate of each hardware device is increased to operate at the highest achievable rate and efficiency, and the fan speed is increased accordingly. The rate switching is not only applicable to PCIe, but also applicable to other adjustable communication protocols, and the switching can be performed in this way as long as the adjustment is performed within a range that does not affect the use. In addition, the mode of adjusting the speed step by step can be adopted by referring to the low-power consumption operation mode, such as: and gradually adjusting the speed of the PCIe devices to GEN4 and GEN5 from GEN3 so as to meet the service requirement borne by the server. Due to the fact that the communication speed of the hardware equipment in the server is improved, the power consumption of each hardware equipment is increased, the heat dissipation capacity of the hardware equipment is increased, the heat dissipation requirement of the server can be met by increasing the rotating speed of the fan, the server is prevented from being damaged by the hardware equipment in an overheat environment, and the maintenance cost of the server is further reduced.
Further, the step S302 further monitors the operation state of the target server; and controlling the target server to enter a normal power consumption operation mode when the abnormal operation state is monitored.
Specifically, by monitoring the running state of the server, once the server is abnormal, the server is prevented from being damaged by reducing the power consumption of the server in time, and illustratively, when the situation that the normal running of the server is affected by the over-temperature of a CPU (central processing unit) and the like in the server is monitored, the server is prevented from being out of the high-power-consumption running mode and enters the normal-power-consumption running mode, so that the maintenance cost of the server is further reduced. Whether each service normally runs is detected in real time, if the service has a problem in a low-speed and high-speed power consumption running mode, the service is automatically switched to a normal mode, and logs are recorded, so that maintenance personnel can conveniently remove potential safety hazards according to the logs, normal running of a server is guaranteed, high-quality service is improved for users, and user experience is improved.
Step S303: and controlling the target server to enter a normal power consumption operation mode when the traffic corresponding to the current service demand belongs to the first traffic range corresponding to the maximum traffic.
In practical application, the server control method provided by the embodiment of the invention can also enable a user to independently select different power consumption modes so as to meet the requirements of different users and improve the user experience. For example, during the operation of the server, the client may select the power consumption operation mode at any time for switching, or may select the power consumption operation mode to start with when the server is turned off next time, and the client may select the power consumption operation mode for switching by itself. As shown in fig. 3, the power consumption mode of the user control server provided by the embodiment of the present invention will be described in detail below with reference to a specific application example.
1. Powering on a server, starting each device according to a time sequence, and detecting the current configuration and the type of a PSU (power system unit);
2. when the server is started, the display device informs a user of power consumption mode selection of the current server system on a starting page, the client can perform corresponding mode selection according to business needs, and reminds the user of the current power mode after the server is changed and set and restarted every time, so that the user can switch the power consumption mode in the current running period;
3. the user may have three power consumption modes to choose from: in a low power consumption mode, the PCIe speed and the like are reduced to enable the PCIe speed and the like to work in an acceptable range, service integration is carried out, unused equipment is detected to sleep the PCIe speed and the like, unnecessary monitoring is reduced, and the rotating speed of a fan is reduced; under the normal power consumption mode, speed reduction is not carried out, all equipment is regulated and controlled according to the normal mode, and automatic regulation and control are carried out on equipment in the server according to the service volume; and in the high power consumption mode, the communication speed of each device is improved, so that the device works at the highest speed and the highest efficiency, and the rotating speed of the fan is correspondingly increased. The rate switching is not only applicable to PCIe, but also applicable to other adjustable communication protocols, and the mode switching can be applied as long as the adjustment is performed within a range that does not affect the use.
4. And detecting whether each service normally runs in real time, and if a problem exists in the low-speed and high-speed power consumption modes, automatically switching to the normal mode and recording a log. During the operation, the client can select the power consumption mode to switch at any time, or can select the power consumption mode to start in the next startup when the server is closed every time, and the client can select the power consumption mode to switch by self.
5. And repeating the steps 3-4 to switch the power consumption operation mode.
The technical scheme provided by the embodiment of the invention is that power management of the server is applied to the server as a system regulation and control strategy, and the power consumption of the server is reduced by combining automatic flexible switching of three power consumption modes and manual switching of a user, so that the purposes of energy conservation and long acting are achieved. The problem that the server consumes much power and is easily damaged when running at high speed for a long time can be solved, in addition, the power consumption mode is given to the client, the background power consumption cost of the client can be reduced, the selectivity of the user is enriched, and the use experience of the user is improved.
By executing the above steps, the server control method provided in the embodiment of the present invention determines the maximum service volume that can be carried by the target server according to the number of external hardware devices, such as hard disks, configured in real time by the server and the number of PSUs in the server, and then flexibly adjusts the power consumption mode of the server according to the relationship between the real-time service demand and the maximum service volume, so as to meet the service demand, avoid the problem that each hardware device in the server is damaged during long-time high-speed operation, reduce the power consumption of the server, achieve the purpose of energy saving and emission reduction, facilitate long-term operation of the server, reduce the maintenance cost of the server, and prolong the service life of the server.
An embodiment of the present invention further provides a server control device, which is applied to the server shown in fig. 1, and as shown in fig. 4, the server control device specifically includes:
the obtaining module 101 is configured to obtain current hardware device configuration information and current service requirements of the target server. For details, refer to the detailed description of step S101, which is not repeated herein.
A first processing module 102, configured to determine, based on the current hardware device configuration information, a maximum traffic that can be carried by the target server. For details, refer to the detailed description of step S102, which is not repeated herein.
A second processing module 103, configured to adjust a current power consumption mode of the server based on a relationship between the current service demand and the maximum service volume. For details, refer to the detailed description of step S103, which is not repeated herein.
Specifically, in one embodiment, the first processing module 102 includes:
and the first processing unit is used for determining the type and the quantity of the hardware equipment contained in the target server and the maximum operation power which can be provided based on the current hardware equipment configuration information. For details, refer to the detailed description of step S201 above, and the details are not repeated here.
And the second processing unit is used for determining the power consumption corresponding to different services based on the types and the number of the first hardware equipment required by different services and the operating power corresponding to each hardware equipment. For details, refer to the detailed description of step S202, which is not repeated herein.
And the third processing unit is used for determining the maximum service volume which can be borne by the target server based on the maximum operating power and the power corresponding to different services. For details, refer to the detailed description of step S203, which is not repeated herein.
Specifically, in an embodiment, the second processing module 103 includes:
and a fourth processing unit, configured to control the target server to enter a low power consumption operation mode when the traffic corresponding to the current service demand is smaller than a first traffic range corresponding to the maximum traffic, where a maximum value of the first traffic range is smaller than the maximum traffic. For details, refer to the detailed description of step S301, which is not repeated herein.
And the fifth processing unit is used for controlling the target server to enter a high-power-consumption operation mode when the traffic corresponding to the current service requirement is larger than the first traffic range corresponding to the maximum traffic. For details, refer to the detailed description of step S302, which is not repeated herein.
And the sixth processing unit is configured to control the target server to enter a normal power consumption operation mode when the traffic corresponding to the current service demand belongs to the first traffic range corresponding to the maximum traffic. For details, refer to the detailed description of step S303, which is not repeated herein.
Specifically, in an embodiment, the fourth processing unit is specifically configured to determine, based on the current hardware device configuration information and the current service requirement, a second hardware device that does not participate in service operation in the target server; controlling the second hardware device to sleep; and reducing the communication rate of the hardware equipment already running in the target server. For details, refer to the detailed description of step S301, which is not repeated herein.
Specifically, in an embodiment, the fifth processing unit is specifically configured to increase a communication rate of a hardware device already running in the target server. For details, refer to the detailed description of step S302, which is not repeated herein.
Specifically, in an embodiment, the fourth processing unit is further configured to control the target server to enter a normal power consumption operation mode when it is monitored that the current service requirement belongs to the first service volume range. For details, refer to the detailed description of step S301, which is not repeated herein.
The fifth processing unit is specifically further configured to monitor an operating state of the target server; and controlling the target server to enter a normal power consumption operation mode when the abnormal operation state is monitored. For details, refer to the detailed description of step S302, which is not repeated herein.
Specifically, in an embodiment, the fourth processing unit is further specifically configured to reduce a rotation speed of a fan in the target server. For details, refer to the detailed description of step S301, which is not repeated herein.
The fifth processing unit is specifically further configured to increase the rotation speed of the fan in the target server. For details, refer to the detailed description of step S302, which is not repeated herein.
Through the cooperative cooperation of the above components, the server control device provided in the embodiment of the present invention determines the maximum service volume that can be carried by the target server through the number of external hardware devices such as hard disks and the like configured in real time by the server and the number of PSUs in the server, and then flexibly adjusts the power consumption mode of the server according to the relationship between the real-time service demand and the maximum service volume, so as to meet the service demand, avoid the problem that each hardware device in the server is damaged during long-time high-speed operation, reduce the power consumption of the server, achieve the purpose of energy saving and emission reduction, facilitate long-term operation of the server, reduce the maintenance cost of the server, and prolong the service life of the server.
As shown in fig. 5, an embodiment of the present invention further provides a server, where the server may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or by another way, and fig. 5 takes the example of being connected by a bus as an example.
Processor 901 may be a Central Processing Unit (CPU). The Processor 901 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, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor, i.e., implements the above-described method, by executing non-transitory software programs, instructions, and modules stored in the memory 902.
The memory 902 may include a storage program area and a storage data area, wherein the storage program area may store an application program required for operating the device, at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods described above.
The specific details of the server may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A server control method, comprising:
acquiring current hardware equipment configuration information and current service requirements of a target server;
determining the maximum traffic volume which can be borne by the target server based on the current hardware equipment configuration information;
and adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume.
2. The method of claim 1, wherein the determining the maximum amount of traffic that can be carried by the target server based on the current hardware device configuration information comprises:
determining the type and the quantity of the hardware equipment contained in the target server and the maximum operation power which can be provided based on the current hardware equipment configuration information;
determining power consumption corresponding to different services based on the type and the number of first hardware equipment required by different services and the operating power corresponding to each hardware equipment;
and determining the maximum service volume which can be borne by the target server based on the maximum operating power and the power corresponding to different services.
3. The method of claim 2, wherein adjusting the current power consumption mode of the server based on the relationship between the current traffic demand and the maximum traffic volume comprises:
when the traffic corresponding to the current traffic demand is smaller than a first traffic range corresponding to the maximum traffic, controlling the target server to enter a low-power-consumption operation mode, wherein the maximum value of the first traffic range is smaller than the maximum traffic;
when the traffic corresponding to the current traffic demand is larger than a first traffic range corresponding to the maximum traffic, controlling the target server to enter a high-power-consumption operation mode;
and controlling the target server to enter a normal power consumption operation mode when the traffic corresponding to the current service demand belongs to the first traffic range corresponding to the maximum traffic.
4. The method of claim 3, wherein the controlling the target server to enter a low power mode of operation comprises:
determining second hardware equipment which does not participate in service operation in the target server based on the current hardware equipment configuration information and the current service requirement;
controlling the second hardware device to sleep;
and reducing the communication rate of the hardware equipment already running in the target server.
5. The method of claim 3, wherein the controlling the target server to enter a high power mode of operation comprises:
and improving the communication rate of the hardware equipment already running in the target server.
6. The method of claim 4,
after controlling the target server to enter a low power consumption operation mode, the method further comprises:
when the current service requirement is monitored to belong to the first service volume range, controlling the target server to enter a normal power consumption operation mode;
after controlling the target server to enter a high power consumption operation mode, the method further comprises:
monitoring the running state of the target server;
and controlling the target server to enter a normal power consumption operation mode when the abnormal operation state is monitored.
7. The method of claim 3,
the controlling the target server to enter a low power consumption operation mode further comprises:
reducing the rotation speed of a fan in the target server;
the controlling the target server to enter a low power consumption operation mode further comprises:
and increasing the rotating speed of the fan in the target server.
8. A server control apparatus, characterized by comprising:
the acquisition module is used for acquiring the current hardware equipment configuration information and the current service requirement of the target server;
the first processing module is used for determining the maximum traffic volume which can be borne by the target server based on the current hardware equipment configuration information;
and the second processing module is used for adjusting the current power consumption mode of the server based on the relation between the current service demand and the maximum service volume.
9. A server, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor being configured to execute the computer instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method of any one of claims 1-7.
CN202111446000.0A 2021-11-30 2021-11-30 Server control method and device and server Withdrawn CN114327017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111446000.0A CN114327017A (en) 2021-11-30 2021-11-30 Server control method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111446000.0A CN114327017A (en) 2021-11-30 2021-11-30 Server control method and device and server

Publications (1)

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

Family

ID=81048191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111446000.0A Withdrawn CN114327017A (en) 2021-11-30 2021-11-30 Server control method and device and server

Country Status (1)

Country Link
CN (1) CN114327017A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312100A (en) * 2023-11-28 2023-12-29 苏州元脑智能科技有限公司 Power consumption adjustment method, system, device, equipment and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312100A (en) * 2023-11-28 2023-12-29 苏州元脑智能科技有限公司 Power consumption adjustment method, system, device, equipment and computer storage medium
CN117312100B (en) * 2023-11-28 2024-02-23 苏州元脑智能科技有限公司 Power consumption adjustment method, system, device, equipment and computer storage medium

Similar Documents

Publication Publication Date Title
EP3242185B1 (en) Server rack power management
US8250382B2 (en) Power control of servers using advanced configuration and power interface (ACPI) states
US8473768B2 (en) Power control apparatus and method for cluster system
US10108433B2 (en) Collaborative processor and system performance and power management
EP2607987A1 (en) Computing apparatus and system for remote control of operating states
JP5246673B2 (en) Method, computer system and computer program for managing power consumption of a computer
US11126250B2 (en) Method and apparatus for extending power hold-up with power assist unit
JP2009118728A (en) Method of managing power of electronic system, computer program, and electronic system (management of power consumption based on history average)
US8677160B2 (en) Managing power consumption of a computer
TW201403303A (en) Managing power consumption and performance of computing systems
CN106325464B (en) Method and apparatus for adjusting fan speed
WO2021078144A1 (en) Power management method and device
CN114327017A (en) Server control method and device and server
TWI780359B (en) Information handling system and method of providing power to power rail to power load of information handling system
TWI679439B (en) Power management system and method for managing power
CN116991221A (en) Power consumption adjusting method and device
US11592890B2 (en) System and method for Information Handling System (IHS) optimization using core stall management technology
TW201337757A (en) Method and apparatus for setting an I/O bandwidth-based processor frequency floor
US20200136418A1 (en) Method and Apparatus to Charge Power Assist Unit
TWI805855B (en) A power assisted information handling system, a power assist unit and a method for regulating power to a load thereof
US10877536B2 (en) Apparatus and method for providing smooth power-on operation with power assist unit
US10983577B2 (en) Method and apparatus to provide dynamic regulation of power assist unit output based on active profile
CN114416363A (en) Data center system and management method of data center system
CN117406846A (en) Power supply control method, device, computer equipment and storage medium
CN117666750A (en) Power supply energy consumption adjusting 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220412

WW01 Invention patent application withdrawn after publication