Page 15/25/2016 CSE 40373/60373: Multimedia Systems QoS Classes  Guaranteed Service Class  QoS guarantees are provided based on deterministic and statistical.

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

Silberschatz, Galvin and Gagne Operating System Concepts Disk Scheduling Disk IO requests are for blocks, by number Block requests come in an.
CS 414 – Multimedia Systems Design Lecture 26 – Media Server (Part 2)
Using Hard Disks in Real-Time Systems Mark Stanovich.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
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.
CSE506: Operating Systems Disk Scheduling. CSE506: Operating Systems Key to Disk Performance Don’t access the disk – Whenever possible Cache contents.
1 Multimedia Chapter Introduction to multimedia 7.2 Multimedia files 7.3 Video compression 7.4 Multimedia process scheduling 7.5 Multimedia file.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 3) Klara Nahrstedt Spring 2011.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 15 –QoS Admission, QoS Negotiation, and Establishment of AV Connections Klara Nahrstedt.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
CS-3013 & CS-502, Summer 2006 Multimedia topics (continued)1 Multimedia Topics (continued) CS-3013 & CS-502 Operating Systems.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
CS 333 Introduction to Operating Systems Class 18 - File System Performance Jonathan Walpole Computer Science Portland State University.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
MM File Management Karrie Karahlaios and Brian P. Bailey Spring 2007.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
B. Prabhakaran1 Multimedia Storage & Retrieval Large sizes as well as real-time requirements of multimedia objects influence their storage and retrieval.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Joonwon Lee OS Support for Multimedia.
CS 153 Design of Operating Systems Spring 2015 Final Review.
21. Apr INF-3190: Multimedia Protocols Quality-of-Service.
Page 110/4/2015 CSE 40373/60373: Multimedia Systems Quality of Service  Quality of service measures the kind of service provided by the system  On systems.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
Multimedia Operating Systems ●File System Paradigms ●File Replacement ●Caching ●Disk.
QoS Support in High-Speed, Wormhole Routing Networks Mario Gerla, B. Kannan, Bruce Kwan, Prasasth Palanti,Simon Walton.
Quality of Service Karrie Karahalios Spring 2007.
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.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 25 – Media Server (Part 1) Klara Nahrstedt Spring 2011.
CS 153 Design of Operating Systems Spring 2015 Lecture 22: File system optimizations.
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.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
File Structures. 2 Chapter - Objectives Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files Hashed Files Dynamic and.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 30 – Media Server (Part 5) Klara Nahrstedt Spring 2009.
1 Push-to-Peer Video-on-Demand System. 2 Abstract Content is proactively push to peers, and persistently stored before the actual peer-to-peer transfers.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 1) Klara Nahrstedt Spring 2012.
Operating System concerns for Multimedia Multimedia File Systems -Jaydeep Punde.
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”
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
10. Mai 20061INF-3190: Multimedia Protocols Quality-of-Service Foreleser: Carsten Griwodz
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 17 – QoS Classes and Setup Operations Klara Nahrstedt Spring 2014.
W4118 Operating Systems Instructor: Junfeng Yang.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 13 – Quality of Service Concepts(Part 2) Klara Nahrstedt Spring 2009.
Chapter 20: Multimedia Systems
Multimedia Systems Operating System Presentation On
CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 5)
Chapter 20: Multimedia Systems
Multiple Platters.
Klara Nahrstedt Spring 2009
Disks and RAID.
Operating System I/O System Monday, August 11, 2008.
Klara Nahrstedt Spring 2010
Lecture 45 Syed Mansoor Sarwar
Chapter 20: Multimedia Systems
Data Orgnization Frequently accessed data on the same storage device?
Persistence: hard disk drive
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Chapter 20: Multimedia Systems
Presentation transcript:

page 15/25/2016 CSE 40373/60373: Multimedia Systems QoS Classes  Guaranteed Service Class  QoS guarantees are provided based on deterministic and statistical QoS parameters  Predictive Service Class  QoS parameter values are estimated and based on the past behavior of the service  Best Effort Service Class  There are no guarantees or only partial guarantees are provided Slides courtesy Prof. Nahrstedt

page 25/25/2016 CSE 40373/60373: Multimedia Systems Guaranteed QoS  We need to provide 100% guarantees for QoS values (hard guarantees) or very close to 100% (soft guarantees)  Current QoS calculation and resource allocation are based on:  Hard upper bounds for imposed workloads  Worst case assumptions about system behavior  Advantages: QoS guarantees are satisfied even in the worst case case (high reliability in guarantees)  Disadvantage: Over-reservation of resources, hence needless rejection of requests

page 35/25/2016 CSE 40373/60373: Multimedia Systems Predictive QoS Parameters  We utilize QoS values (QoS1,..QoSi) and compute average  QoSbound step at K>i is QoSK = 1/i*∑jQoSj  We utilize QoS values (QoS1,, QoSi) and compute maximum value  QoSK = max j=1,…i (QoSj)  We utilize QoS values (QoS1,, QoSi) and compute minimum value  QoSK = min j=1,…i (QoSj)

page 45/25/2016 CSE 40373/60373: Multimedia Systems Best Effort QoS  No QoS bounds or possible very weak QoS bounds  Advantages: resource capacities can be statistically multiplexed, hence more processing requests can be granted  Disadvantages: QoS may be temporally violated

page 55/25/2016 CSE 40373/60373: Multimedia Systems Quality-aware Service Model  Quality-aware Composite Service  Consists of set of autonomous services that are connected into a directed acyclic graph, called service graph  Is correct if the inter-service satisfied the following relation:  QoSout of Service K ‘satisfies ‘QoSin of Service M iff  qKjout = qMlin for qMlin being single QoS value  qKjout is in qMlin for qMlin being a range of QoS value  Example:  Video-on-demand service, consists of two services: retrieval service and playback service  Output quality of the retrieval service needs to correspond to input quality of playback service, or at least falls into the range of input quality of playback service

page 65/25/2016 CSE 40373/60373: Multimedia Systems Multimedia Resource Management  Resource managers with operations and resource management protocols  Various operations must be performed by resource managers in order to provide QoS  Establishment Phase  Operations are executed where schedulable units utilizing shared resources must be admitted, reserved and allocated according to QoS requirements  Enforcement Phase  Operations are executed where reservations and allocations must be enforced, and adapted if needed

page 75/25/2016 CSE 40373/60373: Multimedia Systems Establishment Phase Operations  QoS to Resource Mapping  Need translation profiles  Resource Admission  Need admission tests to check availability of shared resources  Resource Reservation  Need reservation mechanisms along the end-to-end path to keep information about reservations  Resource Allocation

page 85/25/2016 CSE 40373/60373: Multimedia Systems Admission Tests  Task schedulability tests for CPUs  This is done for delay guarantees  Packet schedulability tests for sharing host interfaces, switches  This is done for delay and jitter guarantees  Spatial tests for buffer allocation  This is done for delay and reliability guarantees  Link bandwidth tests  This is done for throughput guarantees

page 95/25/2016 CSE 40373/60373: Multimedia Systems Resource Reservation and Allocation  Two types of reservations  Pessimistic approach - Worst case reservation of resources  Optimistic approach - Average case reservation of resources  To implement resource reservation we need:  Resource table  to capture information about managed table (e.g., process management PID table)  Reservation table  to capture reservation information  Reservation function  to map QoS to resources and operate over reservation table

page 105/25/2016 CSE 40373/60373: Multimedia Systems Conclusion – Current State  Lack of mechanisms to support QoS guarantees  Need research in distributed control, monitoring, adaptation and maintenance of QoS mechanisms  Lack of overall frameworks  Need QoS frameworks for heterogeneous environments (diverse networks, diverse devices, diverse OS)

page 115/25/2016 CSE 40373/60373: Multimedia Systems Servers Classification  Media Servers  Push Servers – file servers with streaming model  Servers push data towards users  Traditional File Servers  Pull Servers - FTP servers  Users pull data in one block at a time by repeatedly calling read to get one block after another  RPC Calls

page 125/25/2016 CSE 40373/60373: Multimedia Systems Media Server Requirements  Real-time storage and retrieval  Media quanta must be presented using the same timing sequence with which they were captured  High-Data Transfer Rate and Large Storage Space  HDTV quality: 1280x720 pixels/frame; 24 bits/pixel -> 81 Mbytes per second  NTSC quality: 640x480 pixels/frame; 24 bits/pixel - >27MBytes per seconds

page 135/25/2016 CSE 40373/60373: Multimedia Systems Playback  Single Stream Playback  Possible approach – buffer the whole stream  Problem:??  Possible approach – prefetch just short video part  Problem: –Prevent starvation –Minimize buffer space requirement –Minimize initiation latency  Multiple Streams Playback  Possible approach – dedicate a disk to each stream  Problem: ??  Possible approach – multiple streams per disk  Problems: ??

page 145/25/2016 CSE 40373/60373: Multimedia Systems Support for Continuous Media  Proper management of multimedia disk storage  Optimal placement of data blocks on disk  Usage of multiple disks  Role of tertiary storage  Admission control  Special disk scheduling algorithms and sufficient buffers to avoid jitter

page 155/25/2016 CSE 40373/60373: Multimedia Systems Media Server Architecture Storage device Disk controller Storage management File System Memory Management Content Directory Network Attachment Incoming request Delivered data

page 165/25/2016 CSE 40373/60373: Multimedia Systems Disk Layout Track Secto r Zoned Disk (ZBR – Zone Bit Recording) Traditional Random Access Disk Layout Advantage: Easy mapping of location Information to head movement and disk rotation Problem: loss of storage space Advantage: Sector size same Rotation speed constant; efficient Usage of space

page 175/25/2016 CSE 40373/60373: Multimedia Systems Storage Management  Storage access time to read/write disk block is determined by 3 components  Seek Time  Time required for the movement of read/write head  Rotational Time (Latency Time)  Time during which transfer cannot proceed until the right block or sector rotates under read/write head  Data Transfer Time  Time needed for data to copy from disk into main memory

page 185/25/2016 CSE 40373/60373: Multimedia Systems Placement is important  Disk Layout and Number of disks play important role for media servers  Data block placement and file placement are crucial for real-time retrieval on media servers

page 195/25/2016 CSE 40373/60373: Multimedia Systems Placement of MM Data Blocks on Single Disk Continuous PlacementScattered Placement Simple to implement, but subject to fragmentation Avoids fragmentation Enormous copying overhead during insert/delete to maintain continuity Avoid copying overhead When reading file, only one seek required to position the disk head at the start of data When reading file, seek operation incurs for each block, hence intrafile seek

page 205/25/2016 CSE 40373/60373: Multimedia Systems Intra-file Seek Time  Intra-file seek – can be avoided in scattered layout if the amount read from a stream always evenly divides block  Solution: select sufficient large block and read one block in each round  If more than one block is required to prevent starvation prior to next read, deal with intra-file seek  Solution: constrained placement or log-structure placement

page 215/25/2016 CSE 40373/60373: Multimedia Systems Scattered Non-continuous Placement

page 225/25/2016 CSE 40373/60373: Multimedia Systems Constrained Placement  Approach: separation between successive file blocks is bounded  Bound on separation – not enforced for each pair of successive blocks, but only on average over finite sequence of blocks  Attractive for small block sizes  Implementation – expensive  For constrained latency to yield full benefit, scheduling algorithm must retrieve immediately all blocks for a given stream before switching to another stream

page 235/25/2016 CSE 40373/60373: Multimedia Systems Log-Structure Placement  This approach writes modified blocks sequentially in a large contiguous space, instead of requiring seek for each block in stream when writing (recording)  Reduction of disk seeks  Large performance improvements during recording, editing video and audio  Problem: bad performance during playback  Implementation: complex

page 245/25/2016 CSE 40373/60373: Multimedia Systems Placement of Multiple MM Files on Single Disk  Popularity concept among multimedia content - very important  Take popularity into account when placing movies on disk  Model of popularity distribution – Zipf’s Law  Movies are kth ranked  if their probability of customer usage is C/k, –C = normalization factor  Condition holds: C/1 + C/2 + … C/N = 1, –N is number of customers

page 255/25/2016 CSE 40373/60373: Multimedia Systems Placement Algorithm for Multiple Files on Single Disk  Organ-Pipe Algorithms (Grossman and Silverman 1973) Middle of disk 1 st rank (most popular movie) 2 nd ranked movie 3 rd 4 th 5 th 6 th 7 th 8 th 9 th

page 265/25/2016 CSE 40373/60373: Multimedia Systems Need for Multiple Disks Solutions for Media Server  Limitation of Single Disk: Disk Throughput  Approach: 1 Maintain multiple copies of the same file on different disks  Very expensive  Approach 2: Scatter multimedia file across multiple disks

page 275/25/2016 CSE 40373/60373: Multimedia Systems Approach: Data Striping  RAID (Redundant Arrays of Inexpensive Disks)  Addresses both performance and security  (0-6) RAID levels – different approach at combining performance enhancements with security/fault-tolerance enhancements  Disks spindle synchronously  Operate in lock-step parallel mode  Striping improves BW, but does not improve seek or rotational delay

page 285/25/2016 CSE 40373/60373: Multimedia Systems Storage/Disk Management  Disk access – slow and costly  Reduce disk access  Use block caches (anticipate future reads or writes)  Reduce disk arm motion  Blocks accesses in sequence (continuously), place together on one cylinder  Interleaved vs non-interleaved storage

page 295/25/2016 CSE 40373/60373: Multimedia Systems Disk Scheduling Policies  Goal of Scheduling in Traditional Disk Management  Reduce cost of seek time  Achieve high throughput  Provide fair disk access  Goal of Scheduling in Multimedia Disk Management  Meet deadline of all time-critical tasks  Keep necessary buffer requirements low  Serve many streams concurrently  Find balance between time constraints and efficiency

page 305/25/2016 CSE 40373/60373: Multimedia Systems EDF (Earliest Deadline First) Disk Scheduling  Each disk block request is tagged with deadline  Policy:  Schedule disk block request with earliest deadline  Excessive seek time – high overhead  Pure EDF must be adapted or combined with file system strategies

page 315/25/2016 CSE 40373/60373: Multimedia Systems SCAN-EDF Scheduling Algorithm  Combination of SCAN and EDF algorithms  Each disk block request tagged with augmented deadline  Add to each deadline perturbation  Policy:  SCAN-EDF chooses the earliest deadline  If requests with same deadline, then choose request according to scan direction