Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.

Slides:



Advertisements
Similar presentations
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
Advertisements

Overview of Mass Storage Structure
I/O Management and Disk Scheduling
CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( ) [Adapted from Computer Organization.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
CS4432: Database Systems II Data Storage - Lecture 2 (Sections 13.1 – 13.3) Elke A. Rundensteiner.
Input/Output Management and Disk Scheduling
13.2 Disks Mechanics of Disks Presented by Chao-Hsin Shih Feb 21, 2011.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Disks.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Mass-Storage Systems Revised Tao Yang.
04/19/2004CSCI 315 Operating Systems Design1 Mass Storage Structure Notice: The slides for this lecture have been largely based on those accompanying the.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk and I/O Management
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
Device Management. So far… We have covered CPU and memory management Computing is not interesting without I/Os Device management: the OS component that.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
1 6 Further System Fundamentals (HL) 6.2 Magnetic Disk Storage.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Disk & disk scheduling.
Operating System Concepts and Techniques Lecture 7 Scheduling-3 M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
1Fall 2008, Chapter 12 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
I/O and Disk Scheduling CS Spring Overview Review of I/O Techniques I/O Buffering Disk Geometry Disk Scheduling Algorithms RAID.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
Lecture 3 Page 1 CS 111 Online Disk Drives An especially important and complex form of I/O device Still the primary method of providing stable storage.
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
Csci 136 Computer Architecture II – IO and Storage Systems Xiuzhen Cheng
Disks and Disk Scheduling Steve Muckle Monday, March 31st Spring 2003.
Disk Basics CS Introduction to Operating Systems.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
1.  Disk Structure Disk Structure  Disk Scheduling Disk Scheduling  FCFS FCFS  SSTF SSTF  SCAN SCAN  C-SCAN C-SCAN  C-LOOK C-LOOK  Selecting a.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Device Management Mark Stanovich Operating Systems COP 4610.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
1 Chapter 13 Mass-Storage Structure. 2 Disk Structure Disk drives are addressed as large 1- dimensional arrays of logical blocks, where the logical block.
Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.
Magnetic Disk Rotational latency Example Find the average rotational latency if the disk rotates at 20,000 rpm.
COSC 6340: Disks 1 Disks and Files DBMS stores information on (“hard”) disks. This has major implications for DBMS design! » READ: transfer data from disk.
Device Management Andy Wang Operating Systems COP 4610 / CGS 5765.
CPS216: Advanced Database Systems Notes 03: Data Access from Disks Shivnath Babu.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
Chapter 10: Mass-Storage Systems
Sarah Diesburg Operating Systems CS 3430
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
OPERATING SYSTEMS CS 3502 Fall 2017
Secondary Storage Secondary storage typically: Characteristics:
Hard Drives.
Disk Scheduling Algorithms
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Lecture 45 Syed Mansoor Sarwar
Disks and Files DBMS stores information on (“hard”) disks.
Lecture 11: DMBS Internals
Operating Systems (CS 340 D)
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Disks and scheduling algorithms
Persistence: hard disk drive
Mass-Storage Systems.
Chapter 11 I/O Management and Disk Scheduling
Disks and Disk Scheduling
Secondary Storage Management Hank Levy
CSE451 File System Introduction and Disk Drivers Autumn 2002
Chapter 11: Mass-Storage Systems
Andy Wang Operating Systems COP 4610 / CGS 5765
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Presentation transcript:

Disk Average Seek Time

Multi-platter Disk platter Disk read/write arm read/write head

Multi-platter Disk track cylinder sector

measures the amount of time required for the read/write heads to move between tracks over the surface of the platters Seek Time Average Seek Time = 0.0 ms0.8 ms platter

After the read/write arm has picked the right track, the time it takes for the requested sector (on that track) to come under the read/write head Rotational delay 0.0 ms0.2 ms read/write arm platter

Avg. seek time = Avg. Rotation latency / rotational delay = latency halfway around the disk Transfer time = the time it takes to transfer a block of bits, typically a sector, under the read/write head - Function of the size, rotational speed, recording density of a track, speed of electronics connecting disk to computer Controller Overhead time = the overhead the controller imposes in performing I/O access Other measurements

Example taken from: Computer architecture by J. Hennessy and D. Patterson What is avg. time to read or write (access time) a 512-byte sector for a typical disk? Avg. seek time (ST)= 5ms Transfer time (TT)=40 MB/sec Rotational delay (RD)= 10,000 RPM Controller overhead (CO)= 0.1 ms Assume the disk is idle and so no queuing delay dat = ST + RD + TT + CO = 5ms + (0.5/10,000 rpm) + (0.5KB/40.0 MB/sec) ms = = 8.11 ms Assuming the measured seek time is 33% of the calculated average. So we obtain: dat= 1.67 ms ms ms ms = ms Note that 0.013/4.783 = 0.3% is the disk transferring data in this example

Disk Scheduling

Access Time: seek time + rotational delay + transfer time + controller overhead Transfer Time: time to copy the block to and from the disk Disk Bandwidth: total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer Seek Time: the for the disk arm to move the heads to the cylinder containing the desired sector. Rotational Delay: time waiting for the disk to rotate the desired sector to the disk head

Disk Scheduling Disk Head Scheduler: After the completion of the current operation, the disk head scheduler examines the current contents of the queue and decides which request to be served next. The Disk Head Scheduler must consider 3 important factors 1. overall performance of the disk 2. fairness in treating processes 3. cost of executing scheduling algorithm Scheduling Algorithms First-In/First-Out (FIFO) Shortest Seek Time First (SSTF) Scan or Elevator Look

Disk Scheduling First-In/First-OutFIFO Head at Head at =

Disk Scheduling Shortest Seek Time First - SSTF Head at Head at =

Disk Scheduling Scan Head at Head at =

Disk Scheduling Look Head at Head at =

First-In/First-OutFIFO Head at Head at s2 s3 s1 45 Disk & Sector Scheduling

First-In/First-OutFIFO Head at Head at s3 s2 s1 45

First-In/First-OutFIFO Head at Head at s3 s2 45 Disk & Sector Scheduling

First-In/First-OutFIFO Head at Head at s3 45 Disk & Sector Scheduling

First-In/First-OutFIFO Head at Head at Disk & Sector Scheduling

First-In/First-OutFIFO Head at Head at = Disk & Sector Scheduling