欢迎来到天天文库
浏览记录
ID:34933499
大小:631.08 KB
页数:27页
时间:2019-03-14
《The Memory System-II.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、SFTW230:SystemsandNetworksIComputerOrganizationTopicscovered:Chapter5.TheMemorySystem(II)Dr.WUWen,FST,UMOutlineßInterleavingmemoryaccessacrossmemorymodulesßVirtualmemoriesßSecondarystoragedevices15.6.1InterleavingßThemainmemoryisstructuredasacollectionofphy
2、sicallyseparatemodules.Eachmodulehasitsownaddressanddatabufferregister(ABR&DBR).……MainmemoryßWehopetheaddressoffetchingdatacanbeevenlydistributed-->severalmodulesarekeptbusyduringtheexecutionprocess.Thisiscalled“interleavingmemoryaccesses”acrossseveralmemor
3、ymodules.2InterleavingßHowtolettheaddressesdistributeoverthemodules?©Twopossibleaddresslayouts.©Whichschemebelowcanbeinterleaved?©Interleavingmemoryaccessescanhideaccesslatency•FasteraccesstoablockofdataIninterleaved•Higheraverageuseofthememorysystemstructu
4、re,theremustbe2kmodules.3Example:theeffectofinterleavingissubstantialßSupposewehaveacachewith8words/blockOnareadmiss,weneedtoloadablockofdatafrommainmemory.What’sthetimeneeded?©Ittakes1clockcycletosendanaddresstothemainmemoryandonetosendbacktocache.DRAMallo
5、wsthefirstwordtobeaccessedin8cycles,andsubsequentwordsoftheblockareaccessedin4cyclesperwordA.Forsinglememorymodule:1+8+(7x4)+1=38cyclesprocessorcachememory4Example:theeffectofinterleavingissubstantialB.Forinterleavedscheme,thememoryisconstructedas4interleav
6、edmodulesßSendaddresses(1),all4modulesaccesstherequireddata(8cycles)ßTransferback(4cycles),atthesametime,thenextwordineachmoduleisaccessedß4cyclestotransferthemtocache1+8+4+4=17cycles.181181181Interleavingreduces181theblocktransfertime141bymorethanafactor14
7、1141of2.14155.7VirtualmemoriesßVirtualmemorytechnique©Themainmemorycanactasa“cache”forthesecondarystorage(magneticdisks).ßThephysicalmainmemoryinacomputerislimited©Alargeprogram•Itcannotcompletelyloadintothemainmemorytorunatonce.•Partsarestoredonsecondaryst
8、orage.•Whenanewpieceofaprogramistobetransferredintothemainmemory–Mainmemoryisfull->Someotherpiecemustbereplaced•Thenalleventuallyarebroughtintothemainmemory(usingDMA)asneeded©Operatingsystemautomatical
此文档下载收益归作者所有