CS 414 Multimedia Systems Design Lecture 31 Media
- Slides: 36
CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 1) Klara Nahrstedt Spring 2012 CS 414 - Spring 2012
Administrative n n MP 2 posted MP 2 Deadline – April 7, Saturday, 5 pm. CS 414 - Spring 2012
Covered Aspects of Multimedia Image/Video Capture Audio/Video Perception/ Playback Audio/Video Presentation Playback Image/Video Information Representation Transmission Audio Capture Transmission Compression Processing Audio Information Representation Media Server Storage CS 414 - Spring 2012 A/V Playback
Outline Media Server Requirements n Media Server Layered Architecture n CS 414 - Spring 2012
Client/Server Video-on-Demand System CS 414 - Spring 2012
Video-on-Demand Systems must be designed with goals: Avoid starvation n Minimize buffer space requirement n Minimize initiation latency (video startup time) n Optimize cost n CS 414 - Spring 2012
Media Server Requirements n Real-time storage and retrieval ¨ Media quanta must be presented using the same timing sequence with which they were captured n High-Data Transfer Rate and Large Storage Space ¨ HDTV quality: 1280 x 720 pixels/frame; 24 bits/pixel -> 81 Mbytes per second ¨ NTCS quality: 640 x 480 pixels/frame; 24 bits/pixel ->27 MBytes per seconds CS 414 - Spring 2012
You. Tube Video Server (2010) http: //tech. fortune. cnn. com/2010/05/17/yo utube-at-5 -years-old-2 -billion-served-perday/ n May 2010, 2 Billion videos served per day n More than 24 hours of video uploaded every minute n Videos usually less than 10 minutes long n CS 414 - Spring 2012
You. Tube Video Server (2011) n n n Over 4 B videos are viewed a day 60 hours of video are uploaded every minute Over 800 million unique users visit You. Tube each month 70% of You. Tube traffic comes from outside US In 2011, You. Tube had more than 1 trillion views (140 views for every person on Earth) Source: http: //www. youtube. com/t/press_statistics CS 414 - Spring 2012
Video Playback Issues n Single Stream Playback ¨ Possible n Problem: ? ? ¨ Possible n approach – prefetch just short video part Problem: ¨ ¨ ¨ n approach – buffer the whole stream Prevent starvation Minimize buffer space requirement Minimize initiation latency Multiple Streams Playback ¨ Possible n Problem: ? ? ¨ Possible n approach – dedicate a disk to each stream approach – multiple streams per disk Problems: ? ? CS 414 - Spring 2012
Media Server Architecture Delivered data Incoming request Network Attachment Content Directory/Distribution Memory Management File System Storage management Disk control - scheduling Storage device CS 414 - Spring 2012
Storage Device- Disk Layout Zoned Disk (ZBR – Zone Bit Recording) Traditional Random Access Disk Layout Track Sector 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 CS 414 - Spring 2012
Storage/Disk Management n Optimal placement of MM data blocks ¨ Single disk ¨ multiple disks Timely disk scheduling algorithms and sufficient buffers to avoid jitter n Possible Admission control n CS 414 - Spring 2012
Storage Management n Storage access time to read/write disk block is determined by 3 components ¨ Seek n Time required for the movement of read/write head ¨ Rotational n Time during which transfer cannot proceed until the right block or sector rotates under read/write head ¨ Data n Time (Latency Time) Transfer Time needed for data to copy from disk into main memory CS 414 - Spring 2012
Impact of Access Time Metrics If data blocks are arbitrarily placed n If requests are served on FCFC basis n Then effort for locating data place may cost time period in order of magnitude 10 ms n This performance degrades disk efficiency n Need techniques to reduce seek, rotation and transmission times !!! n CS 414 - Spring 2012
MM Data Placement on Single Disk Continuous Placement Non-contiguous 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 CS 414 - Spring 2012
Intra-file Seek Time Intra-file seek – can be avoided in noncontiguous layout if the amount read from a stream always evenly divides block n Solution: select sufficient large block and read one block in each round n ¨ If more than one block is required to prevent starvation prior to next read, deal with intra-file seek n Solution: constrained placement or logstructure placement CS 414 - Spring 2012
Non-continuous Placement CS 414 - Spring 2012
Constrained Placement n 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 n For constrained latency to yield full benefit, scheduling algorithm must retrieve immediately all blocks for a given stream before switching to another stream CS 414 - Spring 2012
Log-Structure Placement n 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 n n Problem: bad performance during playback Implementation: complex CS 414 - Spring 2012
MM Data Placement at Multiple Disks Data Interleaving On single disk (consecutive blocks are placed on The same cylinder But in interleaved way Data Interleaving On Multiple Disks (Disks are not Synchronized) Striping data across Multiple disks CS 414 - Spring 2012
Disk Scheduling Policies n Goal of Scheduling in Traditional Disk Management ¨ Reduce cost of seek time ¨ Achieve high throughput ¨ Provide fair disk access n 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 CS 414 - Spring 2012
Disk Scheduling Framework n Must support multiple Qo. S levels and requests CS 414 - Spring 2012 Source: Reddy et al, “Disk Scheduling in a Multimedia I/O System”, ACM TOMCCAP 2005
EDF (Earliest Deadline First) Disk Scheduling n Each disk block request is tagged with deadline ¨ Very n good scheduling policy for periodic requests Policy: ¨ Schedule disk block request with earliest deadline ¨ Excessive seek time – high overhead ¨ Pure EDF must be adapted or combined with file system strategies CS 414 - Spring 2012
EDF Example Note: Consider that block number Implicitly encapsulates the disk track number CS 414 - Spring 2012
SCAN-EDF Scheduling Algorithm Combination of SCAN and EDF algorithms n Each disk block request tagged with augmented deadline n ¨ Add n to each deadline perturbation Policy: ¨ SCAN-EDF chooses the earliest deadline ¨ If requests with same deadline, then choose request according to scan direction CS 414 - Spring 2012
Implementation of SCAN-EDF n Notation: ¨ Di be deadline of disk block request ‘i’ ¨ Ni be track (block) position on disk ¨ Nmax be maximum number of disk tracks n Deadline Modification: ¨ Di + f(Ni) ¨ f(Ni) converts track number of ‘i’ into a small perturbation of deadline ¨ Perturbation small enough so that n n Di + f(Ni) ≤ Dj + f(Nj) for Di ≤ Dj Possible f(Ni) = Ni/Nmax CS 414 - Spring 2012
SCAN EDF Example (Nmax = 100) CS 414 - Spring 2012
Enhanced SCAN-EDF (1) n n Use more accurate perturbation of deadline Consider ¨ Actual track position of disk head ‘N’ ¨ Nmax – max number of disk tracks ¨ Ni – next track to be considered Head Moves Upwards CS 414 - Spring 2012
Enhanced SCAN-EDF (2) n Algorithm: ¨ If head moves upwards (towards Nmax), then ¨ (a) ¨ (b) CS 414 - Spring 2012
Enhanced SCAN-EDF (3) If head moves downwards (towards 1), then (a) n (b) CS 414 - Spring 2012
Group Sweeping Algorithms n Policy: ¨ Each Request consists of (Deadline, Block Number ) ¨ Disk Block Requests served in cycles ¨ In one cycle, requests divided into groups according to similar deadlines ¨ Within group use SCAN ¨ As we retrieve blocks, we may need smoothing buffers to ensure continuity CS 414 - Spring 2012
Group Sweeping Example CS 414 - Spring 2012
Mixed Scheduling (uses SSTF – Shortest Seek Time First) Example of SSTF CS 414 - Spring 2012
Mixed Scheduling SSTF (Shortest Seek Time First) + Balanced Strategy CS 414 - Spring 2012
Conclusion Media Server Architecture n Storage Management n ¨ Data/file placement on single disk ¨ Data/file placement on multiple disks Disk Scheduling – important component in the timely delivery of streams n Admission should be done if one cares not to over subscribe n CS 414 - Spring 2012
- 01:640:244 lecture notes - lecture 15: plat, idah, farad
- Multimedia becomes interactive multimedia when
- Kinds of multimedia
- Multimedia becomes interactive multimedia when
- Esa multimedia.esa.int./multimedia/virtual-tour-iss
- Mil-std-414
- Military standard 414
- Mil-std 414
- Pc 414
- Cs 414
- Cmsc 414
- Cse414
- Gcd of 414 and 662
- Cmsc 414
- Cmsc 414
- Cmsc 414
- Operating systems lecture notes
- Articulators
- Lecture sound systems
- Lecture about social media
- Types of multimedia system
- Multimedia system definition
- Advanced multimedia systems
- Multimedia database management systems
- Contoh konten multimedia
- Multimedia table
- Discrete media
- Eurocode reinforcement detailing
- Urban design lecture
- Principles of design in interior design ppt
- Lecture hall acoustics
- Game design lecture
- Computer aided drug design lecture notes
- Cmos vlsi design lecture notes
- What is multimedia project
- Font editing and design tools in multimedia
- Multimedia application design