CN105786152A - Control method and electronic device - Google Patents
Control method and electronic device Download PDFInfo
- Publication number
- CN105786152A CN105786152A CN201410837876.1A CN201410837876A CN105786152A CN 105786152 A CN105786152 A CN 105786152A CN 201410837876 A CN201410837876 A CN 201410837876A CN 105786152 A CN105786152 A CN 105786152A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- processor
- electronic equipment
- utilization rate
- limit 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.)
- Granted
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a control method and an electronic device. The method comprises the following steps: obtaining a usage rate of a processor in the electronic device; obtaining a power consumption limit value of the processor based on the usage rate by employing a first processing method, wherein the power consumption limit value characterizes the highest power consumption of the processor at the usage rate; obtaining a first preset power consumption value of the processor, wherein the first preset power consumption value is the preset highest power consumption of the processor; and controlling the electronic device based on the power consumption limit value and the first preset power consumption value. The control method is used for solving the technical problem that the electronic device in the prior art would not manage the power consumption of the electronic device according to its own load condition, and then, a technical effect of managing the power consumption of the electronic device according to the load condition of the electronic device is achieved.
Description
Technical field
The present invention relates to electronic technology field, particularly to a kind of control method and electronic equipment.
Background technology
Development along with information technology, people need the electronic equipments such as a large amount of high performance server, Laptop & Desktop to carry out the process of data, but be as electronic equipment number be continuously increased and performance constantly promotes, the electric power resource of its consumption in recent years climbs up and up, along with the rise of energy prices, the power saving of power consumption electronic equipment is more and more noticeable.
To manage server energy consumption, in prior art, multiple servers is primarily directed to for the management of server energy consumption and carries out power managed, such as, when every station server load is certain, understand, by the energy service condition of monitoring server, the server that in multiple servers, power consumption is maximum and minimum, thus the situation according to every station server power consumption, when arranging server and using condition, select as far as possible to use more energy efficient server, it is achieved the reduction of multiple servers overall power consumption.
Present inventor is in invention the embodiment of the present application in the process of technical scheme, it has been found that above-mentioned prior art at least exists following technical problem:
Seen from the above description, in prior art, electronic equipment is when load is certain, and the power consumption of consumption is certain, reduces the overall power consumption of server by reducing the utilization rate of high power consumption electronic equipment.It can thus be appreciated that, in prior art, the electronic equipment of every in multiple electronic equipment can't according to the loading condition of electronic equipment self, electronic equipment is carried out power managed, namely separate unit electronic equipment of the prior art existence will not according to own load situation, the technical problem that powder consumption of electronic equipment is managed.
And then, cause that user experiences not high problem in using electronic equipment process.
Summary of the invention
The embodiment of the present application provides a kind of control method and electronic equipment, for solving in prior art, the existence of separate unit electronic equipment will not according to own load situation, the technical problem that powder consumption of electronic equipment is managed, it is achieved electronic equipment improves, according to own load situation, the technique effect that powder consumption of electronic equipment uses.
According to the first aspect of the invention, it is provided that a kind of control method, being applied in electronic equipment, described method includes: obtain the utilization rate of processor in described electronic equipment;Based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;Obtain described processor first presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;Preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
Optionally, the utilization rate of processor in the described electronic equipment of described acquisition, including: obtain at least one utilization rate of processor described in described electronic equipment;Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including: based at least one utilization rate described, utilize the first processing method, obtain the power consumption limit value of described processor.
Optionally, obtain at least one utilization rate of processor described in described electronic equipment, particularly as follows: obtain the second utilization rate of processor described in current the first utilization rate gathering processor described in the moment and the previous moment adjacent with the described current collection moment;Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including: based on described first utilization rate and described second utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor.
Optionally, described preset power consumption based on described power consumption limit value and described first, described electronic equipment is controlled, including: obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;Described power consumption difference is deployed to other hardware devices different from described processor.
Optionally, described preset power consumption based on described power consumption limit value and described first, described electronic equipment is controlled, including: obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;Obtain described electronic equipment first presets permit notification;Utilize described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
According to a further aspect in the invention, also provide for a kind of electronic equipment and include: the first acquiring unit, for obtaining the utilization rate of processor in described electronic equipment;First processing unit, for based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;Second acquisition unit, first for obtaining described processor presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;First control unit, for presetting power consumption number based on described power consumption limit value and described first, is controlled described electronic equipment.
Optionally, described first acquiring unit includes: first obtains subelement, for obtaining at least one utilization rate of processor described in described electronic equipment;Second obtains subelement, for based at least one utilization rate described, utilizing the first processing method, obtain the power consumption limit value of described processor.
Optionally, described first acquiring unit includes: the 3rd obtains subelement, for obtaining the second utilization rate of adjacent the first utilization rate gathering processor described in the moment and described processor;4th obtains subelement, for based on described first utilization rate and described second utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor.
Optionally, described first processing unit includes: the 5th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;First processes subelement, for described power consumption difference is deployed to other hardware devices different from described processor.
Optionally, described first processing unit includes: the 6th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;7th obtains subelement, and obtain described electronic equipment first presets permit notification;Second processes subelement, utilizes described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
The one or more technical schemes provided in the embodiment of the present application, at least have the following technical effect that or advantage:
nullOwing to the electronic equipment in the technical scheme in the embodiment of the present application have employed according to the processor utilization rate obtained and based on described utilization rate,Utilize the first processing method,Obtain the power consumption limit value of described processor,And obtain the default power consumption number of processor,The technological means that described electronic equipment is controlled by power consumption limit value according to processor and default power consumption number,That is: the technical scheme in the embodiment of the present application,The power consumption limit value of the processor of the first processing method acquisition can be adopted according to the utilization rate that processor is current,And according to the power consumption number that this power consumption limit value and processor are default, electronic equipment overall performance is adjusted,And in prior art,Electronic equipment is when load is certain,The power consumption consumed is certain,Namely the power consumption of separate unit electronic equipment is not managed by prior art,So,Scheme in the embodiment of the present application can effectively solve the problem that electronic equipment of the prior art existence will not according to own load situation,The technical problem that powder consumption of electronic equipment is managed,And then,Realize the utilization rate according to electronics processors and realize electronic equipment merit is carried out the technique effect of consumption management.
Obtain power consumption limit value owing to the electronic equipment in the technical scheme in the embodiment of the present application have employed and obtain the difference preset between power consumption number, and power consumption difference is deployed to the hardware device different from processor use, namely the technical scheme in the embodiment of the present application can calculate now processor according to the utilization rate that processor is actual needs to consume the maximum of power consumption, and the utilization rate according to predetermined process device, the power consumption difference of acquisition is deployed to other hardware of electronic equipment, and then, when the total power consumption maintaining electronic equipment consumption is certain, realize electronic equipment and can run other hardware, achieve the effect promoting separate unit electronic equipment performance.
The power consumption difference that described power consumption limit value and described first is preset between power consumption number is obtained owing to the electronic equipment in the technical scheme in the embodiment of the present application have employed, obtain described electronic equipment first presets permit notification, utilizing described first to preset permit notification and described power consumption difference obtains second and presets permit notification, the current total power consumption to control described electronic equipment is not more than described second and presets permit notification.Namely the technical scheme in the embodiment of the present application can calculate now processor according to the utilization rate that processor is actual needs to consume the maximum of power consumption, and the utilization rate according to predetermined process device, the power consumption difference of acquisition is preset deduction total power consumption from electronic equipment and obtains relatively low default permit notification, and then, control electronic equipment and can reduce, when maintenance Current hardware equipment is properly functioning, the power consumption number that electronic equipment is actual as much as possible, reach to save the effect of electric power resource and expense.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of control method in the embodiment of the present application one;
Fig. 2 is the method flow diagram of step S101 in a kind of control method in the embodiment of the present application one;
Fig. 3 is the method flow diagram of step S201 in a kind of control method in the embodiment of the present application one;
Fig. 4 is the method flow diagram of the first situation in step S104 in a kind of control method in the embodiment of the present application one;
Fig. 5 is the method flow diagram of second case in step S104 in a kind of control method in the embodiment of the present application one;
Fig. 6 is the structure chart of a kind of electronic equipment in the embodiment of the present application two.
Detailed description of the invention
The embodiment of the present application provides a kind of control method and electronic equipment, for solving in prior art, the existence of separate unit electronic equipment will not according to own load situation, the technical problem that powder consumption of electronic equipment is managed, it is achieved electronic equipment improves, according to own load situation, the technique effect that powder consumption of electronic equipment uses.
Technical scheme in the embodiment of the present application is solve above-mentioned technical problem, and general thought is as follows:
A kind of control method, is applied in electronic equipment, and described method includes: obtain the utilization rate of processor in described electronic equipment;Based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;Obtain described processor first presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;Preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
nullOwing to the electronic equipment in the technical scheme in the embodiment of the present application have employed according to the processor utilization rate obtained and based on described utilization rate,Utilize the first processing method,Obtain the power consumption limit value of described processor,And obtain the default power consumption number of processor,The technological means that described electronic equipment is controlled by power consumption limit value according to processor and default power consumption number,That is: the technical scheme in the embodiment of the present application,The power consumption limit value of the processor of the first processing method acquisition can be adopted according to the utilization rate that processor is current,And according to the power consumption number that this power consumption limit value and processor are default, electronic equipment overall performance is adjusted,And in prior art,Electronic equipment is when load is certain,The power consumption consumed is certain,Namely the power consumption of separate unit electronic equipment is not managed by prior art,So,Scheme in the embodiment of the present application can effectively solve the problem that electronic equipment of the prior art existence will not according to own load situation,The technical problem that powder consumption of electronic equipment is managed,And then,Realize the utilization rate according to electronics processors and realize electronic equipment merit is carried out the technique effect of consumption management.
In order to be better understood from technique scheme, below in conjunction with Figure of description and specific embodiment, technique scheme is described in detail.
Embodiment one
By the application embodiment, it is provided that a kind of control method, being applied in electronic equipment, electronic equipment here can be all types of server, it is also possible to is the electronic equipment such as desktop computer, notebook computer, does not here just illustrate one by one.In detailed description below, it is described in detail for server.
Refer to Fig. 1, the embodiment of the present application provides a kind of control method, is applied in electronic equipment, and described method includes:
S101: obtain the utilization rate of processor in described electronic equipment;
S102: based on described utilization rate, utilizes the first processing method, obtains the power consumption limit value of described processor, and wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;
S103: obtain described processor first presets power consumption number, wherein, the described first default power consumption number is the highest power consumption of default described processor;
S104: preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
Refer to Fig. 2 and Fig. 3, step S101: obtain utilization rate and the step S102 of processor in described electronic equipment: based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, implement in process, comprise the steps:
S201: obtain at least one utilization rate of processor described in described electronic equipment;
S202: based at least one utilization rate described, utilize the first processing method, obtains the power consumption limit value of described processor.
Wherein, step S201: obtain at least one utilization rate of processor described in described electronic equipment, in implementing process, comprise the steps:
S301: obtain the second utilization rate of adjacent the first utilization rate gathering processor described in the moment and described processor;
S302: based on described first utilization rate and described second utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor.
In the embodiment of the present application, assume that server is E-mail server, run ExchangeServer software under a linux operating system and support the up to a million grades of normal receiving and dispatching mails of user, in this E-mail server, mainly include the hardware devices such as processor, internal memory and hard disk.Total power consumption of presetting of server is 300W, and the default power consumption distributing to processor is 100W, and the power consumption of processor full load consumption is 90W, and consuming power consumption during the processor free time is 20W.
Continue with and illustrate for E-mail server, in E-mail server, the utilization rate of server can by (the integrated south bridge of PCH in server, PlatformControllerHub) ME (management engine in, ManagementEngineer) measure, use mainboard BMC (baseboard management controller) in addition can directly read the utilization rate of collection period inner treater.
Before power consumption of processing unit is acquired, user can be arranged as required to the cycle of sampling, it is also possible to is acquired according to the sampling period of system default, is not specifically limited in this application.In general, sampling period is more little, digital simulation is more accurate, control effect closer to continuous control, but collection period is too little, and to be likely to result in again data volume too big, data processing time is longer, and then the accuracy that can control as required of those skilled in the art and server data disposal ability select suitable power consumption collection period.Assume within the t1 moment to t2 moment, sampling period T=5s, can gather n time within the t1 moment to t2 moment, it is assumed that the t1 moment, the t2 moment was current time in order to start to measure the moment, then n-th collection is current time collection point.
After obtaining n processor utilization rate data, in the embodiment of the present application, it is provided that n processor utilization rate data are processed by two kinds of implementations, and then obtain the server power consumption limit value when currently used rate.
Implementation one: gather the utilization rate of current time processor, utilize linear algorithm to obtain the power consumption limit value of current time server, for instance: F (x)=aX5+bX4+cX3+dX2+ eX+f, wherein, x in formula is the utilization rate of t2 time processor, 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 when processor is in different utilization rate, obtain the power consumption number data of corresponding processor, and the data of two kinds of information are carried out linear fit, obtain the value of a, b, c, d, e, f parameter, such as, assume time processor utilization rate is 0, the power consumption number obtained is 20, and namely in formula, the value of f is 20.For different types of server, the value of a, b, c, d, e, f parameter is different, the levels of precision that those skilled in the art can control as required, utilization rate and history power consumption to processor-server do record in detail, and be calculated determining and the range of choice of parameter be not specifically limited in this application.After the value obtaining a, b, c, d, e, f parameter, it is possible to obtain the power consumption limit value of current server according to the utilization rate of current processor, it is assumed that when the utilization rate that processor is current is 50%, the power consumption limit value of acquisition is 60W.
Implementation two: the first utilization rate and the second utilization rate that obtain adjacent collection time processor utilize condition algorithm to obtain the power consumption limit value of current time server, for instance:
If the utilization rate of the processor that (n-1)th time gathers is less than the utilization rate of n-th Acquisition Processor, utilize Fgo_up(x)=aX5+bX4+cX3+dX2+ eX+f obtains the power consumption limit value at current time.
If during the utilization rate of the processor that the utilization rate of (n-1)th Acquisition Processor gathers more than n-th, utilizing Fgo_down(x)=gX5+hX4+iX3+jX2+ kX+l obtains the power consumption limit value at current time.
If when the utilization rate of the processor of (n-1)th collection is identical with the processor utilization rate that n-th gathers, when gathering termination with collection initial time respectively by formula Fat_t2(x)=mX5+nX4+oX3+pX2+ qX+r and Fat_t1(x)=sX5+tX4+uX3+vX2+ wX+x obtains the power consumption limit value within the t1 moment to t2 moment.Wherein, Fgo_up(x)、Fgo_down(x)、Fat_t1(x) and Fat_t2X the parameter in () is identical with the mode obtained in the first implementation, those skilled in the art can, as desired to each parameter value is adjusted, here just no longer carry out repeating.
Certainly, in the embodiment of the present application, pid control algorithm can also be adopted to obtain the power consumption limit value of current time server, implementing in process, user to processor when different utilization rate, can arrange different power consumption of processing unit values, assume when processor utilization rate is 50%, the power consumption limit value that user sets as 60W, then obtains and gathers measured value, such as PinputFor 50W, next utilize formula Error (n)=PTarget-PinputN () obtains and presets power consumption limit value and error value E rror (n), next utilize formula Carry out processing and obtain processor when gathering n-th and use power consumption limit value close to 60W.Wherein, P (n) is current time power consumption higher limit of output after PID regulates and controls, and P (n-1) is that namely the front of n-th once gather the power consumption higher limit of output after PID regulates and controls for (n-1)th time.Proportionality coefficient is Kp, integral coefficient Ki, differential coefficient KdBy those skilled in the art according to being actually needed the value being configured, such as, it is determined that during Proportional coefficient K p, first remove integral term and the differential term of PID, it is possible to make Ki=0, Kd=0, make pure proportion adjustment.Input is set as that system allows the 60%~70% of output maximum, and Proportional coefficient K p is gradually increased by 0, until vibration occurs in system;Again in turn, it is gradually reduced from Proportional coefficient K p now, until system oscillation disappears.Record Proportional coefficient K p now, sets the Proportional coefficient K p of PID as the 60%~70% of currency.After Proportional coefficient K p determines, set a bigger integration time constant Ki, be then gradually reduced Ki, until vibration occurs in system, then more in turn, be gradually increased Ti, until system oscillation disappears.Record Ki now, sets the integration time constant Ti of PID as the 150%~180% of currency.Derivative time constant Kd generally need not set, and is 0, and now PID regulates and is converted to PI adjustment.If needing to set, then identical with the method determining Kp, take during nonoscillatory the 30% of its value.Then pid parameter is finely tuned, until meeting performance requirement.
After obtaining the power consumption limit value of processor, also include step S103: obtain described processor first presets power consumption number.Then above embodiment, the default power consumption number 100W of the processor in the embodiment of the present application, after the default power consumption number obtaining processor, refer to Fig. 4 and Fig. 5, step S104: preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
Step S104, in implementing process, has two kinds of situations, and wherein, the first situation includes step:
S401: obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
S402: described power consumption difference is deployed to other hardware devices different from described processor.
Step S104 second case in implementing process, including step:
S501: obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
S502: obtain described electronic equipment first presets permit notification;
S503: utilize described second to preset power consumption number and described power consumption difference obtains second and presets permit notification, and control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
In the embodiment of the present application, assume that the power consumption limit value obtained when processor utilization rate is 50% is 60W, and server-assignment presets power consumption number to processor, namely the first default power consumption number is 100W, so, it is thus achieved that processor utilization rate is the difference between power consumption limit value when 50% and default power consumption number is 40W.After obtaining power consumption difference and being 40W, two following situations is had to realize the best allotment of server energy consumption:
The first situation, the hardware that the power consumption difference of 40W is deployed to other is used, as, in E-mail server, user needs the hard disk 2 by the power consumption difference of 40W is distributed in server to use, to store more mail data, and then by responding the operation of user, BMC (BaseboardManagementController in server, baseboard management controller) obtain the allotment order sent from processor in E-mail server, and then perform allotment instruction, the power consumption difference of 40W is deployed to hard disk 2, and then under the constant premise of server total power consumption, server can allow more hardware run, so the service behaviour of server can be improved in this case.
Second case, obtain the default permit notification of server, namely the first default permit notification is 300W, the power consumption difference of 40W is directly deducted from the permit notification 300W that server is preset, and then the second default total power consumption obtaining current server is 260W, next, the processing unit of server sends control instruction to BMC, and then control server current power consumption less than second preset total power consumption 260W, so, the power consumption of whole station server just can reduce in this case.
Embodiment two
Refer to Fig. 6, based on same inventive concept, the embodiment of the present application two provides a kind of electronic equipment, including:
First acquiring unit 60, for obtaining the utilization rate of processor in described electronic equipment;
First processing unit 61, for based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;
Second acquisition unit 62, first for obtaining described processor presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;
First control unit 63, for presetting power consumption number based on described power consumption limit value and described first, is controlled described electronic equipment.
Optionally, the first acquiring unit 60 specifically includes:
First obtains subelement, for obtaining at least one utilization rate of processor described in described electronic equipment;
Second obtains subelement, for based at least one utilization rate described, utilizing the first processing method, obtain the power consumption limit value of described processor.
Optionally, the first acquiring unit 60 specifically includes:
3rd obtains subelement, for obtaining the second utilization rate of processor described in current the first utilization rate gathering processor described in the moment and the previous moment adjacent with the described current collection moment;
4th obtains subelement, for based on described first utilization rate and described second utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor.
Optionally, the first processing unit 61 specifically includes:
5th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
First processes subelement, for described power consumption difference is deployed to other hardware devices different from described processor.
Optionally, the first processing unit 61 specifically includes:
6th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
7th obtains subelement, and obtain described electronic equipment first presets permit notification;
Second processes subelement, utilizes described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
By the one or more technical schemes in the embodiment of the present application, it is possible to achieve following one or more technique effects:
nullOwing to the electronic equipment in the technical scheme in the embodiment of the present application have employed according to the processor utilization rate obtained and based on described utilization rate,Utilize the first processing method,Obtain the power consumption limit value of described processor,And obtain the default power consumption number of processor,The technological means that described electronic equipment is controlled by power consumption limit value according to processor and default power consumption number,That is: the technical scheme in the embodiment of the present application,The power consumption limit value of the processor of the first processing method acquisition can be adopted according to the utilization rate that processor is current,And according to the power consumption number that this power consumption limit value and processor are default, electronic equipment overall performance is adjusted,And in prior art,Electronic equipment is when load is certain,The power consumption consumed is certain,Namely the overall performance of separate unit electronic equipment is not optimized,So,Scheme in the embodiment of the present application can effectively solve the problem that electronic equipment of the prior art existence will not according to own load situation,The technical problem that powder consumption of electronic equipment is managed,And then,Realize the utilization rate according to electronics processors and realize electronic equipment merit is carried out the technique effect of consumption management.
Obtain power consumption limit value owing to the electronic equipment in the technical scheme in the embodiment of the present application have employed and obtain the difference preset between power consumption number, and power consumption difference is deployed to the hardware device different from processor use, namely, technical scheme in the embodiment of the present application is when the total power consumption that electronic equipment consumes is certain, now processor can be calculated according to the utilization rate that processor is actual and need to consume the maximum of power consumption, and the utilization rate according to predetermined process device, the power consumption difference of acquisition is deployed to other hardware of electronic equipment, and then, realize electronic equipment and can close the hardware being currently running, and, when power consumption is certain, electronic equipment can also run the effect of other hardware.
The power consumption difference that described power consumption limit value and described first is preset between power consumption number is obtained owing to the electronic equipment in the technical scheme in the embodiment of the present application have employed, obtain described electronic equipment first presets permit notification, utilizing described first to preset permit notification and described power consumption difference obtains second and presets permit notification, the current total power consumption to control described electronic equipment is not more than described second and presets permit notification.That is: the technical scheme in the embodiment of the present application can calculate now processor according to the utilization rate that processor is actual needs to consume the maximum of power consumption, and the utilization rate according to predetermined process device, the power consumption difference obtained is preset deduction total power consumption from electronic equipment, obtain relatively low default permit notification, and then, control electronic equipment and can reduce, when maintenance Current hardware equipment is properly functioning, the power consumption number that electronic equipment is actual as much as possible, reach to save the effect of electric power resource and expense.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Specifically, computer program instructions corresponding to a kind of control method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with a kind of control method in storage medium is read by an electronic equipment or be performed, comprise the steps:
Obtain the utilization rate of processor in described electronic equipment;
Based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;
Obtain described processor first presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;
Preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
Optionally, store in described storage medium and step: the utilization rate of processor in the described electronic equipment of described acquisition, corresponding computer instruction is specifically being performed in process, specifically includes following steps:
Obtain at least one utilization rate of processor described in described electronic equipment;
Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including:
Based at least one utilization rate described, utilize the first processing method, obtain the power consumption limit value of described processor.
Optionally, store in described storage medium and step: at least one utilization rate of processor described in the described electronic equipment of described acquisition, corresponding computer instruction is specifically being performed in process, specifically includes following steps:
Obtain the second utilization rate of adjacent the first utilization rate gathering processor described in the moment and described processor;
Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including:
Based on described first utilization rate and described second utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor.
Optionally, in described storage medium storage and step: described presetting power consumption based on described power consumption limit value and described first, described electronic equipment is controlled, corresponding computer instruction is specifically being performed in process, specifically includes following steps:
Obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
Described power consumption difference is deployed to other hardware devices different from described processor.
Optionally, described presetting power consumption based on described power consumption limit value and described first, described electronic equipment is controlled, corresponding computer instruction is specifically being performed in process, specifically includes following steps:
Obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
Obtain described electronic equipment first presets permit notification;
Utilize described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
Although preferred embodiments of the present invention have been described, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a control method, is applied in electronic equipment, and described method includes:
Obtain the utilization rate of processor in described electronic equipment;
Based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;
Obtain described processor first presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;
Preset power consumption number based on described power consumption limit value and described first, described electronic equipment is controlled.
2. the method for claim 1, it is characterised in that the utilization rate of processor in the described electronic equipment of described acquisition, including:
Obtain at least one utilization rate of processor described in described electronic equipment;
Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including:
Based at least one utilization rate described, utilize the first processing method, obtain the power consumption limit value of described processor.
3. method as claimed in claim 2, it is characterised in that at least one utilization rate of processor described in the described electronic equipment of described acquisition, including:
Obtain the second utilization rate of adjacent the first utilization rate gathering processor described in the moment and described processor;
Described based on described utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor, including:
Based on described first utilization rate and described second utilization rate, utilize the first processing method, obtain the power consumption limit value of described processor.
4. method as claimed in claim 3, it is characterised in that described preset power consumption based on described power consumption limit value and described first, is controlled described electronic equipment, including:
Obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
Described power consumption difference is deployed to other hardware devices different from described processor.
5. method as claimed in claim 3, it is characterised in that described preset power consumption based on described power consumption limit value and described first, is controlled described electronic equipment, including:
Obtain the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
Obtain described electronic equipment first presets permit notification;
Utilize described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets permit notification.
6. an electronic equipment, including:
First acquiring unit, for obtaining the utilization rate of processor in described electronic equipment;
First processing unit, for based on described utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor, wherein, described power consumption limit value characterizes the described processor the highest power consumption when described utilization rate;
Second acquisition unit, first for obtaining described processor presets power consumption number, and the described first default power consumption number is the highest power consumption of default described processor;
First control unit, for presetting power consumption number based on described power consumption limit value and described first, is controlled described electronic equipment.
7. electronic equipment as claimed in claim 6, it is characterised in that described first acquiring unit includes:
First obtains subelement, for obtaining at least one utilization rate of processor described in described electronic equipment;
Second obtains subelement, for based at least one utilization rate described, utilizing the first processing method, obtain the power consumption limit value of described processor.
8. electronic equipment as claimed in claim 7, it is characterised in that described first acquiring unit includes:
3rd obtains subelement, for obtaining the second utilization rate of adjacent the first utilization rate gathering processor described in the moment and described processor;
4th obtains subelement, for based on described first utilization rate and described second utilization rate, utilizing the first processing method, obtain the power consumption limit value of described processor.
9. electronic equipment as claimed in claim 8, it is characterised in that described first processing unit includes:
5th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
First processes subelement, for described power consumption difference is deployed to other hardware devices different from described processor.
10. electronic equipment as claimed in claim 8, it is characterised in that described first processing unit includes:
6th obtains subelement, for obtaining the power consumption difference that described power consumption limit value and described first is preset between power consumption number;
7th obtains subelement, and obtain described electronic equipment first presets permit notification;
Second processes subelement, utilizes described first to preset permit notification and described power consumption difference obtains second and presets permit notification, control described electronic equipment so that the current total power consumption of described electronic equipment is not more than described second and presets 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 true CN105786152A (en) | 2016-07-20 |
CN105786152B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106444910A (en) * | 2016-10-26 | 2017-02-22 | 青岛海信移动通信技术股份有限公司 | Terminal device heat radiation method, device and system |
CN110647437A (en) * | 2019-07-25 | 2020-01-03 | 平安科技(深圳)有限公司 | 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 |
WO2022021866A1 (en) * | 2020-07-28 | 2022-02-03 | 山东英信计算机技术有限公司 | Method and system for controlling power consumption upper limit of server, and related component |
Citations (5)
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 |
US20140359324A1 (en) * | 2013-06-04 | 2014-12-04 | 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 (5)
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 |
US20140359324A1 (en) * | 2013-06-04 | 2014-12-04 | Qualcomm Incorporated | System and method for intelligent multimedia-based thermal power management in a portable computing device |
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 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106444910A (en) * | 2016-10-26 | 2017-02-22 | 青岛海信移动通信技术股份有限公司 | Terminal device heat radiation method, device and system |
CN106444910B (en) * | 2016-10-26 | 2019-01-18 | 青岛海信移动通信技术股份有限公司 | A kind of heat dissipating method of terminal device, apparatus and system |
CN110647437A (en) * | 2019-07-25 | 2020-01-03 | 平安科技(深圳)有限公司 | Method, device, terminal and medium for adjusting CPU utilization rate based on PID controller |
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 |
CN114730207A (en) * | 2019-12-17 | 2022-07-08 | 华为技术有限公司 | Method and device for determining power consumption limit |
WO2022021866A1 (en) * | 2020-07-28 | 2022-02-03 | 山东英信计算机技术有限公司 | Method and system for controlling power consumption upper limit of server, and related component |
Also Published As
Publication number | Publication date |
---|---|
CN105786152B (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10983576B2 (en) | Method and apparatus for managing global chip power on a multicore system on chip | |
KR102380666B1 (en) | Load scheduling in multi-battery devices | |
CN103118188B (en) | Application heartbeat cycle adjusting method and device, and terminal | |
US9160171B2 (en) | Pre-processing of data for automatic generation control | |
US20150372538A1 (en) | Controlled concurrent utilization of multiple power supplies | |
CN105786152A (en) | Control method and electronic device | |
CN102779062A (en) | Method and device for controlling number of threads accessing system resources | |
JP7071051B2 (en) | Methods and systems for managing power systems | |
US11108094B2 (en) | Method and device for using an electrochemical energy store so as to optimize the service life | |
WO2017149618A1 (en) | Control device, power generation control device, control method, system, and program | |
TW201418965A (en) | Information processing apparatus, information processing method, and computer program product | |
CN108150352B (en) | Method and device for controlling operation of wind generating set | |
JP6621704B2 (en) | Power generation system | |
CN104915559B (en) | A kind of electrical equipment determines method and system | |
CN103973784A (en) | Method for effectively utilizing resources of cloud storage server | |
CN105320246A (en) | Information processing method and electronic device | |
KR102029030B1 (en) | Apparatus and method for controlling drive of energy storage system considering both long term and short term characteristics | |
US20190155359A1 (en) | Method for automatically managing the electricity consumption of a server farm | |
EP2654174B1 (en) | Charging an energy storage device with a variable speed generator | |
CN110970924A (en) | Clean energy consumption method and device for power grid generator set | |
JP6156961B2 (en) | Control device, power supply system, control method, and program | |
CN113821071B (en) | Dynamic adjustment method and device for output power of equipment | |
CN114756418B (en) | Hard disk power-on control method, system, storage medium and equipment | |
KR101746949B1 (en) | Power combination device of multiple small power sources and generation method of control signal therefor | |
CN106682483A (en) | License central control method and device |
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 |