OntheEnergyConsumptionofDesignPatternsChristianBunseUniversityofAppliedSciencesStralsundZurSchwedenschanze1518435StralsundSebastianStiemerUniversityofAppliedSciencesStralsundZurSchwedenschanze1518435StralsundMarch29,2013Introduction.
Energyisoneofthemostlimitingfactorsforinformation&communicationtechnologiesingeneraland,morespecicallyformobiledevicessuchasSmartphones.
Inmostapplicationscenarios,mobiledevicesdonothaveapermanentpowersupplybutuserechargeablebatteries.
Duetotheincreasinghard-wareperformanceandotherdevicepropertiesenergyrequirementsincreasefurther.
However,softwareuti-lizeshardwareandthereforedirectlyaectstheenergyrequirementsoftheentiresystem.
Energy-awaresoftwaredevelopment,energy-awarealgorithmsandenergy-awaresensorsubstitutionareonlythreeexamplesforrecentresearchthattrytoreduceenergyrequirementsbyoptimizingthesoftwareratherthanthehardware.
Energyconsumptionisanimportantsystemproperty,thathasalreadytobeaddressedintheearlystagesofdevelopment.
Inturn,thisrequiresknowledgeonbest-practicesandstructuresfordevelopingenergy-ecientsoftwaresystems.
Following[1],patternsplaymanyrolesinsoftwaredevelopment:theyprovideacommonvocabulary,re-ducesystemcomplexity,constituteabaseforbuildingreusablesoftware,andactasbuildingblocks.
Itisacom-monbelievethatsoftwarequalityincreasesbypatternapplication.
But,theimpactofapatternontopropertiessuchasperformance,securityorenergyconsumptioniswidelyunknown.
Inthispaper,wecomparetheimpactofdesignpatternsontotheenergyconsumptionofmobile(i.
e.
,smartphonebased)applications.
SmallappsfortheAndroidplatformweredevelopedthateitheruseornotuseaspecicpattern.
TheenergyconsumptionoftheseappswasmeasuredbyusingthePowerTutor-App,developedattheUniversityofMichigan.
Theresultsregardingtheselectedpatternsubset(facade,abstractfactory,observer,decorator,prototype,andtemplatemethod)areinteresting.
Especiallythedecoratorpatternshowasignicantnegativeimpactontoenergyconsumption.
Background.
Theresearchpresentedinthispaperisrootedintheresearcheldsofenergy-awarecomput-ingandenergyrequirementascertainmenttechniques.
Manyenergy-awareapproacheseithertrytoreduceen-ergyneedsbysubstitutinghardwareresources[2],orbybalancingenergyrequirementsandinformationquality[3].
In[4]itisillustratedthatasimplesubstitutionoftheresourcescentralprocessingunit,andmemoryhelpstoreducetheamountofenergyrequired.
Theauthorsof[5]showedthatprocessinglessprecisedatarequireslessenergy,andalsopresentasetupformeasuringtheenergyrequirementsofcoreandmemoryofamicrocontrollerbasedsystem,runningsortingalgorithms.
Energymeasurementforsoftwarecaneitherbebasedonhardwareorsoftware-basedapproaches[6].
[7]providesanapproachforgeneratingenergymodelsformobilesystemsbyusingthesmartbatteryinterfaceaccompaniedbymeanstoachieveaccuracy.
ToolssuchastheNokiaEnergyProlerorPowerTutor[8]enabledeveloperstomonitorpowerconsumption.
Thesetoolsarebasedonanunderlyingcostmodelthat,itself,isderivedbyanalyzingaspecicdevice(i.
e.
NokiaS60).
[9]presentsapowermodelingschemeandanimplementationthatallowsne-grainedenergyaccounting.
Insoftwareengineering,apatternisageneralre-peatablesolutiontoacommonlyoccurringproblem[1].
Apatternisanabstracttemplatethatneedstoberenedandadaptedbeforeitcanbeintegratedintothecode.
Patternsfocusondescriptionsthatcommunicatethereasonsfordesigndecisions.
But,littleisknownabouttheirimpactontosystemproperties[10].
[11]examinestheimpactofusingdesignpatternsontoper-formanceandprovideaprocessforpatternselection.
[12]presentsanapproachformappingsoftwaredesigntopowerconsumptionandanalyzehowdesigndecisionsaectanapplication'senergyusage.
[13]analyzessixdesignpatternsandexploretheeectofthemonenergyconsumptionandperformance.
ExperimentsExistingapproacheshaveshownthatpatternusageimpactsenergyconsumptionatleastwhenitcomestoembeddedsystems[13]orC++basedcode[12].
Thegoalofourresearchwasevaluatingtheimpactofpatternsontotheenergyconsumptionofmo-bilesystemsthatuseJava.
Theunderlyinghypothesisbeingthatusingornotusingaspecicpatternwillsignicantlychangeenergyneeds.
Resultscanthenbeusedasastartingpointforfurtherexplorationinordertoidentifywhyandhowthedesignpatternsimpacten-ergyconsumption.
WeselectedasubsetoftheGammapatterns(facade,abstractfactory,observer,decorator,prototype,andtemplatemethod).
Toevaluatetheim-pactofasinglepatternwedevelopedtwo,comparableapplicationsforeachpatternthateitheruseornotusethepattern.
Implementationlooselyfollowedstandardimplementationsavailableintextbooks.
Energycon-sumptionwasthenmeasuredbyusingthePowerTutorApprunningonvariousphones(NexusOne,GalaxySII,Transformer)wherebyexperimentsandmeasurementswerecoordinatedbyaframework.
Figure1:ExperimentalResultsTable1showstheresultsoftherstexperimentseries.
WhilemeasurementsforpatternssuchasFacade,ObserverorTemplateMethodshownodierence,theresultsforthePrototypeandDecoratorshowalargedierenceintimeandenergyneeds(15,2vs.
35.
4and374vs.
873,8).
Thereasonforthegrossdierencemightbethelargeamountofobjectsinstantiationsandmethodcallsofthepattern-basedsystem.
Thissupportsthendingsof[4]thatmemoryconsumptionusingtheheapaswellasthegarbagecollectorareenergy-intensiveoperationsthatalsohaveanegativeimpactontoperformance.
Althoughinteresting,ourresultscanonlybeusedasanindicatorduetoseveralthreatstovalidity.
Implementationandmeasurementmightnotbegeneralizable.
Thiswarrantsfurtherresearch.
SummaryandConclusions.
Inthispaper,wepre-sentedacasestudythatexaminedtheimpactofdesignpatternapplicationontoasystemsenergyconsumption.
Twogroupsofapps,eitherusingornotusingapattern,weredevelopedandmeasured.
TheresultsforadistinctsubsetoftheGammapatternsshowed,thatespeciallythedecoratorpatternhasanegativeimpactontheen-ergyneedsofanapp.
Duetothelowtemporalresolutionofthesoftwaremeasurementmethod,evaluationswithashortruntimeareerror-proneandtheusedsystemsmightnotberepresentable.
However,theinterpretationoftheevaluationresultssupportsourhypothesisandjustiesfurtherresearch.
Usingpatternsisnotalwaysagoodidea.
Theirselectionshouldnotsolelybebasedontofunctionandstructurebutalsoaccordingotherproperties.
Althoughtheresultsofourstudyarenotgeneralizable,theresultsindicate,thatfurtherresearchiswarrantedthatexaminestheimpactofpatternsre-gardingdierentplatformsandapplications.
Resultscanthenbeusedformeta-analysis.
Duringourstudy,wewereabletosupportourhy-pothesesbut,inturn,alsoidentiedissuesthatwarrantfurtherresearch.
First,therobustnessofourapproachregardingthehardwareplatformhastobeevaluated.
Furthermore,itisinterestingtotakeadeeperlookintothecharacteristicsoftheenergyrequirementsofotherpatternsoridioms.
Resultsmightthenbeusedtodeneanti-patternsregardingsoftwareenergyconsumption.
References[1]E.
Gamma,R.
Helm,R.
E.
Johnson,andJ.
M.
Vlissides,"Designpatterns:Abstractionandreuseofobject-orienteddesign,"inECOOP,1993.
[2]C.
BunseandH.
H¨opfner,"Resourcesubstitutionwithcomponents—optimizingenergyconsumption,"inICSOFT'08Proc.
,pp.
28–35,INSTICC,2008.
[3]J.
P.
Sousa,R.
K.
Balan,andD.
G.
etal,"UserGuidanceofResource-AdaptiveSystems,"inICSOFT'08Proc.
,INSTICC,2008.
[4]C.
Bunse,H.
H¨opfner,S.
Roychoudhury,andE.
Man-sour,"Energyecientdatasortingusingstandardsortingalgorithms,"inSoftwareandDataTechnolo-gies,pp.
247–260,Springer,2011.
[5]H.
H¨opfnerandC.
Bunse,"EnergyAwareDataMan-agementonAVRMicroControllerBasedSystems,"ACMSIGSOFTSEN,vol.
35,May2010.
[6]C.
BunseandH.
H¨opfner,"Ocemes:Measuringoverallandcomponent-basedenergydemandsofmobileandembeddedsystems,"inGI-Jahrestagung,2012.
[7]M.
DongandL.
Zhong,"Self-constructivehigh-ratesystemenergymodelingforbattery-poweredmobilesystems,"inProc.
ofthe9thIntl.
conferenceonMobilesystems,applications&services,ACM,2011.
[8]L.
Zhang,B.
Tiwana,andZ.
Q.
etal.
,"AccurateOnlinePowerEstimationandAutomaticBatteryBehaviorBasedPowerModelGenerationforSmartphones,"inCODES/ISSS'10Proc.
,ACM,2010.
[9]A.
Pathak,Y.
C.
Hu,andM.
e.
a.
Zhang,"Fine-grainedpowermodelingforsmartphonesusingsystemcalltracing,"inProc.
ofthe6thconferenceonComputersystems,ACM,2011.
[10]D.
GrossandE.
S.
K.
Yu,"Fromnon-functionalrequirementstodesignthroughpatterns.
,"Requir.
Eng.
,vol.
6,no.
1,pp.
18–36,2001.
[11]N.
Mani,D.
C.
Petriu,andM.
Woodside,"Towardsstudyingtheperformanceeectsofdesignpatternsforserviceorientedarchitecture,"inProc.
ofthe2ndWOSP/SIPEWintntlconferenceonPerformanceen-gineering,ICPE'11,ACM,2011.
[12]C.
Sahin,F.
Cayci,andI.
L.
M.
e.
a.
Gutierrez,"Initialexplorationsondesignpatternenergyusage,"in1stInternationalWorkshoponGreenandSustainableSoftware(GREENS),ACM,2012.
[13]A.
Litke,K.
Zotos,andE.
C.
etal,"Energyconsumptionanalysisofdesignpatterns,"inProc.
WorldAcademyofScience,Engineering&Technology,2005.
阿里云香港配置图提速啦是成立于2012年的十分老牌的一个商家这次给大家评测的是 阿里云香港 16核32G 20M 这款产品,单单说价格上就是十分的离谱原价8631元/月的现价只要 999元 而且还有个8折循环优惠。废话不多说直接进入正题。优惠时间 2021年8月20日-2021年9月20日 优惠码 wn789 8折优惠阿里云香港BGP专线 16核32G 10M带宽 优惠购买 399元购买链接阿里云...
陆零网络是正规的IDC公司,我们采用优质硬件和网络,为客户提供高速、稳定的云计算服务。公司拥有一流的技术团队,提供7*24小时1对1售后服务,让您无后顾之忧。我们目前提供高防空间、云服务器、物理服务器,高防IP等众多产品,为您提供轻松上云、安全防护 为核心数据库、关键应用系统、高性能计算业务提供云端专用的高性能、安全隔离的物理集群。分钟级交付周期助你的企业获得实时的业务响应能力,助力核心业务飞速成...
vpsdime怎么样?vpsdime是2013年注册的国外VPS主机商,实际上他还有一系列的其他域名站点如Winity.io, Backupsy,Cloudive, Virtora等等,母公司“Nodisto IT”相对来说还是很靠谱了的商家。VPSDime主要提供各种高配低价VPS套餐,其中Linux VPS和存储VPS基于OpenVZ架构,高级VPS基于KVM。VPSDime在上个季度的Low...
nokia最新手机为你推荐
fontfamilyfont-family:"microsoft yahei",simhei; 这句到底设置为微软雅黑还是黑体,为什么写2个字体?快递打印快递单打印时快递单子怎么放置?深圳公交车路线深圳公交车路线flash导航条FLASH导航条 怎么加入链接?开机滚动条开机滚动条太多怎么办?ios7固件下载ios 7及以上固件请在设备上点“信任”在哪点?怎么点亮qq空间图标QQ空间的图标怎么点亮2012年正月十五2012年正月十五上午9点27分出生的女孩儿五行缺什么,命怎么样商标注册查询官网怎么查商标是否注册成功网络广告投放怎样在网络上进行广告的投放?
哈尔滨服务器租用 site5 分销主机 jsp主机 parseerror 免费个人博客 网站被封 灵动鬼影 全站静态化 空间出租 ftp教程 seednet 免费phpmysql空间 免费网页申请 双线机房 空间购买 外贸空间 深圳域名 免费蓝钻 测速电信 更多