Chapter 10: Virtual Memory. Lesson 08: Demand Paging and Page Swapping



Similar documents
OPERATING SYSTEM - VIRTUAL MEMORY

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Operating Systems, 6 th ed. Test Bank Chapter 7

Hardware Assisted Virtualization

Virtualization. Pradipta De

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

HY345 Operating Systems

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Chapter 12: Multiprocessor Architectures. Lesson 04: Interconnect Networks

Lecture 17: Virtual Memory II. Goals of virtual memory

Chapter 01: Introduction. Lesson 02 Evolution of Computers Part 2 First generation Computers

Process Description and Control william stallings, maurizio pizzonia - sistemi operativi

PROGRAMMING CONCEPTS AND EMBEDDED PROGRAMMING IN C, C++ and JAVA: Lesson-4: Data Structures: Stacks

Chapter 10: Virtual Memory. Lesson 03: Page tables and address translation process using page tables

3 SOFTWARE AND PROGRAMMING LANGUAGES

Chapter 6, The Operating System Machine Level

System performance monitoring in RTMT

Readings for this topic: Silberschatz/Galvin/Gagne Chapter 5

Computer-System Architecture

OPERATING SYSTEMS SCHEDULING

IOS110. Virtualization 5/27/2014 1

Operating Systems Overview

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

Midterm Exam #2 November 10, 1999 CS162 Operating Systems

CS 6290 I/O and Storage. Milos Prvulovic

Main Memory & Backing Store. Main memory backing storage devices

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

Chapter 12. Paging an Virtual Memory Systems

Objectives. Chapter 5: CPU Scheduling. CPU Scheduler. Non-preemptive and preemptive. Dispatcher. Alternating Sequence of CPU And I/O Bursts

Operating Systems Concepts: Chapter 7: Scheduling Strategies

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

Spacecraft Computer Systems. Colonel John E. Keesee

The Quest for Speed - Memory. Cache Memory. A Solution: Memory Hierarchy. Memory Hierarchy

Computers: Tools for an Information Age

Hands-On Microsoft Windows Server 2008

Chapter 12: Multiprocessor Architectures. Lesson 09: Cache Coherence Problem and Cache synchronization solutions Part 1

Perfmon Collection Setup Instructions for Windows Server 2008+

M.Sc. IT Semester III VIRTUALIZATION QUESTION BANK Unit 1 1. What is virtualization? Explain the five stage virtualization process. 2.

Virtualization. Explain how today s virtualization movement is actually a reinvention

Chapter 6 External Memory. Dr. Mohamed H. Al-Meer

Operating Systems. Lecture 03. February 11, 2013

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Chapter 1: Introduction. What is an Operating System?

Chapter 7 Memory Management

Understand Performance Monitoring

OS OBJECTIVE QUESTIONS

Chapter 3. Operating Systems

W4118 Operating Systems. Instructor: Junfeng Yang

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

Load Manager Administrator s Guide For other guides in this document set, go to the Document Center

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Embedded Software development Process and Tools: Lesson-3 Host and Target Machines

Operating Systems. III. Scheduling.

Operating System: Scheduling

Processes and Non-Preemptive Scheduling. Otto J. Anshus

opensm2 Enterprise Performance Monitoring December 2010 Copyright 2010 Fujitsu Technology Solutions

Buffer Management 5. Buffer Management

Multiprocessor Scheduling and Scheduling in Linux Kernel 2.6

Certification Document macle GmbH GRAFENTHAL R2208 S2 01/04/2016. macle GmbH GRAFENTHAL R2208 S2 Storage system

Scheduling. Yücel Saygın. These slides are based on your text book and on the slides prepared by Andrew S. Tanenbaum

How To Improve Performance On A Single Chip Computer

Virtual vs Physical Addresses

Types Of Operating Systems

Operating Systems. Virtual Memory

Performance Monitor for AutoCAD

Memory Management Outline. Background Swapping Contiguous Memory Allocation Paging Segmentation Segmented Paging

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

Red Hat Enterprise linux 5 Continuous Availability

REDUCING TIME: SCHEDULING JOB. Nisha Yadav, Nikita Chhillar, Neha jaiswal

361 Computer Architecture Lecture 14: Cache Memory

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

find model parameters, to validate models, and to develop inputs for models. c 1994 Raj Jain 7.1

Quiz for Chapter 6 Storage and Other I/O Topics 3.10

System Virtual Machines

Major upgrade versions. To see which features each version of Windows 7 has, go to Microsoft's Compare Windows page.

Chapter 13 File and Database Systems

Chapter 13 File and Database Systems

Certification Document macle GmbH Grafenthal-S1212M 24/02/2015. macle GmbH Grafenthal-S1212M Storage system

Operating System Tutorial

Computer & Information Systems (22:198:604) Fall 2008 Homework 2 Solution

Chapter 11 I/O Management and Disk Scheduling

Intel P6 Systemprogrammering 2007 Föreläsning 5 P6/Linux Memory System

Solid State Drive Architecture

Amoeba Distributed Operating System

Chapter 12: Multiprocessor Architectures. Lesson 01: Performance characteristics of Multiprocessor Architectures and Speedup

Windows Server Performance Monitoring

Module 1 Introduction to Information and Communication Technologies

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Real-Time Scheduling 1 / 39

Candidates should be able to: (i) describe the purpose of RAM in a computer system

COS 318: Operating Systems

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

Sitecore Health. Christopher Wojciech. netzkern AG. Sitecore User Group Conference 2015

Overview and History of Operating Systems

Operating Systems 4 th Class

CS Fall 2008 Homework 2 Solution Due September 23, 11:59PM

Transcription:

Chapter 10: Virtual Memory Lesson 08: Demand Paging and Page Swapping

Objective Learn demand paging, pages of data are only brought into the main memory when a program accesses them Learn swapping technique that uses magnetic or other media to store the state of programs that are not currently running on the processor 2

Objective Understand the use of swapping by the operating system to treat all of a program s data as an atomic unit and moves all of the data into or out of the main memory at one time 3

Demand paging 4

Demand paging Pages of data are only brought into the main memory when a program accesses them When a context switch occurs, the operating system does not copy any of the old program s pages out to the disk or any of the new program s pages into the main memory Instead, it just begins executing the new program and fetches that program s pages as they are referenced 5

Demand paging When a context switch occurs, the operating system does not copy any of the old program s pages out to the disk or any of the new program s pages into the main memory Instead, it just begins executing the new program and fetches that program s pages as they are referenced 6

Demand paging advantages 7

Demand-paging systems advantage Only fetch the pages of data that a program actually uses from the disk If a program only needs to reference a fraction of its data during each timeslice of execution, this can significantly reduce the amount of time spent copying data to and from the disk 8

Demand-paging systems advantage Individual pages of a program s data can be brought into the memory as needed, making the limit on the maximum amount of data a program can reference the amount of space available on the disk, not the amount of main memory 9

Advantages of demand paging Outweigh the disadvantages for most applications Demand paging the choice for most current workstation/pc operating systems 10

Swapping of pages 11

Swapping A related technique that uses magnetic or other media to store the state of programs that are not currently running on the processor In a system that uses swapping, the operating system treats all of a program s data as an atomic unit and moves all of the data into or out of the main memory at one time 12

Swapping When the operating system on a computer that uses swapping selects a program to run on the processor, it loads all of the program s data into the main memory, evicting other programs from the main memory if necessary 13

Programs being executed on a computer fitting into the main memory If all of the (counting both their instructions and data) fit into the main, both demand paging and swapping allow the computer to operate in a multiprogrammed mode without having to fetch data from disk 14

Swapping systems advantage Once a program has been fetched from disk, all of the program s data is mapped in the main memory This makes the execution time of the program more predictable, since page faults never occur during a program s use of the CPU 15

Swapping disadvantage over demand paging Systems that use swapping typically cannot use their magnetic storage to allow a single program to reference more data than fits in the main memory All of a program s data must be swapped into or out of the main memory as a unit 16

Summary 17

We learnt Demand paging requires only the fetch of pages of data that a program actually uses from the magnetic disk or other media Swapping system requires that the operating system treats all of a program s data as an atomic unit and moves all of the data into or out of the main memory at one time Swapping advantage is that once a program has been fetched from disk, all of the program s data is mapped in the main memory 18

We learnt Swapping makes the execution time of the program more predictable, since page faults never occur during a program s use of the CPU Demand paging advantages outweigh the disadvantages for most applications 19

End of Lesson 08 on Demand Paging and Page Swapping 20