CN106708239A - Method and device for adjusting power consumption - Google Patents
Method and device for adjusting power consumption Download PDFInfo
- Publication number
- CN106708239A CN106708239A CN201510772775.5A CN201510772775A CN106708239A CN 106708239 A CN106708239 A CN 106708239A CN 201510772775 A CN201510772775 A CN 201510772775A CN 106708239 A CN106708239 A CN 106708239A
- Authority
- CN
- China
- Prior art keywords
- state
- power consumption
- adjustment
- cpu
- parameter
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The invention is applicable to the field of power consumption adjustment, and provides a method and a device for adjusting power consumption. The method for adjusting the power consumption includes detecting adapters to determine whether the adapters are accessed or not; storing performance states P-state supporting all order if the adapters are accessed; triggering P-state modification parameter search events; searching P-state modification parameters by the aid of the search events and transmitting the searched P-state modification parameters to a CPU (central processing unit). The method and the device have the advantages that the problem that existing performance states P-state are fixed after being transmitted into operation systems and the operation systems cannot modify the existing performance states P-state to adjust the power consumption and are unfavorable for prolonging the endurance time of portable equipment can be solved; diversified P-state parameters can be written by the aid of the P-state modification parameters, accordingly, the performance states P-state can be modified, the power consumption can be reduced on the premise that the performance is unaffected, the endurance time can be prolonged, and the resource utilization rate can be increased.
Description
Technical field
The invention belongs to portable equipment field, more particularly to a kind of power consumption method of adjustment and device.
Background technology
P-state is that intelligent frequency reduction (Enhanced Intel Speed Step are commonly referred to as on platform in Intel
Technology, EIST), it can automatically adjust the voltage and frequency of processor according to different workloads.
P-state initialization is in the module of start DXE phase primary power management, to be determined in this stage
There is the P-state of several ranks, into after system, the CPU of OS drives and will call acpi according to cpu load
The inside _ control function of PCT control CPU enters P-state.
However, existing P-state enter operating system (Operating System, OS) after be it is fixed, behaviour
Making system cannot be unfavorable for extending the cruising time of portable equipment by changing P-state come real-time adjustment power consumption.
Its reason is that general operating system is all only to write a kind of P-state parameters, by a kind of P-state
The voltage and frequency of parameter regulation processor, a kind of restricted application of P-state parameters, are using battery
In the state of, it is unfavorable for adjusting voltage and frequency, extend use time.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of power consumption method of adjustment, it is intended to solve existing P-state
It is fixed after into operating system (Operating System, OS), operating system cannot be by changing P-state
Carry out real-time adjustment power consumption, be unfavorable for extending the cruising time of portable equipment.
The embodiment of the present invention is achieved in that a kind of power consumption method of adjustment, including:
Whether test adaptor accesses;
When couple in adapter, the performance state P-state for supporting all ranks is preserved;
Triggering P-state changes the searched events of parameter;
Using the searched events, P-state modification parameters, and the P-state modification parameters that will be found are searched
It is transferred to CPU.
The another object of the embodiment of the present invention is to provide a kind of power consumption adjusting apparatus, including:
Whether detection module, access for test adaptor;
First preserving module, for when couple in adapter, preserving the performance state P-state for supporting all ranks;
Trigger module, the searched events of parameter are changed for triggering P-state;
Transfer module, for utilizing the searched events, searches P-state modification parameters, and will find
P-state modifications parameter is transferred to CPU.
In embodiments of the present invention, using the searched events, P-state modification parameters are searched, and will search
To P-state modifications parameter be transferred to CPU, solve existing P-state into operating system (Operating
System, OS) after be fixed, operating system cannot be by changing P-state come real-time adjustment power consumption, no
Beneficial to the problem in the cruising time of extension portable equipment.The various P-state of parameter read-in are changed by P-state
Parameter, so as to complete the modification of P-state, on the premise of performance is not influenceed, reduces power consumption, improves
Cruising time and resource utilization.
Brief description of the drawings
Fig. 1 is that power consumption method of adjustment provided in an embodiment of the present invention realizes flow chart;
Fig. 2 is that adjustment power consumption provided in an embodiment of the present invention realizes flow chart;
Fig. 3 is the structured flowchart of power consumption adjusting apparatus provided in an embodiment of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing and reality
Example is applied, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
Only it is used to explain the present invention, is not intended to limit the present invention.
Embodiment one
Fig. 1 is that power consumption method of adjustment provided in an embodiment of the present invention realizes flow chart, and details are as follows:
In step S101, whether test adaptor accesses;
In step s 102, when couple in adapter, the performance state P-state for supporting all ranks is preserved;
In step s 103, triggering P-state changes the searched events of parameter;
For purposes of illustration only, triggering P-state changes the searched events implementation process of parameter, it is exemplified below:
Notify(\_PR.CPU0,0x80);Expression triggering Scope (_ PR.CPU0)
Wherein, _ PR.CPU0 be P-state change parameter.
For purposes of illustration only, the thread of searched events, is exemplified below:
Scope (_ PR.CPPC, _ PR.CPU0.PPC);Represent the driving in coprocessor Properties Control
In, find out P-state modification parameters.
Wherein, _ PR.CPPC for coprocessor Properties Control driving.
Coprocessor Properties Control (Collaborative Processor Performance Control, CPPC).
Wherein, _ PR.CPU0.PPC be the quantity for notifying operating system supported P-state parameter.
The quantity (Performance Present Capabilities, PPC) of the supported P-state of operating system.
In step S104, using the searched events, P-state modification parameters are searched, and will find
P-state modification parameter be transferred to CPU.
Step S104, specially:
Using the searched events, P-state modification parameters are searched, and change by the P-state being pre-configured with
Passage, the P-state modifications parameter that will be found is transferred to CPU.
Before step S104, also include:
Configuration CPU drives and the P-state modification passages between default CPU, by operating in CPU
The output program of driving and the reception program of CPU constitute the P-state modifications passage, and the P-state is repaiied
Change passage for transmit change data.
In embodiments of the present invention, the various P-state parameters of parameter read-in are changed by P-state, so as to complete
The modification of P-state, on the premise of performance is not influenceed, reduces power consumption, improves cruising time and resource
Utilization rate.
Embodiment two
The embodiment of the present invention describes the composition of the performance state P-state of all ranks, and details are as follows:
The performance state P-state of all ranks include the first performance state P0, second performance state P1 with
And the operating voltage and frequency of the third performance state P2, described P0, P1 and P2 are differed.
Embodiment three
What the embodiment of the present invention described not couple in adapter realizes flow, and details are as follows:
When not couple in adapter, the third performance state P2 is preserved.
Example IV
The embodiment of the present invention describes to adjust power consumption realizes flow, and details are as follows:
The searched events are being utilized, P-state modification parameters, and the P-state modification ginsengs that will be found is being searched
Number is transferred to after CPU, and the power consumption method of adjustment also includes:
The CPU changes parameter according to the P-state, changes the P-state, adjusts power consumption.
Embodiment five
Fig. 2 is that adjustment power consumption provided in an embodiment of the present invention realizes flow chart, and details are as follows:
In step s 201, the CPU detects whether current total power consumption exceedes the power consumption of setting;
In step S202, if current total power consumption exceedes the power consumption of setting, in P-state modifications
In parameter, the value of the P-state is changed, operating voltage and frequency are adjusted, until current total power consumption is less than
The power consumption of setting.
Embodiment six
Fig. 3 is the structured flowchart of power consumption adjusting apparatus provided in an embodiment of the present invention, and the device can run on
In portable equipment.For convenience of description, illustrate only part related to the present embodiment.
Reference picture 3, a kind of power consumption adjusting apparatus, including:
Whether detection module 31, access for test adaptor;
First preserving module 32, for when couple in adapter, preserving the performance state for supporting all ranks
P-state;
Trigger module 33, the searched events of parameter are changed for triggering P-state;
Transfer module 34, for utilizing the searched events, searches P-state modification parameters, and will find
P-state modification parameter be transferred to CPU.
In a kind of implementation of the present embodiment, the performance state P-state of all ranks includes the first performance
State P0, second performance state P1 and the third performance state P2, described P0, P1 and P2's
Operating voltage and frequency are differed.
In a kind of implementation of the present embodiment, the power consumption adjustment path insertion module also includes:
Second preserving module, for when not couple in adapter, preserving the third performance state P2.
In a kind of implementation of the present embodiment, the power consumption adjusting apparatus also include:
Adjusting module, parameter is changed for the CPU according to the P-state, changes the P-state,
Adjustment power consumption.
In a kind of implementation of the present embodiment, the adjusting module also includes:
Consumption detection unit, detects whether current total power consumption exceedes the power consumption of setting for the CPU;
Power consumption adjustment unit, if exceeding the power consumption of setting for current total power consumption, repaiies in the P-state
Change in parameter, change the value of the P-state, operating voltage and frequency are adjusted, until current total power consumption is small
In the power consumption of setting.
Device provided in an embodiment of the present invention can be applied in foregoing corresponding embodiment of the method, details referring to
The description of above-described embodiment, will not be repeated here.
Through the above description of the embodiments, it is apparent to those skilled in the art that this hair
It is bright to add the mode of required common hardware by software to realize.Described program can be stored in and can read
In storage medium, described storage medium, such as random access memory, flash memory, read-only storage, it is programmable only
Read memory, electrically erasable programmable memory, register etc..The storage medium is located at memory, treatment
Device reads the information in memory, the method with reference to described in its hardware performs each embodiment of the invention.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited to
This, any one skilled in the art the invention discloses technical scope in, can readily occur in
Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention
Should be defined by scope of the claims.
Claims (10)
1. a kind of power consumption method of adjustment, it is characterised in that including:
Whether test adaptor accesses;
When couple in adapter, the performance state P-state for supporting all ranks is preserved;
Triggering P-state changes the searched events of parameter;
Using the searched events, P-state modification parameters, and the P-state modification parameters that will be found are searched
It is transferred to CPU.
2. power consumption method of adjustment as claimed in claim 1, it is characterised in that the performance state of all ranks
P-state includes the first performance state P0, second performance state P1 and the third performance state P2,
The operating voltage and frequency of described P0, P1 and P2 are differed.
3. power consumption method of adjustment as claimed in claim 2, it is characterised in that be in the test adaptor
After no access, the power consumption method of adjustment also includes:
When not couple in adapter, the third performance state P2 is preserved.
4. power consumption method of adjustment as claimed in claim 1, it is characterised in that utilizing the searched events,
P-state modification parameters are searched, and the P-state modifications parameter that will be found is transferred to after CPU, it is described
Power consumption method of adjustment, also includes:
The CPU changes parameter according to the P-state, changes the P-state, adjusts power consumption.
5. power consumption method of adjustment as claimed in claim 4, it is characterised in that the CPU is according to
P-state changes parameter, changes the P-state, adjusts power consumption, specially:
The CPU detects whether current total power consumption exceedes the power consumption of setting;
If current total power consumption exceedes the power consumption of setting, in P-state modification parameters, modification is described
The value of P-state, adjusts operating voltage and frequency, until power consumption of the current total power consumption less than setting.
6. a kind of power consumption adjusting apparatus, it is characterised in that including:
Whether detection module, access for test adaptor;
First preserving module, for when couple in adapter, preserving the performance state P-state for supporting all ranks;
Trigger module, the searched events of parameter are changed for triggering P-state;
Transfer module, for utilizing the searched events, searches P-state modification parameters, and will find
P-state modifications parameter is transferred to CPU.
7. power consumption adjusting apparatus as claimed in claim 6, it is characterised in that the performance state P-state of all ranks
Including the first performance state P0, second performance state P1 and the third performance state P2, the P0,
The operating voltage and frequency of P1 and P2 are differed.
8. power consumption adjusting apparatus as claimed in claim 7, it is characterised in that the power consumption adjustment path insertion
Module, also includes:
Second preserving module, for when not couple in adapter, preserving the third performance state P2.
9. power consumption adjusting apparatus as claimed in claim 6, it is characterised in that the power consumption adjusting apparatus, also
Including:
Adjusting module, parameter is changed for the CPU according to the P-state, changes the P-state,
Adjustment power consumption.
10. power consumption adjusting apparatus as claimed in claim 9, it is characterised in that the adjusting module, also wrap
Include:
Consumption detection unit, detects whether current total power consumption exceedes the power consumption of setting for the CPU;
Power consumption adjustment unit, if exceeding the power consumption of setting for current total power consumption, repaiies in the P-state
Change in parameter, change the value of the P-state, operating voltage and frequency are adjusted, until current total power consumption is small
In the power consumption of setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772775.5A CN106708239A (en) | 2015-11-12 | 2015-11-12 | Method and device for adjusting power consumption |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772775.5A CN106708239A (en) | 2015-11-12 | 2015-11-12 | Method and device for adjusting power consumption |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106708239A true CN106708239A (en) | 2017-05-24 |
Family
ID=58929748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510772775.5A Pending CN106708239A (en) | 2015-11-12 | 2015-11-12 | Method and device for adjusting power consumption |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708239A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108983946A (en) * | 2018-06-13 | 2018-12-11 | 烽火通信科技股份有限公司 | A kind of server energy consumption control method, system and equipment |
CN112558747A (en) * | 2020-11-20 | 2021-03-26 | 山东云海国创云计算装备产业创新中心有限公司 | Power capping method, system and related components of server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104049217A (en) * | 2014-06-30 | 2014-09-17 | 深圳市中兴移动通信有限公司 | Detection method and device for use time of remaining capacity of battery |
CN104516470A (en) * | 2013-09-26 | 2015-04-15 | 鸿富锦精密工业(深圳)有限公司 | Server power dissipation control method and system |
CN104781755A (en) * | 2012-12-19 | 2015-07-15 | 英特尔公司 | System and method for providing for power savings in a processor environment |
-
2015
- 2015-11-12 CN CN201510772775.5A patent/CN106708239A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104781755A (en) * | 2012-12-19 | 2015-07-15 | 英特尔公司 | System and method for providing for power savings in a processor environment |
CN104516470A (en) * | 2013-09-26 | 2015-04-15 | 鸿富锦精密工业(深圳)有限公司 | Server power dissipation control method and system |
CN104049217A (en) * | 2014-06-30 | 2014-09-17 | 深圳市中兴移动通信有限公司 | Detection method and device for use time of remaining capacity of battery |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108983946A (en) * | 2018-06-13 | 2018-12-11 | 烽火通信科技股份有限公司 | A kind of server energy consumption control method, system and equipment |
CN108983946B (en) * | 2018-06-13 | 2021-04-27 | 烽火通信科技股份有限公司 | Server power consumption control method, system and equipment |
CN112558747A (en) * | 2020-11-20 | 2021-03-26 | 山东云海国创云计算装备产业创新中心有限公司 | Power capping method, system and related components of server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8631255B2 (en) | Method, system and apparatus for dynamic buffer management for power saving | |
KR101056322B1 (en) | Convergence Devices Using Power Indicator-Based Dynamic Program Throttling | |
US8171319B2 (en) | Managing processor power-performance states | |
US8788777B2 (en) | Memory on-demand, managing power in memory | |
EP3440531B1 (en) | Enhanced dynamic clock and voltage scaling (dcvs) scheme | |
US8862824B2 (en) | Techniques for managing power and performance of multi-socket processors | |
US9601180B2 (en) | Automatic partial array self-refresh | |
JP6276470B2 (en) | System and method for reducing standby power of volatile memory in portable computing devices | |
CN103543815A (en) | Information processing apparatus and information processing method | |
EP3819773A1 (en) | Data prefetching method and terminal device | |
CN104011618A (en) | A method, apparatus, and system for energy efficiency and energy conservation through dynamic management of memory and input/output subsystems | |
US10157657B2 (en) | Selective refresh with software components | |
US8391096B2 (en) | Power supply system for memories | |
US9323307B2 (en) | Active display processor sleep state | |
US10620687B2 (en) | Hybrid power management approach | |
CN106708239A (en) | Method and device for adjusting power consumption | |
CN109375543B (en) | DVS voltage management device, DVS voltage management system, DVS voltage management method, storage medium, and computer device | |
CN105320244A (en) | Input-output device management using dynamic clock frequency | |
CN113867963A (en) | Electronic equipment and processing method | |
US11907040B2 (en) | Memory power management method and processor system | |
CN107613546B (en) | BLE chip, control method of designated element in BLE chip and Bluetooth low-power-consumption equipment | |
EP4022446B1 (en) | Memory sharing | |
US10832132B2 (en) | Data transmission method and calculation apparatus for neural network, electronic apparatus, computer-readable storage medium and computer program product | |
JP2003150283A (en) | Power controller and power control method | |
WO2024021657A1 (en) | Storage control method and apparatus, device, storage medium, chip, and memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 518000 computer building of the Great Wall, Nanshan District science and Technology Park, Shenzhen, Guangdong Applicant after: China the Great Wall science and technology group Limited by Share Ltd Address before: 518000 the Great Wall computer building, 3 FA FA Road, Nanshan District science and Technology Park, Guangdong, Shenzhen Applicant before: China Changcheng Computer Shenzhen Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |