February 12, 2004 Adrienne Noble

Slides:



Advertisements
Similar presentations
Page Replacement Algorithms
Advertisements

Chapter 101 The LRU Policy Replaces the page that has not been referenced for the longest time in the past By the principle of locality, this would be.
Chapter 11 – Virtual Memory Management
Background Virtual memory – separation of user logical memory from physical memory. Only part of the program needs to be in memory for execution. Logical.
Scribe for 7 th April 2014 Page Replacement Algorithms Payal Priyadarshini 11CS30023.
VM Design Issues Vivek Pai / Kai Li Princeton University.
Cache Memory By JIA HUANG. "Computer Science has only three ideas: cache, hash, trash.“ - Greg Ganger, CMU.
Day 23 Virtual Memory. Operating system’s role in VM Hardware-support Use VM or not Use paging or segmentation or both Software domain Algorithms for.
1 Virtual Memory in the Real World Implementing exact LRU Approximating LRU Hardware Support Clock Algorithm Thrashing Cause Working Set.
1 Virtual Memory in the Real World Implementing exact LRU Approximating LRU Hardware Support Clock Algorithm Thrashing Cause Working Set.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Memory Management – 4 Page Replacement Algorithms CS 342 – Operating Systems.
CS61C Midterm #2 Review Session
Chapter 11 – Virtual Memory Management Outline 11.1 Introduction 11.2Locality 11.3Demand Paging 11.4Anticipatory Paging 11.5Page Replacement 11.6Page Replacement.
1 CSE451 – Section 7. 2 Usual stuff Project 3 will be due Monday the 27 th Experiment design to TAs: By midnight on Sunday the 19th Today: Project.
CS444/CS544 Operating Systems Virtual Memory 4/06/2007 Prof. Searleman
OS Spring’04 Virtual Memory: Page Replacement Operating Systems Spring 2004.
03/29/2004CSCI 315 Operating Systems Design1 Page Replacement Algorithms (Virtual Memory)
New Visual Characterization Graphs for Memory System Analysis and Evaluation Edson T. Midorikawa Hugo Henrique Cassettari.
1 Usual stuff Project 2 back today Average: 66.8/80 Today: Project 3 A few project 2 comments.
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.
Maninder Kaur VIRTUAL MEMORY 24-Nov
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.
Memory Management Techniques
Chapter 21 Virtual Memoey: Policies Chien-Chung Shen CIS, UD
Chapter 8 Virtual Memory Operating Systems: Internals and Design Principles Seventh Edition William Stallings.
#include pthread_mutex_t sem_mut = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t cond_mut = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
Page Replacement Algorithms and Simulation Neville Allen.
1 Project: Page Replacement Algorithms Lubomir Bic.
A BRIEF INTRODUCTION TO CACHE LOCALITY YIN WEI DONG 14 SS.
Homework Assignment #3 J. H. Wang Nov. 13, 2015.
1  2004 Morgan Kaufmann Publishers Locality A principle that makes having a memory hierarchy a good idea If an item is referenced, temporal locality:
VIRTUAL MEMORY Virtual Address Space. In computing, virtual address space (abbreviated VAS) is a memory mapping mechanism available in modern operating.
10.1 Chapter 10: Virtual Memory Background Demand Paging Process Creation Page Replacement Allocation of Frames Thrashing Operating System Examples.
CS422 Principles of Database Systems Buffer Management Chengyu Sun California State University, Los Angeles.
Science is a process, or method, that usually starts with an observation.
Chapter 9: Virtual Memory. 9.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Background Virtual memory – separation of user logical memory.
Page Replacement FIFO, LIFO, LRU, NUR, Second chance
1.Why we need page replacement? 2.Basic page replacement technique. 3.Different type of page replacement algorithm and their examples.
COS 318: Operating Systems Virtual Memory Paging.
CS 333 Introduction to Operating Systems Class 14 – Page Replacement
Memory Management (2).
To find near doubles.
Scientific Method.
Chapter 21 Virtual Memoey: Policies
January 29, 2004 Adrienne Noble
Day 22 Virtual Memory.
18742 Parallel Computer Architecture Caching in Multi-core Systems
How to write a good hypothesis.
Distributed Systems CS
Lecture 39 Syed Mansoor Sarwar
Proposal for Term Project Operating Systems, Fall 2018
منهج البحث العلمي ( Scientific Research Method )
Reminders Homework 4 & project 2 Midterm on Monday, November 8
CS 140 Lecture Notes: Demand Paging
Data Collection FREQUENCY DATA BEHAVIOR: BEHAVIOR:
Practical Session 8, Memory Management 2
February 5, 2004 Adrienne Noble
Project 3 Virtual memory trace analysis
CSE 451 Autumn 2003 November 13 Section.
CS 140 Lecture Notes: Demand Paging
Page Replacement FIFO, LIFO, LRU, NUR, Second chance
Exercise (11).
Exercise (10).
Module IV Memory Organization.
Module IV Memory Organization.
Lecture 9: Caching and Demand-Paged Virtual Memory
Implementation of page-replacement algorithms and Belady’s anomaly
Practical Session 9, Memory Management continues
Sarah Diesburg Operating Systems CS 3430
The Scientific Method.
Presentation transcript:

February 12, 2004 Adrienne Noble Week 6 February 12, 2004 Adrienne Noble

Important Dates Due Wednesday, Feb 18 Due Wednesday, Feb 25 Project 3 Experiment Design (emailed to TAs) Homework 6 Due Wednesday, Feb 25 Project 3

Questions? Midterm Project 3 Homework 6

Project 3 Implement an LRU-like page replacement algorithm Design and perform an experiment on page replacement algorithms

The Scientific Method Four steps Observe something Invent a description, or hypothesis Use the hypothesis to make predictions Test those predictions with an experiment Google “scientific method” for more information

Running Experiments Control: what is the baseline? What happens with existing page sizes / page replacement algorithms / no prefetching New test: what happens with the new system? Try to change just one aspect of the system to isolate the difference

Experiment Ideas What is the ideal page size for this trace under different amounts of main memory? How much better is page replacement algorithm X then LRU “Real” LRU, FIFO, 2Q, ARC, etc How close can we come to LRU without doing any work between page faults? No scanning, constant work per page fault How important is recency vs. frequency in predicting page re-use?

Working Set The set of pages that a process currently needs When is a page in the working set? When it has been referenced in the last x references What’s the difference between temporal and spacial locality?

Example for (int i=0; i<1000; i++){ int i = 0; int j = 1; printf(“Hello World”); } int i = 0; int j = 1; int k = 2; i = j + k; printf(“Hello World”); double d = 100; myFunction(d, j); printf(“%d”, k); Temporal locality – locations referenced recently Spacial locality – locations near locations that have been referenced recently