Solutions to the Second Quiz

Slides:



Advertisements
Similar presentations
Memory Management.
Advertisements

Paging: Design Issues. Readings r Silbershatz et al: ,
Chapter 4 Memory Management Page Replacement 补充:什么叫页面抖动?
COSC 3330/6308 Solutions to Second Problem Set Jehan-François Pâris October 2012.
MACHINE-INDEPENDENT VIRTUAL MEMORY MANAGEMENT FOR PAGED UNIPROCESSOR AND MULTIPROCESSOR ARCHITECTURES R. Rashid, A. Tevanian, M. Young, D. Golub, R. Baron,
Virtual Memory Management G. Anuradha Ref:- Galvin.
Virtual Memory Operating System Concepts chapter 9 CS 355
1 Thursday, July 06, 2006 “Experience is something you don't get until just after you need it.” - Olivier.
CMPE 421 Parallel Computer Architecture MEMORY SYSTEM.
Solutions for the Second Problem Set COSC 6360 Fall 2014.
Memory/Storage Architecture Lab Computer Architecture Virtual Memory.
Memory Management Design & Implementation Segmentation Chapter 4.
Virtual Memory Chapter 8. Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
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 Management B.Ramamurthy. Paging (2) The relation between virtual addresses and physical memory addres- ses given by page table.
Answers to the VM Problems Spring First question A computer has 32 bit addresses and a virtual memory with a page size of 8 kilobytes.  How many.
Chapter 4 Memory Management 4.1 Basic memory management 4.2 Swapping
Chapter VIII Virtual Memory Review Questions Jehan-François Pâris
Virtual Memory.
Memory Management in Windows and Linux &. Windows Memory Management Virtual memory manager (VMM) –Executive component responsible for managing memory.
Cache memory October 16, 2007 By: Tatsiana Gomova.
Memory Management Page replacement algorithms, segmentation Tanenbaum, ch. 3 p Silberschatz, ch. 8, 9 p
Problems discussed in the review session for the final COSC 4330/6310 Summer 2012.
Solutions to the first midterm COSC 4330/6310 Summer 2012.
CS 153 Design of Operating Systems Spring 2015 Lecture 17: Paging.
Operating Systems ECE344 Ding Yuan Paging Lecture 8: Paging.
July 30, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 8: Exploiting Memory Hierarchy: Virtual Memory * Jeremy R. Johnson Monday.
Scheduler Activations: Effective Kernel Support for the User- Level Management of Parallelism. Thomas E. Anderson, Brian N. Bershad, Edward D. Lazowska,
1 Memory Management 4.1 Basic memory management 4.2 Swapping 4.3 Virtual memory 4.4 Page replacement algorithms 4.5 Modeling page replacement algorithms.
Practical, Transparent Operating System Support for Superpages J. Navarro Rice University and Universidad Católica de Chile S. Iyer, P. Druschel, A. Cox.
SPECULATIVE EXECUTION IN A DISTRIBUTED FILE SYSTEM E. B. Nightingale P. M. Chen J. Flint University of Michigan.
A summary by Nick Rayner for PSU CS533, Spring 2006
COSC 3330/6308 Solutions to the Third Problem Set Jehan-François Pâris November 2012.
Solutions for the First Quiz COSC 6360 Spring 2014.
Solution to the Third COSC 6360 Quiz for Fall 2013 Jehan-François Pâris
Processes, Threads, and Process States. Programs and Processes  Program: an executable file (before/after compilation)  Process: an instance of a program.
Solution to the Fall 2012 Second COSC 6360 Quiz Jehan-François Pâris
1 Virtual Memory. Cache memory: provides illusion of very high speed Virtual memory: provides illusion of very large size Main memory: reasonable cost,
Solutions for the First Quiz COSC 6360 Fall 2014.
Solution to the Second COSC 6360 Quiz for Fall 2013 Jehan-François Pâris
COSC 3330/6308 Second Review Session Fall Instruction Timings For each of the following MIPS instructions, check the cycles that each instruction.
3.1 Advanced Operating Systems Superpages TLB coverage is the amount of memory mapped by TLB. I.e. the amount of memory that can be accessed without TLB.
Virtual Memory.
Memory Hierarchy Ideal memory is fast, large, and inexpensive
Computer Organization
Virtual Memory CSSE 332 Operating Systems
ITEC 202 Operating Systems
COMBINED PAGING AND SEGMENTATION
Solutions for Second Quiz
First Pop Quiz Answers COSC 6360 Fall 2017.
Solution to the Fourth COSC 6360 Quiz for Fall 2013
Assignment 4 - Solution Problem 1
COT 4600 Operating Systems Spring 2011
Page Replacement.
Lecture 5: Snooping Protocol Design Issues
PRACTICAL, TRANSPARENT OPERATING SYSTEM SUPPORT FOR SUPERPAGES
Miss Rate versus Block Size
Solutions for the Third Problem Set
Questions on Fifth Quiz
Computer Architecture
Lecture 3: Main Memory.
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Virtual Memory: Working Sets
Solutions for Third Quiz
Update : about 8~16% are writes
CSE 542: Operating Systems
CS533 Concepts of Operating Systems Class 14
OPERATING SYSTEMS MEMORY MANAGEMENT BY DR.V.R.ELANGOVAN.
Review What are the advantages/disadvantages of pages versus segments?
Chapter 8 & 9 Main Memory and Virtual Memory
Presentation transcript:

Solutions to the Second Quiz COSC 6360 Fall 2011

First question What must a programmer do to ensure that a given program will execute correctly on TreadMarks?

Answer All access to shared data must be preceded by a Tmk_lock_acquire() and followed by a Tmk_lock_release().

Second Question What is the main advantage of TreadMark lazy release policy compared to Munin eager release policy?

Answer It reduces the communication overhead of the DSM. Comment: I asked for an advantage!

Third question What is inheritance in Mach? At which level is it defined? Explain how Mach uses it to support both regular and lightweight processes.

Answer Inheritance defines what happens to a range of addresses when a process forks a child.

Third question What is inheritance in Mach? At which level is it defined? Explain how Mach uses it to support both regular and lightweight processes.

Answer Inheritance is defined at the level of address ranges containing all addresses mapped by a specific memory object. Comment: Nobody came with such a detailed answer.

Third question What is inheritance in Mach? At which level is it defined? Explain how Mach uses it to support both regular and lightweight processes.

Answer Mach specifies the inheritance attribute of its data segment to be COPY when it performs a regular UNIX fork() SHARED when it forks a lightweight process.

Answer New size(T1) = 127 T1 loses the page New target_T1 =128 Remains unchanged

Fourth Question Consider an ARC cache with a total capacity of 512 pages Assume size(T1) = target_T1 =128 pages How these two parameters would be affected if: A page already present in T1 is referenced a second time? A page that has never been accessed before is brought into the cache?

Answer New size(T1) = 128 Since size(T1) = target_T1, ARC will expel one page in T to make space for the incoming page New target_T1 =128 Remains unchanged

Fifth question What is the main issue raised by dirty superpages? How do Navarro et al. propose to solve it?

Answer Since each superpage only has a single dirty bit, the page replacement policy has no way to know Which base pages are dirty—and must be flushed out when the superpage is expelled from main memory Which base pages are still clean

Fifth question What is the main issue raised by dirty superpages? How do Navarro et al. propose to solve it?

Answer Navarro et al. propose to avoid this issue by disbanding superpages the first time one of their base pages gets modified18

Sixth question What is the main advantage of MCS locks? When does it result in a much better system performance? When does it not?

Answer MCS locks have a much lower contention overhead than conventional spinlocks Because waiting processes are put on a queue

Sixth question What is the main advantage of MCS locks? When does it result in a much better system performance? When does it not?

Answer They perform much better than spinlocks at high contention rates.

Sixth question What is the main advantage of MCS locks? When does it result in a much better system performance? When does it not?

Answer They often perform worse than spinlocks at very low to low contention rate Because entering the queue takes more time than going through very few spinlock cycles