CN103955266A - Low power consumption design method based on Android mobile Sink load prediction - Google Patents
Low power consumption design method based on Android mobile Sink load prediction Download PDFInfo
- Publication number
- CN103955266A CN103955266A CN201410217174.3A CN201410217174A CN103955266A CN 103955266 A CN103955266 A CN 103955266A CN 201410217174 A CN201410217174 A CN 201410217174A CN 103955266 A CN103955266 A CN 103955266A
- Authority
- CN
- China
- Prior art keywords
- load
- history
- cpu
- power consumption
- 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
Classifications
-
- Y02B60/50—
Landscapes
- Power Sources (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A low power consumption design method based on Android mobile Sink load prediction belongs to a low power consumption design method for a mobile Sink node in a wireless sensor network, and particularly is a low power consumption design method for prediction through CPU load; the method comprises the steps that through a CPU driver of Android, the current load load-cur of a CPU is obtained, a historical load value in a history_load [3] array is updated, whether CPU historical load values history_load [1] equals history_load [2] of the first two time periods of current time period in history_load [3[ array is judged, respective current optimal weights Alpha best are calculated, then a CPU load value load_ next of next time period is obtained through calculation, finally a function _cpufreq_driver_target is called, and the working efficiency of the CPU is adjusted based on the predicated CPU load value load_ next. The low power consumption design method based on the Android mobile Sink load prediction can realize the dynamic adjustment of the weights to further improve predication accuracy so as to select more appropriate CPU calculated frequency to reduce power consumption.
Description
Technical field
The low power consumption design method that moves Sink load estimation based on Android belongs to the mobile Sink node low power consumption design method in wireless sensor network, the low power consumption design method of especially predicting by cpu load.
Background technology
At present, aspect cpu load prediction, what the system based on Android adopted is very simple and practical PAST algorithm, yet the cpu load predicated error of this algorithm is larger, thereby the frequency of most suitable CPU work can not be selected according to the load of prediction, so cannot reduce power consumption in guaranteed performance; In order to improve load estimation precision, the exponential average of Weight number adaptively (Dynamic Exponential average, DEXP) algorithm is suggested and carries out cpu load prediction, precision of prediction increases, but the peak value place that loads on of this algorithm predicts changes milder, error is still larger, although reduced power consumption, take that to sacrifice performance be cost; In order further to improve load estimation precision, linear prediction (Linear Prediction, LP) algorithm has been carried out, although this algorithm has improved load estimation precision effectively, but its weights are fixed, can not dynamically adjust with the variation of load, cannot guarantee that its weight is current optimum.
Summary of the invention
In order to address the above problem, the invention discloses a kind of low power consumption design method that moves Sink load estimation based on Android, the method can realize the dynamic adjustment of weights, further improves load estimation precision, thereby selects more suitably CPU calculated rate to reduce power consumption.
The object of the present invention is achieved like this:
The low power consumption design method that moves Sink load estimation based on Android, comprises the following steps:
Step 1: obtain the load load_cur of current C PU by the CPU driver of Android, enter step 2;
Step 2: the cpu load load_cur that obtains by step 1 upgrades history_load[3] historical load value in array, update mode is history_load[1] assignment is to history_load[2], history_load[0] assignment is to history_load[1], load_cur assignment is to history_load[0], make history_load[3] preserve all the time the cpu load value of current slot and the first two time period in array, enter step 3;
Step 3: judge history_load[3] the first two time period cpu load history value history_load[1 of current slot in array] and history_load[2] whether equate, if:
To ask current optimum weights α by following formula
best,
No, set α
bestvalue be 0.5,
Enter step 4;
Step 4: the α that utilizes step 3 to obtain
best, by the load value of following formula prediction next time period of CPU,
load_next=α
best×history_load[0]+(1-α
best)history_load[1]
Obtain, after the cpu load value load_next of next time period, entering step 5;
Step 5: call _ _ cpufreq_driver_target function, regulate CPU frequency of operation according to the cpu load value load_next of prediction.
The present invention is based on Android and move the low power consumption design method of Sink load estimation, can realize the dynamic adjustment of weights, further improve load estimation precision, thereby select more suitably CPU calculated rate to reduce power consumption.
Accompanying drawing explanation
Fig. 1 the present invention is based on the low power consumption design method process flow diagram that Android moves Sink load estimation.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the invention is described in further detail.
The present embodiment based on Android, move the low power consumption design method of Sink load estimation, process flow diagram is as shown in Figure 1.The method comprises the following steps:
Step 1: obtain the load load_cur of current C PU by the CPU driver of Android, enter step 2;
Step 2: the cpu load load_cur that obtains by step 1 upgrades history_load[3] historical load value in array, update mode is history_load[1] assignment is to history_load[2], history_load[0] assignment is to history_load[1], load_cur assignment is to history_load[0], make history_load[3] preserve all the time the cpu load value of current slot and the first two time period in array, enter step 3;
Step 3: judge history_load[3] the first two time period cpu load history value history_load[1 of current slot in array] and history_load[2] whether equate, if:
To ask current optimum weights α by following formula
best,
No, set α
bestvalue be 0.5,
Enter step 4;
Step 4: the α that utilizes step 3 to obtain
best, by the load value of following formula prediction next time period of CPU,
load_next=α
best×history_load[0]+(1-α
best)history_load[1]
Obtain, after the cpu load value load_next of next time period, entering step 5;
Step 5: call _ _ cpufreq_driver_target function, regulate CPU frequency of operation according to the cpu load value load_next of prediction.
Above step is done to finer explanation: the frequency adjustment work of Android system all completes in CPUFreq subsystem, in this subsystem, defined conservative, ondemand, userspace, five kinds of frequency modulation strategies of powersave and performance (cpufreq_policy), every kind of strategy has the frequency modulator (cpufreq_governor) of oneself, these frequency modulators all can call the work queue of a delay of dbs_timer_init () function initialization, every identical delay, just the work of calculating cpu load is joined in this queue, and cpu load calculating is called dbs_check_cpu () realization by do_dbs_timer (), the realization of SAWDLP algorithm is also in dbs_check_cpu () function, the load value of the current C PU getting in this function is cur_load, load Weight number adaptively linear prediction algorithm code is as follows:
For fear of real arithmetic, when calculating optimum weights, amplified 10 times, then when prediction load, dwindle 10 times.Next_load is the cpu load value of next time period of prediction, by this load, selects then a call _ _ cpufreq_driver_target function of suitable frequency to realize frequency modulation and operate.
Contrast with existing method, result shows: the cpu load value of the linear prediction algorithm prediction by Weight number adaptively of the present invention is compared percentage error with actual cpu load be 20.03%, than PAST algorithm 55.01%, 20.24% and DEXP algorithm of LP algorithm 22.65% all low.
Claims (1)
1. based on Android, move the low power consumption design method of Sink load estimation, it is characterized in that, comprise the following steps:
Step 1: obtain the load load_cur of current C PU by the CPU driver of Android, enter step 2;
Step 2: the cpu load load_cur that obtains by step 1 upgrades history_load[3] historical load value in array, update mode is history_load[1] assignment is to history_load[2], history_load[0] assignment is to history_load[1], load_cur assignment is to history_load[0], make history_load[3] preserve all the time the cpu load value of current slot and the first two time period in array, enter step 3;
Step 3: judge history_load[3] the first two time period cpu load history value history_load[1 of current slot in array] and history_load[2] whether equate, if:
To ask current optimum weights α by following formula
best,
No, set α
bestvalue be 0.5,
Enter step 4;
Step 4: the α that utilizes step 3 to obtain
best, by the load value of following formula prediction next time period of CPU,
load_next=α
best×history_load[0]+(1-α
best)history_load[1]
Obtain, after the cpu load value load_next of next time period, entering step 5;
Step 5: call _ _ cpufreq_driver_target function, regulate CPU frequency of operation according to the cpu load value load_next of prediction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410217174.3A CN103955266B (en) | 2014-05-22 | 2014-05-22 | The low power consumption design method of Sink load estimation is moved based on Android |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410217174.3A CN103955266B (en) | 2014-05-22 | 2014-05-22 | The low power consumption design method of Sink load estimation is moved based on Android |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103955266A true CN103955266A (en) | 2014-07-30 |
CN103955266B CN103955266B (en) | 2016-09-14 |
Family
ID=51332551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410217174.3A Expired - Fee Related CN103955266B (en) | 2014-05-22 | 2014-05-22 | The low power consumption design method of Sink load estimation is moved based on Android |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103955266B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016058149A1 (en) * | 2014-10-16 | 2016-04-21 | 华为技术有限公司 | Method for predicting utilization rate of processor, processing apparatus and terminal device |
CN108509324A (en) * | 2017-02-28 | 2018-09-07 | 通用汽车环球科技运作有限责任公司 | The system and method for selecting computing platform |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6278421B1 (en) * | 1996-11-06 | 2001-08-21 | Fujitsu Limited | Method and apparatus for controlling power consumption of display unit, display system equipped with the same, and storage medium with program stored therein for implementing the same |
WO2006026649A2 (en) * | 2004-08-31 | 2006-03-09 | Qualcomm Incorporated | Dynamic clock frequency adjustment based on processor load |
CN1968490A (en) * | 2006-06-27 | 2007-05-23 | 华为技术有限公司 | Cell load forecasting method |
CN101639793A (en) * | 2009-08-19 | 2010-02-03 | 南京邮电大学 | Grid load predicting method based on support vector regression machine |
CN102902203A (en) * | 2012-09-26 | 2013-01-30 | 北京工业大学 | Time series prediction and intelligent control combined online parameter adjustment method and system |
-
2014
- 2014-05-22 CN CN201410217174.3A patent/CN103955266B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6278421B1 (en) * | 1996-11-06 | 2001-08-21 | Fujitsu Limited | Method and apparatus for controlling power consumption of display unit, display system equipped with the same, and storage medium with program stored therein for implementing the same |
WO2006026649A2 (en) * | 2004-08-31 | 2006-03-09 | Qualcomm Incorporated | Dynamic clock frequency adjustment based on processor load |
CN1968490A (en) * | 2006-06-27 | 2007-05-23 | 华为技术有限公司 | Cell load forecasting method |
CN101639793A (en) * | 2009-08-19 | 2010-02-03 | 南京邮电大学 | Grid load predicting method based on support vector regression machine |
CN102902203A (en) * | 2012-09-26 | 2013-01-30 | 北京工业大学 | Time series prediction and intelligent control combined online parameter adjustment method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016058149A1 (en) * | 2014-10-16 | 2016-04-21 | 华为技术有限公司 | Method for predicting utilization rate of processor, processing apparatus and terminal device |
CN105706022A (en) * | 2014-10-16 | 2016-06-22 | 华为技术有限公司 | Method for predicting utilization rate of processor, processing apparatus and terminal device |
CN105706022B (en) * | 2014-10-16 | 2019-04-19 | 华为技术有限公司 | A kind of method, processing unit and the terminal device of prediction processor utilization rate |
CN108509324A (en) * | 2017-02-28 | 2018-09-07 | 通用汽车环球科技运作有限责任公司 | The system and method for selecting computing platform |
CN108509324B (en) * | 2017-02-28 | 2021-09-07 | 通用汽车环球科技运作有限责任公司 | System and method for selecting computing platform |
Also Published As
Publication number | Publication date |
---|---|
CN103955266B (en) | 2016-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111010725B (en) | Energy-saving control method, device, equipment and medium for cell | |
EP3716164A1 (en) | Predictive power usage monitoring | |
KR101818731B1 (en) | Enery optimization control system applied to pump facility and enery optimization control method using the same | |
WO2015011534A3 (en) | Control device and control method for electrical storage device | |
CN104457073A (en) | Frequency conversion control method | |
WO2018085410A3 (en) | Variable ratio charge pump with peak current and average current limiting circuitry | |
CN111972991B (en) | Hot water treatment device and control method and device thereof | |
CN103955266A (en) | Low power consumption design method based on Android mobile Sink load prediction | |
CN112954707A (en) | Energy saving method and device for base station, base station and computer readable storage medium | |
US20150241942A1 (en) | Systems and methods for power optimization using throughput feedback | |
WO2013184063A3 (en) | Other cell interference estimation | |
CN104009629B (en) | Configurable DC-DC converter | |
Nagahara et al. | Hands-off control as green control | |
CN112132313B (en) | Water level prediction method, device and storage medium | |
Ko et al. | Energy efficient mobile computation offloading via online prefetching | |
US20130329819A1 (en) | Method, Radio Unit and Radio Base Station for Adjusting Thresholds for Crest Factor Reduction | |
Choi et al. | Cell on/off parameter optimization for saving energy via reinforcement learning | |
CN104883725B (en) | Network energy-saving method based on website actual loading in a kind of long-term evolving network | |
CN111158454A (en) | Low-power consumption method and device for real-time embedded operating system | |
CN112836894B (en) | Converter optimization method, system, computer equipment and storage medium | |
CN109286971B (en) | Power control method and device based on DSP processing | |
AU2021101381A4 (en) | Energy-efficient prediction system for data aggregation in sensor network | |
CN101986753B (en) | Increment iteration power allocation method | |
GB2593355A (en) | Reservoir simulation systems and methods to dynamically improve performance of reservoir simulations | |
CN106912088B (en) | A kind of control method and device of small base station dormancy |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160914 Termination date: 20170522 |