3A CongestionAware Network File System.docx

上传人:b****5 文档编号:8009804 上传时间:2023-01-27 格式:DOCX 页数:25 大小:242.32KB
下载 相关 举报
3A CongestionAware Network File System.docx_第1页
第1页 / 共25页
3A CongestionAware Network File System.docx_第2页
第2页 / 共25页
3A CongestionAware Network File System.docx_第3页
第3页 / 共25页
3A CongestionAware Network File System.docx_第4页
第4页 / 共25页
3A CongestionAware Network File System.docx_第5页
第5页 / 共25页
点击查看更多>>
下载资源
资源描述

3A CongestionAware Network File System.docx

《3A CongestionAware Network File System.docx》由会员分享,可在线阅读,更多相关《3A CongestionAware Network File System.docx(25页珍藏版)》请在冰豆网上搜索。

3A CongestionAware Network File System.docx

3ACongestionAwareNetworkFileSystem

CA-NFS:

ACongestion-AwareNetworkFileSystem

AlexandrosBatsakis

NetApp

JohnsHopkinsUniversity

RandalBurns

JohnsHopkinsUniversity

ArkadyKanevsky

NetApp

JamesLentini

NetApp

ThomasTalpey

NetApp

Abstract

Wedevelopaholisticframeworkforadaptivelyschedulingasynchronousrequestsindistributedfilesystems.Thesystemisholisticinthatitmanagesallresources,includingnetworkbandwidth,serverI/O,serverCPU,andclientandservermemoryutilization.Itaccelerates,defers,orcancelsasynchronousrequestsinordertoimproveapplication-perceivedperformancedirectly.Weemploycongestionpricingviaonlineauctionstocoordinatetheuseofsystemresourcesbythefilesystemclientssothattheycandetectshortagesandadapttheirresourceusage.WeimplementourmodificationsintheCongestion-AwareNetworkFileSystem(CA-NFS),anextensiontotheubiquitousnetworkfilesystem(NFS).OurexperimentalresultshowsthatCA-NFSresultsina20%improvementinexecutiontimeswhencomparedwithNFSforavarietyofworkloads.

1Introduction

Distributedfilesystemclientsconsumeserverandnetworkresourceswithoutconsiderationforhowtheiroperationsinterferewiththeirfuturerequestsandotherclients.Eachclientrequestincursacosttothesystem,expressedinincreasedloadtooneormoreofitsresources.Asmorecapacity,moreworkload,ormoreusersareaddedcongestionrises,andallclientoperationssharethecostindelayedexecution.However,clientsremainoblivioustothecongestionlevelofthesystemresources.

Whenthesystemisundercongestion,networkfileserverstrytomaximizethroughputacrossclients,assumingthattheirbenefitincreaseswiththeflowrate.Thispracticedoesnotcorrespondwellwithapplication-perceivedperformancebecauseitfailstodistinguishtheurgencyandrelativepriorityoffilesystemoperationsacrosstheclientpopulation.Fromtheserver’sperspective,allclientoperationsatanygiventimeareequallyimportant.Thisisafallacy.Filesystemoperationscomeatdifferentprioritiesimplicitly.Whilesomeneedtobeperformedondemand,manycanbedeferred.Synchronousclientoperations(metadata,reads)benefitmorefromtimelyexecutionthanasynchronousoperations(mostwrites,read-aheads),becausetheformerblockthecallingapplicationuntilcompletion.Also,certainasynchronousoperationsaremoreurgentthanothersdependingontheclient’sstate.Forexample,whenaclient’smemoryconsumptionishigh,allofitswriteoperationsbecomesynchronous,leadingtoadegradationinsystemperformance.

Inthispaper,wedevelopaperformancemanagementframeworkfordistributedfilesystemsthatdynamicallyassessessystemload,managessystemresources,andschedulesasynchronousclientoperations.Whenthesystemresourcesapproachcriticalcapacity,weapplypriorityscheduling,preferringblockingtonon-blockingrequests,andpriorityinheritance,e.g.performingwritesthatblockreadsathighpriority,sothatnon-time-critical(asynchronous)I/Otrafficdoesnotinterferewithon-demand(synchronous)requests.Ontheotherhand,ifthesystemloadislow,weperformasynchronousoperationsmoreaggressivelyinordertoavoidthepossibilityofperformingthesameoperationsatalatertime,whentheserverresourceswillbecongested.

Theframeworkisbasedonaholisticcongestionpricingmechanismthatincorporatesallcriticalresourcesamongallclientsandservers,fromclientcachestoserverdisksubsystems.Holisticgoesbeyondend-to-endinthatitbalancesresourceusageacrossmultipleclientsandservers.(End-to-endalsoconnotesnetworkendpointsandholisticmanagementgoesfromclientapplicationstoserverdisksystems.)Theholisticapproachallowsthesystemtoaddressdifferentbottlenecksindifferentconfigurationsandrespondtochangingresourcelimitationsovertime.

Serversencodetheirresourceconstraintsbyincreasingordecreasingthepriceofasynchronousreadsandwritesinthesysteminorderto“pushback”atclients.Astheserverpricesincrease,theclientsthatarenotresourceconstrainedwilldeferasynchronousoperationsforalatertimeand,thus,reducetheirpresentedload.ThishelpstoavoidcongestioninthenetworkandserverI/Osystemcausedbynon-criticaloperations.

Theunderlyingpricingalgorithm,basedonresourceutilization,providesalog-kcompetitivesolutiontoresourcepricingwhencomparedwithanofflinealgorithmthat“knows”allfuturerequests.Incontrasttoheuristicmethodsformovingthresholds,thisapproachissystemandworkloadindependent.

WeevaluateourproposedchangesinCA-NFS(Congestion-AwareNetworkFileSystem),anextensionoftheNFSprotocol,implementedasmodificationstotheLinuxNFSclient,server,andmemorymanager.ExperimentalresultsshowthatCA-NFSoutperformsNFSandimprovesapplication-perceivedperformancebymorethan20%inawidevarietyofworkloads.

2SystemOperation

Inthissection,wegivetheintuitionbehindschedulingasynchronousoperationsandtheeffectthesehaveonsystemresourceutilization.Wethendemonstratehowclientsadapttheirbehaviorusingpricingandauctions.

2.1AsynchronousWrites

Theeffectivenessofasynchronouswriteoperationsdependsontheclient’scurrentmemorystate.Writesareasynchronousonlyifthereisavailablememory;asystemthatcannotallocatememorytoawrite,blocksthatwriteuntilmemorycanbefreed.Thishampersperformanceseverelybecauseallsubsequentwritesbecomeeffectivelysynchronous.Italsohasanadverseeffectonreads.Allpendingwritesthatmustbewrittentostorageinterferewithconcurrentreads,whichresultsinqueuingdelaysatthenetworkanddisk.

CA-NFSchangesthewaythatasynchronouswritesareperformedcomparedtoregularNFS.NFSclientswritedatatotheserver’smemoryimmediatelyuponreceivingawrite()systemcallandalsobufferthewritedatainlocalmemory.Thebufferedpagesaremarkedasdirtyatboththeclientandtheserver.Tohardenthesedatatodisk,theclientsendsacommitmessagetotheserver.Thedecisionofwhentocommitthedatatotheserverdependsonseveralfactors.Traditionally,systemsusedaperiodicupdatepolicyinwhichindividualdirtyblocksareflushedwhentheiragereachesapredefinedlimit[32].Modernsystemsdestagedirtypageswhenthenumberofdirtypagesinmemoryexceedsacertainpercentage(flushingpoint),whichistypicallyasmallfractionoftheavailablememory(e.g10%).Then,adaemonwakesupandstartsflushingdirtypagesuntilanadequatenumberofpageshavereachedstablestorage.

IncontrasttoregularNFS,CA-NFSclientsadapttheirasynchronouswritebehaviorbyeitherdeferringoracceleratingawrite.CA-NFSclientsacceleratewritesbyforcingtheCA-NFSservertosyncthedatatostablestoragesothattheclientdoesnotneedtobufferallofthecorrespondingdirtypages.Theideabehindwriteaccelerationisthatiftheserverresourceutilizationislow,thereisnoneedtodeferthecommittoalatertime.Also,clientsmayelecttoacceleratewritesinordertopreservetheircachecontentsandmaintainahighcachehitrate.Notethatacceleratingawritedoesnotmakethewriteoperationsynchronous.Instead,itinvokesthewrite-backdaemonattheclientimmediately.

Writeaccelerationpossiblyincreasestheserverdiskutilizationandusesnetworkbandwidthimmediately.Inwrite-behindsystems,manywritesarecanceledbeforetheyreachtheserver[5, 34],e.g.writingthesamefilepagerepeatedly,orcreatinganddeletingatemporaryfile.Thus,theloadimposedtotheserverasaresultofwriteaccelerationcouldbeavoided.However,writeaccelerationhasalmostnonegativeeffectonsystemperformance,becauseCA-NFSaccelerateswritesonlywhentheserverloadislow.

Deferringawriteavoidscopyingdirtydatatoservermemoryuponreceivingawriterequest.Instead,clientskeepdatainlocalmemoryonly,untilthepriceofusingtheserverresourcesislow.Clientspriceasynchronouswritesbasedontheirabilitytocachewrites,i.e.availablememory.Aclientwithscarcememory,becauseofwritedeferral,willincreaseitslocalpriceforwritessothatitsbufferedpageswillbetransferredtotheserverassoonaspossible.Tomakewritedeferralpossible,wemodifytheoperationofthewrite-backdaemonontheclientsbydynamicallychangingtheflushingpointvaluebasedonthepricingmechanismtodictatewhenthewrite-backofdirtypagesshouldbegin.

Deferringawriteconsumesclientmemorywithdirtypages,savesservermemory,anddelaystheconsumptionofnetworkbandwidthandserverdiskI/O.However,itfacestheriskofimposinghigherlatencyforsubsequentsynchronouscommitoperations.Thisisbecauseafilesyncmayrequireanetworktransferofthedirtybuffersfromtheclienttoservermemory.Notethatdeferringawritedoesnotguaranteethattheserverpriceforthesameoperationwillbelowerinthefuture.Instead,thispolicygivesprioritytooperationsoriginatingfromresource-constrainedclients.

CA-NFSfollowsNFS’sclose-to-openconsistencymodel.DeferringoracceleratingwritesdoesnotviolatetheconsistencysemanticsofNFS,becauseCA-NFSdoesnotchangethesemanticsoftheCOMMIToperation.Asynchronouswrite-backinNFSincludesadeadlinethat,whenitelapses,escalatestheoperationtoasynchronouswrite.CA-NFSdoesthesame.

Theserverpricesasynchronouswritesbasedonitsmemory,diskandnetworkutilization.Iftheservermemorycontainsblocksthatarecurrentlyaccessedbyclients,settinghighpricesforcesclientstodeferwritesinordertopreservecachecontentsandma

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > 公务员考试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1