Today: Secondary Storage! Typical Disk Parameters!

Similar documents
Chapter 14: Mass-Storage Systems

Module 13: Secondary-Storage

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

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

MASS-STORAGE STRUCTURE

Tape pictures. CSE 30341: Operating Systems Principles

Chapter 10: Mass-Storage Systems

Mass-Storage Structure

Chapter 12: Mass-Storage

CS3600 SYSTEMS AND NETWORKS

Disk Scheduling. Based on the slides supporting the text

V. Mass Storage Systems

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 Structure

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

Silberschatz, et al. Topics based on Chapter 13

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

Chapter 14: Mass-Storage Systems

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

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

Lecture 9. I/O Management and Disk Scheduling Algorithms

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

Module 13: Secondary-Storage Structure

Principles of Data Management. Lecture #2 (Storing Data: Disks and Files)

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

Chapter 11: Mass-Storage Systems

Chapter 10: Mass-Storage Systems

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

Chapter 10: Mass-Storage Systems

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

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

Chapter 12: Mass-Storage Systems

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

Disk scheduling Disk reliability Tertiary storage Swap space management Linux swap space management

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

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

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

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

Storing Data: Disks and Files. Storing and Retrieving Data. Why Not Store Everything in Main Memory? Database Management Systems need to:

Free Space Management

Introduction to I/O and Disk Management

Mass-Storage Systems

Chapter 14 Mass-Storage Structure

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

CS370 Operating Systems

Introduction to I/O and Disk Management

Storing Data: Disks and Files

Storing and Retrieving Data. Storing Data: Disks and Files. Solution 1: Techniques for making disks faster. Disks. Why Not Store Everything in Tapes?

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

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

UNIT-7. Overview of Mass Storage Structure

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

COMP283-Lecture 3 Applied Database Management

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

Storing Data: Disks and Files. Storing and Retrieving Data. Why Not Store Everything in Main Memory? Chapter 7

Overview of Mass Storage Structure

Storage and File Structure. Classification of Physical Storage Media. Physical Storage Media. Physical Storage Media

Data Storage and Query Answering. Data Storage and Disk Structure (2)

Module 1: Basics and Background Lecture 4: Memory and Disk Accesses. The Lecture Contains: Memory organisation. Memory hierarchy. Disks.

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

I/O CANNOT BE IGNORED

Database Systems II. Secondary Storage

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

CSE 153 Design of Operating Systems

BBM371- Data Management. Lecture 2: Storage Devices

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

Mass-Storage. ICS332 Operating Systems

Chapter 12: Mass-Storage

CSE 380 Computer Operating Systems

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

Chapter 10 Storage and File Structure

Chapter 12: Mass-Storage

Storage. CS 3410 Computer System Organization & Programming

EIDE, ATA, SATA, USB,

Associate Professor Dr. Raed Ibraheem Hamed

Storage Devices for Database Systems

Storing Data: Disks and Files

Ch 11: Storage and File Structure

Computer System Architecture

I/O CANNOT BE IGNORED

Storage System COSC UCB

COS 318: Operating Systems. Storage Devices. Jaswinder Pal Singh Computer Science Department Princeton University

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

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

CS420: Operating Systems. Mass Storage Structure

Disks. Storage Technology. Vera Goebel Thomas Plagemann. Department of Informatics University of Oslo

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel

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

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

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

COS 318: Operating Systems. Storage Devices. Kai Li Computer Science Department Princeton University

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

Disks, Memories & Buffer Management

STORAGE SYSTEMS. Operating Systems 2015 Spring by Euiseong Seo

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

Storing Data: Disks and Files

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

Mass-Storage Structure

Transcription:

Today: Secondary Storage! To read or write a disk block: Seek: (latency) position head over a track/cylinder. The seek time depends on how fast the hardware moves the arm. Rotational delay: (latency) time for the sector to rotate underneath the head. Rotational delay depends upon how fast the disk spins. Transfer time: (bandwidth) time to move the bytes from the disk to memory Disk I/O Time = seek + rotational delay + transfer. Lecture 20, page 1 Typical Disk Parameters! SATA disk SCSI disk Disk Capacity 160 GB 146GB Platters per pack 16 8 Tracks per surface 16,383 6,358 Sectors per track 63 644 Bytes per sector 512 732 Revolutions per minutes 7200 15,000 Average seek time 4 ms <4ms Average rotational latency 4.17 ms 2 ms Buffer to host burst transfer rate 78 MB/sec 85 MB/sec Buffer size 8 MB 4 MB size 3.5 inches 3.5 inches Lecture 20, page 2

Access Time! Key: to get the quickest disk response time, we must minimize seek time and rotational latency: Make disks smaller Spin disks faster Schedule disk operations to minimize head movement Lay out data on disk so that related data are on nearby tracks. Place commonly-used files where on the disk? We should also pick our sector size carefully: If the sector size is too small, we will have a low transfer rate because we will need to perform more seeks for the same amount of data. If our sector size is too large, we will have lots of internal fragmentation. NOTE: Solid state drives (SSD) will eliminate these problems. Lecture 20, page 3 Disk Head Scheduling! Idea: Permute the order of disk requests from the order that they arrive from the users to an order that reduces the length and number of seeks. 1. First-come, first-served (FCFS) 2. Shortest seek time first (SSTF) 3. SCAN algorithm (0 to 100, 100 to 0, 0 to 100,...). If there is no request between current position and the extreme (0 or N), we don't have to seek there. 4. C-SCAN circular scan algorithm (0 to 100, 0 to 100,...) Lecture 20, page 4

FCFS Disk Head Scheduling! Example requests: 65, 40, 18, 78 1. FCFS - service the requests in the order that they come in Order of seeks: 65, 40, 18, 78 Distance of seeks: 35 + 25 + 22 + 60 = 142 When would you expect this algorithm to work well? During light loads ; also for SSD drives Lecture 20, page 5 SSTF Disk Head Scheduling! SSTF: always go to the next closest request Order of seeks: 40, 18, 65, 78 Distance of seeks: 10 + 22 + 47 + 13 = 92 Can implement this approach by keeping a doubly linked sorted list of requests. Is this efficient enough? Is it optimal? Greedy (minimizes seek but not overall cost) Problems? Potential for starvation Lecture 20, page 6

SCAN Disk Head Scheduling! SCAN: head moves back and forth across the disk (0 to 100, 100 to 0, 0 to 100,...), servicing requests as it passes them Order of seeks, assuming the head is currently moving to lower numbered blocks: 18, 40, 65, 78 Distance of seeks: 12 + 22 + 25 + 13 = 72 Requires a sorted list of requests. Simple optimization does not go all the way to the edge of the disk each time, but just as far as the last request. Lecture 20, page 7 C-SCAN Disk Head Scheduling! C-SCAN: circular scan algorithm (0 to 100, 0 to 100,...) Order of seeks: 40, 65, 78, 18 Distance of seeks: 10 + 25 + 13 + 60 = 108 More uniform wait times for requests. Why? At the end of a pass, most requests are likely to be at the other end. With SCAN, these requests get serviced at the end of the sweep. Lecture 20, page 8

Improving Disk Performance using Disk Interleaving! Problem: Contiguous allocation of files on disk blocks only makes sense if the OS can react to one disk response and issue the next disk command before the disk spins past the next block. Idea: Interleaving - Don't allocate blocks that are physically contiguous, but those that are temporally contiguous relative to the speed with which a second disk request can be received and the rotational speed of the disk. Might use every second or third block. Lecture 20, page 9 Improving Disk Performance using Read Ahead! Idea: read blocks from the disk ahead of user's request and place in buffer on disk controller. Goal: reduce the number of seeks - read blocks that will probably be used while you have them under the head. We considered pre-fetching virtual pages into physical memory, but decided that was difficult to do well since the future is difficult to predict. Is disk read-ahead any better? Lecture 20, page 10

Tertiary Storage! Lower cost devices than secondary storage (disks) Typically Slower, larger, cheaper than disks Used primarily for storing archival data or backups. tape drives Jazz and Zip drives Optical disks: Write once read-many (WORM), CD-R, CD-RW Robotic jukeboxes Primary, secondary and tertiary devices form a storage hierarchy Falling cost of hardware! tapes replaced by (slower) disks Lecture 20, page 11 Tapes! Compared to a disk, a tape is less expensive and holds more data, but random access is much slower. Tape is an economical medium for purposes that do not require fast random access, e.g., backup copies of disk data, holding huge volumes of data. Large tape installations typically use robotic tape changers that move tapes between tape drives and storage slots in a tape library. stacker library that holds a few tapes silo library that holds thousands of tapes A disk-resident file can be archived to tape for low cost storage; the computer can stage it back into disk storage for active use. Lecture 20, page 12

RAID Storage! RAID multiple disk drives provides reliability via redundancy. Disk striping uses a group of disks as one storage unit. RAID schemes improve performance and improve the reliability of the storage system by storing redundant data. Mirroring keeps duplicate of each disk. Block interleaved parity uses much less redundancy. RAID is arranged into six different levels Lecture 20, page 13 Summary! Disks are slow devices relative to CPUs. For most OS features, we are very concerned about efficiency. For I/O systems, and disk, in particular, it is worthwhile to complicate and slow down the OS if we can gain improvement in I/O times. Review Questions: What property of disks can we use to make the insertion, deletion, and access to the lists of requests fast? Rank the algorithms according to their expected seek time. Is SCAN or SSTF fairer? Is SCAN or C-SCAN fairer? Lecture 20, page 14