DISTRIBUTION STATEMENT First issue 35 copies. SUPP

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TECHNICALREPORT94-8RandomizedOn-lineAlgorithmsforthePageReplicationProblemHisashiKoga(Univ.ofTokyo)April6,1994TDepartmentofInformationScienceFacultyofScience,UniversityofTokyo7{3{1Hongo,Bunkyo-KuTokyo,113JapanTECHNICALREPORT94-8TITLERandomizedOn-lineAlgorithmsforthePageReplicationProblemAUTHORSHisashiKoga(Univ.ofTokyo)KEYWORDSANDPHRASESCompetitiveanalysis,Distributedsharedmemory,Pagereplication,On-linealgo-rithmPotentialfunctionABSTRACTInadistributedsharedmemoryconsistingofmultipleprocessors,eachofwhichhasitsownlocalmemories,eachread-onlypageneedstobelocatedatappropriateprocessorsbyreplicationsoastomakethetotalcostlower.Thepurposeofthepagereplicationproblemistoimplementthislow-costlocating.Thispaperconsiderson-linealgorithmsforthisproblemintermsofcompetitiveness,theratioofthecostofon-linealgorithmstothatoftheo-lineoptimalalgorithms.Especiallyweapplyrandomizedtechniquesdevelopedforthepagemigrational-gorithmstothepagereplicationproblem.Asaresult,wendrandomizedalgo-rithmsfortreeswhichbreakthedeterministiclowerbound.Moreover,memorylesscoin-ippingalgorithmsareinvestigated.Weprovethatacoin-ippingalgorithmis2-competitivefortrees.Forcircles,wedevelopanewgeneralizedcoin-ippingalgorithmthatis4-competitive.Thisnewalgorithmforcircleshasthelowestcom-petitiveratioamongalreadyknownalgorithms.ANYOTHERIDENTIFYINGINFORMATIONOFTHISREPORTThepreliminaryversionofthispaperwaspresentedatISAAC’93inHongKong.DISTRIBUTIONSTATEMENTFirstissue35copies.SUPPLEMENTARYNOTESREPORTDATEApril6,1994TOTALNO.OFPAGES25WRITTENLANGUAGEEnglishNO.OFREFERENCES13DEPARTMENTOFINFORMATIONSCIENCEFacultyofScience,UniversityofTokyo7-3-1Hongo,Bunkyo-ku,Tokyo113,JapanRandomizedOn-lineAlgorithmsforthePageReplicationProblemHisashiKoga(Univ.ofTokyo)April6,19941IntroductionAcommondesignforasharedmemorymultiprocessorsystemisanetworkofprocessors,eachofwhichhasitsownlocalmemory.Insuchadesign,aprogrammingabstractionofasimpleglobalmemoryissupportedbyavirtualmemorysystemthatdistributesthephysicalpagesamongthelocalmemories.Inadistributedsharedmemorysystem,whenprocessorqwishestoaccessmemoryaddressaofpageb,rstqexamineswhetherthepageiscontainedinitslocalmemory.Ifso,thepageaccessisdonelocallywithnocost.Otherwise,qmustsearchtheprocessorpholdingthepagebandsendamemoryaccessrequesttop.Thentheprocessorprespondstotherequestandthevalueofthelocationaistransmittedbacktoq.Thisactionincursthecostproportionaltothedistancebetweenpandq.Noteeverytimeqaccessesthepage,thispositivecostisrequiredprovidedqdoesnothavethepage.Therefore,ifqrequiresthepageaccesstobsooften,themigration/replicationofafullpageofbmayresultinlowercost,becauseqcanaccessthepageat0cost,afterqhasthepage.Ontheotherhand,movingafullpageincursalargeamountofcommunicationcostproportionaltothepagesize.Inthispaper,wedealwithdistributedsharedmemorysystemswherebroadcast,invalidate,orsnoopingmechanismsarenotallowed.Insuchsystems,awritablepageisrestrictedtohaveonlyonecopytoavoidthedicultyofmaintainingconsistencyamongmultiplecopies.Therefore,forawritablepageitisimportanttoconsiderthepagemigrationproblem.Thepurposeofthisproblemistodeviseresidencystrategiesthatdecidewhichlocalmemoryshouldhavetheonlycopyofthewritablepageinordertoreducetheamountofcommunicationinprocessingasequenceofpage-accessrequests.Onthecontrary,foraread-onlypage,manycopiesmayexistatthesametime,becausetheconsistencycannotbebroken.Therefore,tondresidencystrategiesthatdecidewhichsubsetofthelocalmemoriesshouldcontainthecopyofthepageisessential.Thisproblemiscalledthepagereplicationproblem.Inthispaper,wefocusonon-linealgorithmsforthepagereplicationproblem.Analgorithmissaidtobeon-lineifitprocessesarequestbasedonlyonthatrequestandthepastrequests.Toevaluateon-linealgorithms,weusecompetitiveanalysisintroducedin[13].Roughlyspeaking,anon-linealgorithmAisc-competitiveifforanyrequestsequence,thecostofAtoprocessisnomorethanctimesthecostoftheo-lineoptimalalgorithm.1Thecompetitiveanalysisisinasenseapessimisticapproachbasedonevaluatingtheworst-case,andcanbeaectedbyafewbadexamples.However,byconsideringtheexpectedcostofrandomizedalgorithms,theinuenceofsuchbadexamplesinthecom-petitiveanalysisareweakened.Inthissense,randomizationgivesstrongpowertoon-linealgorithms.Infact,therearemanyon-lineproblemssuchthatrandomizedon-linealgo-rithmsbreakthedeterministiclowerboundofthecompetitiveratio.Thisphenomenonreectstheabovefact.Forthemigrationproblem,BlackandSleator[4]developed3-competitivedetermin-isticon-linealgorithmsforuniformnetworks(completegraphswitheachedgehavingalengthof1)andtreenetworkswitharbitraryedgelength.Theyalsoshowthatnodeterministicon-linealgorithmcannotbebetterthan3-competitiveevenwhenthegraphconsistsofasingleedge.However,Westbrookshowsthatrandomizationcanbeatthede-terministiclowerbound[14].Hegavea5+p174’2:28-competitiverandomizedalgorithmforuniformnetworkswhenthepagesizefactorislarge.Forgeneralgraphs,hedeviseda2.62-competitiverandomizedalgorithm.Inaddition,heprovedthatasimplecoin-ippingalgorithmis3-competitiveagainstanytopologiesofnetworks.SubsequenttoWestbrook’sresult,C

1 / 27
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功