Computer System Architecture

Similar documents
CSC1201 Computer Applications. Budditha Hettige Department of Computer Science

I/O CANNOT BE IGNORED

Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

A track on a magnetic disk is a concentric rings where data is stored.

Secondary Storage Devices: Magnetic Disks Optical Disks Floppy Disks Magnetic Tapes CENG 351 1

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Computer Organization and Technology External Memory

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

Storage System COSC UCB

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

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

I/O CANNOT BE IGNORED

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems

COMP283-Lecture 3 Applied Database Management

Today we will learn about:

Table 6.1 Physical Characteristics of Disk Systems

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

External Memory. Computer Architecture. Magnetic Disk. Outline. Data Organization and Formatting. Write and Read Mechanisms

General Items: Reading Materials: Miscellaneous: Lecture 9 / Chapter 7 COSC1300/ITSC 1401/BCIS /19/2004 ? H ? T

Chapter 6. Storage and Other I/O Topics

Discovering Computers 2008

Session: Hardware Topic: Disks. Daniel Chang. COP 3502 Introduction to Computer Science. Lecture. Copyright August 2004, Daniel Chang

Mass-Storage Structure

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

Chapter 11. I/O Management and Disk Scheduling

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

Storage. CS 3410 Computer System Organization & Programming

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University

Storage Systems. Storage Systems

EXTERNAL MEMORY (Part 1)

TODAY AND TOMORROW. Storage CHAPTER

Appendix D: Storage Systems

16/06/56. Secondary Storage. Secondary Storage. Secondary Storage The McGraw-Hill Companies, Inc. All rights reserved.

Chapter 6 - External Memory

Storage Devices for Database Systems

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

BBM371- Data Management. Lecture 2: Storage Devices

FACTFILE: GCE DIGITAL TECHNOLOGY

Computer Principles and Applications SSC. 151 Dr. Abdel-Hameed Nawar Spring Solution Key to Problem Set 3

Storage. How does volatility compare? What is a storage device and a storage medium? Today s standard disk is 3.5 wide

Discovering Computers Fundamentals, 2011 Edition. Living in a Digital World

CO212 Lecture 6: Memory Organization III

High-Performance Storage Systems

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Objectives Overview. Chapter 7 Types of Storage. Instructor: M. Imran Khalil. MSc-IT 1st semester Fall Discovering Computers 2012

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

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

Today: Secondary Storage! Typical Disk Parameters!

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

SEN361 Computer Organization. Prof. Dr. Hasan Hüseyin BALIK (6 th Week)

Database Systems II. Secondary Storage

Data and File Structures Chapter 3. Secondary Storage and System Software: CD-ROM & Issues in Data Management

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

Topic 4: Storage Devices

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

Chapter 12: Mass-Storage

Chapter 12: Mass-Storage

What is Data Storage?

Storage Technologies and the Memory Hierarchy

Computer Organization

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

The Fetch-Execute Cycle

Monday, May 4, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

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

External Memory. Types of External Memory. Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

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

Lesson #8 Optical Storage Media. 8. Optical Storage Media - Copyright Denis Hamelin - Ryerson University

Database Management Systems, 2nd edition, Raghu Ramakrishnan, Johannes Gehrke, McGraw-Hill

External Memory. Patrick Happ Raul Queiroz Feitosa. Parts of these slides are from the support material provided by W. Stallings

Database Systems. November 2, 2011 Lecture #7. topobo (mit)

1. What is the difference between primary storage and secondary storage?

Chapter 13: Mass-Storage Systems. Disk Scheduling. Disk Scheduling (Cont.) Disk Structure FCFS. Moving-Head Disk Mechanism

Chapter 13: Mass-Storage Systems. Disk Structure

Chapter 6A. Describing Storage Devices. Describing Storage Devices. Types of Storage Devices. Store data when computer is off Two processes

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

Wednesday, April 25, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

Disks and RAID. CS 4410 Operating Systems. [R. Agarwal, L. Alvisi, A. Bracy, E. Sirer, R. Van Renesse]

vinodsrivastava.wordpress.com

STORAGE. Memory Versus Storage

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

Computers Are Your Future

UNIT 2 Data Center Environment

Darshan Institute of Engineering & Technology for Diploma Studies

Ch 11: Storage and File Structure

Chapter 9: Peripheral Devices: Magnetic Disks

Module 13: Secondary-Storage

CSE325 Principles of Operating Systems. Mass-Storage Systems. David P. Duggan. April 19, 2011

V. Mass Storage Systems

Backing Storage Media

CSE 380 Computer Operating Systems

COSC 243. Memory and Storage Systems. Lecture 10 Memory and Storage Systems. COSC 243 (Computer Architecture)

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

Chapter 14: Mass-Storage Systems

Topics. Lecture 8: Magnetic Disks

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

Lecture 23. Finish-up buses Storage

The personal computer system uses the following hardware device types -

Chapter 10: Mass-Storage Systems

Components of the Virtual Memory System

Transcription:

CSC 203 1.5 Computer System Architecture Department of Statistics and Computer Science University of Sri Jayewardenepura

Secondary Memory 2

Technologies Magnetic storage Floppy, Zip disk, Hard drives, Tapes Optical storage CD, DVD, Blue-Ray, HD-DVD Solid state memory USB flash drive, Memory cards for mobile phones/digital cameras/mp3 players, Solid State Drives 3

Magnetic Disk Purpose: Long term, nonvolatile storage Large, inexpensive, and slow Lowest level in the memory hierarchy Two major types: Floppy disk Hard disk Both types of disks: Rely on a rotating platter coated with a magnetic surface Use a moveable read/write head to access the disk Advantages of hard disks over floppy disks: Platters are more rigid ( metal or glass) so they can be larger Higher density because it can be controlled more precisely Higher data rate because it spins faster Can incorporate more than one platter 4

Disk Track 5

Components of a Disk The arm assembly is moved in or out to position a head on a desired track. Tracks under heads make a cylinder (imaginary!). Only one head reads/writes at any one time. Block size is a multiple of sector size (which is often fixed). Disk head Arm assembly Arm movement Spindle Tracks Sector Platters 6

Internal Hard-Disk Page 223 7

Magnetic Disk A stack of platters, a surface with a magnetic coating Typical numbers (depending on the disk size): 500 to 2,000 tracks per surface 32 to 128 sectors per track A sector is the smallest unit that can be read or written Traditionally all tracks have the same number of sectors: Constant bit density: record more sectors on the outer tracks 8

Magnetic Disk Characteristic Disk head: each side of a platter has separate disk head Cylinder: all the tracks 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 sector to 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 15 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 9

Typical Numbers of a Magnetic Disk Rotational Latency: Most disks rotate at 3,600/5400/7200 RPM Approximately 16 ms per revolution An average latency to the desired information is halfway around the disk: 8 ms Transfer Time is a function of : Transfer size (usually a sector): 1 KB / sector Rotation speed: 3600 RPM to 5400 RPM to 7200 Recording density: typical diameter ranges from 2 to 14 in Typical values: 2 to 4 MB per second 10

Disk I/O Performance Disk Access Time = Seek time + Rotational Latency + Transfer time + Controller Time + Queueing Delay 11

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 Rate -> Mean Queue Length ->Infinity 12

Example Setup parameters: 16383 Cycliders, 63 sectors per track, 3 platters, 6 heads Bytes per sector: 512 RPM: 7200 Transfer mode: 66.6MB/s Average Read Seek time: 9.0ms (read), 9.5ms (write) Average latency: 4.17ms Physical dimension: 1 x 4 x 5.75 Interleave: 1:1 13

Disk performance Preamble: allows head to be synchronized before read/write ECC (Error Correction Code): corrects errors Unformatted capacity: preambles, ECCs and inter sector gaps are counted as data Disk performance depends on seek time time to move arm to desired track rotational latency time needed for requested sector to rotate under head Rotational speed: 5400, 7200, 10000, 15000 rpm Transfer time time needed to transfer a block of bits under head (e.g., 40 MB/s) 14

Disk performance Disk controller chip that controls the drive. Its tasks include accepting commands (READ, WRITE, FORMAT) from software, controlling arm motion, detecting and correcting errors Controller time overhead the disk controller imposes in performing an I/O access Avg. disk access time = avg. seek time + avg. rotational delay + Transfer time + controller overhead 15

Example Advertised average seek time of a disk is 5 ms, transfer rate is 40 MB per second, and it rotates at 10,000 rpm Controller overhead is 0.1 ms. Calculate the average time to read a 512 byte sector. 16

RAID- (Redundant Array of Inexpensive Disks) A disk organization used to improve performance of storage systems An array of disks controlled by a controller (RAID Controller) Data are distributed over disks (striping) to allow parallel operation 17

RAID 0- No redundancy No redundancy to tolerate disk failure Each strip has k sectors (say) Strip 0: sectors 0 to k 1 Strip 1: sectors k to 2k 1...etc Works well with large accesses Less reliable than having a single large disk 18

Example (RAID 0) Suppose that RAID consists of 4 disks with MTTF (mean time to failure) of 20,000 hours. A drive will fail once in every 5,000 hours A single large drive with MTTF of 20,000 hours is 4 times reliable 19

RAID 1 (Mirroring) Uses twice as many disk as does RAID 0 (first half: primary, next half: backup) Duplicates all disks On a write, every strip is written twice Excellent fault tolerance (if a disk fails, backup copy is used) Requires more disks 20

RAID 3 (Bit Interleaved Parity) Reads/writes go to all disks in the group, with one extra disk (parity disk) to hold check information in case off a failure Parity contains sum of all data in other disks If a disk fails, subtract all data in good disks from parity disk 21

RAD 4 (Block Interleaved Parity) RAID 4 is much like RAID 3 with a strip for strip parity written onto an extra disk A write involves accessing 2 disks instead of all Parity disk must be updated on every write 22

RAID 5- Block Interleaved Distributed Parity In RAID 5, parity information is spread throughout all disks In RAID 5, multiple writes can occur simultaneously as long as stripe units are not located in same disks, but it is not possible in RAID 4 23

Secondary Storage Devices: CD-ROM 24

Physical Organization of CD-ROM Compact Disk read only memory (write once) Data is encoded and read optically with a laser Can store around 600MB data Digital data is represented as a series of Pits and Lands: Pit = a little depression, forming a lower level in the track Land = the flat part between pits, or the upper levels in the track Reading a CD is done by shining a laser at the disc and detecting changing reflections patterns. 1 = change in height (land to pit or pit to land) 0 = a fixed amount of time between 1 s 25

Organization of data LAND PIT LAND PIT LAND...------+ +-------------+ +---.....0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0.. Cannot have two 1 s in a row! => uses Eight to Fourteen Modulation (EFM) encoding table. 0's are represented by the length of time between transitions, we must travel at constant linear velocity (CLV)on the tracks. Sectors are organized along a spiral Sectors have same linear length Advantage: takes advantage of all storage space available. Disadvantage: has to change rotational speed when seeking (slower towards the outside) 26

CD-ROM Addressing 1 second of play time is divided up into 75 sectors. Each sector holds 2KB 60 min CD: 60min * 60 sec/min * 75 sectors/sec = 270,000 sectors = 540,000 KB ~ 540 MB A sector is addressed by: Minute:Second:Sector e.g. 16:22:34 Type of laser CD: 780nm (infrared) DVD: 635nm or 650nm (visible red) HD-DVD/Blu-ray Disc: 405nm (visible blue) Capacity CD: 650 MB, 700 MB DVD: 4.7 GB per layer, up to 2 layers HD-DVD: 15 GB per layer, up to 3 layers BD: 25 GB per layer, up to 2 layers 27

Solid state storage 28

Solid state storage Memory cards For Digital cameras, mobile phones, MP3 players... Many types: Compact flash, Smart Media, Memory Stick, Secure Digital card... USB flash drives Replace floppies/cd-rw Solid State Drives Replace traditional hard disks Uses flash memory Type of EEPROM Electrically erasable programmable read only memory Grid of cells (1 cell = 1 bit) Write/erase cells by blocks 29

Solid state storage Cell=two transistors Bit 1: no electrons in between Bit 0: many electrons in between Performance Acces time: 10X faster than hard drive Transfer rate 1x=150 kb/sec, up to 100X for memory cards Similar to normal hard drive for SSD ( 100-150 MB/sec) Limited write: 100k to 1,000k cycles 30

Solid state storage Size Very small: 1cm² for some memory cards Capacity Memory cards: up to 32 GB USB flash drives: up to 32 GB Solid State Drives: up to 256 GB 31

Solid state storage Reliability Resists to shocks Silent! Avoid extreme heat/cold Limited number of erase/write Challenges Increasing size Improving writing limits 32