Operating Systems Operating System Support for Continuous Media.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
Multimedia Systems As Presented by: Craig Tomastik.
Chapter 20: Multimedia Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 20: Multimedia Systems What is Multimedia.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 20: Multimedia Systems.
Input/Output Management and Disk Scheduling
CS-3013 & CS-502, Summer 2006 Multimedia topics (continued)1 Multimedia Topics (continued) CS-3013 & CS-502 Operating Systems.
Operating Systems Input/Output Devices (Ch , 12.7; , 13.7)
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
Chapter 6: CPU Scheduling. 5.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Feb 2, 2005 Chapter 6: CPU Scheduling Basic.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Computer Networks Multimedia and Multicast. Outline F Multimedia Overview F Receiver-Driven Layered Multicast F UDP Sockets (coming soon) F IP Multicast.
Based on the slides supporting the text
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 5 Disks CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent.
Disks.
Device Management.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Operating Systems Operating System Support for Multimedia.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
Operating Systems Input/Output Devices (Ch 5: )
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.
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
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
Device Management. Serial Port Serial Device Serial Device Memory CPU Printer Terminal Modem Mouse etc.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
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!
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
Sistem Operasi IKH311 Masukan Luaran (Input/Output)
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
Disks and Storage Systems
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.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Multimedia Systems.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
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.
I/O Management and Disk Scheduling Chapter 11. Disk Performance Parameters To read or write, the disk head must be positioned at the desired track and.
OBJECTIVE: To learn about the various system calls. To perform the various CPU scheduling algorithms. To understand the concept of memory management schemes.
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.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 13 Mass-Storage Systems Slide 1 Chapter 13 Mass-Storage Systems.
© 2004, D. J. Foreman 1 Device Mgmt. © 2004, D. J. Foreman 2 Device Management Organization  Multiple layers ■ Application ■ Operating System ■ Driver.
© 2004, D. J. Foreman 1 Device Mgmt. © 2004, D. J. Foreman 2 Device Management Organization  Multiple layers ■ Application ■ Operating System ■ Driver.
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”
Device Management Mark Stanovich Operating Systems COP 4610.
CS399 New Beginnings Jonathan Walpole. Disk Technology & Secondary Storage Management.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
Chapter 20: Multimedia Systems
Multimedia Systems Operating System Presentation On
Chapter 20: Multimedia Systems
Multiple Platters.
Input/Output Devices ENCE 360
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Presentation transcript:

Operating Systems Operating System Support for Continuous Media

Why Study Multimedia? Improvements: –Telecommunications –Environments –Communication –Fun Outgrowth from industry –telecommunications –consumer electronics –television

Continuous Media Subset of multimedia Includes timing relationship between server and client Stream: –video: mpeg, H.261, avi –audio: MP3, µ-law

Multimedia Resource Requirements Bytes for 1 Page textgraphicscoloraudiovideo 38K 2K 300K 720K 7000K Step up in media requires more bytes But not as much as some applications! –Graphics or transaction processing

Influences on Quality Server Client S0S0 S2S2 S1S1 S3S3 time C0C0 C1C1 S4S4 C2C2 C3C3 t0t0 t0t0 Delay Jitter Data Loss

An End-To-End Problem Server Application Operating System Network Protocol Client Application Operating System Network Protocol Server Client Network Routers

Traditional OS Support Same: –arbitrate resource demands (efficient) –abstractions of low-level devices (convenient) Different: –no longer just protect memory of process –negotiated slice of CPU time –I/O bandwidth –timing!

OS Problems in Supporting Multimedia Process Scheduling (now) Memory Management (later) Storage Scheduling (later, cs4513) Network Interface (later, cs4514)

Process Scheduling Shortcomings Multi-level feedback queue Typical time slice 100 ms Dispatch latency 100 ms! –Varies (Jitter) Priority Levels Ready Processes

Jitter

Jitter vs. Processor Load

Process Scheduling Fix? F Priority to multimedia processes F nice

Jitter with Real-Time Priorities

Jitter with R.T. Priorities (Zoom)

Memory Management F Paging: –page faults cause jitter –allocation causes jitter u global vs. local –solution: lock in pages F Memory allocation generally not tied to scheduling priority

Network Interface TCP –guarantees delivery –stream semantics –fixed flow control –unicast –… big bleah! RTP –multicast add-on –packet sequence –flow control F UDP –multicast add-on –checksum cannot be turned off –no notion of priority –no flow control –… little bleah!

Storage Scheduling Disk scheduling and layout DBMS

Disk Arm Scheduling Read time: –seek time (arm to cylinder) –rotational delay (time for sector under head) –transfer time (takes bits off disk) Seek time dominates How does disk arm scheduling affect seek?

First-Come First-Served (FCFS) =53 Service requests in order that they arrive Little can be done to optimize What if many requests? x xx x x x x Time

Shortest Seek First (SSF) = 23 Suppose many requests? –Stay in middle –Starvation! x xx x x x x Time

SCAN (Elevator) = 31 Usually, a little worse than SSF C-SCAN has less variance Note, seek getting faster, rotational not –Someday, change algorithms x xx x x x x Time

Redundant Array of Inexpensive Disks (RAID) 38 disks Pull data in parallel Form 32 bit word, 6 check bits

Conclusion F Much work to be done –scheduling –memory management –network –disk F MQP anyone? –One piece in OS support puzzle