Guaranteeing real-time requirements with resource-

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

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

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

资源描述

GuaranteeingReal-TimeRequirementswithResource-BasedCalibrationofPeriodicProcessesRichardGerberDepartmentofComputerScienceUniversityofMarylandCollegePark,MD20742USArich@cs.umd.eduSeongsooHongSiliconGraphicsInc.2011N.ShorelineBlvd.(MS:7L-802)MountainView,CA94039USAsshong@engr.sgi.comManasSaksenaDepartmentofComputerScienceConcordiaUniversityMontreal,QuebecH3G1M8Canadamanas@cs.concordia.caInIEEETransactionsonSoftwareEngineering,21(7),July1995AbstractThispaperpresentsacomprehensivedesignmethodologyforguaranteeingend-to-endre-quirementsofreal-timesystems.Applicationsarestructuredasasetofprocesscomponentsconnectedbyasynchronouschannels,inwhichtheendpointsarethesystem’sexternalinputsandoutputs.Timingconstraintsarethenpostulatedbetweentheseinputsandoutputs;theyexpresspropertiessuchasend-to-endpropagationdelay,temporalinput-samplingcorrelation,andallowableseparationtimesbetweenupdatedoutputvalues.Theautomateddesignmethodworksasfollows:Firstnewtasksarecreatedtocorrelaterelatedinputs,andanoptimizationalgorithm,whoseobjectiveistominimizeCPUutilization,transformstheend-to-endrequirementsintoasetofintermediaterateconstraintsonthetasks.Ifthealgorithmfails,arestructuringtoolattemptstoeliminatebottlenecksbytransformingtheapplication,whichisthenre-submittedintotheassignmentalgorithm.Thenalresultisaschedulablesetoffullyperiodictasks,whichcollaborativelymaintaintheend-to-endconstraints.ThisresearchissupportedinpartbyONRgrantN00014-94-10228,NSFgrantCCR-9209333,andNSFYoungInvestigatorAwardCCR-9357850.Anearlierversionofthispaperappearedbythetitleof\GuaranteeingEnd-to-EndTimingConstraintsbyCalibratingIntermediateProcesses,inpreliminaryformintheProceedingsofIEEEReal-TimeSystemSymposium,(December1994).11IntroductionMostreal-timesystemspossessonlyasmallhandfulofinherenttimingconstraintswhichwill\makeorbreaktheircorrectness.Thesearecalledend-to-endconstraints,andtheyareestablishedonthesystems’externalinputsandoutputs.Twoexamplesare:(1)Temperatureupdatesrelyonpressureandtemperaturereadingscorrelatedwithin10ms.(2)Navigationcoordinatesareupdatedataminimumrateof40ms,andamaximumrate80ms.Butwhilesuchend-to-endtimingparametersmayindeedbefewinnumber,maintainingfunction-allycorrectend-to-endvaluesmayinvolvealargesetofinteractingcomponents.Thus,toensurethattheend-to-endconstraintsaresatised,eachofthesecomponentswill,inturn,besubjecttotheirownintermediatetimingconstraints.Inthismannerasmallhandfulofend-to-endconstraintsmay{inevenamodestsystem{yieldagreatmanyintermediateconstraints.Thetaskofimposingtimingparametersonthefunctionalcomponentsisacomplexone,anditmandatessomecarefulengineering.Considerexample(2)above.Inanavionicssystem,a\naviga-tionupdatemayrequiresuchinputsas\currentheading,airspeed,pitch,roll,etc;eachsampledwithinvaryingdegreesofaccuracy.Moreover,theseattributesareusedbyothersubsystems,eachofwhichimposesitsowntolerancetodelay,andpossessesitsownoutputrate.Further,thenav-igationunitmayitselfhaveotheroutputs,whichmayhavetobedeliveredatratesfasterthan40ms,orperhapsslowerthan80ms.Andtotopito,subsystemsmaysharelimitedcomputerresources.Agoodengineerbalancessuchfactors,performsextensivetrade-oanalysis,simulationsandsensitivityanalysis,andproceedstoassigntheconstraints.Theseintermediateconstraintsareinevitablyontheconservativeside,andmoreover,theyareconveyedtotheprogrammersintermsofconstantvalues.Thusascenariolikethefollowingisoftenplayedout:ThedesignengineersmandatethatfunctionalunitsA,BandCexecutewithperiods65ms,22msand27ms,respectively.Theprogrammerscodeupthesystem,andndthatCgrosslyover-utilizesitsCPU;further,theydiscoverthatmostofC’soutputsarenotbeingreadbytheothersubsystems.Andso,theygobacktotheengineersand\negotiatefornewperiods{forexample60ms,10msand32ms.Thisprocessmaycontinueformanyiterations,untilthesystemnallygetsfabricated.Thisscenarioisduetoasimplefact:theend-to-endrequirementsallowmanypossibilitiesfortheintermediateconstraints,andengineersmakewhattheyconsidertobearationalselection.However,thebasisforthisselectioncanonlyincluderoughnotionsofsoftwarestructuringandschedulingpolicies{afterall,manytimesthehardwareisnotevenfabricatedatthispoint!OurApproach.Inthispaperwepresentanalternativestrategy,whichmaintainsthetimingcon-straintsintheirend-to-endformforaslongaspossible.Ourdesignmethoditerativelyinstantiatestheintermediateconstraints,allthewhiletakingadvantageoftheleewayinherentintheend-to-endconstraints.Iftheassignmentalgorithmfailstoproduceafullsetofintermediateconstraints,po-tentialbottlenecksareidentied.Atthispointanapplicationanalysistooltakesover,determinespotentialsolutionstothebottleneck,andifpossible,restructurestheapplicationtoavoidit.The1resultisthenre-submittedintotheassignmentalgorithm.DomainofApplicability.Duetothecomplexityofthegeneralproblem,inthispaperweplacethefollowingrestrictionsontheapplicationsthatwehandle.Restriction1:Weassumeourapplicationspossessthreeclassesoftimingconstraintswhichwecallfreshness,correlationandseparation.Afreshnessconstraint(sometimescalledpropagationdelay)boundsthetimeittakesfordata

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

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

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

×
保存成功