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

Similar documents
Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory.

Lecture 23. Finish-up buses Storage

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

ECE232: Hardware Organization and Design

Lecture 13. Storage, Network and Other Peripherals

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

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Introduction I/O 1. I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec

Storage. Hwansoo Han

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Fall 2012 Euiseong Seo

Systems Architecture II

Computer Architecture Computer Science & Engineering. Chapter 6. Storage and Other I/O Topics BK TP.HCM

Chapter 6. Storage and Other I/O Topics

Chapter 6 Storage and Other I/O Topics

Input/Output. Today. Next. Principles of I/O hardware & software I/O software layers Disks. Protection & Security

I/O CANNOT BE IGNORED

Components of the Virtual Memory System

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

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

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

Storage Systems. Storage Systems

Chapter 6. Storage and Other I/O Topics

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

Memory Technology. Chapter 5. Principle of Locality. Chapter 5 Large and Fast: Exploiting Memory Hierarchy 1

COMP375 Practice Final Exam

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

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

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

Module 6: INPUT - OUTPUT (I/O)

Lectures More I/O

Chapter 6. Storage and Other I/O Topics

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

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important

CSE 153 Design of Operating Systems Fall 2018

Chapter 6. Storage & Other I/O

CS252 S05. CMSC 411 Computer Systems Architecture Lecture 18 Storage Systems 2. I/O performance measures. I/O performance measures

Reading and References. Input / Output. Why Input and Output? A typical organization. CSE 410, Spring 2004 Computer Systems

ECE331: Hardware Organization and Design

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

Thomas Polzer Institut für Technische Informatik

Storage. CS 3410 Computer System Organization & Programming

Chapter 6. Storage and Other I/O Topics. Jiang Jiang

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

Chapter 11. I/O Management and Disk Scheduling

Introduction to Input and Output

EE108B Lecture 17 I/O Buses and Interfacing to CPU. Christos Kozyrakis Stanford University

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

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

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

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Spring 2014 Euiseong Seo

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

CHAPTER 12: MASS-STORAGE SYSTEMS (A) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

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

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

Distributed Video Systems Chapter 3 Storage Technologies

CSE 153 Design of Operating Systems

Computer Architecture 计算机体系结构. Lecture 6. Data Storage and I/O 第六讲 数据存储和输入输出. Chao Li, PhD. 李超博士

The DASD and Evolution of Storage Devices

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

CENG3420 Lecture 08: Memory Organization

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

COMP283-Lecture 3 Applied Database Management

High-Performance Storage Systems

Storage System COSC UCB

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

I/O CANNOT BE IGNORED

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

Appendix D: Storage Systems

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

Virtual Memory Input/Output. Admin

Computer Systems Laboratory Sungkyunkwan University

CS143: Disks and Files

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

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University

Storing Data: Disks and Files

COMPUTER ORGANIZATION AND DESIGN

Chapter 9: Peripheral Devices: Magnetic Disks

ELE 375 Final Exam Fall, 2000 Prof. Martonosi

Lecture 23: I/O Redundant Arrays of Inexpensive Disks Professor Randy H. Katz Computer Science 252 Spring 1996

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

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

CS3600 SYSTEMS AND NETWORKS

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

Introduction to I/O and Disk Management

Chapter 6. Storage and Other I/O Topics

Introduction to I/O and Disk Management

Announcement. Computer Architecture (CSC-3501) Lecture 23 (17 April 2008) Chapter 7 Objectives. 7.1 Introduction. 7.2 I/O and Performance

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

Input/Output. Chapter 5: I/O Systems. How fast is I/O hardware? Device controllers. Memory-mapped I/O. How is memory-mapped I/O done?

Computer Science 61C Spring Friedland and Weaver. Input/Output

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

Operating Systems 2010/2011

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

Storage Technologies - 3

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

Computer System Architecture

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

Chapter Seven Morgan Kaufmann Publishers

Storage and File Structure

Transcription:

Date: 3.10 Not all questions are of equal difficulty. Please review the entire quiz first and then budget your time carefully. Name: Course: 1. [6 points] Give a concise answer to each of the following questions. Limit your answers to 20-30 words. (a) What is memory mapped I/O? (b) Why is DMA an improvement over CPU programmed I/O? (c) When would DMA transfer be a poor choice?

2. [6 points] Mention two advantages and disadvantages for using a single bus as a shared communication link between memory, processor and I/O devices. Page 2 of 16

3. [6 points] Disk Technology. Suppose we have a magnetic disk (resembling an IBM Microdrive) with the following parameters: Average seek time 12 ms Rotation rate 3600 RPM Transfer rate 3.5 MB/second # sectors per track 64 Sector size 512 bytes Controller overhead 5.5 ms Answer the following questions. (Note: you may leave any answer as a fraction.) (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? Page 3 of 16

4. [6 points] Answer the following questions: (a) What is the average time to read or write a 512-byte sector for a typical disk rotating at 7200 RPM? The advertised average seek time is 8ms, the transfer rate is 20MB/sec, and the controller overhead is 2ms. Assume that the disk is idle so that there is no waiting time. (b) A program repeatedly performs a three-step process: It reads in a 4-KB block of data from disk, does some processing on that data, and then writes out the result as another 4-KB block elsewhere on the disk. Each block is contiguous and randomly located on a single track on the disk. The disk drive rotates at 7200RPM, has an average seek time of 8ms, and has a transfer rate of 20MB/sec. The controller overhead is 2ms. No other program is using the disk or processor, and there is no overlapping of disk operation with processing. The processing step takes 20 million clock cycles, and the clock rate is 400MHz. What is the overall speed of the system in blocks processed per second assuming no other overhead? Page 4 of 16

5. [6 points] What is the bottleneck in the following system setup, the CPU, memory bus, or the disk set? The user program continuously performs reads of 64KB blocks, and requires 2 million cycles to process each block. The operating system requires 1 million cycles of overhead for each I/O operation. The clock rate is 3GHz. The maximum sustained transfer rate of the memory bus is 640MB/sec The read/write bandwidth of the disk controller and the disk drives is 64MB/sec, disk average seek plus rotational latency is 9ms. There are 20 disks attached to the bus each with its own controller. (Assume that each disk can be controlled independently and ignore disk conflicts.) Page 5 of 16

6. [6 points] Discuss why RAID 3 is not suited for transaction processing applications. What kind of applications is it suitable for and why? Page 6 of 16

7. [7 points] Suppose we have two different I/O system 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 3M I/O request, taking performance into consideration, which I/O system will you use? What about for a 3KB request? Page 7 of 16

8. [7 points] If a system contains 1,000 disk drives, and each of them has a 800,000 hour MTBF, how often a drive failure will occur in that disk system? Could you give some idea to improve that? And why will your idea work? Page 8 of 16

9. [6 points] What is the average time to read a 512 byte sector for Seagate ST31000340NS in Figure 6.5? What is the minimum time? Assume that the controller overhead is 0.2 ms, and the disk is idle so that there is no waiting time. Page 9 of 16

10. [4 points] How many times can you store a 4MB song at your 1GB NOR flash memory in Figure 6.7 before the first wear out if wear leveling working ideally? Page 10 of 16

11. [6 points] In Figure 6.8 which fields are correlated with each other? Why do these correlations exist? Page 11 of 16

12. [6 points] In Figure 6.9, PCI-E connections are available from both the north bridge and the south bridge. What are the advantages and disadvantages to attaching devices to the PCI-E connections on the north and south bridges? Page 12 of 16

13. [6 points] Section 6.7 focuses on transactional processing as an example of a disk IO intensive application. Give another example of a disk IO intensive application compare and contrast the performance requirements and consider how different disk implementations (magnetic media, flash memory, or MEMS device) can be more or less appropriate for different applications. Page 13 of 16

14. [6 points] Imagine that you are proposing a new disk IO benchmark for transaction processing, what sort of experiments would you perform to show that your benchmark's results are meaningful. Imagine that you are reviewing a paper introducing a new disk IO benchmark for transaction processing. What sort of subtle flaws would you search for? Page 14 of 16

15. [6 points] Which of the following would be an acceptable transport medium for real-time transmission of human voice data? Which would be overkill? 56.5Kbps modem 100 Base-T Ethernet connection 802.11b wireless connection. Page 15 of 16

16. [10 points] A given computer system includes a hard disk with direct memory access (DMA). (a) Suppose a user application needs to change a single byte within a disk block. Sketch, in order, all communications that must take place between the processor and the hard drive to complete this operation. (b) Assume the total time required to perform a read of n blocks from a hard disk is T(n) = 250ms + 100ms * n. Further, assume that for any read or write to a hard disk block a, there is a probability p = 0.75 that hard disk block a+1 will be read soon afterwards. Given that an application has requested a read of a single disk block, the OS can expect the application to read subsequent blocks later. If the OS will pursue a strategy of reading n blocks at a time, analyze how the OS can choose this n in order to minimize the expected read time. Page 16 of 16