資源描述:
《英文版--存儲(chǔ)系統(tǒng)(參考)ppt課件.ppt》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、Chapter6Memoryfenlei.wdsxx.com分類信息news.wdsxx.com新聞2Chapter6ObjectivesMastertheconceptsofhierarchicalmemoryorganization.Understandhoweachlevelofmemorycontributestosystemperformance,andhowtheperformanceismeasured.Mastertheconceptsbehindcachememory,virtualmem
2、ory,memorysegmentation,pagingandaddresstranslation.fenlei.wdsxx.com分類信息news.wdsxx.com新聞36.1IntroductionMemoryliesattheheartofthestored-programcomputer.Inpreviouschapters,westudiedthecomponentsfromwhichmemoryisbuiltandthewaysinwhichmemoryisaccessedbyvarious
3、ISAs.Inthischapter,wefocusonmemoryorganization.Aclearunderstandingoftheseideasisessentialfortheanalysisofsystemperformance.fenlei.wdsxx.com分類信息news.wdsxx.com新聞46.2TypesofMemoryTherearetwokindsofmainmemory:randomaccessmemory,RAM,andread-only-memory,ROM.Ther
4、earetwotypesofRAM,dynamicRAM(DRAM)andstaticRAM(SRAM).DynamicRAMconsistsofcapacitorsthatslowlyleaktheirchargeovertime.Thustheymustberefreshedeveryfewmillisecondstopreventdataloss.DRAMis“cheap”memoryowingtoitssimpledesign.fenlei.wdsxx.com分類信息news.wdsxx.com新聞
5、56.2TypesofMemorySRAMconsistsofcircuitssimilartotheDflip-flopthatwestudiedinChapter3.SRAMisveryfastmemoryanditdoesn’tneedtoberefreshedlikeDRAMdoes.Itisusedtobuildcachememory,whichwewilldiscussindetaillater.ROMalsodoesnotneedtoberefreshed,either.Infact,itne
6、edsverylittlechargetoretainitsmemory.ROMisusedtostorepermanent,orsemi-permanentdatathatpersistsevenwhilethesystemisturnedoff.fenlei.wdsxx.com分類信息news.wdsxx.com新聞66.3TheMemoryHierarchyGenerallyspeaking,fastermemoryismoreexpensivethanslowermemory.Toprovideth
7、ebestperformanceatthelowestcost,memoryisorganizedinahierarchicalfashion.Small,faststorageelementsarekeptintheCPU,larger,slowermainmemoryisaccessedthroughthedatabus.Larger,(almost)permanentstorageintheformofdiskandtapedrivesisstillfurtherfromtheCPU.fenlei.w
8、dsxx.com分類信息news.wdsxx.com新聞6.3TheMemoryHierarchyThisstorageorganizationcanbethoughtofasapyramid:786.3TheMemoryHierarchyToaccessaparticularpieceofdata,theCPUfirstsendsarequesttoitsnearestmemory,usuallycache.I