Answers to the VM Problems Spring 2015. First question A computer has 32 bit addresses and a virtual memory with a page size of 8 kilobytes.  How many.

Slides:



Advertisements
Similar presentations
COSC 3330/6308 Solutions to Second Problem Set Jehan-François Pâris October 2012.
Advertisements

Virtual Memory. Hierarchy Cache Memory : Provide invisible speedup to main memory.
16.317: Microprocessor System Design I
Virtual Memory Chapter 18 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S. Dandamudi.
Chapter VIII Virtual Memory Jehan-François Pâris
Virtual Memory Chapter 8.
CS 333 Introduction to Operating Systems Class 11 – Virtual Memory (1)
Memory Management (II)
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Memory Management -3 CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent.
Memory Management and Paging CSCI 3753 Operating Systems Spring 2005 Prof. Rick Han.
CS 333 Introduction to Operating Systems Class 11 – Virtual Memory (1)
Memory Problems Prof. Sin-Min Lee Department of Mathematics and Computer Sciences.
Virtual Memory. Why do we need VM? Program address space: 0 – 2^32 bytes –4GB of space Physical memory available –256MB or so Multiprogramming systems.
1 Chapter 8 Virtual Memory Virtual memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of main memory.
Virtual Memory Chapter 8.
©UCB CS 161 Ch 7: Memory Hierarchy LECTURE 24 Instructor: L.N. Bhuyan
CS 241 Section Week #12 (04/22/10).
Virtual Memory By: Dinouje Fahih. Definition of Virtual Memory Virtual memory is a concept that, allows a computer and its operating system, to use a.
Week 7 February 17, 2004 Adrienne Noble. Important Dates Due Monday, Feb 23 Homework 7 Due Wednesday, Feb 25 Project 3 Due Friday, Feb 27 Homework 8.
Chapter VIII Virtual Memory Review Questions Jehan-François Pâris
Computer Architecture Lecture 28 Fasih ur Rehman.
Problems discussed in the review session for the final COSC 4330/6310 Summer 2012.
1 Chapter 3.2 : Virtual Memory What is virtual memory? What is virtual memory? Virtual memory management schemes Virtual memory management schemes Paging.
A NEW PAGE TABLE FOR 64-BIT ADDRESS SPACES M. Talluri, M. D. Hill, Y. A. Kalidi University of Wisconsin, Madison Sun Microsystems Laboratories.
Operating Systems COMP 4850/CISG 5550 Page Tables TLBs Inverted Page Tables Dr. James Money.
1 Virtual Memory and Address Translation. 2 Review Program addresses are virtual addresses.  Relative offset of program regions can not change during.
Virtual Memory 1 1.
COSC 3330/6308 Solutions to the Third Problem Set Jehan-François Pâris November 2012.
Chapter 91 Logical Address in Paging  Page size always chosen as a power of 2.  Example: if 16 bit addresses are used and page size = 1K, we need 10.
Operating Systems Unit 7: – Virtual Memory organization Operating Systems.
4.3 Virtual Memory. Virtual memory  Want to run programs (code+stack+data) larger than available memory.  Overlays programmer divides program into pieces.
Introduction: Memory Management 2 Ideally programmers want memory that is large fast non volatile Memory hierarchy small amount of fast, expensive memory.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
Demand Paging Reference Reference on UNIX memory management
CHAPTER 3-3: PAGE MAPPING MEMORY MANAGEMENT. VIRTUAL MEMORY Key Idea Disassociate addresses referenced in a running process from addresses available in.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
CGS 3763 Operating Systems Concepts Spring 2013 Dan C. Marinescu Office: HEC 304 Office hours: M-Wd 11: :30 AM.
Memory Management memory hierarchy programs exhibit locality of reference - non-uniform reference patterns temporal locality - a program that references.
Operating Systems, Winter Semester 2011 Practical Session 9, Memory 1.
Memory Management & Virtual Memory. Hierarchy Cache Memory : Provide invisible speedup to main memory.
Memory: Page Table Structure CSSE 332 Operating Systems Rose-Hulman Institute of Technology.
Virtual Memory Chapter 8.
Memory: Page Table Structure
Lecture 11 Virtual Memory
Computer Organization
Memory Management Virtual Memory.
Virtual Memory Chapter 7.4.
ECE232: Hardware Organization and Design
CS161 – Design and Architecture of Computer
Virtual Memory User memory model so far:
CS703 - Advanced Operating Systems
Day 21 Virtual Memory.
Day 22 Virtual Memory.
Memory Hierarchy Virtual Memory, Address Translation
CS510 Operating System Foundations
CSCI206 - Computer Organization & Programming
EECE.4810/EECE.5730 Operating Systems
Paging Lecture November 2018.
EECE.4810/EECE.5730 Operating Systems
CS241 Section: Week 10.
Lecture 29: Virtual Memory-Address Translation
Virtual Memory فصل هشتم.
Lecture 36 Syed Mansoor Sarwar
CSE 451: Operating Systems Autumn 2005 Memory Management
Virtual Memory Prof. Eric Rotenberg
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
Chapter VIII Virtual Memory
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
4.3 Virtual Memory.
Virtual Memory 1 1.
Presentation transcript:

Answers to the VM Problems Spring 2015

First question A computer has 32 bit addresses and a virtual memory with a page size of 8 kilobytes.  How many bits are used by the byte offset? 13 bits (because 8KB = 2 13 bits)  What is the size of a page table? 4GB/8KB bytes × 4 = 2MB (32 bit addresses allow processes to address 4GB of virtual memory and each page table entry occupies 4 bytes)

Second question A computer system has 32-bit addresses and a page size of 4 kilobytes.  What is the maximum number of pages a process can have? 1M pages (2 32 /2 12 = = 2 20 )  How many bits of the virtual address will remain unchanged during the address translation process? 12 bits (because 4KB = 2 12 bits)

Third question A very old virtual memory system has 512 MB of main memory, a virtual address space of 4 GB and a page size of 2KB. Each page table entry occupies 4 bytes.  How many bits of the virtual address will remain unchanged by the address translation process? 11 bits  What is the size of a page table? 4GB/2KB × 4B = 8MB  How many page frames are there in main memory? 512MB/2KB = 256K frames

Fourth question (I) A computer will never have a page referenced bit and a missing bit.  FALSE (different functions) The dirty bit indicates whether a page has been recently accessed.  FALSE (it indicates whether the page has been modfied) A page fault rate of one fault per one thousand references is a good page fault rate.  FALSE (it still too high)

Fourth question (II) A TLB miss rate of one miss per one thousand references is a good miss rate.  TRUE (Cheaper TLB misses) The FIFO page replacement policy has an excessive overhead.  FALSE (It has very low overhead)

Fifth question Which page table organization allows entire page tables to reside in main memory?  Hashed page tables How is it possible?  They only contain mappings for the pages that are in memory.