MM File Management Karrie Karahlaios and Brian P. Bailey Spring 2007.

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
CS 414 – Multimedia Systems Design Lecture 26 – Media Server (Part 2)
I/O Management and Disk Scheduling
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Disk Scheduling Based on the slides supporting the text 1.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
Continuous Media 1 Differs significantly from textual and numeric data because of two fundamental characteristics: –Real-time storage and retrieval –High.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 3) Klara Nahrstedt Spring 2011.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
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
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage.
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Disk and I/O Management
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
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.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Disk & disk scheduling.
Page 15/25/2016 CSE 40373/60373: Multimedia Systems QoS Classes  Guaranteed Service Class  QoS guarantees are provided based on deterministic and statistical.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
1 Multimedia Storage Issues. NUS.SOC.CS5248 OOI WEI TSANG 2 Media vs. Documents large file size write once, read many deadlines!
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
Disks and Storage Systems
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Chapter 8 External Storage. Primary vs. Secondary Storage Primary storage: Main memory (RAM) Secondary Storage: Peripheral devices  Disk drives  Tape.
15-410, S’ Disks Mar. 24, 2004 Dave Eckhardt & Bruce Maggs Brian Railing & Steve Muckle Contributions from Eno Thereska “How Stuff Works”
UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department
Disks and Disk Scheduling Steve Muckle Monday, March 31st Spring 2003.
Chapter 12: Mass-Storage Systems
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 1) Klara Nahrstedt Spring 2012.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
NUS.SOC.CS5248 Ooi Wei Tsang 1 Course Matters. NUS.SOC.CS5248 Ooi Wei Tsang 2 Make-Up Lecture This Saturday, 23 October TR7, 1-3pm Topic: “CPU scheduling”
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
M ASS S TORAGE S TRUCTURES Lecture: Operating System Concepts Lecturer: Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
Part IV I/O System Chapter 12: Mass Storage Structure.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Operating System (013022) Dr. H. Iwidat
Disks and RAID.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Operating System I/O System Monday, August 11, 2008.
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Lecture 45 Syed Mansoor Sarwar
Disks and scheduling algorithms
Secondary Storage Management Brian Bershad
Persistence: hard disk drive
Disks and Disk Scheduling
Secondary Storage Management Hank Levy
CSE451 File System Introduction and Disk Drivers Autumn 2002
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Presentation transcript:

MM File Management Karrie Karahlaios and Brian P. Bailey Spring 2007

Announcements

Physical Disk Structure Sector Track Platter Cylinder R/W head Example –16 heads x 1400 cyls x 16 sectors/track x 512 bytes/sector = 183.5MB

Measures of Performance Seek time (ms) –time to move disk arm to a specific track Latency (ms) –time for sector to rotate under disk arm Transfer rate (Mbps) –data that can be read in one time unit

Zoned Bit Recording Utilize larger, outer tracks –early disks could not handle varying number of sectors / track –reduce density of outer sectors Each zone (set of tracks) has variable number of sectors –outer part can hold more data and support higher transfer rates

File System Mapped onto physical disk structure –want to match user’s conceptual model Collection of files and directories –file is logical storage unit –directories contain information about files (names, type, location, size, protection, etc.) Basic operations –create, write, read, reposition, delete –sequential and random access

Allocation Methods Contiguous Linked Constrained Striping … and many others

Continuous Occupy contiguous set of blocks Strengths –minimizes seek time –supports sequential and random access Weaknesses –suffers external fragmentation

Linked Stored as a linked list of blocks Strengths –eliminates external fragmentation –supports files of arbitrary length Weaknesses –random access slow, overhead of pointers –susceptible to block errors

Constrained Linked structure, but allocate next block based on “distance” from previous one –distance = predicted seek and latency Strengths –improves sequential access –minimizes seek time Weaknesses –increases algorithm complexity

Striping (RAID-0) Stripe file across an array of N disks –divide file into stripes, dive stripe into units, assign each unit to different disk Strengths –reduces disk access time by N Weaknesses –susceptible to failure of any one disk –p(failure) = N * p(any one disk failing)

MM File System Requirements Storing/retrieving multimedia files –large size; continuous periodic requests Maintain high throughput Support RT and non RT requests Guarantee a sustained level of service

Meeting the Requirements Methods of placing data on disk Scheduling algorithms Admission control policies Maximize transfer time

Zipfs Law Probability of occurrence of the kth most common word is proportional to 1/k –applies to many observable events More generally P i = k / i α where –i is the ith most popular item; k is a constant; alpha is close to 1

Apply to File Allocation For multimedia, assume that –alpha=1 –Sum(P i )=1 Compute the probability of each multimedia file being accessed –use for layout and prefetching

Scheduling Algorithms FCFS SSTF SCAN and C-SCAN EDF SCAN-EDF Understand each algorithm and weigh advantages and disadvantages

FCFS Serve requests based on incoming order Inherently fair Does not consider location of requests –can lead to high overhead

SSTF Select request closest to current position –minimizes seek time/overhead May cause starvation of some requests

SCAN and C-SCAN Serves all requests in current direction –reverses when no more requests –serves middle tracks better than edges C-SCAN scans across disk in cycles –more fair to the edge tracks

EDF Attach deadlines to each request –select request with earliest deadline –can have high overhead

SCAN-EDF SCAN-EDF selects –earliest deadline, or if same deadline –select request closest to the disk’s center Use EDF, but perturb deadlines –D i = D i + f(N i ); where f(N i ) = N i / N max –Consider direction?

Admission Control Based on the admission control policy discussed in the paper: –C. Martin, P.S. Narayan, B. Ozden, R. Rastogi, and A. Silberschatz. The Fellini Multimedia Storage System, Journal of Digital Libraries, 1997.

Mathematical Setup Client requests received in cycles of duration T –T is referred to as the common period of the system –assumes circular (C-SCAN) scan of the disk –consumption rate of each real-time client is r i Retrieval rate for each client must be > T*r i Ensure that the file system in each period T can retrieve T*r i bits for each client

Setup (cont.) Serve both real and non-real time clients Serve real-time clients using fraction of T –Use to serve real-time clients –Use to serve non real-time clients To retrieve T*r i bits for each client, the controller must ensure time to retrieve T*r 1, …, T*r n bits does not exceed

Number of Disk Blocks If b is block size, then maximum number of disk blocks to be retrieved for r i is

Latency Retrieval of a disk block involves a seek to the track containing the block, a settle time delay, and a rotational delay Let t seek, t rot, and t settle be the worst case times for each measure

Maximum Latency Thus, the maximum latency for servicing clients r 1, r 2, …, r q is

Transfer Time If the transfer rate from the innermost track of the disk is r disk, then the time to transfer T*r i bits of data for request r i is

Admission for Real-Time Clients Thus, the total time to retrieve T*r 1, …, T*r q bits for requests R 1, …, R q is the sum of the latency and transfer times Admit new client, if on adding it, this equation is still satisfied

Admission for Non RT Clients Remainder of the period is for requests from non real-time clients Let d i be the data requested from C i Number of blocks is

Admission for Non RT Clients For each request, latency plus transfer time is Over all requests p, this becomes Admit new non RT client, if on adding it, above equation is still satisfied

Example Transfer rate (r disk ) = 100 KB / sec Cycle time (T) = 10ms Max latency = 1ms Client A data rate (r 1 ) = 45 KB/sec Client B data rate (r 2 ) = 40 KB/sec Are the two real-time clients admissible? If so, what proportion of the cycle time is needed to serve these clients?