[AdaptedfromComputerOrganizationandDesign,Patterson&Hennessy,©2005,UCB]COMPUTERORGANIZATIONANDDESIGN计算机组织与设计TheHardware/SoftwareInterfaceLecturerZhangXiaotong2008-11-30CHAPTER-7LargeandFast:ExploitingMemoryHierarchy2/727.1Introduction7.1IntroductionReview:MajorComponentsofaComputerReview:MajorComponentsofaComputerProcessorControlDatapathMemoryDevicesInputOutput3/727.1Introduction7.1Introduction(bp468)(bp468)本章知识点:计划6学时(涵盖8学时知识点)Conceptionofcache(cache概念)Theprincipleoflocality(局部性原理)(重点)memoryhierarchies(分级存储器体系):principle(原理)、characters(特点)、terminology(术语)(重点)DirectMappedCache(直接映射Cache)(重点)Missrateversusblocksizeofcache(缺失率和cache块大小)(重点)MeasuringandImprovingcacheperformance(度量和提高cache性能)Virtualmemory(虚内存)(重点)TLB(转换后援缓冲器)(了解)注:4/727.1Introduction7.1Introduction(bp468)(bp468)Programmershavewantedunlimited(无限)amountsoffast(快速)memory.Thischapterisaimedtoeliminatetheillusion(假象)ofunlimitedfastmemory.ThekeyprinciplesandmechanismsofmemoryExample:Example:••SupposeyouwereastudentwritingatermpaperonSupposeyouwereastudentwritingatermpaperonimportanthistoricaldevelopmentsincomputerimportanthistoricaldevelopmentsincomputerhardwarehardware…………••YouaresittingYouaresittingatadeskatadeskinalibrarywithinalibrarywithacollectionofacollectionofbooksbooksthatyouhavepulledfromtheselvesthatyouhavepulledfromtheselves((手头有一些手头有一些找到的书找到的书))andareexamining(andareexamining(查阅查阅).).••IfthesebookshavenIfthesebookshaven’’ttheinformationthatyouwantttheinformationthatyouwant…………••YouhavetogototheshelvesYouhavetogototheshelves…………••HavingseveralbooksonthedeskinfrontofyousavesHavingseveralbooksonthedeskinfrontofyousavestimecomparedtohavingonlyonebookthereandtimecomparedtohavingonlyonebookthereandconstantlyhavingtogobacktotheshelvestoreturnitconstantlyhavingtogobacktotheshelvestoreturnitandtakeoutanother.andtakeoutanother.5/72Result(结论):•Justasyoudidnotne...