Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID)

Slides:



Advertisements
Similar presentations
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Advertisements

Disks Disk Hardware (1) Disk parameters for the original IBM PC floppy disk and a Western Digital WD hard disk.
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.
CS 6560: Operating Systems Design
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
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.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 6 External Memory.
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
1 Chapter 6 Storage and Multimedia: The Facts and More.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Fig 5-5 Interrupts Handling
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.
Avishai Wool lecture Introduction to Systems Programming Lecture 9 Input-Output Devices.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
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.
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.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
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)
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 9-2: Disk Scheduling Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
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.
Disks. ●Circular-shaped storage medium ●Two main types: Magnetic and Optical ●Random access to memory ●The hardware must be controlled by driver software.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
CSE 451: Operating Systems Spring 2010 Module 12.5 Secondary Storage John Zahorjan Allen Center 534.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems DISK I/0.
Operating System (013022) Dr. H. Iwidat
Multiple Platters.
Memory and storage AS identifies the main hardware components of at least two types of computer. AS states and discusses the implications.
Disks and RAID.
OPERATING SYSTEMS CS 3502 Fall 2017
Secondary Storage Secondary storage typically: Characteristics:
Backing Store.
I/O Resource Management: Software
Operating System I/O System Monday, August 11, 2008.
Mass-Storage Structure
Chapter 14 Based on the slides supporting the text
Disks.
Secondary Storage Devices
CS510 Operating System Foundations
CSE 451: Operating Systems Winter 2006 Module 13 Secondary Storage
Overview Continuation from Monday (File system implementation)
Jonathan Walpole Computer Science Portland State University
CSE 451: Operating Systems Autumn 2003 Lecture 12 Secondary Storage
CSE 451: Operating Systems Spring 2006 Module 13 Secondary Storage
Computers: Tools for an Information Age
Disks and scheduling algorithms
Secondary Storage Management Brian Bershad
CSE 451: Operating Systems Secondary Storage
CSE 451: Operating Systems Winter 2003 Lecture 12 Secondary Storage
Lesson 9 Types of Storage Devices.
Chapter 12: Mass-Storage Structure
CSE 451: Operating Systems Spring 2005 Module 13 Secondary Storage
Secondary Storage Management Hank Levy
CS333 Intro to Operating Systems
CSE451 File System Introduction and Disk Drivers Autumn 2002
CSE 451: Operating Systems Autumn 2004 Secondary Storage
CSE 451: Operating Systems Winter 2004 Module 13 Secondary Storage
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Presentation transcript:

Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID) Reads and writes are equally fast=> good for storing file systems Disk arrays are used for reliable storage (RAID) Optical disks (CD-ROM, CD-Recordables, DVD) used for program distribution

Floppy vs hard disk (20 years apart) Seek time is 7x better, transfer rate is 1300 x better, capacity is 50,000 x better.

Disks – related terms Each working surface is divided into a number of concentric rings called tracks. The collection of all tracks that are the same distance from the edge of the platter, ( i.e. all tracks immediately above one another in the following diagram ) is called a cylinder. It can be read without moving the head. Each track is further divided into sectors.

Disks – mathematics Consider a magnetic disk containing 16 head and 400 cylinders. This disk is divided into four 100-cylinder zones with the cylinders in different zone containing 160, 200, 240 and 280 sectors respectively. Assume that each sector contains 512 byte. What is disk capacity.

Disks-more stuff Some disks have microcontrollers which do bad block re-mapping, track caching Some are capable of doing more then one seek at a time, i.e. they can read on one disk while writing on another (Overlapped seek) Real disk geometry is different from geometry used by driver => controller has to re-map request for (cylinder, head, sector) onto actual disk Disks are divided into zones, with fewer tracks on the inside, gradually progressing to more on the outside

Disk Zones (a) Physical geometry of a disk with two zones. (b) A possible virtual geometry for this disk.

CD Optical disks have higher density then mag disks Used for distributing commercial software + reference works (books) Cheap because of high production volume of music CDs First used for playing music digitally

Recording structure of a compact disc or CD-ROM.

CD-ROM Performance 650 MB capacity 150 KB/sec in mode 1, up to 5 MB/sec for 32x CD-ROM CD drives can’t compare to scsi disk drives

CD-ROM Added graphics, video, data File system standards agreed upon High Sierra for file names of 8 characters Rock ridge for longer names and extensions CD-ROM’s used for publishing games, movies, commercial software, reference works Why? Cheap to manufacture and large capacity

CD-Recordable Cheaper manufacturing process led to cheaper CD-ROM (CD-R) Used as backup to disk drives Small companies can use to make masters which they give to high volume plants to reproduce

DVD (Digital Versatile Disk) DVD use same design as CD with a few improvements Smaller pits (0.4 microns versus 0.8 microns for CDs). A tighter spiral (0.74 microns between tracks versus 1.6 microns for CDs). A red laser (at 0.65 microns versus 0.78 microns for CDs).

DVD (Digital Versatile Disk) This led to much bigger capacity ~ 5 Gbyte (seven fold increase in capacity) Can put a standard movie on the DVD (133 minutes) Hollywood wants more movies on the same disk, so have 4 formats

DVD DVD Formats Single-sided, single-layer (4.7 GB). Single-sided, dual-layer (8.5 GB). Double-sided, single-layer (9.4 GB). Double-sided, dual-layer (17 GB).

DVD: next generation Blu-ray HD Computer industry and Hollywood have not agreed on formats yet!!

Hard Disk Formatting Low level format-software lays down tracks and sectors on empty disk (picture next slide) High level format is done next-partitions

Sector Format 512 bit sectors standard Preamble contains address of sector, cylinder number ECC for recovery from errors (Error Correction Code)

Cylinder Skew Offset sector from one track to next one in order to get consecutive sectors

Interleaved sectors Copying to a buffer takes time; could wait a disk rotation before head reads next sector. So interleave sectors to avoid this (b,c)

Power goes on BIOS reads in master boot record Boot program checks which partition is active Reads in boot sector from active partition Boot sector loads bigger boot program which looks for the OS kernel in the file system OS kernel is loaded and executed

Disk Arm Scheduling Algorithms Read/write time factors Seek time (the time to move the arm to the proper cylinder). Rotational delay (the time for the proper sector to rotate under the head). Actual data transfer time.

Disk Arm Scheduling Algorithms Driver keeps list of requests (cylinder number, time of request) Try to optimize the seek time FCFS is easy to implement, but optimizes nothing SSTF (shortest seek time first) algorithm. SCAN scheduling. C-SCAN scheduling. LOOK Scheduling. C-LOOK scheduling.

SSF (Shortest Seek Time First) While head is on cylinder 11, requests for 1,36,16,34,9,12 come in FCFS would result in 111 cylinders SSF would require 1,3,7,15,33,2 movements for a total of 61 cylinders

Uses 60 cylinders, a bit better The Elevator Uses 60 cylinders, a bit better

Disk Controller Cache Disk controllers have their own cache Cache is separate from the OS cache OS caches blocks independently of where they are located on the disk Controller caches blocks which were easy to read but which were not necessarily requested

Bad Sectors-the controller approach Manufacturing defect-that which was written does not correspond to that which is read (back) Controller or OS deals with bad sectors If controller deals with them the factory provides a list of bad blocks and controller remaps good spares in place of bad blocks Substitution can be done when the disk is in use-controller “notices” that block is bad and substitutes

Error Handling (a) A disk track with a bad sector. (b) Substituting a spare for the bad sector. (c) Shifting all the sectors to bypass the bad one.