




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年二级建造师考试题库《法规知识》及答案
- 2025年护士资格考试考试测试题含答案
- 颅脑外伤急救处理流程标准化
- 螃蟹冷链运输管理流程
- 数控专业多维度学生评价体系设计
- 高三数学复习第一轮计划与安排表
- 《夏洛的网》教学讨论与拓展活动
- 2025年超声无损检测设备合作协议书
- 小学数学二年级阶段性测试题汇编
- 全国青少年编程等级考试试卷(初级)2023
- 侵权法考试题及答案
- 第二章 有理数及其运算 单元试卷(含答案)2025-2026学年北师大版七年级数学上册
- 2025年11月中国质量协会质量专业能力考试精益现场管理工程师复习题及答案
- 印刷厂生产报表编制细则
- 幼儿防触电安全知识培训课件
- 仪表阀门培训课件
- 抗凝药物用药护理
- 短视频文化现象辩论稿
- 校园活动摄影技巧
- 《诗经·卫风·淇奥》课件
- 2025年Oqc上岗试题及答案
评论
0/150
提交评论