Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Input/Output Systems: Architectures, Transmission Modes, and Magnetic Disk Technology, Slides of Computer Architecture and Organization

This chapter from the cs140 computer organization course covers various aspects of i/o systems, including architectures, data transmission modes, and magnetic disk technology. Topics include i/o objectives, bus characteristics, memory-mapped i/o, interrupts, dma, parallel data transmission, magnetic disk geometry, and raid levels. Real-world examples of magnetic disks and their specifications are also provided.

Typology: Slides

2012/2013

Uploaded on 04/24/2013

baijayanthi
baijayanthi 🇮🇳

4.5

(13)

171 documents

1 / 106

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 7: IO
Chapter7: IO 1
CS140 Computer Organization
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Input/Output Systems: Architectures, Transmission Modes, and Magnetic Disk Technology and more Slides Computer Architecture and Organization in PDF only on Docsity!

Chapter 7: IO

  • Chapter7: IO – 1

CS140 Computer Organization

Chapter 7 Objectives

  • Understand how I/O systems work, including I/O

methods and architectures.

  • Become familiar with storage media, and the

differences in their respective formats.

  • Understand how RAID improves disk performance and

reliability, and which RAID systems are most useful

today.

  • Be familiar with emerging data storage technologies

and the barriers that remain to be overcome.

  • Chapter7: IO – 2

7.2 I/O and Performance

  • Sluggish I/O throughput can have a ripple effect, dragging down overall system performance. - This is especially true when virtual memory is involved.
  • The fastest processor in the world is of little use if it spends most of its time waiting for data. - Chapter7: IO – 4

Not Enough

Memory

Put overflow of

Data and

Programs on Disk.

Slow

Machine

7.2 I/O and Performance

  • Chapter7: IO – 5

7.3 Amdahl’s Law

EXAMPLE:

  • On a large system, suppose we can upgrade a CPU to make it 50% faster for $10,000 or upgrade its disk drives for $7,000 to make them 250% faster.
  • Processes spend 70% of their time running in the CPU and 30% of their time waiting for disk service.
  • An upgrade of which component would offer the greater benefit for the lesser cost? - Chapter7: IO – 7

7.3 Amdahl’s Law

  • The processor option offers a 130% speedup:
  • And the disk drive option gives a 122% speedup:
  • Each 1% of improvement for the processor costs $333, and for the disk a 1% improvement costs $318. - Chapter7: IO – 8 Should price/performance be your only concern?
EXAMPLE:
  • On a large system, suppose we can upgrade a CPU to make it 50% faster
for $10,000 or upgrade its disk drives for $7,000 to make them 250%
faster.
  • Processes spend 70% of their time running in the CPU and 30% of their
time waiting for disk service.
  • An upgrade of which component would offer the greater benefit for the
lesser cost?
Docsity.com

7.4 I/O Architectures

This is a model I/O configuration.

  • Chapter7: IO – 10

7.4 I/O Architectures - Buses

  • Chapter7: IO – 11
Goal: Place data from
the disk into memory:
Steps in a bus operation:

1. Processor arbitrates for and sends request to the **PCI bus.

  1. PCI passes request to** **SCSI controller.
  2. SCSI controller arbitrates** for SCSI bus and then **passes request to disk.
  3. Disk arbitrates for SCSI** bus and then sends data **back to SCSI controller.
  4. The SCSI controller** arbitrates for control of the PCI bus and then makes request of bridge **controller (the chip set).
  5. SCSI controller sends data** to memory.

7.4 I/O Architectures - Buses

  • Chapter7: IO – 13
Bus Characteristics:
Bandwidth,
Response time,
Length,
Physical
Standardized?

7.4 I/O Architectures - Interfacing

  • Chapter7: IO – 14

The Operating System has the job of talking to the hardware –

together they take responsibility for:

1. Allowing multiple programs using the processor to share the

IO,

2. Working with interrupts as a means of communicating

between the Processor and the IO,

3. Mechanisms that allow the processor to request IO

operations.

7.4 I/O Architectures

I/O can be controlled in four general ways.

  • Programmed I/O reserves a register for each I/O device. Each register is continually polled to detect data arrival.
  • Interrupt-Driven I/O allows the CPU to do other things until I/O is requested.
  • Direct Memory Access (DMA) offloads I/O processing to a special-purpose chip that takes care of the details.
  • Channel I/O uses dedicated I/O processors.
    • Chapter7: IO – 16

7.4 I/O Architectures

This is an idealized I/O subsystem that uses interrupts. Each device

connects its interrupt line to the interrupt controller.

  • Chapter7: IO – 17

The controller

signals the

CPU when

any of the

interrupt lines

are asserted.

7.4 I/O Architectures

  • Recall from Chapter 4 that in a system that uses interrupts, the status of the interrupt signal is checked at the top of the fetch- decode-execute cycle.
  • The particular code that is executed whenever an interrupt occurs is determined by a set of addresses called interrupt vectors that are stored in low memory. PIC had only one at address = 4; bigger machines have many more.
  • The system state is saved before the interrupt service routine is executed and is restored afterward. - Chapter7: IO – 19

7.4 I/O Architectures

This is a DMA

configuration.

Notice that the DMA

and the CPU share the

bus.

The DMA runs at a

higher priority and

steals memory cycles

from the CPU.

  • Chapter7: IO – 20