CN103955266B - The low power consumption design method of Sink load estimation is moved based on Android - Google Patents

The low power consumption design method of Sink load estimation is moved based on Android Download PDF

Info

Publication number
CN103955266B
CN103955266B CN201410217174.3A CN201410217174A CN103955266B CN 103955266 B CN103955266 B CN 103955266B CN 201410217174 A CN201410217174 A CN 201410217174A CN 103955266 B CN103955266 B CN 103955266B
Authority
CN
China
Prior art keywords
load
history
cpu
value
power consumption
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.)
Expired - Fee Related
Application number
CN201410217174.3A
Other languages
Chinese (zh)
Other versions
CN103955266A (en
Inventor
景维鹏
陈广胜
刘亚秋
赵青华
吴双满
王春晓
李海涛
孙洋
陈雨佳
胡立坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northeast Forestry University
Original Assignee
Northeast Forestry University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Northeast Forestry University filed Critical Northeast Forestry University
Priority to CN201410217174.3A priority Critical patent/CN103955266B/en
Publication of CN103955266A publication Critical patent/CN103955266A/en
Application granted granted Critical
Publication of CN103955266B publication Critical patent/CN103955266B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • Y02B60/50

Landscapes

  • Power Sources (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The mobile Sink node low power consumption design method that the low power consumption design method of Sink load estimation belongs in wireless sensor network is moved, especially by the low power consumption design method of cpu load prediction based on Android;The method obtains the load load_cur of current CPU by the CPU driver of Android, update the historic load value in history_load [3] array, judge that the first two time period cpu load history value history_load [1] and the history_load [2] of current slot in history_load [3] array are the most equal, and calculate current best initial weights α respectivelybest, then by being calculated cpu load value load_next of subsequent time period, finally call _ _ cpufreq_driver_target function, according to the cpu load value load_next regulation CPU operating frequency of prediction;The present invention moves the low power consumption design method method of Sink load estimation based on Android, it is possible to achieve the dynamic adjustment of weights, improves load estimation precision further, thus selects more suitably CPU to calculate frequency and reduce power consumption.

Description

The low power consumption design method of Sink load estimation is moved based on Android
Technical field
The movement that the low power consumption design method of Sink load estimation belongs in wireless sensor network is moved based on Android Sink node low power consumption design method, especially by the low power consumption design method of cpu load prediction.
Background technology
At present, in terms of cpu load prediction, system based on Android uses the most simple and practical PAST and calculates Method, but the cpu load forecast error of this algorithm is bigger, thus most suitable CPU work can not be selected according to the load of prediction Frequency, so power consumption cannot ensured to reduce while performance;In order to improve load estimation precision, the index of Weight number adaptively Averagely (Dynamic Exponential average, DEXP) algorithm is suggested and carries out cpu load prediction, it was predicted that precision is Improve, but this algorithm predicts be supported at peak value that to change ratio shallower, but error is the biggest, although reduce power consumption with sacrificial Domestic animal performance is cost;In order to improve load estimation precision further, linear prediction (Linear Prediction, LP) algorithm quilt It is contemplated, although this algorithm is effectively improved load estimation precision, but its weights are fixing, it is impossible to load Change and dynamically adjust, it is impossible to ensure that its weight is current optimum.
Summary of the invention
In order to solve the problems referred to above, the invention discloses a kind of low-power consumption moving Sink load estimation based on Android Method for designing, the method can realize the dynamic adjustment of weights, improve load estimation precision further, thus select more suitably CPU calculates frequency and reduces power consumption.
The object of the present invention is achieved like this:
Move the low power consumption design method of Sink load estimation based on Android, comprise the following steps:
Step one: obtained the load load_cur of current CPU by the CPU driver of Android, enters step 2;
Step 2: the cpu load load_cur obtained by step one updates the history in history_load [3] array and bears Load value, update mode is assigned to for history_load [1] is assigned to history_load [2], history_load [0] History_load [1], load_cur are assigned to history_load [0], make to preserve all the time in history_load [3] array Current slot and the cpu load value of the first two time period, enter step 3;
Step 3: judge the first two time period cpu load history value of current slot in history_load [3] array History_load [1] and history_load [2] is the most equal, if:
No, seek current best initial weights by below equation,
It is to setValue be 0.5,
Enter step 4;
Step 4: utilize step 3 to obtain, by the load value of below equation prediction CPU subsequent time period,
After obtaining cpu load value load_next of subsequent time period, enter step 5;
Step 5: call _ _ cpufreq_driver_target function, adjusts according to cpu load value load_next of prediction Joint CPU operating frequency.
The present invention moves the low power consumption design method of Sink load estimation based on Android, it is possible to achieve weights dynamic Adjust, improve load estimation precision further, thus select more suitably CPU to calculate frequency and reduce power consumption.
Accompanying drawing explanation
Fig. 1 is that the present invention moves the low power consumption design method flow chart of Sink load estimation based on Android.
Detailed description of the invention
Below in conjunction with the accompanying drawings the specific embodiment of the invention is described in further detail.
The low power consumption design method moving Sink load estimation based on Android of the present embodiment, flow chart such as Fig. 1 institute Show.The method comprises the following steps:
Step one: obtained the load load_cur of current CPU by the CPU driver of Android, enters step 2;
Step 2: the cpu load load_cur obtained by step one updates the history in history_load [3] array and bears Load value, update mode is assigned to for history_load [1] is assigned to history_load [2], history_load [0] History_load [1], load_cur are assigned to history_load [0], make to preserve all the time in history_load [3] array Current slot and the cpu load value of the first two time period, enter step 3;
Step 3: judge the first two time period cpu load history value of current slot in history_load [3] array History_load [1] and history_load [2] is the most equal, if:
No, seek current best initial weights by below equation,
It is to setValue be 0.5,
Enter step 4;
Step 4: utilize step 3 to obtain, by the load value of below equation prediction CPU subsequent time period,
After obtaining cpu load value load_next of subsequent time period, enter step 5;
Step 5: call _ _ cpufreq_driver_target function, adjusts according to cpu load value load_next of prediction Joint CPU operating frequency.
Above step is done finer explanation: the frequency regulation work of android system is all in CPUFreq subsystem Complete, conservative, ondemand, userspace, powersave and performance five defined in this subsystem Planting chirping strategies (cpufreq_policy), every kind of strategy has the frequency modulator (cpufreq_governor) of oneself, and these are adjusted Frequently device all can call dbs_timer_init () function and initialize a work queue postponed, every identical delay just meter The work calculating cpu load joins in this queue, and cpu load calculates and called dbs_check_cpu by do_dbs_timer () () realizes, and the realization of SAWDLP algorithm is also in dbs_check_cpu () function, the current CPU's got in this function Load value is cur_load, then load Weight number adaptively linear prediction algorithm code is as follows:
/ * renewal historic load */
for(i=1;i>=0;i--)
history_load[i+1] = history_load[i];
history_load[0] = cur_load;
/ * ask best initial weights */
if(history_load [1] != history_load [2])
alpha= 10*( history_load [0]-history_load [2]) /
(history_load [1]-history_load [2]);
else
alpha = 5;
if(alpha > 10)
alpha %= 10;
/ * predict next load */
next_load = (alpha*history_load [0] + (10 - alpha)*history_load [1]) /10;
In order to avoid real arithmetic, amplified 10 times when calculating best initial weights, then reduced 10 when prediction load Times.Next_load is the cpu load value of the subsequent time period of prediction, selects a suitable frequency then by this load Call _ _ cpufreq_driver_target function realize frequency modulation operation.
Contrasting with existing method, result shows: predicted by the linear prediction algorithm of Weight number adaptively of the present invention Cpu load value percentage error compared with actual cpu load is 20.03%, than PAST algorithm 55.01%, LP algorithm The 22.65% of 20.24% and DEXP algorithm will be low.

Claims (1)

1. move the low power consumption design method of Sink load estimation based on Android, it is characterised in that comprise the following steps:
Step one: obtained the load load_cur of current CPU by the CPU driver of Android, enters step 2;
Step 2: the cpu load load_cur obtained by step one updates the historic load in history_load [3] array Value, update mode is assigned to for history_load [1] is assigned to history_load [2], history_load [0] History_load [1], load_cur are assigned to history_load [0], make to preserve all the time in history_load [3] array Current slot and the cpu load value of the first two time period, enter step 3;
Step 3: judge the first two time period cpu load history value of current slot in history_load [3] array History_load [1] and history_load [2] is the most equal, if:
No, seek current best initial weights by below equation,
It is to setValue be 0.5,
Enter step 4;
Step 4: utilize step 3 to obtain, by the load value of below equation prediction CPU subsequent time period,
After obtaining cpu load value load_next of subsequent time period, enter step 5;
Step 5: call _ _ cpufreq_driver_target function, according to the cpu load value load_next regulation of prediction CPU operating frequency.
CN201410217174.3A 2014-05-22 2014-05-22 The low power consumption design method of Sink load estimation is moved based on Android Expired - Fee Related CN103955266B (en)

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 CN103955266A (en) 2014-07-30
CN103955266B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706022B (en) * 2014-10-16 2019-04-19 华为技术有限公司 A kind of method, processing unit and the terminal device of prediction processor utilization rate
US11023351B2 (en) * 2017-02-28 2021-06-01 GM Global Technology Operations LLC System and method of selecting a computational platform

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN103955266A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN102645964B (en) Processor temperature control method and controller
WO2014174412A3 (en) Adaptive outdoor lighting control system based on user behavior
WO2010129958A3 (en) System and method for determining and utilizing customer energy profiles for load control for individual structures, devices, and aggregation of same
TW200632287A (en) System and method for measuring flow
CN103955266B (en) The low power consumption design method of Sink load estimation is moved based on Android
JP2012217332A5 (en)
CN105091217A (en) Intelligent control method for air conditioner
EP2853982A3 (en) Adaptive thermoelectric cooling in a processor
WO2009148776A3 (en) Wireless communication device having deterministic control of foreground access of the user interface
MX2009008111A (en) Implicit drx cycle length adjustment control in lte_active mode.
RU2016133331A (en) METHOD AND DEVICE FOR MANAGING INTELLECTUAL DEVICE
CN104698843A (en) Model prediction control based energy saving control method of data center
WO2015011534A3 (en) Control device and control method for electrical storage device
GB2511020A (en) System and method for efficient service-instance oriented energy management in the internet of things
EP2680145A3 (en) Monitoring of heterogeneous saas usage
EP2525620A4 (en) Method, device and communication system for dormancy timer control
CN103220365A (en) Elastic resource forecasting and building method for cloud computing
CN112954707A (en) Energy saving method and device for base station, base station and computer readable storage medium
Ko et al. Energy efficient mobile computation offloading via online prefetching
CN109803229A (en) A kind of dynamic prediction method and device based on polygon fence and running fix
CN105571064A (en) Method and system for predicting meteorological data
CN108224859A (en) A kind of energy consumption predictor method of cold supply system
CN108224692B (en) Consider the air-conditioning flexible control responding ability prediction technique of outside air temperature prediction error
CN106912088B (en) A kind of control method and device of small base station dormancy
CN101986753B (en) Increment iteration power allocation method

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