Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.

Slides:



Advertisements
Similar presentations
COMP375 Computer Architecture and Organization Senior Review.
Advertisements

Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
I/O Management and Disk Scheduling
Virtual Memory In this lecture, slides from lecture 16 from the course Computer Architecture ECE 201 by Professor Mike Schulte are used with permission.
Lecture 19: Cache Basics Today’s topics: Out-of-order execution
Lecture 8: Memory Hierarchy Cache Performance Kai Bu
Topics covered: Memory subsystem CSE243: Introduction to Computer Architecture and Hardware/Software Interface.
Problems in IO & File System CS 1550 Recitation November 4 th /6 th, 2002 The questions in this slide are from Andrew S. Tanenbaum's textbook page 375,
The Memory Hierarchy fastest, perhaps 1Mb
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.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
Review CPSC 321 Andreas Klappenecker Announcements Tuesday, November 30, midterm exam.
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
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+
Technical University of Lodz Department of Microelectronics and Computer Science Elements of high performance microprocessor architecture Virtual memory.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
CPSC-608 Database Systems Fall 2009 Instructor: Jianer Chen Office: HRBB 309B Phone: Notes #5.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 5 Disks CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent.
Disks.
CPSC-608 Database Systems Fall 2010 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #5.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
Lecture 41: Review Session #3 Reminders –Office hours during final week TA as usual (Tuesday & Thursday 12:50pm-2:50pm) Hassan: Wednesday 1pm to 4pm or.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Lecture 39: Review Session #1 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
1 Recitation 8 Disk & File System. 2 Disk Scheduling Disks are at least four orders of magnitude slower than main memory –The performance of disk I/O.
Lecture 11: DMBS Internals
Lecture 21 Last lecture Today’s lecture Cache Memory Virtual memory
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How are data stored? –physical level –logical level.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
Chapter 111 Chapter 11: Hardware (Slides by Hector Garcia-Molina,
Lecture 19: Virtual Memory
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
L/O/G/O Cache Memory Chapter 3 (b) CS.216 Computer Architecture and Organization.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
Virtual Memory 1 1.
Computer Organization & Programming
Lecture 08: Memory Hierarchy Cache Performance Kai Bu
CPSC-608 Database Systems Fall 2015 Instructor: Jianer Chen Office: HRBB 315C Phone: Notes #5.
ECE 456 Computer Architecture Lecture #16 – Exam#2 Review Instructor: Dr. Honggang Wang Fall 2013.
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 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.
Cache Operation.
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.
CPS216: Advanced Database Systems Notes 03: Data Access from Disks Shivnath Babu.
1 Lecture 16: Data Storage Wednesday, November 6, 2006.
Lecture 3 Secondary Storage and System Software I
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.
COSC2410: LAB 19 INTRODUCTION TO MEMORY/CACHE DIRECT MAPPING 1.
CS422 Principles of Database Systems Disk Access Chengyu Sun California State University, Los Angeles.
CSIS-110 Introduction to Computer Science
Morgan Kaufmann Publishers Memory & Cache
Lecture 11: DMBS Internals
Introduction I/O devices can be characterized by I/O bus connections
Lecture 21: Memory Hierarchy
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
Lecture 21: Memory Hierarchy
Lecture 22: Cache Hierarchies, Memory
Morgan Kaufmann Publishers Memory Hierarchy: Cache Basics
Lecture 13: Cache Basics Topics: terminology, cache organization (Sections )
CPS216: Advanced Database Systems Notes 04: Data Access from Disks
Presentation transcript:

Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through zzusis 1

Problem #5 Suppose we have two different I/O systems, A and B. A has data transfer rate: 5KB/s and has access delay: 5 sec. While B has data transfer rate: 3 KB/s and has access delay: 4 sec. Now we have a 3MB I/O request, taking performance into consideration, which I/O system will you use? What about for a 3KB request? 2

Solution #5 3M request –Case 1: t (in sec) = 5 + (3 * 1024 * 1024 ) / (5 * 1024) = = –Case 2: t (in sec) = 4 + (3 * 1024 * 1024) / (3 * 1024) = = 1028 So system 1 will be chosen. 3K request –Case 1: t (in sec) = 5 + (3 * 1024) / (5 * 1024) = 5.6 –Case 2: t (in sec) = 4 + (3 * 1024) / (3 * 1024) = 5 So system 2 will be chosen. 3

Disk Storage Nonvolatile, rotating magnetic storage 4

Disk Sectors and Access Access to a sector involves –Queuing delay if other accesses are pending –Seek: move the heads –Rotational latency –Data transfer –Controller overhead 5

Problem #6 Suppose we have a magnetic disk with the following parameters: (a) What is the average time to read a single sector? (b) What is the average time to read 8 KB in 16 consecutive sectors in the same cylinder? (c) Now suppose we have an array of 4 of these disks. They are all synchronized such that the arms on all the disks are always on the same sector within the track. The data is striped across the 4 disks so that 4 logically consecutive sectors can be read in parallel. What is the average time to read 32 consecutive KB from the disk array? 6 Average seek time12 ms Rotation rate3600 RPM Transfer rate3.5 MB/second # sectors per track64 Sector size512 bytes Controller overhead5.5 ms

Solution #6 (a) –Disk Access Time = seek time + rotational delay + transfer time + controller overhead –Thus, 12 + (0.5*60*10 3 /3600) + (512/(3.5*2 20 ))* = ms (b) –Only the transfer time gets changed. –Disk Access Time = seek time + rotational delay + transfer time + controller overhead –Thus, 12 + (0.5*60*10 3 /3600) + (8*1024/(3.5*2 20 ))* = ms (c) –Since 4 logically consecutive sectors can be read at once, we can read off 2 KB at once (each sector is 512 bytes). To read 32 KB, we need to read 16 sectors on each disk. So, the time taken is the same as in (b) 7

Set Associative Cache Organization 8

Problem #7 Consider a 64-byte cache with 8 byte blocks, an associativity of 2 and LRU block replacement. Virtual addresses are 16 bits. The cache is physically tagged. The processor has 16KB of physical memory. What is the total number of tag bits? 9

Solution #7 The cache is 64-bytes with 8-byte blocks, so there are 8 blocks. The associativity is 2, so there are 4 sets. Since there are 16KB of physical memory, a physical address is 14 bits long. Of these, 3 bits are taken for the offset (8- byte blocks), and 2 for the index (4 sets). That leaves 9 tag bits per block. Since there are 8 blocks, that makes 72 tag bits or 9 tag bytes. 10

Problem #8 Assume the following 10-bit address sequence generated by the microprocessor: The cache uses 4 bytes per block. Assume a 2-way set associative cache design that uses the LRU algorithm (with a cache that can hold a total of 4 blocks). Assume that the cache is initially empty. (a) determine the TAG, SET, BYTE OFFSET fields and fill in the table above. (b) In the figure below (for initial state and accesses 0 to 7), clearly mark for each access the TAG, Least Recently Used (LRU), and HIT/MISS information. (c) Derive the hit ratio for this access sequence! 11 Time Access TAG SET OFFSET Initial Block 0 Block 1 Set 0 Set 1

Solution #8 (a) (b) –In the following each access is represented by a triple: (Tag, LRU Bit, Hit Bit) –LRU bit = 1 if the current block is the least recently used one. Hit Bit = 1 if the current reference is a hit 12 Time Access TAG SET OFFSET Initial Block 0 Block 1 Set 0 Set 1 Access 0 Block 0 Block 1 Set 0 Set ,0,0 Access 1 Block 0 Block 1 Set ,0,0 Set ,0,0 Access 2 Block 0 Block 1 Set ,0,0 Set ,1, ,0,0

Solution #8 (Cont’d.) 13 Access 3 Block 0 Block 1 Set ,0,0 Set ,0, ,1,0 Access 4 Block 0 Block 1 Set ,0,0 Set ,1, ,0,0 Access 5 Block 0 Block 1 Set ,1, ,0,0 Set ,1, ,0,0 Access 6 Block 0 Block 1 Set ,1, ,0,0 Set ,0, ,1,0 Access 7 Block 0 Block 1 Set ,0,0 Set ,0, ,1,0 (c) The hit ratio for the above access sequence is given by : (1/8) = 0.125