CN105786152B - A kind of control method and electronic equipment - Google Patents
A kind of control method and electronic equipment Download PDFInfo
- Publication number
- CN105786152B CN105786152B CN201410837876.1A CN201410837876A CN105786152B CN 105786152 B CN105786152 B CN 105786152B CN 201410837876 A CN201410837876 A CN 201410837876A CN 105786152 B CN105786152 B CN 105786152B
- Authority
- CN
- China
- Prior art keywords
- power consumption
- electronic equipment
- processor
- utilization rate
- value
- 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
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a kind of control method and electronic equipments, which comprises obtains the utilization rate of processor in the electronic equipment;The power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, wherein the power consumption limit value characterizes highest power consumption of the processor in the case where utilization rate;The first preset power consumption value of the processor is obtained, the first preset power consumption value is the highest power consumption of the preset processor;Based on the power consumption limit value and the first preset power consumption value, the electronic equipment is controlled.Exist for solving electronic equipment in the prior art and will not realize the technical effect realized according to electronic equipment loading condition and carry out consumption management to electronic equipment function according to own load situation, the technical issues of being managed to powder consumption of electronic equipment, in turn.
Description
Technical field
The present invention relates to electronic technology field, in particular to a kind of control method and electronic equipment.
Background technique
With the continuous development of information technology, people need a large amount of high performance servers, Laptop & Desktop
Equal electronic equipments carry out the processing of data, but with electronic equipment number be continuously increased and performance is constantly promoted, closely
The electric power resource of Nian Laiqi consumption climbs up and up, and with the rise of energy prices, the power saving of power consumption electronic equipment is increasingly
It is noticeable.
By taking management server power consumption as an example, in the prior art, the management of server energy consumption is taken primarily directed to more
Business device carries out power managed, for example, using feelings by the energy of monitoring server under conditions of every server load is certain
Condition understands in multiple servers power consumption at most and least server, to set the case where according to every server power consumption
When setting server use condition, selection uses more energy efficient server as far as possible, realizes the reduction of multiple servers overall power consumption.
Present inventor during technical solution, has found the above-mentioned prior art at least in invention the embodiment of the present application
It has the following technical problems:
Seen from the above description, in the prior art, for electronic equipment under conditions of load is certain, the power consumption of consumption is certain
, the utilization rate by reducing high power consumption electronic equipment reduces the overall power consumption of server.It follows that more in the prior art
Every electronic equipment in electronic equipment can't carry out power consumption pipe to electronic equipment according to the loading condition of electronic equipment itself
Reason, i.e., separate unit electronic equipment in the prior art exist and will not be managed according to own load situation to powder consumption of electronic equipment
The technical issues of.
In turn, user is caused to experience not high problem during using electronic equipment.
Summary of the invention
The embodiment of the present application provides a kind of control method and electronic equipment, for solving separate unit electronic equipment in the prior art
In the presence of will not according to own load situation, the technical issues of being managed to powder consumption of electronic equipment, realize electronic equipment according to oneself
Body loading condition improves the technical effect that powder consumption of electronic equipment uses.
According to the first aspect of the invention, a kind of control method is provided, is applied in electronic equipment, which comprises
Obtain the first utilization rate of processor and the second utilization rate of the processor in electronic equipment described in the adjacent acquisition moment;It is based on
Second utilization rate of first utilization rate and the processor obtains the power consumption of the processor using the first processing method
Limits value, wherein the power consumption limit value characterizes the processor the second of first utilization rate and the processor
Highest power consumption in the case where utilization rate;The first preset power consumption value of the processor is obtained, the first preset power consumption value is
The highest power consumption of the preset processor;Based on the power consumption limit value and the first preset power consumption value, to the electronics
The power consumption of equipment is controlled.
Optionally, described to be based on the power consumption limit value and first preset power consumption, the electronic equipment is controlled
System, comprising: obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;By the power consumption difference tune
With giving other different hardware devices of the processor.
Optionally, described to be based on the power consumption limit value and first preset power consumption, the electronic equipment is controlled
System, comprising: obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;Obtain the electronic equipment
The first default permit notification;The second default total power consumption is obtained using the described first default permit notification and the power consumption difference
Value, controls the electronic equipment, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
According to another aspect of the present invention, also providing a kind of electronic equipment includes: first acquisition unit, adjacent for obtaining
Acquire the first utilization rate of processor and the second utilization rate of the processor in electronic equipment described in the moment;First processing is single
Member obtains the place using the first processing method for the second utilization rate based on first utilization rate and the processor
Manage the power consumption limit value of device, wherein the power consumption limit value characterizes the processor at first utilization rate and the place
Manage the highest power consumption in the case where the second utilization rate of device;Second acquisition unit, first for obtaining the processor are default
Power consumption number, the first preset power consumption value are the highest power consumption of the preset processor;First control unit, for being based on institute
Power consumption limit value and the first preset power consumption value are stated, the power consumption of the electronic equipment is controlled.
Optionally, the first control unit is for obtaining between the power consumption limit value and the first preset power consumption value
Power consumption difference;For the power consumption difference to be deployed to other hardware devices different from the processor.
Optionally, the first control unit is for obtaining between the power consumption limit value and the first preset power consumption value
Power consumption difference;Obtain the first default permit notification of the electronic equipment;Utilize the described first default permit notification and described
Power consumption difference obtains the second default permit notification, the electronic equipment is controlled, so that the current total power consumption of the electronic equipment is not
Greater than the described second default permit notification.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Since the electronic equipment in the technical solution in the embodiment of the present application uses the processor utilization rate according to acquisition
And the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, and obtains processor
Preset power consumption value, the technology hand that the electronic equipment is controlled according to the power consumption limit value of processor and preset power consumption value
Section, it may be assumed that the technical solution in the embodiment of the present application can be obtained according to the current utilization rate of processor using the first processing method
Processor power consumption limit value, and according to the power consumption limit value and the preset power consumption number of processor to electronic equipment overall performance
It is adjusted, and in the prior art, for electronic equipment under conditions of load is certain, the power consumption of consumption is certain, i.e., existing skill
The power consumption of separate unit electronic equipment is not managed in art, so, the scheme in the embodiment of the present application can effectively solve the problem that
Electronic equipment in the prior art exists and will not be asked according to own load situation the technology that powder consumption of electronic equipment is managed
Topic realizes the technical effect realized according to the utilization rate of electronics processors and carry out consumption management to electronic equipment function in turn.
Power consumption limit value and acquisition are obtained in advance since the electronic equipment in the technical solution in the embodiment of the present application uses
If the difference between power consumption number, and power consumption difference is deployed to the hardware device different from processor and is used, i.e., the application is real
The maximum value that processor at this time needs to consume power consumption can be calculated according to the actual utilization rate of processor by applying the technical solution in example,
And according to the utilization rate of predetermined process device, the power consumption difference of acquisition is deployed to electronic equipment others hardware, in turn, is being maintained
Under conditions of the total power consumption of electronic equipment consumption is certain, realizes that electronic equipment can run other hardware, realize promotion separate unit
The effect of electronic equipment performance.
The power consumption limit value and institute are obtained since the electronic equipment in the technical solution in the embodiment of the present application uses
The power consumption difference between the first preset power consumption value is stated, the first default permit notification of the electronic equipment is obtained, utilizes described
One default permit notification and the power consumption difference obtain the second default permit notification, to control the current total work of the electronic equipment
Consumption is not more than the described second default permit notification.Technical solution i.e. in the embodiment of the present application can make according to processor is actual
The maximum value that processor at this time needs to consume power consumption is calculated with rate, and according to the utilization rate of predetermined process device, by the power consumption of acquisition
Difference, which is preset to deduct in total power consumption from electronic equipment, obtains lower default permit notification, and in turn, controlling electronic devices is maintaining
Current hardware equipment can reduce the actual power consumption number of electronic equipment under conditions of operating normally as much as possible, reach and save electric power money
The effect in source and expense.
Detailed description of the invention
Fig. 1 is a kind of flow chart of control method in the embodiment of the present application one;
The method flow diagram that Fig. 2 is step S101 in a kind of control method in the embodiment of the present application one;
The method flow diagram that Fig. 3 is step S201 in a kind of control method in the embodiment of the present application one;
Fig. 4 be in the embodiment of the present application one in a kind of control method in step S104 the first situation method flow diagram;
Fig. 5 be in the embodiment of the present application one in a kind of control method in step S104 second case method flow diagram;
Fig. 6 is the structure chart of a kind of electronic equipment in the embodiment of the present application two.
Specific embodiment
The embodiment of the present application provides a kind of control method and electronic equipment, for solving separate unit electronic equipment in the prior art
In the presence of will not according to own load situation, the technical issues of being managed to powder consumption of electronic equipment, realize electronic equipment according to oneself
Body loading condition improves the technical effect that powder consumption of electronic equipment uses.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of control method is applied in electronic equipment, which comprises obtain processor in the electronic equipment
Utilization rate;The power consumption limit value of the processor is obtained, wherein the function using the first processing method based on the utilization rate
Consumption limits value characterizes highest power consumption of the processor in the case where utilization rate;Obtain the processor first is pre-
If power consumption number, the first preset power consumption value is the highest power consumption of the preset processor;Based on the power consumption limit value and
The first preset power consumption value, controls the electronic equipment.
Since the electronic equipment in the technical solution in the embodiment of the present application uses the processor utilization rate according to acquisition
And the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, and obtains processor
Preset power consumption value, the technology hand that the electronic equipment is controlled according to the power consumption limit value of processor and preset power consumption value
Section, it may be assumed that the technical solution in the embodiment of the present application can be obtained according to the current utilization rate of processor using the first processing method
Processor power consumption limit value, and according to the power consumption limit value and the preset power consumption number of processor to electronic equipment overall performance
It is adjusted, and in the prior art, for electronic equipment under conditions of load is certain, the power consumption of consumption is certain, i.e., existing skill
The power consumption of separate unit electronic equipment is not managed in art, so, the scheme in the embodiment of the present application can effectively solve the problem that
Electronic equipment in the prior art exists and will not be asked according to own load situation the technology that powder consumption of electronic equipment is managed
Topic realizes the technical effect realized according to the utilization rate of electronics processors and carry out consumption management to electronic equipment function in turn.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Embodiment one
By one embodiment of the application, a kind of control method is provided, is applied in electronic equipment, electronics here is set
It is standby to can be all types of servers, it is also possible to the electronic equipments such as desktop computer, laptop, does not just enumerate herein
?.In following specific descriptions, it is described in detail by taking server as an example.
Referring to FIG. 1, the embodiment of the present application provides a kind of control method, it is applied in electronic equipment, which comprises
S101: the utilization rate of processor in the electronic equipment is obtained;
S102: the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, wherein
The power consumption limit value characterizes highest power consumption of the processor in the case where utilization rate;
S103: the first preset power consumption value of the processor is obtained, wherein the first preset power consumption value is preset institute
State the highest power consumption of processor;
S104: it is based on the power consumption limit value and the first preset power consumption value, the electronic equipment is controlled.
Fig. 2 and Fig. 3 are please referred to, step S101: obtaining the utilization rate of processor and step S102 in the electronic equipment: base
The power consumption limit value of the processor is obtained using the first processing method in the utilization rate, during specific implementation, including
Following steps:
S201: at least one utilization rate of processor described in the electronic equipment is obtained;
S202: the power consumption limit of the processor is obtained using the first processing method based at least one described utilization rate
Value.
Wherein, step S201: at least one utilization rate of processor described in the electronic equipment is obtained, is being implemented
In the process, include the following steps:
S301: the first utilization rate of processor and the second utilization rate of the processor described in the adjacent acquisition moment are obtained;
S302: the processing is obtained using the first processing method based on first utilization rate and second utilization rate
The power consumption limit value of device.
In the embodiment of the present application, it is assumed that server is E-mail server, is run under a linux operating system
Exchange Server software supports the up to a million grades of normal receiving and dispatching mails of user, mainly wraps in this E-mail server
Include the hardware devices such as processor, memory and hard disk.Total preset power consumption of server is 300W, distributes to the preset power consumption of processor
For 100W, the power consumption of processor full load consumption is 90W, and consumption power consumption is 20W when the processor free time.
It continues with and is illustrated by taking E-mail server as an example, in E-mail server, the utilization rate of server can
By ME (management engine, the Management in PCH in server (integrated south bridge, Platform Controller Hub)
Engineer it) measures, can be read directly in collection period using the BMC (baseboard management controller) of mainboard tyre
The utilization rate of processor.
Before being acquired to power consumption of processing unit, user can according to need the period of setting sampling, can also be according to
The sampling period of system default is acquired, and is not specifically limited in this application.In general, the sampling period is smaller, number
Simulate more accurate, control effect is closer to continuous control, but collection period is too small and too big, the data processing that may cause data volume
Time is longer, and then those skilled in the art can according to need the accuracy and the selection of server data processing capacity of control
Power consumption collection period appropriate.Assuming that sampling period T=5s can within the t1 moment to t2 moment within the t1 moment to t2 moment
Acquire n times, it is assumed that the t1 moment is to start to measure the moment, and the t2 moment is current time, then n-th acquisition is to acquire at current time
Point.
After obtaining n processor utilization rate data, in the embodiment of the present application, two kinds of implementations are provided to n
Processor utilization rate data are handled, and then obtain power consumption limit value of server under the conditions of currently used rate.
Implementation one: the utilization rate of acquisition current time processor obtains current time service using linear algorithm
The power consumption limit value of device, such as: F (x)=aX5+bX4+cX3+dX2+ eX+f, wherein the x in formula is making for t2 time processor
With rate, the value of a, b, c, d, e, f parameter can by those skilled in the art to E-mail server within the past period
Under the conditions of processor is in different utilization rates, the power consumption Value Data of corresponding processor is obtained, and to the number of two kinds of information
According to linear fit is carried out, the value of a, b, c, d, e, f parameter is obtained, such as, it is assumed that when processor utilization rate is 0, obtain
Power consumption number is 20, i.e., the value of f is 20 in formula.For different types of server, the value of a, b, c, d, e, f parameter is different, ability
Field technique personnel can according to need the levels of precision of control, and the utilization rate and history power consumption to processor-server are done in detail
Record, and calculate the range of choice of determining parameter, it is not specifically limited in this application.Obtaining a, b, c, d, e, f
After the value of parameter, the power consumption limit value of current server can be obtained according to the utilization rate of current processor, it is assumed that handling
When the current utilization rate of device is 50%, the power consumption limit value of acquisition is 60W.
Implementation two: the first utilization rate and the second utilization rate for obtaining adjacent acquisition time processor utilize condition algorithm
Obtain the power consumption limit value of current time server, such as:
If the utilization rate of the processor of (n-1)th acquisition is less than the utilization rate of n-th Acquisition Processor, F is utilizedgo_up
(x)=aX5+bX4+cX3+dX2+ eX+f obtains the power consumption limit value at current time.
If the utilization rate of (n-1)th Acquisition Processor is greater than the utilization rate of the processor of n-th acquisition, utilize
Fgo_down(x)=gX5+hX4+iX3+jX2+ kX+l obtains the power consumption limit value at current time.
If adopted when the processor utilization rate that utilization rate and the n-th of the processor that (n-1)th time acquires acquire is identical
When collection terminates and acquisition initial time is respectively by formula Fat_t2(x)=mX5+nX4+oX3+pX2+ qX+r and Fat_t1(x)=sX5+
tX4+uX3+vX2+wX+x
It obtains at the t1 moment to the power consumption limit value in the t2 moment.Wherein, Fgo_up(x)、Fgo_down(x)、Fat_t1(x) and
Fat_t2(x) mode obtained in the parameter and the first implementation in is identical, and those skilled in the art, which can according to need, to come
Each parameter value is adjusted, herein with regard to no longer carrying out repeating.
Certainly, in the embodiment of the present application, the power consumption limit of current time server can also be obtained using pid control algorithm
Value processed, during specific implementation, different power consumption of processing unit can be arranged to processor under the conditions of different utilization rates in user
Value, it is assumed that when processor utilization rate is 50%, power consumption limit value set by user is 60W, then obtains acquisition measured value, than
Such as PinputFor 50W, formula Error (n)=P is next utilizedTarget-Pinput(n) preset power consumption limits value and error amount are obtained
Error (n) next utilizes formulaProcessing is carried out to obtain
Processor uses power consumption limit value close to 60W when must acquire n-th.Wherein, P (n) is to export after PID regulates and controls at current time
Power consumption upper limit value, P (n-1) is the power consumption upper limit value that the preceding primary i.e. (n-1)th time acquisition of n-th exports after PID regulates and controls.
Proportionality coefficient is Kp, integral coefficient Ki, differential coefficient KdThe value being configured by those skilled in the art according to actual needs, than
Such as, when determining Proportional coefficient K p, remove the integral term and differential term of PID first, Ki=0, Kd=0 can be enabled, make pure
Proportion adjustment.Input, which is set as system, allows to export the 60%~70% of maximum value, and Proportional coefficient K p is gradually increased by 0,
Until system vibrates;Again in turn, it is gradually reduced from Proportional coefficient K p at this time, until system oscillation disappears.Record this
When Proportional coefficient K p, set the Proportional coefficient K p of PID as the 60%~70% of current value.After Proportional coefficient K p is determined, if
A fixed biggish integration time constant Ki, is then gradually reduced Ki, until system vibrates, then again in turn, gradually
Increase Ti, until system oscillation disappears.Record Ki at this time, set the integration time constant Ti of PID as current value 150%~
180%.Derivative time constant Kd does not have to generally set, and is 0, and PID adjusting at this time is converted to PI adjusting.It sets if necessary
It is fixed, then identical as the method for Kp is determined, the 30% of its value when taking nonoscillatory.Then pid parameter is finely adjusted, until satisfaction property
It can require.
Further include step S103 after obtaining the power consumption limit value of processor: obtain the processor first is default
Power consumption number.Then for above embodiment, the preset power consumption value 100W of the processor in the embodiment of the present application is being handled
After the preset power consumption value of device, Fig. 4 and Fig. 5 are please referred to, step S104: based on the power consumption limit value and first preset power consumption
Value, controls the electronic equipment.
Step S104 is during specific implementation, there are two types of situation, wherein the first situation comprising steps of
S401: the power consumption difference between the power consumption limit value and the first preset power consumption value is obtained;
S402: the power consumption difference is deployed to other hardware devices different from the processor.
Second case of step S104 during specific implementation, comprising steps of
S501: the power consumption difference between the power consumption limit value and the first preset power consumption value is obtained;
S502: the first default permit notification of the electronic equipment is obtained;
S503: the second default permit notification is obtained using the second preset power consumption value and the power consumption difference, and is controlled
The electronic equipment, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
In the embodiment of the present application, it is assumed that the power consumption limit value that processor utilization rate obtains when being 50% is 60W, and is serviced
Device distributes to processor preset power consumption value, i.e. the first preset power consumption value is 100W, so, when acquisition processor utilization rate is 50%
Power consumption limit value and preset power consumption value between difference be 40W.After obtaining power consumption difference and being 40W, there is following two
The best allotment of situation realization server energy consumption:
The first situation, by the power consumption difference of 40W be deployed to other hardware come using, e.g., in E-mail server,
User needs the hard disk 2 distributed to the power consumption difference of 40W in server to use, to store more mail datas, Jin Ertong
The operation of response user is crossed, BMC (Baseboard Management Controller, substrate management control in server
Device) the allotment order that processor is sent in E-mail server is obtained, and then allotment instruction is executed, the power consumption of 40W is poor
Value is deployed to hard disk 2, and then under the premise of server total power consumption is constant, server can allow more hardware to be run,
So the available raising of the working performance of server in this case.
Second case obtains the default permit notification of server, i.e., the first default permit notification is 300W, by 40W's
Power consumption difference is directly deducted from the preset permit notification 300W of server, and then obtains the second default total work of current server
Consumption is 260W, next, the processing unit of server sends control instruction to BMC, and then the current power consumption of control server is not
Total power consumption 260W default more than second, so, the power consumption of whole in this case server can reduce.
Embodiment two
Referring to FIG. 6, based on the same inventive concept, the embodiment of the present application two provides a kind of electronic equipment, comprising:
First acquisition unit 60, for obtaining the utilization rate of processor in the electronic equipment;First processing units 61 are used
The power consumption limit value of the processor is obtained using the first processing method in being based on the utilization rate, wherein the power consumption limit
Value processed characterizes highest power consumption of the processor in the case where utilization rate;
Second acquisition unit 62, for obtaining the first preset power consumption value of the processor, the first preset power consumption value
For the highest power consumption of the preset processor;
First control unit 63, for being based on the power consumption limit value and the first preset power consumption value, to the electronics
Equipment is controlled.
Optionally, first acquisition unit 60 specifically includes:
First obtains subelement, for obtaining at least one utilization rate of processor described in the electronic equipment;
Second obtains subelement, for obtaining the place using the first processing method based at least one described utilization rate
Manage the power consumption limit value of device.
Optionally, first acquisition unit 60 specifically includes:
Third obtains subelement, for obtain processor described in the current acquisition moment the first utilization rate and with it is described current
Acquire the second utilization rate of processor described in moment adjacent previous moment;
4th obtains subelement, for being based on first utilization rate and second utilization rate, utilizes the first processing side
Method obtains the power consumption limit value of the processor.
Optionally, first processing units 61 specifically include:
5th obtains subelement, poor for obtaining the power consumption between the power consumption limit value and the first preset power consumption value
Value;
First processing subelement, sets for the power consumption difference to be deployed to other hardware different from the processor
It is standby.
Optionally, first processing units 61 specifically include:
6th obtains subelement, poor for obtaining the power consumption between the power consumption limit value and the first preset power consumption value
Value;
7th obtains subelement, obtains the first default permit notification of the electronic equipment;
Second processing subelement obtains the second default total work using the described first default permit notification and the power consumption difference
Consumption value controls the electronic equipment, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented
Fruit:
Since the electronic equipment in the technical solution in the embodiment of the present application uses the processor utilization rate according to acquisition
And the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, and obtains processor
Preset power consumption value, the technology hand that the electronic equipment is controlled according to the power consumption limit value of processor and preset power consumption value
Section, it may be assumed that the technical solution in the embodiment of the present application can be obtained according to the current utilization rate of processor using the first processing method
Processor power consumption limit value, and according to the power consumption limit value and the preset power consumption number of processor to electronic equipment overall performance
Be adjusted, and in the prior art, electronic equipment under conditions of load is certain, the power consumption of consumption be it is certain, i.e., not
The overall performance of separate unit electronic equipment is optimized, so, the scheme in the embodiment of the present application can effectively solve the problem that existing skill
Electronic equipment in art exist will not according to own load situation, the technical issues of being managed to powder consumption of electronic equipment, in turn,
Realize the technical effect realized according to the utilization rate of electronics processors and carry out consumption management to electronic equipment function.
Power consumption limit value and acquisition are obtained in advance since the electronic equipment in the technical solution in the embodiment of the present application uses
If the difference between power consumption number, and power consumption difference is deployed to the hardware device different from processor and is used, that is, the application is real
The technical solution in example is applied under conditions of the total power consumption that electronic equipment consumes is certain, it can be according to the actual utilization rate of processor
The maximum value that processor at this time needs to consume power consumption is calculated, and according to the utilization rate of predetermined process device, by the power consumption difference of acquisition
It is deployed to electronic equipment others hardware, in turn, the hardware that realization electronic equipment can be currently running without closing, also,
Under conditions of power consumption is certain, electronic equipment can also run the effect of other hardware.
The power consumption limit value and institute are obtained since the electronic equipment in the technical solution in the embodiment of the present application uses
The power consumption difference between the first preset power consumption value is stated, the first default permit notification of the electronic equipment is obtained, utilizes described
One default permit notification and the power consumption difference obtain the second default permit notification, to control the current total work of the electronic equipment
Consumption is not more than the described second default permit notification.That is: the technical solution in the embodiment of the present application can be actual according to processor
Utilization rate calculates the maximum value that processor at this time needs to consume power consumption, and according to the utilization rate of predetermined process device, by the function of acquisition
Consumption difference is preset in total power consumption from electronic equipment to be deducted, and obtains lower default permit notification, in turn, controlling electronic devices is being tieed up
The actual power consumption number of electronic equipment can be reduced as much as possible by holding under conditions of Current hardware equipment operates normally, and reach saving electric power
The effect of resource and expense.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of one of the embodiment of the present application control method can be stored in
CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with a kind of control method in storage medium
One electronic equipment reads or is performed, and includes the following steps:
Obtain the utilization rate of processor in the electronic equipment;
The power consumption limit value of the processor is obtained, wherein described using the first processing method based on the utilization rate
Power consumption limit value characterizes highest power consumption of the processor in the case where utilization rate;
The first preset power consumption value of the processor is obtained, the first preset power consumption value is the preset processor
Highest power consumption;
Based on the power consumption limit value and the first preset power consumption value, the electronic equipment is controlled.
Optionally, stored in the storage medium and step: the use for obtaining processor in the electronic equipment
Rate, corresponding computer instruction specifically comprise the following steps: during being specifically performed
Obtain at least one utilization rate of processor described in the electronic equipment;
It is described that the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, comprising:
The power consumption limit value of the processor is obtained using the first processing method based at least one described utilization rate.
Optionally, stored in the storage medium and step: processor described in the acquisition electronic equipment
At least one utilization rate, corresponding computer instruction specifically comprise the following steps: during being specifically performed
Obtain the first utilization rate of processor and the second utilization rate of the processor described in the adjacent acquisition moment;
It is described that the power consumption limit value of the processor is obtained using the first processing method based on the utilization rate, comprising:
The processor is obtained using the first processing method based on first utilization rate and second utilization rate
Power consumption limit value.
Optionally, stored in the storage medium and step: described to be based on the power consumption limit value and described first in advance
If power consumption, the electronic equipment is controlled, corresponding computer instruction specifically includes as follows during being specifically performed
Step:
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
The power consumption difference is deployed to other hardware devices different from the processor.
Optionally, described to be based on the power consumption limit value and first preset power consumption, the electronic equipment is controlled
System, corresponding computer instruction specifically comprise the following steps: during being specifically performed
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
Obtain the first default permit notification of the electronic equipment;
The second default permit notification is obtained using the described first default permit notification and the power consumption difference, controls the electricity
Sub- equipment, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (6)
1. a kind of control method is applied in electronic equipment, which comprises
Obtain the first utilization rate of processor and the second utilization rate of the processor in electronic equipment described in the adjacent acquisition moment;
The power consumption of the processor is obtained using the first processing method based on first utilization rate and second utilization rate
Limits value, wherein the power consumption limit value characterizes the processor in first utilization rate and second utilization rate
In the case of highest power consumption;
The first preset power consumption value of the processor is obtained, the first preset power consumption value is the highest of the preset processor
Power consumption;
Based on the power consumption limit value and the first preset power consumption value, the power consumption of the electronic equipment is controlled.
2. the method as described in claim 1, which is characterized in that described to be based on the power consumption limit value and the first default function
Consumption, controls the electronic equipment, comprising:
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
The power consumption difference is deployed to other hardware devices different from the processor.
3. the method as described in claim 1, which is characterized in that described to be based on the power consumption limit value and the first default function
Consumption, controls the electronic equipment, comprising:
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
Obtain the first default permit notification of the electronic equipment;
The second default permit notification is obtained using the described first default permit notification and the power consumption difference, the electronics is controlled and sets
It is standby, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
4. a kind of electronic equipment, comprising:
First acquisition unit, for obtaining the first utilization rate of processor and the place in electronic equipment described in the adjacent acquisition moment
Manage the second utilization rate of device;
First processing units, using the first processing method, are obtained for being based on first utilization rate and second utilization rate
The power consumption limit value of the processor, wherein the power consumption limit value characterize the processor in first utilization rate and
Highest power consumption in the case where second utilization rate;
Second acquisition unit, for obtaining the first preset power consumption value of the processor, the first preset power consumption value is default
The processor highest power consumption;
First control unit, for being based on the power consumption limit value and the first preset power consumption value, to the electronic equipment
Power consumption is controlled.
5. electronic equipment as claimed in claim 4, which is characterized in that the first control unit is used for:
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
The power consumption difference is deployed to other hardware devices different from the processor.
6. electronic equipment as claimed in claim 4, which is characterized in that the first control unit is used for:
Obtain the power consumption difference between the power consumption limit value and the first preset power consumption value;
Obtain the first default permit notification of the electronic equipment;
The second default permit notification is obtained using the described first default permit notification and the power consumption difference, the electronics is controlled and sets
It is standby, so that the current total power consumption of the electronic equipment is not more than the described second default permit notification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837876.1A CN105786152B (en) | 2014-12-26 | 2014-12-26 | A kind of control method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837876.1A CN105786152B (en) | 2014-12-26 | 2014-12-26 | A kind of control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105786152A CN105786152A (en) | 2016-07-20 |
CN105786152B true CN105786152B (en) | 2019-03-29 |
Family
ID=56389785
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410837876.1A Active CN105786152B (en) | 2014-12-26 | 2014-12-26 | A kind of control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786152B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106444910B (en) * | 2016-10-26 | 2019-01-18 | 青岛海信移动通信技术股份有限公司 | A kind of heat dissipating method of terminal device, apparatus and system |
CN110647437B (en) * | 2019-07-25 | 2022-08-05 | 平安科技(深圳)有限公司 | Method, device, terminal and medium for adjusting CPU utilization rate based on PID controller |
WO2021120015A1 (en) * | 2019-12-17 | 2021-06-24 | 华为技术有限公司 | Power limit determination method and apparatus |
CN111949478B (en) * | 2020-07-28 | 2022-03-22 | 山东英信计算机技术有限公司 | Method and system for controlling upper limit of power consumption of server and related components |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101165635A (en) * | 2006-10-19 | 2008-04-23 | 国际商业机器公司 | System and method of power management for computer processor systems |
CN102959510A (en) * | 2010-08-31 | 2013-03-06 | 阿沃森特公司 | Method and system for computer power and resource consumption modeling |
CN103488532A (en) * | 2013-09-02 | 2014-01-01 | 华为技术有限公司 | Method and equipment for adjusting processor frequency |
CN103645797A (en) * | 2013-12-17 | 2014-03-19 | 武汉科技大学 | Low power consumption frequency modulation method based on time slice utilization rate |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9158358B2 (en) * | 2013-06-04 | 2015-10-13 | Qualcomm Incorporated | System and method for intelligent multimedia-based thermal power management in a portable computing device |
-
2014
- 2014-12-26 CN CN201410837876.1A patent/CN105786152B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101165635A (en) * | 2006-10-19 | 2008-04-23 | 国际商业机器公司 | System and method of power management for computer processor systems |
CN102959510A (en) * | 2010-08-31 | 2013-03-06 | 阿沃森特公司 | Method and system for computer power and resource consumption modeling |
CN103488532A (en) * | 2013-09-02 | 2014-01-01 | 华为技术有限公司 | Method and equipment for adjusting processor frequency |
CN103645797A (en) * | 2013-12-17 | 2014-03-19 | 武汉科技大学 | Low power consumption frequency modulation method based on time slice utilization rate |
Also Published As
Publication number | Publication date |
---|---|
CN105786152A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8255709B2 (en) | Power budgeting for a group of computer systems using utilization feedback for manageable components | |
US8374928B2 (en) | Data center power cost accounting system | |
US10877533B2 (en) | Energy efficient workload placement management using predetermined server efficiency data | |
CN105786152B (en) | A kind of control method and electronic equipment | |
US9218044B2 (en) | Computing system frequency target monitor | |
TWI245986B (en) | Method for managing power consumption in computer servers | |
US8006112B2 (en) | System and method for managing blades after a power supply unit failure | |
US10162397B2 (en) | Energy efficient workload placement management based on observed server efficiency measurements | |
US20150089251A1 (en) | Method and Apparatus for Managing Global Chip Power on a Multicore System on Chip | |
US10037214B2 (en) | Determining power capping policies for a computer device | |
US20140189376A1 (en) | Total platform power control | |
JP2008160971A (en) | Program, device, and processing method for power consumption adjustment | |
KR20140064813A (en) | Respensive load control method | |
EP3649536A1 (en) | Core frequency management using effective utilization for power-efficient performance | |
CN104142855A (en) | Dynamic task scheduling method and device | |
EP3238162A1 (en) | Forecast for demand of energy | |
WO2017149618A1 (en) | Control device, power generation control device, control method, system, and program | |
US9323301B2 (en) | Computing system voltage control | |
US11347290B2 (en) | Power monitor scaling for an information handling system | |
CN104539673A (en) | Method suitable for balancing cloud platform computing resources | |
CN115373860B (en) | Scheduling method, device and equipment of GPU (graphics processing Unit) tasks and storage medium | |
US10976792B2 (en) | Input power scaling of power supply devices | |
CN111076390A (en) | Method and device for managing operation of precise air conditioner | |
CN102999376A (en) | Dynamic dispatching method for virtual desktop resources for multiple power tenants | |
US10540000B2 (en) | Dynamic voltage control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |