CSE451 - Section 10.

Slides:



Advertisements
Similar presentations
9.4 Page Replacement What if there is no free frame?
Advertisements

Virtual Memory: Page Replacement
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Operating Systems Review.
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
1 Virtual Memory Management B.Ramamurthy. 2 Demand Paging Main memory LAS 0 LAS 1 LAS 2 (Physical Address Space -PAS) LAS - Logical Address.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Chapter 101 Virtual Memory Chapter 10 Sections and plus (Skip:10.3.2, 10.7, rest of 10.8)
Virtual Memory Chapter 8.
Virtual Memory Chapter 8. Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
1 Virtual Memory vs. Physical Memory So far, all of a job’s virtual address space must be in physical memory However, many parts of programs are never.
CMPT 300: Operating Systems Review THIS REIVEW SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Virtual Memory Chapter 8.
OS Spring’04 Virtual Memory: Page Replacement Operating Systems Spring 2004.
Operating Systems Review. Questions What are two functions of an OS? What “layer” is above the OS? What “layer” is below the OS?
1 CSE451 - Section Last section! Project 4 due tomorrow Today: Some practice for the exam “Big picture” review tomorrow Evaluations Project 3 +
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
Slide 12-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter Virtual Memory.
Memory Management ◦ Operating Systems ◦ CS550. Paging and Segmentation  Non-contiguous memory allocation  Fragmentation is a serious problem with contiguous.
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Page 19/17/2015 CSE 30341: Operating Systems Principles Optimal Algorithm  Replace page that will not be used for longest period of time  Used for measuring.
CS 153 Design of Operating Systems Spring 2015 Final Review.
Problems discussed in the review session for the final COSC 4330/6310 Summer 2012.
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
COS 598: Advanced Operating System. Operating System Review What are the two purposes of an OS? What are the two modes of execution? Why do we have two.
Virtual Memory Chapter 8. Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
Chapter 4 Memory Management Virtual Memory.
Virtual Memory Chapter 8. Hardware and Control Structures Memory references are dynamically translated into physical addresses at run time –A process.
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
1 Rutgers UniversityCS 416: Operating Systems Final exam details December 22, pm-3pm. Venue: SEC 118. Tips: Spend time reading the questions before.
Week 10 March 10, 2004 Adrienne Noble. Important Dates Project 4 due tomorrow (Friday) Final Exam on Tuesday, March 16, 2:30- 4:20pm.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 9: Virtual Memory.
MIDTERM REVIEW CSCC69 Winter 2016 Kanwar Gill. What is an OS? What are processes and threads? Process states? Diagram showing the state changes What data.
Virtual Memory What if program is bigger than available memory?
Virtual Memory Chapter 8.
Chapters 3 and 5 Possible questions
Section 10: Last section! Final review.
CSE 451: Operating Systems
CS161 – Design and Architecture of Computer
Demand Paging Reference Reference on UNIX memory management
Section 10: Last section! Final review.
Module 9: Virtual Memory
Demand Paging Reference Reference on UNIX memory management
Chapter 9: Virtual-Memory Management
Operating Systems Review.
5: Virtual Memory Background Demand Paging
Demand Paged Virtual Memory
Andy Wang Operating Systems COP 4610 / CGS 5675
Sarah Diesburg Operating Systems CS 3430
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
Exam Review Mark Stanovich Operating Systems COP
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
Translation Buffers (TLB’s)
Operating Systems Lecture 1.
Andy Wang Operating Systems COP 4610 / CGS 5675
CSE451 Virtual Memory Paging Autumn 2002
CSE 451: Operating Systems Winter 2006 Module 24 Course Review
Reminders Project 4 due tomorrow, 4:00pm Review lecture tomorrow
Operating Systems CMPSC 473
Last section! Project 4 + EC due tomorrow Today: Project 4 questions
CSE451 - Section 10.
CSE 542: Operating Systems
Translation Buffers (TLBs)
BANKER’S ALGORITHM Prepared by, Prof
Module 9: Virtual Memory
Sarah Diesburg Operating Systems COP 4610
Review What are the advantages/disadvantages of pages versus segments?
Andy Wang Operating Systems COP 4610 / CGS 5675
CSE 542: Operating Systems
Presentation transcript:

CSE451 - Section 10

Last section! Project 4 due tomorrow Today: Some practice for the exam “Big picture” review tomorrow Evaluations Project 3 + all old stuff back tomorrow You will get project 4 grades at the final exam

Review: file systems Two improvements BSD Fast File System implemented? Name the type of system and workload that LFS was based on Calculate max UNIX file size for 1K blocks The sequence of actions that occurs when a user executes the following, in terms of inodes and directory entries: touch file && cp file file2 && rm file && rm file2

Review: file systems Two improvements BSD Fast File System implemented? Cylinder groups, blocksize 1->4K, disk params Name the type of system and workload that LFS was based on Frequent writes with lots of small files Max UNIX file size for 1K blocks? O(256^3)*1K = around 17 GB The sequence of actions that occurs when a user executes the following, in terms of inodes and directory entries: touch file && cp file file2 && rm file && rm file2 …

Review: virtual memory Segmentation doesn’t have this problem of wasted space. How does copy-on-write work? What is it used for? What is Belady's anomaly? What is OPT algorithm?

Review: virtual memory Segmentation doesn’t have this problem of wasted space. Internal fragmentation How does copy-on-write work? What is it used for? … What is Belady's anomaly? Bad property of FIFO – fault rate can increase with more allocated frames (size of memory) What is Belady’s (OPT) algorithm? Optimal page replacement – evict page the won’t be needed longest into the future

More review… People do not program the Belady’s page replacement algorithm today because: it is too expensive to build the hardware support it is impossible to do so page replacement costs are not sufficiently high for optimality to be a significant concern there exist better-performing page replacement algorithms This policy are only applicable in computers that support page reference bits within the PTE. Not all processors do so. (next few questions adapted from cornell systems q-exam)

synchronization The best reason to use semaphores rather than busy-waiting in a user-level program is: decreases the chance of deadlock decreases the chance of livelock allows more different types of synchronization to be coded avoids wasted processor cycles avoids expensive context switches

When monitors are used for synchronization and access to shared data: True/false: good style dictates that a thread performing a P on a semaphore should always be the thread performing the corresponding V on that semaphore When monitors are used for synchronization and access to shared data: True/False: deadlock becomes impossible True/False: race conditions on access to that data become impossible

Consider a modern desktop computer on which the hard disk is spinning Consider a modern desktop computer on which the hard disk is spinning. The most significant delay in reading from a 4K byte file that has not been accessed in a long time is: context switch to enter the operating system time spent in the OS to determine what disk blocks to fetch latency awaiting disk arm movement latency awaiting disk rotation transfer time

Four out of the five of these instantiate a single basic principle Four out of the five of these instantiate a single basic principle. But the fifth one is essentially unrelated. Which is the unrelated one? processor (L2) cache disk buffer pool page table translation lookaside buffer DNS cache

Which of the following are not typically saved when a process issues a system call that blocks, causing a context switch to some other process: contents of registers program counter value interrupt vector table name of the process that was executing elapsed time since process last started executing

Which of the following abstractions are implemented entirely in the kernel of an OS like Linux: remote object invocation and remote procedure call the process abstraction dynamically linked libraries (DLLs) the window manager public key encryption/decryption

What’s a worm? What makes it different from a virus? T / F A microkernel is a category of operating systems designed for sensors or other forms of micro-processors. T / F A priority inversion is said to occur if a higher priority task is waiting for a lower-priority task to perform some action. What’s a worm? What makes it different from a virus? What’s the principle of least privelege? What is thrashing? When does it happen and why? F T Last login time, etc. Protect again login spoofers

Last slide Good luck on the exam! Congratulations on making it through a tough class 