Components of the Virtual Memory System

Similar documents
Lecture 23. Finish-up buses Storage

Lectures More I/O

Introduction to I/O. April 30, Howard Huang 1

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

Module 1: Basics and Background Lecture 4: Memory and Disk Accesses. The Lecture Contains: Memory organisation. Memory hierarchy. Disks.

Computer System Architecture

I/O CANNOT BE IGNORED

I/O CANNOT BE IGNORED

Monday, May 4, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

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

CSCI-GA Database Systems Lecture 8: Physical Schema: Storage

Lecture: Storage, GPUs. Topics: disks, RAID, reliability, GPUs (Appendix D, Ch 4)

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections )

BBM371- Data Management. Lecture 2: Storage Devices

Adapted from instructor s supplementary material from Computer. Patterson & Hennessy, 2008, MK]

CSE 120. Operating Systems. March 27, 2014 Lecture 17. Mass Storage. Instructor: Neil Rhodes. Wednesday, March 26, 14

Wednesday, April 25, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

Page 1. Magnetic Disk Purpose Long term, nonvolatile storage Lowest level in the memory hierarchy. Typical Disk Access Time

Principles of Data Management. Lecture #2 (Storing Data: Disks and Files)

Storage Devices for Database Systems

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems

Chapter 6. Storage and Other I/O Topics

COMP283-Lecture 3 Applied Database Management

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

High-Performance Storage Systems

Storage. CS 3410 Computer System Organization & Programming

Session: Hardware Topic: Disks. Daniel Chang. COP 3502 Introduction to Computer Science. Lecture. Copyright August 2004, Daniel Chang

Storage System COSC UCB

Physical Representation of Files

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Outline of Today s Lecture. The Big Picture: Where are We Now?

Lecture 25: Interconnection Networks, Disks. Topics: flow control, router microarchitecture, RAID

Storing Data: Disks and Files. Storing and Retrieving Data. Why Not Store Everything in Main Memory? Database Management Systems need to:

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

Storing Data: Disks and Files. Storing and Retrieving Data. Why Not Store Everything in Main Memory? Chapter 7

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

Storage Systems. Storage Systems

COS 318: Operating Systems. Storage Devices. Jaswinder Pal Singh Computer Science Department Princeton University

Disk Scheduling. Based on the slides supporting the text

CS61C - Machine Structures. Week 7 - Disks. October 10, 2003 John Wawrzynek

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

IT 252 Computer Organization and Architecture. Introduction to I/O

Disk Scheduling. Chapter 14 Based on the slides supporting the text and B.Ramamurthy s slides from Spring 2001

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

Database Systems. November 2, 2011 Lecture #7. topobo (mit)

Today: Secondary Storage! Typical Disk Parameters!

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

COS 318: Operating Systems. Storage Devices. Kai Li Computer Science Department Princeton University

Chapter 9: Peripheral Devices: Magnetic Disks

Mass-Storage Structure

secondary storage: Secondary Stg Any modern computer system will incorporate (at least) two levels of storage:

Appendix D: Storage Systems

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring 2002

Distributed Video Systems Chapter 3 Storage Technologies

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues

CSCI-GA Operating Systems. I/O : Disk Scheduling and RAID. Hubertus Franke

COS 318: Operating Systems. Storage Devices. Vivek Pai Computer Science Department Princeton University

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

Guerrilla 7: Virtual Memory, ECC, IO

CS 201 The Memory Hierarchy. Gerson Robboy Portland State University

Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

Storing Data: Disks and Files

UC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara

Chapter 10: Mass-Storage Systems

Storage and File Structure

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

CISC 7310X. C11: Mass Storage. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 4/19/2018 CUNY Brooklyn College

Pipelining Exercises, Continued

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

4.1 Introduction 4.3 Datapath 4.4 Control 4.5 Pipeline overview 4.6 Pipeline control * 4.7 Data hazard & forwarding * 4.

Storing Data: Disks and Files

Storing Data: Disks and Files

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Data Storage and Query Answering. Data Storage and Disk Structure (2)

Disks and RAID. CS 4410 Operating Systems. [R. Agarwal, L. Alvisi, A. Bracy, E. Sirer, R. Van Renesse]

Storing Data: Disks and Files

Where Have We Been? Ch. 6 Memory Technology

CS143: Disks and Files

Classifying Physical Storage Media. Chapter 11: Storage and File Structure. Storage Hierarchy (Cont.) Storage Hierarchy. Magnetic Hard Disk Mechanism

Classifying Physical Storage Media. Chapter 11: Storage and File Structure. Storage Hierarchy. Storage Hierarchy (Cont.) Speed

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. 5 th. Edition. Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Chapter 6 External Memory

COT 4600 Operating Systems Fall 2009

Mass-Storage Structure

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont.

CS3600 SYSTEMS AND NETWORKS

A track on a magnetic disk is a concentric rings where data is stored.

u Covered: l Management of CPU & concurrency l Management of main memory & virtual memory u Currently --- Management of I/O devices

ECE331: Hardware Organization and Design

Direct Mapped Cache Hardware. Direct Mapped Cache. Direct Mapped Cache Performance. Direct Mapped Cache Performance. Miss Rate = 3/15 = 20%

Chapter 13: Mass-Storage Systems. Disk Scheduling. Disk Scheduling (Cont.) Disk Structure FCFS. Moving-Head Disk Mechanism

Chapter 13: Mass-Storage Systems. Disk Structure

Chapter 11. I/O Management and Disk Scheduling

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

CSCI-UA.0201 Computer Systems Organization Memory Hierarchy

Transcription:

Components of the Virtual Memory System Arrows indicate what happens on a lw virtual page number (VPN) page offset virtual address TLB physical address PPN page offset page table tag index block offset disk cache memory data 1

I/O Performance There are two fundamental performance metrics for I/O systems: 1. Latency: the time taken for the smallest transfer (units = time) This is a primary concern for programs that do many small dependent transfers 2. Bandwidth: the amount of data that can be transferred in unit time (units = bytes/time) This is a primary concern for applications which transfer large amounts of data in big blocks If you download large files, bandwidth will be the limiting factor 2

Back of the Envelope Calculation Because data transmission can be pipelined, the total time to get data can be estimated as: Time = latency + transfer_size / bandwidth sec bytes / (bytes/sec) Dominant term for small transfers Dominant term for large transfers latency 3

Hard drives The textbook shows the ugly guts of a hard disk Data is stored on double-sided magnetic disks called platters Each platter is arranged like a record, with many concentric tracks Tracks are further divided into individual sectors, which are the basic unit of data transfer Each surface has a read/write head like the arm on a record player, but all the heads are connected and move together A 75GB IBM Deskstar has roughly: 5 platters (10 surfaces), 27,000 tracks per surface, 512 sectors per track, and 512 bytes per sector Platter Platters Tracks Sectors Track 4

Accessing data on a hard disk Factors affecting latency: Seek time measures the delay for the disk head to reach the track A rotational delay accounts for the time to get to the right sector Factors affecting bandwidth: The transfer time is how long the actual data read or write takes. We usually assume that the disk can read/write as fast as it can spin. Thus, the transfer time is determined by the rotational speed, which also determines the rotational delay Manufacturers often report average seek times of 8-10ms average the time to seek from any track to any other track In practice, seek times are often much better if the head is already on or near the desired track, then seek time is much smaller (2-3ms) locality is important! 5

Estimating rotational delay Once the head is in place, we need to wait until the right sector is underneath the head This may require as little as no time (reading consecutive sectors) or as much as a full rotation (just missed it) On average, for random reads/writes, we can assume that the disk spins halfway on average Rotational delay depends on how fast the disk platters spin: Average rotational delay = 0.5 rotations / rotations per minute For example, a 5400 RPM disk has an average rotational delay of: 0.5 rotations / (5400 rotations/minute) = 5.55ms The average latency is the sum of the average seek time and the average rotational delay 6

Estimating transfer time Assume a disk has the following specifications An average seek time of 11ms A 5400 RPM rotational speed A 10MB/s average transfer rate How long does it take to read a random 1,024 byte sector? The average rotational delay is 5.55ms Thus, the average latency is 11 + 5.55 = 16.55ms The transfer time will be about (1024 bytes / 10 MB/s) = 0.1ms It thus takes 16.55ms + 0.1ms = 16.7ms to read a random sector That s 16,700,000 cycles for a 1GHz processor! One possible measure of bandwidth would be the number of consecutive sectors that can be read in one second each additional sector takes 0.1ms to read 7

Parallel I/O Many hardware systems use parallelism for increased speed Pipelined processors include extra hardware so they can execute multiple instructions simultaneously Dividing memory into banks lets us access several words at once A redundant array of inexpensive disks or RAID system allows access to several hard drives at once, for increased bandwidth The picture below shows a single data file with fifteen sectors denoted A-O, which are striped across four disks This is reminiscent of interleaved main memories from last week 8

Inferring the cache structure Consider the following program char a[length]; int sum = 0; for(int i = 0; i < 10000; ++i) for(int j = 0; j < LENGTH; j += STEP) sum += a[j]; Key idea: compute the average time it takes to execute sum += a[j] average time (in ns) What is the cache size (data)? What is the block size? What is the associativity? 9