Disks Chapter 5 Thursday, April 5, 2007. Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.

Slides:



Advertisements
Similar presentations
Disks Disk Hardware (1) Disk parameters for the original IBM PC floppy disk and a Western Digital WD hard disk.
Advertisements

I/O Management and Disk Scheduling
Chapter 5 Input/Output 5.4 Disks
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
Mass-Storage Structure
Magnetic Disk Magnetic disks are the foundation of external memory on virtually all computer systems. A disk is a circular platter constructed of.
CS 6560: Operating Systems Design
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
1 Pertemuan 19 Disk Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5 OFFCLASS03.
Chapter4: Memory External Memory.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
RAID and Other Disk Details
Operating Systems Input/Output Devices (Ch , 12.7; , 13.7)
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Based on the slides supporting the text
Fig 5-5 Interrupts Handling
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 5 Disks CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent.
CS 333 Introduction to Operating Systems Class 16 – Secondary Storage Management Jonathan Walpole Computer Science Portland State University.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
Avishai Wool lecture Introduction to Systems Programming Lecture 9 Input-Output Devices.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
1 Input/Output Chapter 3 TOPICS Principles of I/O hardware Principles of I/O software I/O software layers Disks Clocks Reference: Operating Systems Design.
Operating Systems Input/Output Devices (Ch 5: )
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
1 Recitation 8 Disk & File System. 2 Disk Scheduling Disks are at least four orders of magnitude slower than main memory –The performance of disk I/O.
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How are data stored? –physical level –logical level.
N-Tier Client/Server Architectures Chapter 4 Server - RAID Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept RAID – Redundant Array.
Storing Data On Your Computer Chapter 12, Exploring the Digital Domain.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
CSC 322 Operating Systems Concepts Lecture - 26: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Sistem Operasi IKH311 Masukan Luaran (Input/Output)
Chapter 111 Chapter 11: Hardware (Slides by Hector Garcia-Molina,
Chapter 7 Device Management
CS 6502 Operating Systems Dr. J.. Garrido Device Management (Lecture 7b) CS5002 Operating Systems Dr. Jose M. Garrido.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 9-2: Disk Scheduling Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Auxiliary Memory Magnetic Disk:
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Chapter 12: Mass-Storage Systems
ITEC 502 컴퓨터 시스템 및 실습 Chapter 9-1: Disk Scheduling Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
CS399 New Beginnings Jonathan Walpole. Disk Technology & Secondary Storage Management.
Chapter 9 I/O System. 2 Input/Output System I/O Major objectives are: Take an application I/O request and send it to the physical device. Then, take whatever.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Lecture 3 Secondary Storage and System Software I
CS422 Principles of Database Systems Disk Access Chengyu Sun California State University, Los Angeles.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems DISK I/0.
CHAPTER 10: Computer Peripherals
Multiple Platters.
External Memory.
Disks and RAID.
I/O System Chapter 5 Designed by .VAS.
CS 554: Advanced Database System Notes 02: Hardware
Operating System I/O System Monday, August 11, 2008.
Chapter 14 Based on the slides supporting the text
Overview Continuation from Monday (File system implementation)
Disks and scheduling algorithms
Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID)
Presentation transcript:

Disks Chapter 5 Thursday, April 5, 2007

Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions  Disk Arm Scheduling Algorithms

Objectives You will be able to describe: Differences between magnetic and optical disks Benefits of RAID levels 0, 1, 2, & 3 Factors in time to read/write block to disk Relative benefits of disk arm scheduling algorithms

Disk Hardware Disk parameters for the original IBM PC floppy disk and a Western Digital WD hard disks

Movable-Head Magnetic Disk Storage

Optical vs. Magnetic sDisc Storage Optical disc vs. Magnetic disk:  Magnetic disk Consists of concentric tracks of sectors Spins at a constant angular velocity (CAV) Wastes storage space but data retrieval is fast  Optical disc Consists of a single spiralling track of same-sized sectors running from center to rim of disc Spins at a constant linear velocity (CLV) Allows more sectors and more data to fit on a disc

Disk Hardware (5) Recording structure of a CD or CD-ROM

Optical Disc Storage (continued) Figure 7.7: Magnetic diskFigure 7.8: Optical disc

Optical Disc Storage Important features of optical discs:  Sustained data-transfer rate: Speed at which massive amounts of data can be read from disc Measured in bytes per second (Mbps) Crucial for applications requiring sequential access  Average access time: Average time required to move head to a specific place on disc Expressed in milliseconds (ms)  Cache size: Hardware cache acts as a buffer by transferring blocks of data from the disc

Disk Access Times Time required to access a file depends on:  Seek time: Time to position read/write head Slowest of the three factors Doesn’t apply to devices with fixed read/write heads  Search time (rotational delay): Time to rotate until desired record is under read/write head  Transfer time: Time to transfer data from secondary storage to main memory Fastest

DASD Access Times Movable-Head Devices:  Access time = Seek time + Search time + Transfer time Blocking is a good way to minimize access time

RAID- Redundant Array of Inexpensive Disks A set of physical disk drives that is viewed as a single logical unit Improves I/O performance Improves reliability through redundancy (data recovery in event of disk failure) BUT …. Increases hardware costs CPU performance improved with parallel processing, apply to I/O

RAID (continued) Figure 7.18: Data being transferred in parallel from a Level 0 RAID configuration to a large-capacity disk

RAID Mirroring redundancy to help recover from hardware failure Cost, speed, and the system’s applications are significant factors to consider when choosing a particular RAID level

RAID (continued) Table 7.7: The seven standard levels of RAID provide various degrees of error correction

Disk Hardware Raid levels 0 through 2 Backup and parity drives are shaded

Disk Hardware (4) Raid levels 3 through 5 Backup and parity drives are shaded

Disk Formatting A disk sector Low-Level format on each platter Preamble – bit pattern h/w detection of sector start Data – Ex 512 bytes ECC – Info to recover from read errors Partition Disk – Logically separate disks 0 has Master Boot Record High-Level format of each Partition to support O/S and file system

Disk Formatting Interleaving gives Controller “breathing space” between consecutive sectors to copy buffer to memory a) No interleaving b) Single interleaving c) Double interleaving

Disk Arm Scheduling Algorithms Time required to read or write a disk block determined by 3 factors 1. Seek time 2. Rotational delay 3. Actual transfer time Seek time dominates  Use other than FCFS scheme Error checking is done by controllers Goal: Minimal response time and fairness

Disk Arm Scheduling Algorithms Shortest Seek First (SSF) Service closest Request next Ex. Seek Requests:11, 1, 36, 16, 34, 9, 12 FCFS = 111 arm moves vs SSF has 61 Initial position Pending requests Favors the middle cylinders

Disk Arm Scheduling Algorithms The elevator algorithm Keep moving in same direction until no more outstanding requests

Summary Differences between magnetic and optical disks Benefits of RAID levels 0, 1, 2, & 3 Factors in time to read/write block to disk Relative benefits of disk arm scheduling algorithms

Let’s Try some for extra points … Chapter 5 Problems, Pg 373 – 376  Problems #2, 9, 10, 13, 16, 18, 22, 24

Tuesday, April 10 Read Chapter 6 File Systems  6.1 Files  6.2 Directories