已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 个人安全防护用品使用规范
- 高处作业考试试题及答案
- 肝硬化习题及答案
- 儿童保健科试题及答案
- 船舶安全检查员(综合练习):船舶消防设备试题及答案
- 2026-2027学年上期开学典礼校长致辞
- 群体遗传学与进化论
- 2026年人教版八年级英语第5单元写作测试题及答案
- 部编版初中二年级英语上册第4单元阅读理解专项训练习题及答案
- 江苏省南京市外国语学校八年级英语第7单元测试卷及答案
- 服装设计师作品组绩效衡量表
- 河南省部分高中2026-2027学年高二上学期9月联考数学试卷(含答案)
- 2025“外研社国才杯”“理解当代中国”外语能力综合能力赛项(英语组)模拟样卷
- 2026年河北高考历史真题(试卷+解析)
- 2026秋统编版(新教材)七年级道德与法治上册易错知识点梳理+分课填空自测练习题及答案
- 人教版2026-2027学年高中物理必修第三册第9章-13章期中测试卷(含解析)
- 四上2-3《呼吸的变化》教学课件
- 2025年信息安全工程师考试真题及答案解析
- DB50-T 1672-2024 动物诊疗机构实验室建设与管理指南
- 氧气充装事故应急处理操作规程符合TSG07-2019《许可规则》
- 甄嬛传电子版剧本第01-10集
评论
0/150
提交评论