Memory Systems_第1页
Memory Systems_第2页
Memory Systems_第3页
Memory Systems_第4页
Memory Systems_第5页
已阅读5页,还剩19页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1.3MemorySystems,Chapter1ComputerHardware,1.3MemorySystem,MainpointMemorysystemspecifications存储系统规范Hierarchicalstructureofmemory分级结构存储DevicesandoperationofmemoryRAM(RANDOMACCESSMEMORY)ROM(READONLYMEMORY)CD-ROMCacheMagneticrecordingdevicesMagneticdiskMagnetictape,Keywords,Hierarchicalmemory存储器层次结构Cache高速缓冲存储器,高速缓存Chip芯片On-chipcache单片高速缓存Silicondie硅片Magneticdisk磁盘Mainmemory主存储器Pagedvirtualmemory页式虚拟存储器,Keywords,RANDOMACCESSMEMORY(RAM)随机(访问)存储器ReadOnlyMemory(ROM)只读存储器Boot引导,启动,自举CompactDiskROM(CD-ROM)只读光盘Diskdrive磁盘驱动器Floppydrive(diskette)软磁盘Writeonce,readmany(WORM)一次写多次读Magnetictape磁带,Keywords,Registerfile寄存器组Latency潜伏时间、等待时间Pageframe页帧Realmemory(storage)实存储器DynamicRAM(DRAM)动态随机存储器Benchmark基准测试程序,基准程序,测试标准,基准Volatile易失性Laserstorage激光存储器,1.MemorySystemDesiderata,MemorySystemDesiderataSize:infinitelylarge,noconstraintsonprogramordatasetsizeSpeed:infinitelyfast,latencyequaltothefastestmemorytechnologyavailableCost:theperbitcostshouldapproachthelowest-costtechnologyavailableClearlythesespecificationscannotallbeachievedastheyaremutuallyexclusive.,MemorySystem,However,withthesemiconductor(半导体)andmagneticmemorytechnologyoftoday,thesespecifications(规格、说明书)arecloselyapproximated.(接近的、估计的),2.MemoryHierarchy,CPU,SecondaryCache(L2)256K4MB(10ns),PrimaryCache(L1)64KB4MB(1ns),MainMemory64MB-1024MB(50ns),TapeBackup10GB-10TB(seconds),InternetUnlimited(minutes),Latency(潜伏期)1ns=0.0000000001seconds(nanosecond)Storage1byte=8bits1KB(kilobyte)=1024bytes=(103)bytes1MB(megabyte)=1024KB=(106)bytes1GB(gigabyte)=1024MB=(109)bytes1TB(terabyte)=1024MB=(1012)bytes1PB(petabyte)=1024TB=(1015)bytes1EB(exabyte)=1024PB=(1018)bytes1ZB(zettabyte)=1024EB=(1021)bytes1YB(yottabyte)=1024ZB=(1024)bytes,Faster,Larger,HardDrive50GB-250GB(10ms),Instructionoperands(HW),Blocks(HW),Pages(OS),Files(OS),MemoryHierarchy,BigdataWhatisthesizeoftheInternet8.2billionpagesEverydataabout2.51018bytesofdataarecreatedor2.5EB(exabytes)二的十六次方位元组,MemoryHierarchy,Wecanseethememorygrowsexponentially(以指数形式)insizeanddecreasesexponentiallyinaccesstime.(访问时间)ClosestmemorytotheCPUisthesmallest,typicallyintherangeof1Kbyte10008-bitcharacters(froma0-255charactertable)to1Mbyteofdata(1000000characters).Theseon-chipcachememoriescanhaveaccesstimesasshortasto1nanosecond十亿分之一秒orone-billionth十亿分之一ofasecond.,MemoryHierarchy,Mainmemoryismuchslowerthanon-chipcachememory(L1,L2).Buttheygiveyoumuchmorememoryandarecheaperandupgradable.(能提到更高一级的),MemoryHierarchy,Asabenchmark,(标准检查程序)lightcantravelonefootthroughtheairinonenanosecond.(十亿分之一秒)WecallthiscachetheLevel1orL1cache.Level2orL2cacheisusuallylocatedontheprocessorchipitself.Usuallytakesthebiggestpercentageofthechiparea.Secondarymemorysitsinyourmainmemory.Thesearememorysticksyoucanbuyatacomputershop.,3.PagedVirtualMemory,Pagedvirtualmemoryprovidesthesolutiontothefirstdesideratum(迫切需要的;所愿望之物)ofaverylargememorysbeingavailabletotheprocessor.Withvirtualmemory,theprocessoraddressesthedisk,thelarge,slowendofthehierarchy.ThememoriesbetweentheprocessorandthediskaretheretoincreaseeffectiveperformanceReducelatencyandincreasedbandwidth)oftheveryslowdisk.,3.PagedVirtualMemory,Ifeveryinstructionanddatareferencedweremadetothedisk,theprocessorperformancewouldbeslowindeed.WhyisVirtualMemorysoimportantEarlycomputerswithsmallrealmemoryrequiredthatthetransferofdatabetweenrealmemoryanddiskbemanagedexplicitlybytheoperatingsystemortheuser.,3.PagedVirtualMemoryPageAllocationandAddresstranslation,-Virtualmemoryisdividedintoequal-Sizedgroupscalledpages.Apageinamoderncomputeris1K,2K,4K,8KbytesRealmemoryisalsodividedintothesameequal-sizedgroups,calledPageframes.-WheninformationismovedbetweenVirtualmemoryspaceandrealmemorySpace,acompletepageismoved.ProvidesProtectionTranslationSharing,ContAddresstranslation,Caches,Wenowknowhowvirtualmemoryextendstheaddressspaceofaprocessor.However,thelatencyofrealmemoryistoolongtosupporthigh-performanceprocessor.Evenwiththehigh-speedDRAMsusedforrealmemory,somethingmustbedonetoovercomethislatencyproblem.Addanotherleveltothememoryhierarchy,calledthecache.Allocationofmemoryin3levels(diagram),4.CachesRealmemoryandcacheallocation,RealMemory,VirtualMemory,4.Caches,Blocksof16-32bytesaretakenfrompageframesinrealmemoryandplacedintoblockslotsforaccessbytheprocessor.ForModernprocessors,thecacheusuallyhasalatencyofoneprocessorclock,sothattheinstructionsanddatamaybefetchedwithoutdelayexceptwhenthereferenceditemisnotinthecache.,5.MemoryDevices,RANDOMACCESSMEMORY(RAM)Needspower,lossesinformationwhenthereisnopowerthusvolatileREAD-ONLYMEMORY(ROM)MAGNETICDISKSCD-ROMSMAGNETICTAPE,5.MemoryDevices,RANDOMACCESSMEMORY(RAM)Needspower,lossesinformationwhenthereisnopowerthusvolatileDataisnotpermanentREAD-ONLYMEMORY(ROM)Holdshardwareconfigurations硬件配置(BIOSBasicInput/OutputSystem)HardwiredcannotbechangedCriticalprogramsforstartingupacomputer(booting)SlowerthanRAM,usuallytransferredtoRAM,5.MemoryDevices,MagneticDiskYoutypicalharddriveinyourcomputerCircularplatterwithasmoothsurfacewithacoatingthatcanbemagnetizedSpinsandhasaheadwhichreadsandwritestothedisks.,5.MemoryDevices,CD-ROMs(CompactDiskReadOnlyMemory)Opticaldisksneedthinbeamsofconcentratedlighttostoreandreaddata.Aformoflaserstorage.TwotypesWORMwriteoncereadmanyErasableCanbeerasedandre-written

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论