Mass-Storage Systems

Similar documents
CS3600 SYSTEMS AND NETWORKS

EIDE, ATA, SATA, USB,

CS370 Operating Systems

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

Chapter 12: Secondary-Storage Structure. Operating System Concepts 8 th Edition,

Overview of Mass Storage Structure

Free Space Management

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

Chapter 10: Mass-Storage Systems

V. Mass Storage Systems

Chapter 12: Mass-Storage

Chapter 10: Mass-Storage Systems

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

CS370 Operating Systems

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

CS420: Operating Systems. Mass Storage Structure

Chapter 10: Mass-Storage Systems

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

Overview of Mass Storage Structure

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition

Chapter 11: Mass-Storage Systems

Mass-Storage Structure

Mass-Storage Systems. Mass-Storage Systems. Disk Attachment. Disk Attachment

MASS-STORAGE STRUCTURE

Chapter 12: Mass-Storage Systems. Operating System Concepts 9 th Edition

Chapter 12: Mass-Storage

Chapter 12: Mass-Storage

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

CS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

CHAPTER 12 AND 13 - MASS-STORAGE STRUCTURE & I/O- SYSTEMS

Chapter 5: Input Output Management. Slides by: Ms. Shree Jaswal

UNIT-7. Overview of Mass Storage Structure

Disk Scheduling. Based on the slides supporting the text

CS370: Operating Systems [Spring 2017] Dept. Of Computer Science, Colorado State University

Mass-Storage Structure

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture)

CSE Opera+ng System Principles

Chapter 12: Mass-Storage Systems

CS370: Operating Systems [Fall 2018] Dept. Of Computer Science, Colorado State University

Disk Scheduling. Chapter 14 Based on the slides supporting the text and B.Ramamurthy s slides from Spring 2001

CS370: Operating Systems [Fall 2018] Dept. Of Computer Science, Colorado State University

Today: Secondary Storage! Typical Disk Parameters!

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

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

Mass-Storage. ICS332 - Fall 2017 Operating Systems. Henri Casanova

CSE 451: Operating Systems Winter Secondary Storage. Steve Gribble. Secondary storage

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

Mass-Storage. ICS332 Operating Systems

CS370 Operating Systems

Tape pictures. CSE 30341: Operating Systems Principles

CSE 153 Design of Operating Systems

CSE 451: Operating Systems Winter Lecture 12 Secondary Storage. Steve Gribble 323B Sieg Hall.

CSE 451: Operating Systems Spring Module 12 Secondary Storage

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

CSE 451: Operating Systems Spring Module 12 Secondary Storage. Steve Gribble

Chapter 7: Mass-storage structure & I/O systems. Operating System Concepts 8 th Edition,

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

Mass Storage. 2. What are the difference between Primary storage and secondary storage devices? Primary Storage is Devices. Secondary Storage devices

Chapter 14: Mass-Storage Systems. Disk Structure

STORAGE SYSTEMS. Operating Systems 2015 Spring by Euiseong Seo

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

CISC 7310X. C11: Mass Storage. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 4/19/2018 CUNY Brooklyn College

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 14: Mass-Storage Systems

Disk Scheduling COMPSCI 386

Operating Systems. V. Input / Output. Eurecom

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

Lecture 9. I/O Management and Disk Scheduling Algorithms

CSE 153 Design of Operating Systems Fall 2018

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

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

Chapter 14: Mass-Storage Systems

Storage. CS 3410 Computer System Organization & Programming

Module 13: Secondary-Storage

Secondary storage. CS 537 Lecture 11 Secondary Storage. Disk trends. Another trip down memory lane

STORING DATA: DISK AND FILES

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

Operating Systems 2010/2011

Module 13: Secondary-Storage Structure

Ref: Chap 12. Secondary Storage and I/O Systems. Applied Operating System Concepts 12.1

Introduction to I/O and Disk Management

Operating Systems. V. Input / Output

Introduction to I/O and Disk Management

Operating Systems. Mass-Storage Structure Based on Ch of OS Concepts by SGG

I/O. Disclaimer: some slides are adopted from book authors slides with permission 1

UNIT 4 Device Management

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

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

VIII. Input/Output Operating Systems Prof. Dr. Marc H. Scholl DBIS U KN Summer Term

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

Hard Disk Drives (HDDs) Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Input Output (IO) Management

Operating Systems Peter Pietzuch

Chapter 11. I/O Management and Disk Scheduling

CSCI-GA Operating Systems. I/O : Disk Scheduling and RAID. Hubertus Franke

Hard Disk Drives. Nima Honarmand (Based on slides by Prof. Andrea Arpaci-Dusseau)

Operating Systems. Operating Systems Professor Sina Meraji U of T

Transcription:

CS307 Mass-Storage Systems Fan Wu Department of Computer Science and Engineering Shanghai Jiao Tong University Spring 2018

The First Commercial Disk Drive 1956 IBM RAMDAC computer included the IBM Model 350 disk storage system 5M (7 bit) characters 50 x 24 inch platters Access time = < 1 second 2

Magnetic Tape Was early secondary-storage medium Evolved from open spools to cartridges Relatively permanent and holds large quantities of data Access time slow Random access ~1000 times slower than disk Mainly used for backup, storage of infrequently-used data, transfer medium between systems Kept in spool and wound or rewound past read-write head Once data under head, transfer rates comparable to disk 140MB/sec and greater 200GB to 1.5TB typical storage Common technologies are LTO-{3,4,5} and T10000 3

Modern Disk Drive A Western Digital 3.5 inch SATA HDD 4

Different Sized Disk Drives 5

Read-Write Arm and Head Head stack Read-write head 6

Solid-State Drive (SSD) SSDs use microchips which retain data in non-volatile memory chips and contain no moving parts 7

Moving-head Disk Mechanism block 8

Disk Structure track 7 15 8 0 sector 6 14 9 1 5 13 10 2 block 12 4 11 3 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11

Disk Structure 7 0 15 8 23 16 31 24 6 22 17 1 14 30 25 9 5 21 18 2 13 29 26 10 20 19 28 27 4 3 12 11 Platter 0 Platter 1 12

Overview of Mass Storage Structure Magnetic disks provide bulk of secondary storage of modern computers Drives rotate at 60 to 200 times per second Transfer rate is rate at which data flows between drive and computer Positioning time (random-access time) is time to move disk arm to desired cylinder (seek time) and time for desired sector to rotate under the disk head (rotational latency) 14

Disk Scheduling There are many sources of disk I/O request OS, System processes, Users processes OS maintains queue of requests, per disk or device Idle disk can immediately work on I/O request, busy disk means work must be queued Optimization algorithms only make sense when a queue exists The operating system is responsible for using hardware efficiently for the disk drives, this means having a fast access time and disk bandwidth Minimize seek time seek distance What about rotational latency? Difficult for OS to calculate Several algorithms exist to schedule the servicing of disk I/O requests We illustrate scheduling algorithms with a request queue (0-199) 98, 183, 37, 122, 14, 124, 65, 67 Head pointer 53 15

Disk-Scheduling Algorithms First-Come, First-Served (FCFS) Scheduling Shortest Seek Time First (SSTF) Scheduling SCAN Scheduling C-SCAN Scheduling LOOK/C-LOOK Scheduling 16

FCFS Scheduling Total head movement: 640 cylinders 17

SSTF Scheduling Shortest Seek Time First selects the request with the minimum seek time from the current head position Total head movement: 236 cylinders. 19

SCAN The disk arm starts at one end of the disk, and moves toward the other end, servicing requests until it gets to the other end of the disk, where the head movement is reversed and service continues. Total head movement: 236 cylinders 21

C-SCAN The head moves from one end of the disk to the other, servicing requests as it goes. When it reaches the other end, it immediately returns to the beginning of the disk, without servicing any requests on the return trip. Total head movement: 382 cylinders 23

C-LOOK Arm only goes as far as the last request in each direction, then reverses direction immediately, without first going all the way to the end of the disk Total head movement: 354 cylinders 25

Pop-Quiz Suppose that a disk drive has 5,000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending requests, in FIFO order, is: 86,1470,913,1774,948,1509,1022,1750,130 Starting from the current head position, what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms? a) SSTF b) C-LOOK 26

Disk Attachment Drive attached to computer via I/O bus Busses vary, including EIDE, ATA, SATA, USB, SCSI, Fiber Channel, SAS, Firewire Host controller in computer uses bus to talk to disk controller built into drive SCSI itself is a bus, up to 16 devices on one cable, SCSI initiator requests operation and SCSI targets perform tasks Each target can have up to 8 logical units (disks attached to device controller) FC is high-speed serial architecture Can be switched fabric with 24-bit address space the basis of storage area networks (SANs) in which many hosts attach to many storage units 39

Network-Attached Storage Network-attached storage (NAS) is storage made available over a network rather than over a local connection (such as a bus) Remotely attaching to file systems Implemented via remote procedure calls (RPCs) between host and storage over typically TCP or UDP on IP network iscsi protocol uses IP network to carry the SCSI protocol Remotely attaching to devices (blocks) 41

Storage Area Network Common in large storage environments Multiple hosts attached to multiple storage arrays - flexible 42

Homework Reading Chapter 12 Exercise See course website 44