GYTE - Bilgisayar Mühendisliği Bölümü Bilgisayar Mühendisliği Bölümü GYTE - Bilgisayar Mühendisliği Bölümü An introduction to disk drive modeling BIL 601.

Slides:



Advertisements
Similar presentations
Chapter 6 I/O Systems.
Advertisements

IT253: Computer Organization
System Integration and Performance
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
An Introduction to Disk Drive Modeling Chris Ruemmler & John Wilkes Hewlett-Packard Laboratories Presented by Hang Zhao.
Paper by: Chris Ruemmler and John Wikes Presentation by: Timothy Goldberg, Daniel Sink, Erin Collins, and Tony Luaders.
- Dr. Kalpakis CMSC Dr. Kalpakis 1 Outline In implementing DBMS we need to answer How should the system store and manage very large amounts of data?
CSE506: Operating Systems Disk Scheduling. CSE506: Operating Systems Key to Disk Performance Don’t access the disk – Whenever possible Cache contents.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
04/18/2007CSCI 315 Operating Systems Design1 Mass Storage Structure Notice: The slides for this lecture have been largely based on those accompanying the.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Device Management.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Chapter 2: Computer-System Structures
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.
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:
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Toolbox for Dimensioning Windows Storage Systems Jalil Boukhobza, Claude Timsit 12/09/2006 Versailles Saint Quentin University.
Physical Storage and File Organization COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
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.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
IT 344: Operating Systems Winter 2010 Module 13 Secondary Storage Chia-Chi Teng CTB 265.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Invitation to Computer Science 5th Edition
1 Secondary Storage Management Submitted by: Sathya Anandan(ID:123)
1 IO Management and Disk Scheduling Chapter Categories of I/O Devices n Human readable u used to communicate with the user u video display terminals.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
An I/O Simulator for Windows Systems Jalil Boukhobza, Claude Timsit 27/10/2004 Versailles Saint Quentin University laboratory.
External Storage Primary Storage : Main Memory (RAM). Secondary Storage: Peripheral Devices –Disk Drives –Tape Drives Secondary storage is CHEAP. Secondary.
2.1 Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General.
UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department
Computer Organization. This module surveys the physical resources of a computer system.  Basic components  CPU  Memory  Bus  I/O devices  CPU structure.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Disk Basics CS Introduction to Operating Systems.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
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.
Paper by: Chris Ruemmler and John Wikes Presentation by: Timothy Goldberg, Daniel Sink, Erin Collins, and Tony Luaders.
Data Storage and Querying in Various Storage Devices.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
I/O System Chapter 5 Designed by .VAS.
Visit for more Learning Resources
IT 344: Operating Systems Winter 2008 Module 13 Secondary Storage
Computer Architecture
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
Module 2: Computer-System Structures
CSE 451: Operating Systems Autumn 2003 Lecture 12 Secondary Storage
CSE 451: Operating Systems Winter 2007 Module 13 Secondary Storage
Persistence: hard disk drive
CSE 451: Operating Systems Secondary Storage
CSE 451: Operating Systems Winter 2003 Lecture 12 Secondary Storage
Module 2: Computer-System Structures
CSE 451: Operating Systems Spring 2005 Module 13 Secondary Storage
CSE 451: Operating Systems Autumn 2004 Secondary Storage
CSE 451: Operating Systems Winter 2004 Module 13 Secondary Storage
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Presentation transcript:

GYTE - Bilgisayar Mühendisliği Bölümü Bilgisayar Mühendisliği Bölümü GYTE - Bilgisayar Mühendisliği Bölümü An introduction to disk drive modeling BIL 601 İşletim Sistemlerinde İleri Konular Sunum Serap Atılgan Aralık 2009

GYTE - Bilgisayar Mühendisliği Bölümü Characteristics of modern disk drives Disk drives contain a mechanism and a controller. The mechanism is made up of the recording components and the positioning components. The disk controller contains a microprocessor, some buffer memory and an interface to the SCSI bus. The controller manages the storage and retrieval of data to and from the mechanism 2

GYTE - Bilgisayar Mühendisliği Bölümü The Recording Components Modern disks range in size from 1.3 to 8 inches in diameter Smaller disks have less surface area and thus store less data than larger disks; but they consume less power, can spin faster and have smaller seek distances 3

GYTE - Bilgisayar Mühendisliği Bölümü The Positioning Components Each data surface is set up to store data in a series of tracks. To access the data stored in a track, the disk head must be moved over it. All the disk arms are attached to the same rotation pivot, so that moving one head causes the others to move as well. The positioning system’s task is to ensure that the appropriate head gets to the desired track as quickly as possible. 4

GYTE - Bilgisayar Mühendisliği Bölümü Seeking Seek time depends on: – Inertial power of the arm actuator motor – Distance between outer-disk recording radius and inner-disk recording radius Depends on platter-size Components of a seek: – Speedup Arm accelerates – Coast Arm moving at maximum velocity (long seeks) – Slowdown Arm brought to rest near desired track – Settle Head is adjusted to access the desired location

GYTE - Bilgisayar Mühendisliği Bölümü Track Following: Fine- tuning the head position at the end of a seek and keeping the head on the desired track is the function of the track-following system. This system uses positioning information recorded on the disk to determine whether the disk head is correctly aligned. The track- following system is also used to perform a head switch. When the controller switches its data channel from one surface to the next in the same cylinder, the new head may need repositioning to accommodate small differences in the alignment of the tracks on the different surfaces. A track switch ( or cylinder switch) occurs when the arm has to be moved from the last track of a cylinder to the first track of the next. 6

GYTE - Bilgisayar Mühendisliği Bölümü Data Layout A SCSI disk appears to its client computer as a linear vector of adressable blocks. These logical blocks mapped to physical sectors on the disk drive. Low-Level Layout Factors  Zoning: Tracks are longer at the outside of a platter than at the inside.The amount of data stored on each track should scale with its lenght. This is accomplished by a technique called zoning, where adjacent disk cylinders are grouped into zones.Zones near the outer edge have more sectors per track than zones on the inside. Since the data transfer rate is proportional to the rate at which the media passes under the head, the outer zones have higher data transfer rates. 7

GYTE - Bilgisayar Mühendisliği Bölümü  Track skewing: To provide faster sequential access across track and cylinder boundaries. Skew logical sector zero of each track by worst-case head/track switch-time.Each zone has different skew factors.  Sparing : There can be defective sectors during the manufacture of disks. References to them are remapped to other sectors References to flawed sectors are slipped by a sector/track (Slip sparing ) 8

GYTE - Bilgisayar Mühendisliği Bölümü The Disk Controller The disk controller mediates access to the mechanism, runs the track- following system, transfers data between the disk drive and its client, and manages an embedded cache.  Bus Interface : Most disk drives use the SCSI bus operation’s synchronous mode, which can run at the maximum bus speed. Because SCSI is a bus, more than one device can be attached to it. As the number of devices on the bus increases, contention for the bus can occur, leading to delays. The SCSI protocol also allows a disk drive to disconnect from the bus and reconnect later once it has data to transfer. 9

GYTE - Bilgisayar Mühendisliği Bölümü In older architectures, there was no buffering in the disk drive itself. So, if the disk was ready to transfer data to a host whose interface was not ready, then the disk had to wait an entire revolution for the same data to come under the head again before it could retry the transfer. In SCSI, the disk drive is excepted to have a speed-matching buffer to avoid this delay. 10

GYTE - Bilgisayar Mühendisliği Bölümü Caching of Requests Read - ahead : A read that hits in the cache can be satisfied in just the time needed for the controller to detect the hit and send the data back across the bus. This is much quicker than seeking to the data and reading it off the disk. Modern SCSI disks provide some form of read caching. The most common form is read-ahead. 11

GYTE - Bilgisayar Mühendisliği Bölümü Write Caching : In most disk drives, the cache is volatile. If the power to the drive is lost, cache loses its contents. Immediate reporting technique allows selected writes to the disk to be reported as complete as soon as they are written into the disk’s cache. Individual writes can be flagged “must not be immediate- reported” For large writes, file system has split into consecutive blocks and file system disables immediate reporting on writes to metadata describing the disk layout. 12

GYTE - Bilgisayar Mühendisliği Bölümü Command Queuing: With SCSI multiple requests at a time is supported by a mechanism called command queuing. This allows the host to give the disk controller several requests and let the controller determine the best execution order. Letting the disk drive perform the sequencing gives it potential to do a better job by using its detailed knowledge of the disk’s rotation position 13

GYTE - Bilgisayar Mühendisliği Bölümü Modeling Disk Drives Because of their nonlinear, state-dependent behaviour disk drives can not be modeled analytically with any accuracy so generally simulation is used. Simplest models-> assume fixed time for an I/O More elaborate models-> acknowledge that a disk I/O has separate seek, rotation and transfer times 14

GYTE - Bilgisayar Mühendisliği Bölümü The Simulator A simulator -> C++ using a version of the AT&T tasking library. Models a disk drive as two tasks and some additional control structures. One task models the mechanism, including the head and platter positions. Accepts requests of the form “read this much from here” and “seek to there” and executes them. Handles the data layout mapping between logical blocks and physical sectors. A second task, the direct memory access (DMA) engine models the SCSI bus interface and its transfer engine. Accepts requests of the form “transfer this request between the host and the disk” and executes them. 15

GYTE - Bilgisayar Mühendisliği Bölümü A cache object buffers requests between the two tasks and is used is used to manage the asynchronous interactions between the bus interface and the disk mechanism tasks. 16

GYTE - Bilgisayar Mühendisliği Bölümü 17

GYTE - Bilgisayar Mühendisliği Bölümü HP C2220A -> noncaching disk drive so that the cache would not interfere the analysis of disk mechanism. HP > to show the effects of adding caching. 18

GYTE - Bilgisayar Mühendisliği Bölümü For comparison, we need a metric to evaluate the models. We plot the time distribution curves for the real drive and the model output and use the root mean square of the horizontal distance between these two curves as a metric. This is called the demerit figure of the model. The real trace has a demerit figure of zero – it matches itself exactly. 19

GYTE - Bilgisayar Mühendisliği Bölümü – HP C2200A used No modeling A simple Model Modeling head- positioning effects Modeling rotation position – HP used Modeling data caching 20

GYTE - Bilgisayar Mühendisliği Bölümü 21

GYTE - Bilgisayar Mühendisliği Bölümü 22

GYTE - Bilgisayar Mühendisliği Bölümü 23

GYTE - Bilgisayar Mühendisliği Bölümü Model Summary 24 Table summarizes the different models and how well they did. The full model is necessary if a good match is required

GYTE - Bilgisayar Mühendisliği Bölümü Full model includes – The host I/O device driver: The CPU costs for executing it and its queuing strategy. – The SCSI bus, including bus convention effects. – Disk controller effects: – Disk buffer cache, including read-ahead and producer-consumer interlocks between the mechanism and bus transfers – Data layout model: Zoning and track and cylinder skew. – Head movement effects: a seek time, settle time, head- switch time and rotation latency. 25