- 1、本文档共31页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
VirtualMemoryamp;amp;AddressTranslation.ppt
Oct 9, 2001 Virtual Memory Translation Virtual Memory Address Translation Vivek Pai Princeton University General Memory Problem We have a limited (expensive) physical resource: main memory We want to use it as efficiently as possible We have an abundant, slower resource: disk Lots of Variants Many programs, total size less than memory Technically possible to pack them together Will programs know about each other’s existence? One program, using lots of memory Can you only keep part of the program in memory? Lots of programs, total size exceeds memory What programs are in memory, and how to decide? History Versus Present History Each variant had its own solution Solutions have different hardware requirements Some solutions software/programmer visible Present – general-purpose microprocessors One mechanism used for all of these cases Present – less capable microprocessors May still use “historical” approaches Many Programs, Small Total Size Observation: we can pack them into memory Requirements by segments Text: maybe contiguous Data: keep contiguous, “relocate” at start Stack: assume contiguous, fixed size Just set pointer at start, reserve space Heap: no need to make it contiguous Many Programs, Small Total Size Software approach Just find appropriate space for data code segments Adjust any pointers to globals/functions in the code Heap, stack “automatically” adjustable Hardware approach Pointer to data segment All accesses to globals indirected One Program, Lots of Memory Observations: locality Instructions in a function generally related Stack accesses generally in current stack frame Not all globals used all the time Goal: keep recently-used portions in memory Explicit: programmer/compiler reserves, controls part of memory space – “overlays” Note: limited resource may be address space Many Programs, Lots of Memory Software approach Keep only subset of programs in memory When loading a program, evict any programs that use the same memory regions “Swap” programs
您可能关注的文档
- Reading and ReviewChapter 12 Indexing and Hashing.ppt
- Reading and Thinking Tasks.ppt
- REGIONAL TIR SEMINAR Sofia, 11 and 12 May 2006.ppt
- Research themes.ppt
- RESSETDB应用.ppt
- Review of Units 1-6.ppt
- Review Unit Four.ppt
- Risk, Cost of Capital and Capital BudgetingChapter 12.ppt
- Roger A Rosenblatt February 12, 2004.ppt
- Running a race at 12,000 feet.ppt
- Viruses, Malicious Code,& Other Nasty Stuff.ppt
- Wading Through the WebConducting Research on the Internet.ppt
- Web Search.ppt
- Web Security.ppt
- Web Site Design.ppt
- Week 12 Science and Technology.ppt
- Week 12.Acquirers and questions.ppt
- Week 12.Language Universals, and the beginnings of a model.ppt
- Weihong Xu11122008Boston, MA.ppt
- Welcome to MUSIC.ppt
文档评论(0)