CS 153 Design of Operating Systems Spring 2015 Final Review.

Slides:



Advertisements
Similar presentations
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
Advertisements

OS Fall’02 Virtual Memory Operating Systems Fall 2002.
Virtual Memory Chapter 18 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S. Dandamudi.
1 Virtual Memory Management B.Ramamurthy. 2 Demand Paging Main memory LAS 0 LAS 1 LAS 2 (Physical Address Space -PAS) LAS - Logical Address.
CS 153 Design of Operating Systems Spring 2015
CS 153 Design of Operating Systems Spring 2015
CAS3SH3 Final Review. The Final Tue 28 th, 7pm, IWC3 closed book, closed note Non-comprehensive: memory management, storage & file system Types of questions:
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
What we will cover…  Memory and Disk Storage Management 1-1.
Paging and Virtual Memory. Memory management: Review  Fixed partitioning, dynamic partitioning  Problems Internal/external fragmentation A process can.
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.
Chapter 3.2 : Virtual Memory
Translation Buffers (TLB’s)
Operating Systems Final Exam Review. Topics Paging Virtual Memory File Systems I/O Devices Project 3: Macro Shell.
Virtual Memory and Paging J. Nelson Amaral. Large Data Sets Size of address space: – 32-bit machines: 2 32 = 4 GB – 64-bit machines: 2 64 = a huge number.
03/22/2004CSCI 315 Operating Systems Design1 Virtual Memory Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Mem. Hier. CSE 471 Aut 011 Evolution in Memory Management Techniques In early days, single program run on the whole machine –Used all the memory available.
03/17/2008CSCI 315 Operating Systems Design1 Virtual Memory Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
Memory Management ◦ Operating Systems ◦ CS550. Paging and Segmentation  Non-contiguous memory allocation  Fragmentation is a serious problem with contiguous.
Operating Systems CMPSC 473 I/O Management (4) December 09, Lecture 25 Instructor: Bhuvan Urgaonkar.
Silberschatz and Galvin  Chapters 3 and 5 Possible questions –Tracing a given program involving fork, exec, semaphores, and share memory –Wring.
Operating Systems Chapter 8
CS 153 Design of Operating Systems Spring 2015 Lecture 17: Paging.
CSE 451: Operating Systems Section 10 Project 3 wrap-up, final exam review.
1 Chapter 3.2 : Virtual Memory What is virtual memory? What is virtual memory? Virtual memory management schemes Virtual memory management schemes Paging.
CIS250 OPERATING SYSTEMS Memory Management Since we share memory, we need to manage it Memory manager only sees the address A program counter value indicates.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming  To allocate scarce memory resources.
CS414 Review Session.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
1 Memory Management. 2 Fixed Partitions Legend Free Space 0k 4k 16k 64k 128k Internal fragmentation (cannot be reallocated) Divide memory into n (possible.
CS 153 Design of Operating Systems Spring 2015 Final Review 2.
4.3 Virtual Memory. Virtual memory  Want to run programs (code+stack+data) larger than available memory.  Overlays programmer divides program into pieces.
Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
1 Rutgers UniversityCS 416: Operating Systems Final exam details December 22, pm-3pm. Venue: SEC 118. Tips: Spend time reading the questions before.
IT 344: Operating Systems Winter 2010 Module 23 Course Review Chia-Chi Teng CTB 265.
1 Lecture 8: Virtual Memory Operating System Fall 2006.
Week 10 March 10, 2004 Adrienne Noble. Important Dates Project 4 due tomorrow (Friday) Final Exam on Tuesday, March 16, 2:30- 4:20pm.
CMPT 300: Operating Systems Course Summary THIS SUMMARY SHOULD NOT BE USED AS PREDICTORS OF THE ACTUAL QUESTIONS APPEARING ON THE FINAL EXAM.
Chapter 7: Main Memory CS 170, Fall Program Execution & Memory Management Program execution Swapping Contiguous Memory Allocation Paging Structure.
Chapter 9 Memory Organization. 9.1 Hierarchical Memory Systems Figure 9.1.
Chapters 3 and 5 Possible questions
CSE 451: Operating Systems
CSE 120 Principles of Operating
CS703 - Advanced Operating Systems
CS 704 Advanced Computer Architecture
Evolution in Memory Management Techniques
Page Replacement.
CSE 451: Operating Systems Winter 2007 Module 24 Course Review
Virtual Memory فصل هشتم.
Sarah Diesburg Operating Systems CS 3430
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
CSE 451: Operating Systems Spring 2005 Module 23 Course Review
CSE 451: Operating Systems Autumn 2005 Memory Management
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
Contents Memory types & memory hierarchy Virtual memory (VM)
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
CSE 451: Operating Systems Winter 2006 Module 24 Course Review
Translation Buffers (TLB’s)
CSE 451: Operating Systems Autumn 2003 Lecture 10 Paging & TLBs
CSE 451: Operating Systems Autumn 2003 Lecture 9 Memory Management
Review for final Anything’s fair game, but emphasis on more recent stuff.
CSE 542: Operating Systems
Translation Buffers (TLBs)
Review What are the advantages/disadvantages of pages versus segments?
CSE 542: Operating Systems
Presentation transcript:

CS 153 Design of Operating Systems Spring 2015 Final Review

2 Final l 7pm-10pm, Tuesday, June 9 th l Material for final u All topics covered after midterm »Memory management, file systems, RPC, Android OS security »One or two small problems from Android OS security u One problem from the pre-midterm materials »Same as midterm l Based upon lecture slides and corresponding material from textbook (mostly the slides, textbook helps further understanding) l Read questions carefully! l Closed book, no notes, no laptops, no cellphones l Of course, no cheating

OS in a nutshell l Reality: u Several concurrent programs that share hardware u Hardware can comprise any CPU, hard disk drive, RAM l Abstraction offered by OS: u Every program runs as a separate process that »Consists of several threads »Has its own 2^32 byte virtual address space »Reads and writes files u Every program is completely agnostic to hardware and other programs 3

4 Overview of Topics l Memory management l Paging l Page replacement l Disk I/O l File systems l Advanced topics u LFS, RAID, RPC, NFS, Android OS security

5 Memory Management l Why is memory management useful? u Why do we have virtual memory if it is so complex? l What are the mechanisms for implementing MM? u Physical and virtual addressing u Partitioning, paging, and segmentation u Page tables, TLB l What are the policies related to MM? u Page replacement l What are the overheads related to providing memory management?

6 Virtualizing Memory l What is the difference between a physical and virtual address? l What is the difference between fixed and variable partitioning? u How do base and limit registers work? l What is internal fragmentation? l What is external fragmentation? l What is a protection fault and page fault?

7 Paging l How is paging different from partitioning? l What are the advantages/disadvantages of paging? l What are page tables? l What are page table entries (PTE)? u What are all of the PTE bits used for? »Modify, Reference, Valid, Protection l Know these terms u Virtual page number (VPN), page frame number (PFN), offset l Know how to break down virtual addresses into page numbers, offset

8 Segmentation l What is segmentation? l How does it compare/contrast with paging? l What are its advantages/disadvantages with respect to partitioning, paging? l What is a segment table? l How can paging and segmentation be combined?

9 Page Tables l Page tables introduce overhead u Space for storing them u Time to use them for translation l What techniques can be used to reduce their overhead? l How do two-level (multi-level) page tables work?

10 TLBs l What problem does the TLB solve? l How do TLBs work? l Why are TLBs effective? l How are TLBs managed? u What happens on a TLB miss fault? l What is the difference between a hardware and software managed TLB?

11 Page Faults l What is a page fault? l How is it used to implement demand paged virtual memory? l What is the complete sequence of steps, from a TLB miss to paging in from disk, for translating a virtual address to a physical address? u What is done in hardware, what is done in software?

12 Advanced Mem Management l What is shared memory? l What is copy on write? l What are memory mapped files?

13 Page Replacement l What is the purpose of the page replacement algorithm? l What application behavior does page replacement try to exploit? l When is the page replacement algorithm used? l Understand u Belady’s (optimal), FIFO, LRU, Approximate LRU, LRU Clock, Working Set, Page Fault Frequency l What is thrashing?

14 Disk l Physical disk structure u Platters, surfaces, tracks, sectors, cylinders, arms, heads l Disk interface u How does the OS make requests to the disk? l Disk performance u What steps determine disk request performance? u What are seek, rotation, transfer?

15 Disk Scheduling l How can disk scheduling improve performance? l What are the issues in disk scheduling? u Response time, throughput, fairness l Review u FCFS, SSTF, SCAN, C-SCAN

16 File Systems l Topics u Files u Directories u Sharing u Protection u Layouts u Buffer Cache l What is a file system? l Why are file systems useful (why do we have them)?

17 Files and Directories l What is a file? u What operations are supported? u What characteristics do they have? u What are file access methods? l What is a directory? u What are they used for? u How are they implemented? u What is a directory entry? l How are directories used to do path name translation?

18 Protection l What is file protection used for? l How is it implemented? l What are access control lists (ACLs)? l What are capabilities? l What are the advantages/disadvantages of each?

19 File System Layouts l What are file system layouts used for? l What are the general strategies? u Contiguous, linked, indexed? l What are the tradeoffs for those strategies? l How do those strategies reflect file access methods? l What is an inode? u How are inodes different from directories? u How are inodes and directories used to do path resolution, find files?

20 File Buffer Cache l What is the file buffer cache, and why do operating systems use one? l What is the difference between caching reads and caching writes? l What are the tradeoffs of using memory for a file buffer cache vs. virtual memory?

21 Advanced Topics l What is FFS, and how is it an improvement over the original Unix file system? l What is LFS, and how is it an improvement over FFS? l What is RAID, and how does it help file system performance and reliability? l What is RPC, and how is it implemented? l What is NFS, how does it relate to file systems and RPC? l How does Android provide isolation among apps?