1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

COMP375 Computer Architecture and Organization Senior Review.
I/O Management and Disk Scheduling
CA 714CA Midterm Review. C5 Cache Optimization Reduce miss penalty –Hardware and software Reduce miss rate –Hardware and software Reduce hit time –Hardware.
Lecture 36: Chapter 6 Today’s topic –RAID 1. RAID Redundant Array of Inexpensive (Independent) Disks –Use multiple smaller disks (c.f. one large disk)
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Storage. The Memory Hierarchy fastest, but small under a microsecond, random access, perhaps 2Gb Typically magnetic disks, magneto­ optical (erasable),
CS4432: Database Systems II Data Storage - Lecture 2 (Sections 13.1 – 13.3) Elke A. Rundensteiner.
1 Advanced Database Technology February 12, 2004 DATA STORAGE (Lecture based on [GUW ], [Sanders03, ], and [MaheshwariZeh03, ])
Review of Mem. HierarchyCSCE430/830 Review of Memory Hierarchy CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U.
1 Storing Data: Disks and Files Yanlei Diao UMass Amherst Feb 15, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
1 Chapter 6 Storage and Multimedia: The Facts and More.
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
1 Lecture 27: Disks, Reliability, SSDs, Processors Topics: HDDs, SSDs, RAID, Intel and IBM case studies Final exam stats:  Highest 91, 18 scores of 82+
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
1 Outline File Systems Implementation How disks work How to organize data (files) on disks Data structures Placement of files on disk.
CS4432: Database Systems II Lecture 2 Timothy Sutherland.
Disks.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts, Amherst Operating Systems CMPSCI 377 Lecture.
S.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
1 Introduction to Computers Day 4. 2 Storage device A functional unit into which data can be –placed –retained(stored) –retrieved(accessed)
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
September 5, 2015©2003 Craig Zilles (derived from slides by Howard Huang) 1 Introduction to I/O  Where does the data for our CPU and memory come from.
Lecture 11: DMBS Internals
1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage.
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
 Higher associativity means more complex hardware  But a highly-associative cache will also exhibit a lower miss rate —Each set has more blocks, so there’s.
Chapter 111 Chapter 11: Hardware (Slides by Hector Garcia-Molina,
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
ICS 321 Fall 2011 Overview of Storage & Indexing (i) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 11/9/20111Lipyeow.
External Storage Primary Storage : Main Memory (RAM). Secondary Storage: Peripheral Devices –Disk Drives –Tape Drives Secondary storage is CHEAP. Secondary.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.1 This chapter focuses on key hardware layer components.
Chapter 8 External Storage. Primary vs. Secondary Storage Primary storage: Main memory (RAM) Secondary Storage: Peripheral devices  Disk drives  Tape.
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
Database Systems Disk Management Concepts. WHY DO DISKS NEED MANAGING? logical information  physical representation bigger databases, larger records,
Disks and Disk Scheduling Steve Muckle Monday, March 31st Spring 2003.
Disk Basics CS Introduction to Operating Systems.
1 Important Announcements  Midterm 3 is on Wednesday, April 20 from 7pm to 8:30pm —Practice Midterm 1 released tonight —Please me ASAP in case you.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Section 13.2 – Secondary storage management (Former Student’s Note)
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
1 Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections )
1 Important Announcements  Midterm 3 is on Wednesday, April 20 from 7pm to 8:30pm —Practice Midterm 1 released tonight —Please me ASAP in case you.
Device Management Mark Stanovich Operating Systems COP 4610.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Magnetic Disk Rotational latency Example Find the average rotational latency if the disk rotates at 20,000 rpm.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Programmer’s View of Files Logical view of files: –An a array of bytes. –A file pointer marks the current position. Three fundamental operations: –Read.
COSC 6340: Disks 1 Disks and Files DBMS stores information on (“hard”) disks. This has major implications for DBMS design! » READ: transfer data from disk.
Lecture 3 Secondary Storage and System Software I
CS422 Principles of Database Systems Disk Access Chengyu Sun California State University, Los Angeles.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
CSIS-110 Introduction to Computer Science
I/O Resource Management: Software
Hard Drives.
Introduction to Computing
Disks and Files DBMS stores information on (“hard”) disks.
Introduction to I/O Where does the data for our CPU and memory come from or go to? Computers communicate with the outside world via I/O devices. Input.
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Presentation transcript:

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

2  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 I/O Performance

3 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

4 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

5 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!

6 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

7 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 = 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

8 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

9 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]  What is the cache size (data)? What is the block size? What is the associativity? average time (in ns)