CS 414 - Spring 2011 CS 414 – Multimedia Systems Design Lecture 30 – Media Server (Part 6) Klara Nahrstedt Spring 2011.

Slides:



Advertisements
Similar presentations
CS 414 – Multimedia Systems Design Lecture 26 – Media Server (Part 2)
Advertisements

Operating Systems ECE344 Ding Yuan Final Review Lecture 13: Final Review.
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.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 35 – Media Server (Part 4) Klara Nahrstedt Spring 2012.
Filesystem Optimizations for Static Content Multimedia Servers Review of academic papers for TDC573 Jeff Absher.
Serverless Network File Systems. Network File Systems Allow sharing among independent file systems in a transparent manner Mounting a remote directory.
Study of Hurricane and Tornado Operating Systems By Shubhanan Bakre.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 3) Klara Nahrstedt Spring 2011.
CS 153 Design of Operating Systems Spring 2015
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.
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:
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.
Operating Systems Operating System Support for Continuous Media.
OS Spring’04 Virtual Memory: Page Replacement Operating Systems Spring 2004.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
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.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 4) Klara Nahrstedt Spring 2011.
Redundant Array of Independent Disks
1 File System Implementation Operating Systems Hebrew University Spring 2010.
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.
CS 153 Design of Operating Systems Spring 2015 Final Review.
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!
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
Quality of Service Karrie Karahalios Spring 2007.
CS 6502 Operating Systems Dr. J.. Garrido Device Management (Lecture 7b) CS5002 Operating Systems Dr. Jose M. Garrido.
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.
Chapter 20 Distributed File Systems Copyright © 2008.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming  To allocate scarce memory resources.
1 Linux Operating System 許 富 皓. 2 Memory Addressing.
MapReduce and GFS. Introduction r To understand Google’s file system let us look at the sort of processing that needs to be done r We will look at MapReduce.
Presenters: Rezan Amiri Sahar Delroshan
Physical Storage Organization. Advanced DatabasesPhysical Storage Organization2 Outline Where and How data are stored? –physical level –logical level.
CS 153 Design of Operating Systems Spring 2015 Lecture 22: File system optimizations.
By Teacher Asma Aleisa Year 1433 H.   Goals of memory management  To provide a convenient abstraction for programming.  To allocate scarce memory.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 30 – Media Server (Part 5) Klara Nahrstedt Spring 2009.
CS333 Intro to Operating Systems Jonathan Walpole.
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”
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 35 – Media Server (Part 4) Klara Nahrstedt Spring 2014.
FILE SYSTEM IMPLEMENTATION 1. 2 File-System Structure File structure Logical storage unit Collection of related information File system resides on secondary.
1 CEG 2400 Fall 2012 Network Servers. 2 Network Servers Critical Network servers – Contain redundant components Power supplies Fans Memory CPU Hard Drives.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
Multimedia Systems Operating System Presentation On
Jonathan Walpole Computer Science Portland State University
CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 5)
Klara Nahrstedt Spring 2009
Operating System I/O System Monday, August 11, 2008.
Lecture 45 Syed Mansoor Sarwar
The Google File System Sanjay Ghemawat, Howard Gobioff and Shun-Tak Leung Google Presented by Jiamin Huang EECS 582 – W16.
Lecture 14 Virtual Memory and the Alpha Memory Hierarchy
Page Replacement.
Computer Architecture
Overview Continuation from Monday (File system implementation)
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Presentation transcript:

CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 30 – Media Server (Part 6) Klara Nahrstedt Spring 2011

Administrative MP3 going on CS Spring 2011

Outline Example of Multimedia File System - Symphony  Two-level Architecture  Cello Scheduling Framework at Disk Management level  Buffer Subsystem  Video Module  Caching Example of Industrial Multimedia File System – Tiger Shark System CS Spring 2011

Example Multimedia File System (Symphony) CS Spring 2011 Source: P. Shenoy et al, “Symphony: An Integrated Multimedia File System”, SPIE/ACM MMCN 1998 System out of UT Austin Symphony’s Goals:  Support real-time and non-real time request  Support multiple block sizes and control over their placement  Support variety of fault-tolerance techniques  Provide two level metadata structure that all type- specific information can be supported

Design Decisions CS Spring 2011

Two Level Symphony Architecture CS Spring 2011 Resource Manager: Disk Schedule System (called Cello) that uses modified SCAN-EDF for RT Requests and C-SCAN for non-RT requests as long as deadlines are not violated Admission Control and Resource Reservation for scheduling

Disk Subsystem Architecture CS Spring 2011 Service Manager : supports mechanisms for efficient scheduling of best-effort, aperiodic real-time and periodic real-time requests Storage Manager: supports mechanisms for allocation and de-allocation of blocks Of different sizes and controlling data placement on the disk Fault Tolerance layer: enables multiple data type specific failure recovery techniques Metadata Manager: enables data types specific structure to be assigned to files

Cello Disk Scheduling Framework CS Spring 2011 Source: Prashant Shenoy, 2001

Class-Independent Scheduler CS Spring 2011 Source: Prashant Shenoy, 2001

Class-Specific Schedulers CS Spring 2011

Validation: Symphony’s scheduling system (Cello) CS Spring 2011 Source: Shenoy Prashant, 2001

Buffer Subsystem Enable multiple data types specific caching policies to coexist Partition cache among various data types and allow each caching policy to independently manage its partition Maintain two buffer pools:  a pool of de-allocated buffers  pool of cached buffers. Cache pool is further partitioned among various caching policies Buffer that is least likely to be accessed is stored at the head of the list. (Examples of caching policies for each cache buffer: LRU, MRU) CS Spring 2011

Buffer Subsystem (Protocol) Receive buffer allocation request Check if the requested block is cached.  If yes, it return the requested block  If cache miss, allocate buffer from the pool of de-allocated buffers and insert this buffer into the appropriate cache partition Determine (Caching policy that manages individual cache) position in the buffer cache  If pool of de-allocated buffers falls below low watermark, buffers are evicted from cache and returned to de-allocated pool  Use TTR (Time To Reaccess) values to determine victims TTR – estimate of next time at which the buffer is likely to be accessed CS Spring 2011

Video Module Implements policies for placement, retrieval, metadata management and caching of video data Placement of video files on disk arrays is governed by two parameters: block size and striping policy.  supports both fixed size blocks (fixed number of bytes) and variable size blocks (fixed number of frames)  uses location hints so as to minimize seek and rotational latency overheads Retrieval Policy:  supports periodic RT requests (server push mode) and aperiodic RT requests (client pull mode) CS Spring 2011

Video Module (Metadata Management) To allow efficient random access at byte level and frame level, video module maintains two-level index structure  First level of index, referred to as frame map, maps frame offset to byte offset  Second level, referred to as byte map, maps byte offset to disk block locations CS Spring 2011

Symphony Caching Policy Interval-based caching for video module LRU caching for text module CS Spring 2011

IBM Multimedia File System The Tiger Shark File System  Roger L. Haskin, Frank B. Schmuck  IBM Journal of Research and Development, 1998

The newer MM Filesystems: Classes of requests Tiger Shark filesystem defines different types of classes to FS requests.  minimum needed is 2 classes. Legacy Requests  Read/Write data for small files, not needed quickly at the NIC High-Performance Requests  Read data for large likely-contiguous files that needs to be quickly dumped to the nic (network interface control)  This is similar to our newer networking paradigm “not all traffic is equal”  Unaddressed question that I had: Can we take the concept of discardability and apply it to filesystems?

Classes of Requests Tiger Shark  Real-time Class Real-time class is fine grained into subclasses, because Tiger Shark has  Resource Reservation  Admission Control  If the controllers and disks cannot handle the predicted load then the request is denied.  Legacy Class Also has a legacy interface for old filesystem access interfaces.

Quantization, and Scheduling Optimizations "Deadline Scheduling" instead of elevator algorithms. Blocksize is 256KB (default), Normal AIX uses 4KB size. Tiger Shark will "chunk" contiguous block reads better than the default filesystems to work with its large blocksize.

Streamlining of operations to get data from platter to NIC. Running daemon that pre-allocates OS resources such as buffer space, disk bandwidth and controller time. Not a hardware-dependent solution. Even though it does not have shared memory hardware, Tiger Shark copies data from the disks into a shared memory area. Essentially this is a very large extension of the kernel's disk block cache. VFS layer for Tiger Shark intercepts repeated calls and uses the shared memory area, therefore saving kernel memcopys on subsequent requests.

Platter Layout and Scaling Optimizations for Contiguous Streaming Striping across a maximum of platters  Striping method unspecified, looks like it is flexible and extended to include redundancy if desired. All members of a block group contiguous  attempts to keep the block groups contiguous.

Seeking Optimizations Byte Range Locking.  Allows multiple clients to access different areas of a file with real-time guarantees if they don't step on each other.

Current Research and Future Directions Tiger Shark gives us Filesystem QoS. But can we do better by integrating VBR/ABR into the system? Replication and redundancy are always an issue, but not addressed in this scope. If it is a software-based system such as Tiger Shark, where in the OS should we put these optimizations? (Kernel, Tack-On Daemon, Middleware) Legacy disk accesses have a huge cost in both of these systems, how can we minimize?

Tiger Shark Final Thoughts Adds QoS guarantees to current disk interface architectures Built to be extensible to more than just MM disk access.  But definitely optimized for multimedia. Designed to serve more concurrent sessions out of a multimedia server  BUT there is still kernel bottleneck for the initial block load.  Better suited to multiple concurrent access than EXT3NS

Conclusion The data placement, scheduling, block size decisions, caching, concurrent clients support, buffering, are very important for any media server design and implementation. Next Lecture – we discuss Multimedia CPU Scheduling CS Spring 2011