23
Csci 136 Computer Architecture II Csci 136 Computer Architecture II – IO and Storage Systems – IO and Storage Systems Xiuzhen Cheng [email protected]

Csci 136 Computer Architecture II – IO and Storage Systems

  • Upload
    maj

  • View
    31

  • Download
    0

Embed Size (px)

DESCRIPTION

Csci 136 Computer Architecture II – IO and Storage Systems. Xiuzhen Cheng [email protected]. Announcement. Homework assignment #14, Due time – . Readings: Sections 8.1 – 8.4 Problems: 8.8, 8.10 – 8.22 Final: Tuesday, May 4 th , 11:00-1:00PM Note: you must pass final to pass this course!. - PowerPoint PPT Presentation

Citation preview

Page 1: Csci 136 Computer Architecture II – IO and Storage Systems

Csci 136 Computer Architecture IICsci 136 Computer Architecture II– IO and Storage Systems– IO and Storage Systems

Xiuzhen [email protected]

Page 2: Csci 136 Computer Architecture II – IO and Storage Systems

Announcement

Homework assignment #14, Due time – .Readings: Sections 8.1 – 8.4

Problems: 8.8, 8.10 – 8.22

Final: Tuesday, May 4th, 11:00-1:00PM

Note: you must pass final to pass this course!

Page 3: Csci 136 Computer Architecture II – IO and Storage Systems

I/O System Design Issues

Processor

Cache

Memory - I/O Bus

MainMemory

I/OController

Disk Disk

I/OController

I/OController

Graphics Network

interrupts

Performance

Expandability

Resilience in the face of failure

Page 4: Csci 136 Computer Architecture II – IO and Storage Systems

I/O Device Examples

Device Behavior Partner Data Rate (KB/sec)

Keyboard Input Human 0.01

Mouse Input Human 0.02

Line Printer Output Human 1.00

Floppy disk Storage Machine 50.00

Laser Printer Output Human 100.00

Optical Disk Storage Machine 500.00

Magnetic Disk Storage Machine 5,000.00

Network-LAN Input or Output Machine 20 – 1,000.00

Graphics Display Output Human 30,000.00

Page 5: Csci 136 Computer Architecture II – IO and Storage Systems

I/O System Performance

I/O System performance depends on many aspects of the system (“limited by weakest link in the chain”):

The CPU

The memory system:Internal and external caches

Main Memory

The underlying interconnection (buses)

The I/O controller

The I/O device

The speed of the I/O software (Operating System)

The efficiency of the software’s use of the I/O devices

Two common performance metrics:Throughput: I/O bandwidth

Response time: Latency

Page 6: Csci 136 Computer Architecture II – IO and Storage Systems

Simple Producer-Server Model

Throughput:The number of tasks completed by the server in unit time

In order to get the highest possible throughput:The server should never be idle

The queue should never be empty

Response time:Begins when a task is placed in the queue

Ends when it is completed by the server

In order to minimize the response time:The queue should be empty

The server will be idle

Producer ServerQueue

Page 7: Csci 136 Computer Architecture II – IO and Storage Systems

Throughput versus Respond Time

20% 40% 60% 80% 100%

ResponseTime (ms)

100

200

300

Percentage of maximum throughput

Page 8: Csci 136 Computer Architecture II – IO and Storage Systems

Throughput Enhancement

In general throughput can be improved by:Throwing more hardware at the problem

reduces load-related latency

Response time is much harder to reduce:Ultimately it is limited by the speed of light (but we’re far from it)

Producer

ServerQueue

QueueServer

Page 9: Csci 136 Computer Architecture II – IO and Storage Systems

Disk Capacity now doubles every 18 months; before1990 every 36 months

• Today: Processing Power Doubles Every 18 months

• Today: Memory Size Doubles Every 18 months(4X/3yr)

• Today: Disk Capacity Doubles Every 18 months

• Disk Positioning Rate (Seek + Rotate) Doubles Every Ten Years!

The I/OGAP

The I/OGAP

Technology Trends

Page 10: Csci 136 Computer Architecture II – IO and Storage Systems

Data densityMbit/sq. in.

Capacity ofUnit ShownMegabytes

1973:1. 7 Mbit/sq. in140 MBytes

1979:7. 7 Mbit/sq. in2,300 MBytes

source: New York Times, 2/23/98, page C3, “Makers of disk drives crowd even mroe data into even smaller spaces”

Disk History

Page 11: Csci 136 Computer Architecture II – IO and Storage Systems

1989:63 Mbit/sq. in60,000 MBytes

1997:1450 Mbit/sq. in2300 MBytes

source: New York Times, 2/23/98, page C3, “Makers of disk drives crowd even more data into even smaller spaces”

1997:3090 Mbit/sq. in8100 MBytes

Disk History

Page 12: Csci 136 Computer Architecture II – IO and Storage Systems

0%

5%

10%

15%

20%

25%

30%

35%

40%

45%

1974 1980 1986 1992 1998

source: New York Times, 2/23/98, page C3, “Makers of disk drives crowd even more data into even smaller spaces”

470 v. 3000 Mb/si

9 v. 22 Mb/si

0.2 v. 1.7 Mb/si

MBits per square inch: DRAM as % of Disk over time

Page 13: Csci 136 Computer Architecture II – IO and Storage Systems

Nano-layered Disk Heads

Special sensitivity of Disk head comes from “Giant Magneto-Resistive effect” or (GMR)

IBM is leader in this technologySame technology as TMJ-RAM breakthrough we described in earlier class.

Coil for writing

Page 14: Csci 136 Computer Architecture II – IO and Storage Systems

Driven by the prevailing computing paradigm1950s: migration from batch to on-line processing1990s: migration to ubiquitous computing

computers in phones, books, cars, video cameras, …nationwide fiber optical network with wireless tails

Effects on storage industry:Embedded storage

smaller, cheaper, more reliable, lower power

Data utilitieshigh capacity, hierarchically managed storage

Storage Technology Drivers

Page 15: Csci 136 Computer Architecture II – IO and Storage Systems

Organization of a Hard Magnetic Disk

Typical numbers (depending on the disk size):500 to 2,000 tracks per surface

32 to 128 sectors per trackOriginally the sector was the smallest unit that could be read or written

Traditionally all tracks have the same number of sectors:Constant bit density: record more sectors on the outer tracks

Recently relaxed: constant bit size, speed varies with track location

Platters

Track

Sector

Page 16: Csci 136 Computer Architecture II – IO and Storage Systems

Magnetic Disk Characteristic

Cylinder: all the tacks under the head at a given point on all surface

Read/write data is a three-stage process:Seek time: position the arm over the proper track

Rotational latency: wait for the desired sectorto rotate under the read/write head

Transfer time: transfer a block of bits (sector)under the read-write head

Average seek time as reported by the industry:Typically in the range of 8 ms to 12 ms

(Sum of the time for all possible seek) / (total # of possible seeks)

Due to locality of disk reference, actual average seek time may:

Only be 25% to 33% of the advertised number

SectorTrack

Cylinder

HeadPlatter

Page 17: Csci 136 Computer Architecture II – IO and Storage Systems

Typical Numbers of a Magnetic Disk

Rotational Latency:Most disks rotate at 3,600 to 7200 RPM

Approximately 16 ms to 8 ms per revolution, respectively

An average latency to the desiredinformation is halfway around the disk: 8 ms at 3600 RPM, 4 ms at 7200 RPM

Transfer Time is a function of :Transfer size (usually a sector): 1 KB / sector

Rotation speed: 3600 RPM to 10000 RPM

Recording density: bits per inch on a track

Diameter: typical diameter ranges from 2.5 to 5.25 in

Typical transfer speed: 20 to 40 MB per second

SectorTrack

Cylinder

HeadPlatter

Page 18: Csci 136 Computer Architecture II – IO and Storage Systems

Disk I/O Performance

Disk Access Time = Seek time + Rotational Latency + Transfer time + Controller Time + Queueing Delay

Estimating Queue Length:Utilization = U = Request Rate / Service Rate

Mean Queue Length = U / (1 - U)

As Request Rate -> Service RateMean Queue Length -> Infinity

ProcessorQueue

DiskController

Disk

Service RateRequest Rate

Queue

DiskController

Disk

Page 19: Csci 136 Computer Architecture II – IO and Storage Systems

Disk Latency = Queueing Time + Controller time + Seek Time + Rotation Time + Xfer Time

Order of magnitude times for 4K byte transfers:

Average Seek: 8 ms or less

Rotate: 4.2 ms @ 7200 rpm

Xfer: 1 ms @ 7200 rpm

Disk Device Terminology

Page 20: Csci 136 Computer Architecture II – IO and Storage Systems

Example

512 byte sector, rotate at 5400 RPM, advertised seeks is 12 ms, transfer rate is 4 MB/sec, controller overhead is 1 ms, queue idle so no service timeDisk Access Time = Seek time + Rotational Latency + Transfer time + Controller Time + Queueing Delay

Disk Access Time = 12 ms + 0.5 / 5400 RPM + 0.5 KB / 4 MB/s + 1 ms + 0Disk Access Time = 12 ms + 0.5 / 90 RPS + 0.125 / 1024 s + 1 ms + 0Disk Access Time = 12 ms + 5.5 ms + 0.1 ms + 1 ms + 0 msDisk Access Time = 18.6 msIf real seeks are 1/3 advertised seeks, then its 10.6 ms, with rotation delay at 50% of the time!

Page 21: Csci 136 Computer Architecture II – IO and Storage Systems

Reliability and Availability

Two terms that are often confused:Reliability: Is anything broken?

Availability: Is the system still available to the user?

Availability can be improved by adding hardware:Example: adding ECC on memory

Reliability can only be improved by:Better environmental conditions

Building more reliable components

Building with fewer componentsImprove availability may come at the cost of lower reliability

Page 22: Csci 136 Computer Architecture II – IO and Storage Systems

Decreasing Disk Diameters

Increasing Network Bandwidth

Network File ServicesHigh PerformanceStorage Serviceon a High Speed

Network

High PerformanceStorage Serviceon a High Speed

Network

14" » 10" » 8" » 5.25" » 3.5" » 2.5" » 1.8" » 1.3" » . . .high bandwidth disk systems based on arrays of disks

3 Mb/s » 10Mb/s » 50 Mb/s » 100 Mb/s » 1 Gb/s » 10 Gb/snetworks capable of sustaining high bandwidth transfers

Network provideswell defined physicaland logical interfaces:separate CPU and storage system!

OS structuressupporting remotefile access

Network Attached Storage

Page 23: Csci 136 Computer Architecture II – IO and Storage Systems

Summary:

Three Components of Disk Access Time:Seek Time: advertised to be 8 to 12 ms. May be lower in real life.

Rotational Latency: 4.1 ms at 7200 RPM and 8.3 ms at 3600 RPM

Transfer Time: 2 to 12 MB per second