已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- YY/T 0910.2-2025医用电气设备医学影像显示系统第2部分:医学影像显示系统的验收和稳定性试验
- 初三政治知识点总结重点知识梳理
- 初中语文古诗词专项练习题(选择+填空+诗句应用含答案)
- 云计算平台支持下的医院成本管控新模式-1
- 2025届高考生物学热点核心卷新高考卷三含解析
- 2025年导师对硕士学位论文学术评语
- 主动脉夹层的药物降压与腔内修复时机
- 太阳视运动专业知识课件
- 临床试验脱落率与中心资质的关联性研究
- 浅谈文件鉴定中复制件鉴定的若干注意问题
- 2025贵阳智慧城市运营发展集团有限公司下属子公司第二批招聘考试笔试参考题库附答案解析
- 小懒熊的信教学课件
- 2025上海市生物医药技术研究院招聘专技人员12人考试笔试备考试题及答案解析
- 2025年天津省考真题及答案
- 泵站安全操作手册
- 2026年国家电网招聘之通信类考试题库300道含答案(综合题)
- 2025年全国高校辅导员素质能力大赛基础知识测试题及答案
- 2025年浙江省事业单位招聘考试教师招聘语文专业知识试卷(初中语文教师)
- 相机运镜基础知识培训课件
- 有机废气除臭剂知识培训课件
- 干部档案审核培训
评论
0/150
提交评论