External Memory. Memory Hierarchy. Magnetic Disks. Magnetic Disks. Magnetic Disks. Magnetic Disks. Maximum Latency Time. Average Latency Time

Similar documents
Chapter 1 Computer System Overview

1. Computer System Structure and Components

Computer Organization & Architecture Lecture #19

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Robert Wagner

Have both hardware and software. Want to hide the details from the programmer (user).

William Stallings Computer Organization and Architecture 7 th Edition. Chapter 6 External Memory

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

Computer Systems Structure Input/Output

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Big Picture. IC220 Set #11: Storage and I/O I/O. Outline. Important but neglected

CS 6290 I/O and Storage. Milos Prvulovic

Chapter 9: Peripheral Devices: Magnetic Disks

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

Devices and Device Controllers

Central Processing Unit

Record Storage and Primary File Organization

Computer-System Architecture

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Read this before starting!

Chapter 2 Data Storage

Microprocessor & Assembly Language

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 13-1

William Stallings Computer Organization and Architecture 8 th Edition. External Memory

Chapter 13 Disk Storage, Basic File Structures, and Hashing.

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

File System & Device Drive. Overview of Mass Storage Structure. Moving head Disk Mechanism. HDD Pictures 11/13/2014. CS341: Operating System

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

Solid State Drive Architecture

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

Communicating with devices

Chapter 11 I/O Management and Disk Scheduling

University of Dublin Trinity College. Storage Hardware.

Computer Systems Structure Main Memory Organization

Secondary Storage. Any modern computer system will incorporate (at least) two levels of storage: magnetic disk/optical devices/tape systems

Chapter 13. Disk Storage, Basic File Structures, and Hashing

Storage. The text highlighted in green in these slides contain external hyperlinks. 1 / 14

Chapter 8 Memory Units

Input / Output and I/O Strategies

Chapter 2: OS Overview

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Serial Communications

Computer Organization. and Instruction Execution. August 22

Price/performance Modern Memory Hierarchy

HARD DRIVE CHARACTERISTICS REFRESHER

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

Chapter 13. Chapter Outline. Disk Storage, Basic File Structures, and Hashing

CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen

Computer Peripherals

CSC 2405: Computer Systems II

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

INTRODUCTION The collection of data that makes up a computerized database must be stored physically on some computer storage medium.

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

Storage and File Systems. Chester Rebeiro IIT Madras

Storing Data: Disks and Files

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7)

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Platter. Track. Index Mark. Disk Storage. PHY 406F - Microprocessor Interfacing Techniques

& Data Processing 2. Exercise 2: File Systems. Dipl.-Ing. Bogdan Marin. Universität Duisburg-Essen

MICROPROCESSOR AND MICROCOMPUTER BASICS

Introduction. What is an Operating System?

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

1 File Management. 1.1 Naming. COMP 242 Class Notes Section 6: File Management

Introduction to I/O and Disk Management

Outline. CS 245: Database System Principles. Notes 02: Hardware. Hardware DBMS Data Storage

Tech Application Chapter 3 STUDY GUIDE

Let s put together a Manual Processor

Data Storage - I: Memory Hierarchies & Disks

COMPUTERS ORGANIZATION 2ND YEAR COMPUTE SCIENCE MANAGEMENT ENGINEERING UNIT 5 INPUT/OUTPUT UNIT JOSÉ GARCÍA RODRÍGUEZ JOSÉ ANTONIO SERRA PÉREZ

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Parallel Port Interfacing with Switches, Keypad and Rotatory encoder

Outline. Principles of Database Management Systems. Memory Hierarchy: Capacities and access times. CPU vs. Disk Speed

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

Types Of Storage Device

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

2011, The McGraw-Hill Companies, Inc. Chapter 3

Operating Systems Overview

Computer Peripherals

Exception and Interrupt Handling in ARM

Physical Data Organization

1 Storage Devices Summary

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Chapter 10: Mass-Storage Systems

Operating Systems. Lecture 03. February 11, 2013

File System Management

COMPUTER ARCHITECTURE. Input/Output

COS 318: Operating Systems. I/O Device and Drivers. Input and Output. Definitions and General Method. Revisit Hardware

System Architecture. CS143: Disks and Files. Magnetic disk vs SSD. Structure of a Platter CPU. Disk Controller...

UNIT 4 Software Development Flow

Q & A From Hitachi Data Systems WebTech Presentation:

TIMING DIAGRAM O 8085

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

Chapter 8: Structures for Files. Truong Quynh Chi Spring- 2013

Software Manual RS232 Laser Merge Module. Document # SU Rev A

lesson 1 An Overview of the Computer System

PART B QUESTIONS AND ANSWERS UNIT I

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

I/O. Input/Output. Types of devices. Interface. Computer hardware

Traditional IBM Mainframe Operating Principles

Case for storage. Outline. Magnetic disks. CS2410: Computer Architecture. Storage systems. Sangyeun Cho

Transcription:

Memory Hierarchy External Memory 1 2 Each sector on a single track contains one block of data, typically 512 bytes, and represents the smallest unit that can be independently read or written. Regardless of the track, the same angle is swept out when a sector is accessed, thus the transfer time is kept constant when the motor rotating at a fixed speed. This technique is known as CAV - Constant Angular Velocity. 3 4 After the head is on the desired track, the time taken to locate to correct sector Maximum Latency Time Seek time: the time required to move from one track to another Latency time: After the head is on the desired track, the time taken to locate to correct sector. Transfer time: Time taken to transfer one block of data. Average Latency Time Time taken to transfer one block of data Transfer Time 5 6 1

A single data block Header for MS-DOS/Windows disk Disk interleaving 7 8 A floppy disk is rotating at 300 rpm (revolutions per minute). The disk is divided in to 12 sectors, with 40 tracks on the disk. The disk is singled sided. A block consists of a single sector on a single track. Each block contains 200 bytes. What is the disk capacity in bytes? What is the maximum and minimum latency time for this disk? What is the transfer time for a single block? A multiplattered hard disk is divided into 40 sectors and 400 cylinders. There are four platter surfaces. The total capacity of the disk is 128 MB. A cluster consists of 4 blocks. The disk is rotating at a rate of 4800 rpm. The disk has an average seek time of 12 msec. What is the capacity of a cluster for this disk? What is the disk transfer rate in bytes per second? What is the average latency time for the disk? 9 10 Optical Disks Optical Disks CD format designed for maximum capacity Each block the same length along the track, regardless of locations More bits per revolution at the outside of the disk than at the inside A variable speed motor is used to keep transfer rate constant The disk move slower when the outside tracks are be read Constant Linear Velocity, CLV 11 12 2

Optical Disks Others Tape RAID... 13 14 Overview I/O module is the third key element of a computer system. (others are ) Input / Output All computer systems must have efficient means to receive input and deliver output We will look at I/O module and their interface to the system I/O mechanisms Example interfaces 15 16 I/O modules I/O modules Each I/O module interfaces to the system bus and controls one or more peripheral devices. External devices are generally not connected directly to the bus structure of the computer systems - Wide variety of devices require different logic interfaces - impractical to expect the CPU to know how to control each device Mismatch of data rates Different data representation 17 18 3

I/O modules I/O Module Diagram The I/O modules Systems Bus Interface External Device Interface Not just simple mechanical connectors Contain intelligence - logic for performing communication functions between the peripherals and the bus. Provide standard interfaces to the CPU and the bus Tailored to specific I/O devices and their interfaces requirement Relieve CPU of the the management of I/O devices Interfaces consist of Control Status and signals Lines Address Lines Lines Register Status/Control Register Input Output Logic External Device Interface Logic External Device Interface Logic Status Control Status Control 19 20 I/O operation in which the CPU issues the I/O command to the I/O module CPU is in direct control of the operation Sensing status, Read/write commands, Transferring data CPU waits until the I/O operation is completed before it can perform other tasks Completion indicated by a change in the status bits CPU must periodically poll the module to check its status bits The speed of the CPU and peripherals can differ by orders of magnitude, programmed I/O waste huge amount of CPU power Very inefficient CPU slowed to the speed of peripherals 21 22 Addressing I/O Devices Under programmed I/O data transfer is very like memory access (CPU viewpoint) Each device given unique identifier CPU commands contain identifier (address) Programmed I/O Operation Simple to implement. Requires very little special software or hardware 23 24 4

Memory mapped I/O Devices and memory share an address space I/O looks just like memory read/write No special commands for I/O Large selection of memory access commands available Isolated I/O Separate address spaces Need I/O or memory select lines Special commands for I/O Limited set 25 26 Interrupts Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing Program e.g. overflow, division by zero Timer Generated by internal processor timer I/O from I/O controller Hardware failure e.g. memory parity error 27 28 Interrupt Program Flow Interrupt Cycle Processor checks for interrupt Indicated by an interrupt signal (a control signal) If no interrupt, fetch next instruction If interrupt pending: Suspend execution of current program Save context Set PC to start address of interrupt handler routine Process interrupt Restore context and continue interrupted program 29 30 5

To reduce the time spent on I/O operation, the CPU can use an interrupt-driven approach CPU issues I/O command to the module CPU continues with its other tasks while the module performs its task Module signals the CPU when the I/O operation is finished (the interrupt) CPU responds to the interrupt by executing an interrupt service routine and then continues on with its primary task CPU recognizes and responds to interrupts at the end of an instruction execution cycle A wide variety devices use interrupt for I/O Interrupt driven I/O operation 31 32 CPU s Response to an Interrupt Process keyboard Input 33 34 Regulate output flow: Using a print handler interrupt Disable interrupts Multiple Interrupts Processor will ignore further interrupts whilst processing one interrupt Interrupts remain pending and are checked after first interrupt has been processed Interrupts handled in sequence as they occur Define priorities Low priority interrupts can be interrupted by higher priority interrupts When higher priority interrupt has been processed, processor returns to previous interrupt 35 36 6

Multiple Interrupts Disable interrupts DMA - Direct Memory Access Both programmed and interrupt driven I/O require the continue involvement of the CPU in on going I/O operation DMA take the CPU out of the task except for the initialization of the process Define priorities Large amount of data can be transferred without severely impacting CPU performance 37 38 DMA operation require additional hardware - DMA Controller module DMA process CPU initializes DMA module Define read or write operation I/O device involved Start address of memory block Number of words to be transferred CPU then continues with other work In practice, DMA uses the bus when the CPU is not using it. No impact on the CPU performance 39 40 Transfer a block of data from memory to disk 41 7