A Prediction-based Approach to Distributed Interactive Applications Peter A. Dinda Jason Skicewicz Dong Lu Prescience Lab Department of Computer Science.

Slides:



Advertisements
Similar presentations
1 Scoped and Approximate Queries in a Relational Grid Information Service Dong Lu, Peter A. Dinda, Jason A. Skicewicz Prescience Lab, Dept. of Computer.
Advertisements

Nondeterministic Queries in a Relational Grid Information Service Peter A. Dinda Dong Lu Prescience Lab Department of Computer Science Northwestern University.
A Prediction-based Real-time Scheduling Advisor Peter A. Dinda Carnegie Mellon University.
An Evaluation of Linear Models for Host Load Prediction Peter A. Dinda David R. O’Hallaron Carnegie Mellon University.
Lab Meeting Performance Analysis of Distributed Embedded Systems Lothar Thiele and Ernesto Wandeler Presented by Alex Cameron 17 th August, 2012.
The Case For Prediction-based Best-effort Real-time Peter A. Dinda Bruce Lowekamp Loukas F. Kallivokas David R. O’Hallaron Carnegie Mellon University.
1 Virtual Machine Resource Monitoring and Networking of Virtual Machines Ananth I. Sundararaj Department of Computer Science Northwestern University July.
SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. CPU Utilization Control in Distributed Real-Time Systems Chenyang.
Automatic Run-time Adaptation in Virtual Execution Environments Ananth I. Sundararaj Advisor: Peter A. Dinda Prescience Lab Department of Computer Science.
Increasing Application Performance In Virtual Environments Through Run-time Inference and Adaptation Ananth I. Sundararaj Ashish Gupta Peter A. Dinda Prescience.
Virtualized Audio as a Distributed Interactive Application Peter A. Dinda Northwestern University Access Grid Retreat, 1/30/01.
Dynamic Mapping of Activation Trees Thesis Proposal January 29, 1998 Peter A. Dinda Committee David O’Hallaron (chair) Thomas Gross Peter Steenkiste Jaspal.
Responsive Interactive Applications by Dynamic Mapping of Activation Trees February 20, 1998 Peter A. Dinda School of Computer.
Reducing the Energy Usage of Office Applications Jason Flinn M. Satyanarayanan Carnegie Mellon University Eyal de Lara Dan S. Wallach Willy Zwaenepoel.
Understanding and Predicting Host Load Peter A. Dinda Carnegie Mellon University
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Multi-Scale Analysis for Network Traffic Prediction and Anomaly Detection Ling Huang Joint work with Anthony Joseph and Nina Taft January, 2005.
1 Yi Qiao Jason Skicewicz Peter A. Dinda Prescience Laboratory Department of Computer Science Northwestern University Evanston, IL An Empirical Study.
An Introduction to the Prescience Lab Peter A. Dinda Prescience Lab Department of Computer Science Northwestern University
Resource Signal Prediction and Its Application to Real-time Scheduling Advisors or How to Tame Variability in Distributed Systems Peter A. Dinda Carnegie.
Recent Results in Resource Signal Measurement, Dissemination, and Prediction App Transport Network Data Link Physical App Transport Network Data Link Physical.
Performance Evaluation
Hardness of Approximation and Greedy Algorithms for the Adaptation Problem in Virtual Environments Ananth I. Sundararaj, Manan Sanghi, John R. Lange and.
Online Prediction of the Running Time Of Tasks Peter A. Dinda Department of Computer Science Northwestern University
Exploiting Packet Header Redundancy for Zero Cost Dissemination of Dynamic Resource Information Peter A. Dinda Prescience Lab Department of Computer Science.
An Optimization Problem in Adaptive Virtual Environments Ananth I. Sundararaj Manan Sanghi Jack R. Lange Peter A. Dinda Prescience Lab Department of Computer.
1 Dong Lu, Peter A. Dinda Prescience Laboratory Computer Science Department Northwestern University Virtualized.
Characterizing and Predicting TCP Throughput on the Wide Area Network Dong Lu, Yi Qiao, Peter Dinda, Fabian Bustamante Department of Computer Science Northwestern.
Multi-resolution Resource Behavior Queries Using Wavelets Jason Skicewicz Peter A. Dinda Jennifer M. Schopf Northwestern University.
Peter Dinda Department of Computer Science Northwestern University Beth Plale Department.
Bandwidth Allocation in a Self-Managing Multimedia File Server Vijay Sundaram and Prashant Shenoy Department of Computer Science University of Massachusetts.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
A Prediction-based Approach to Distributed Interactive Applications Peter A. Dinda Department of Computer Science Northwestern University
A Prediction-based Real-time Scheduling Advisor Peter A. Dinda Prescience Lab Department of Computer Science Northwestern University
Load Analysis and Prediction for Responsive Interactive Applications Peter A. Dinda David R. O’Hallaron Carnegie Mellon University.
Dynamic Topology Adaptation of Virtual Networks of Virtual Machines Ananth I. Sundararaj Ashish Gupta Peter A. Dinda Prescience Lab Department of Computer.
The Running Time Advisor A Resource Signal-based Approach to Predicting Task Running Time and Its Applications Peter A. Dinda Carnegie Mellon University.
Realistic CPU Workloads Through Host Load Trace Playback Peter A. Dinda David R. O’Hallaron Carnegie Mellon University.
University of Zagreb MMVE 2012 workshop1 Towards Reinterpretation of Interaction Complexity for Load Prediction in Cloud-based MMORPGs Mirko Sužnjević,
SCAN: a Scalable, Adaptive, Secure and Network-aware Content Distribution Network Yan Chen CS Department Northwestern University.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
TEMPORAL DATA AND REAL- TIME ALGORITHMS CHAPTER 4 – GROUP 3.
Low-Power Wireless Sensor Networks
Integrating Fine-Grained Application Adaptation with Global Adaptation for Saving Energy Vibhore Vardhan, Daniel G. Sachs, Wanghong Yuan, Albert F. Harris,
EmNet: Satisfying The Individual User Through Empathic Home Networks J. Scott Miller, John R. Lange & Peter A. Dinda Department of Electrical Engineering.
Time Series Data Analysis - I Yaji Sripada. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn What are Time Series? How to.
National Institute of Mental Health
Quality of Service Karrie Karahalios Spring 2007.
Towards Low Overhead Provenance Tracking in Near Real-Time Stream Filtering Nithya N. Vijayakumar, Beth Plale DDE Lab, Indiana University {nvijayak,
1 Distributed Energy-Efficient Scheduling for Data-Intensive Applications with Deadline Constraints on Data Grids Cong Liu and Xiao Qin Auburn University.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - VIDEO. In this chapter How digital video differs from conventional analog video How digital video differs from.
Copyright © 2011, Performance Evaluation of a Green Scheduling Algorithm for Energy Savings in Cloud Computing Truong Vinh Truong Duy; Sato,
A Utility-based Approach to Scheduling Multimedia Streams in P2P Systems Fang Chen Computer Science Dept. University of California, Riverside
CS4730 Real-Time Systems and Modeling Fall 2010 José M. Garrido Department of Computer Science & Information Systems Kennesaw State University.
1 BBN Technologies Quality Objects (QuO): Adaptive Management and Control Middleware for End-to-End QoS Craig Rodrigues, Joseph P. Loyall, Richard E. Schantz.
An Efficient Gigabit Ethernet Switch Model for Large-Scale Simulation Dong (Kevin) Jin.
An Efficient Gigabit Ethernet Switch Model for Large-Scale Simulation Dong (Kevin) Jin.
Predictive Application- Performance Modeling in a Computational Grid Environment (HPDC ‘99) Nirav Kapadia, José Fortes, Carla Brodley ECE, Purdue Presented.
FLARe: a Fault-tolerant Lightweight Adaptive Real-time Middleware for Distributed Real-time and Embedded Systems Dr. Aniruddha S. Gokhale
Kalman Filter and Data Streaming Presented By :- Ankur Jain Department of Computer Science 7/21/03.
Towards an integrated multimedia service hosting overlay Dongyan Xu Xuxian Jiang Proceedings of the 12th annual ACM international conference on Multimedia.
Resource Characterization Rich Wolski, Dan Nurmi, and John Brevik Computer Science Department University of California, Santa Barbara VGrADS Site Visit.
Computer Simulation Henry C. Co Technology and Operations Management,
Partially Predictable
Partially Predictable
Ananth I. Sundararaj Ashish Gupta Peter A. Dinda Prescience Lab
Networked Real-Time Systems: Routing and Scheduling
User-driven Scheduling Of Interactive Virtual Machines
An Optimization Problem in Adaptive Virtual Environments
Performance-Robust Parallel I/O
Presentation transcript:

A Prediction-based Approach to Distributed Interactive Applications Peter A. Dinda Jason Skicewicz Dong Lu Prescience Lab Department of Computer Science Northwestern University

2 Context and Question Shared, Unreserved Environments Distributed Interactive Applications Us How an distributed interactive application running on shared, unreserved computing environment provide consistent responsiveness?

3 Why Is This Interesting? Interactive resource demands set to explode Tools and toys increasingly are physical simulations High-performance computing for everyone People provision according to peak demand Responsiveness tied to peak demand 90% of the time CPU or network link is unused Opportunity to use the resources smarter New kinds of applications Shared resource pools, resource markets, Grid…

4 Interactivity Demands Responsiveness But… Dynamically shared resources Commodity environments Resource reservations unlikely History End-to-end requirements User-level operation Difficult to change OS Want to deploy anywhere Supporting interactive apps under such constraints is not well understood

5 Approach Soft real-time model Responsiveness requirement -> deadline Advisory, no guarantees Adaptation mechanisms Exploit DOF available in environment Prediction of resource supply and demand Control the mechanisms to benefit the application Computers as natural systems Rigorous statistical and systems approach to prediction

6 Outline The story Interactive applications Virtualized Audio Advisors and resource signals The RPS system Intermixed discussion and performance results Current work Wavelet-based techniques All Software and Data publicly available

7 Application Characteristics Interactivity Users initiate aperiodic tasks with deadlines Timely, consistent, and predictable feedback needed before next task can be initiated Resilience Missed deadlines are acceptable Distributability Tasks can be initiated on any host Adaptability Task computation and communication can be adjusted Shared, unreserved computing environments

8 Applications Virtualized Audio Dong Lu Image Editing Games Visualization of massive datasets –Interactivity Environment at Northwestern With Watson, Dennis –Dv project at CMU

9 VA: The Inverse Problem Human SpaceMicrophones Recovery Algorithms microphone signals microphone positions “Inverse Problem” sound source positions room geometry and properties sound source signals other inputs Microphone signals are a result of sound source signals, positions, microphone positions, and the geometry and material properties of the room. We seek to recover these underlying producers of the microphone signals. Source Separation and Deconvolution

10 VA: The Forward Problem Auralization Algorithms sound source positions room geometry/properties sound source signals Listener positions Listener signals Listener wearing headphones In general, all inputs are a function of time Auralization must proceed in real-time Auralization (AccessGrid 2001)

11 Forward Problem App Structure Physical Simulation Running on Cluster or Grid RT Task: recompute impulse responses using room model Impulse Response Input Audio Streams Output Audio Streams User Placed In Room

12 Forward Problem App Structure Which one? How complex? Soft Real-time Contraint Little Comm.

13 A Universal Problem Task ? Which host should the application send the task to so that its running time is appropriate? Known resource requirements What will the running time be if I...

14 Advisors Adaptation Advisors –Real-time Scheduling Advisor Which host should I use? Task assumptions appropriate to interactive applications Soft real-time Known resource demand Best-effort semantics Application-level Performance Advisors –Running Time Advisor What would running time of task on host x be? Confidence intervals Can build different adaptation advisors –Message Transfer Time Advisor How long to transfer N bytes from A to B? Current focus

15 Resource Signals Characteristics Easily measured, time-varying scalar quantities Strongly correlated with resource supply Periodically sampled (discrete-time signal) Examples Host load (Digital Unix 5 second load average) Network flow bandwidth and latency Leverage existing statistical signal analysis and prediction techniques Currently: Linear Time Series Analysis and Wavelets

16 RPS Toolkit Extensible toolkit for implementing resource signal prediction systems [CMU-CS ] Growing: RTA, RTSA, Wavelets, GUI, etc Easy “buy-in” for users C++ and sockets (no threads) Prebuilt prediction components Libraries (sensors, time series, communication) Users have bought in Incorporated in CMU Remos, BBN QuO A number of research users RELEASED

17 Example RPS System RPS components can be composed in other ways

18 Example RPS System

19 Measurement and Prediction

20 Measurement and Prediction Overhead 1-2 ms latency from measurement to prediction 2KB/sec transfer rate <1% of CPU At Appropriate Rate

21 Host Load Traces DEC Unix 5 second exponential average 1 Hz Playload tool

22 Salient Properties of Host Load +/-Extreme variation +Significant autocorrelation Suggests appropriateness of linear models +Significant average mutual information - Self-similarity / long range dependence +/-Epochal behavior + Stable spectrum during an epoch - Abrupt transitions between epochs (Detailed study in LCR98, SciProg99) +encouraging for prediction - discouraging for prediction

23 Linear Time Series Models (2000 sample fits, largest models in study, 30 secs ahead) Pole-zero / state-space models capture autocorrelation parsimoniously

24 AR(p) Models –Fast to fit (4.2 ms, AR(32), 2000 points) –Fast to use (<0.15 ms, AR(32), 30 steps ahead) –Potentially less parsimonious than other models next value p previous values weights chosen to minimize mean square error for fit interval error

25 AR(16) vs. LAST

26 Host Load Prediction Results Host load exhibits complex behavior Strong autocorrelation, self-similarity, epochal behavior Host load is predictable 1 to 30 second timeframe Simple linear models are sufficient Recommend AR(16) or better Low overhead Extensive statistically rigorous randomized study (Detailed study in HPDC99, Cluster Computing 2000)

27 Example RPS System

28 Running Time Advisor

29 Example Performance 3000 randomized tasks Near-perfect CIs on typical hosts

30 Running Time Advisor Results Predict running time of task Application supplies task size and confidence level Task is compute-bound (current limit) Prediction is a confidence interval Expresses prediction error Statistically valid decision-making Maps host load predictions and task size through simple model of scheduler Rigorous underlying prediction system essential Effective Statistically rigorous randomized evaluation (Study in HPDC 2001, SIGMETRICS 2001)

31 Example RPS System

32 Real-time Scheduling Advisor

33 RTSA Results – Probability of Meeting Deadline tasks Predicted CI < Deadline Random Host Host With Lowest Load

34 RTSA Results – Probability of Meeting Deadline When Predicted tasks Predicted CI < Deadline Random Host Host With Lowest Load

35 RTSA Results Application supplies scheduling problem Task size, deadline, and confidence level Task is compute-bound (current limit) RTSA returns solution Host where task is likely to meet deadline Prediction of running time on that task Based on running-time advisor predictions Effective Statistically rigorous randomized evaluation (Study in review)

36 The Holy Grail Shared resources scalably provide appropriate measurements and predictions of supply to all comers Individual applications measure and predict their resource demands Advisors help applications pursue high- level goals, competing with others

37 Current work Virtualized Audio (with Dong Lu) Wavelet-based techniques (with Jason Skicewicz) [HPDC 01] Scalable information dissemination, compression, analysis, prediction Network prediction Sampling theory and non-periodic sampling Nonlinear predictive models Minet user-level network stack Relational approaches (with Beth Plale and Dong Lu) Grid Forum Grid Information Services RFC [GWD-GIS-012-1] Better scheduler models (with Jason Skicewicz) Windows monitoring and data reduction (with Praveen Paritosh, Michael Knop, and Jennifer Schopf) Application prediction Activation trees Clusters for Interactive Applications (with Ben Watson and Brian Dennis)

38 The Tension Sensor Video App Course-grain measurement Resource- appropriate measurement Fine-grain measurement Grid App … Resource Signal (periodic sampling) Example: host load

39 Multi-resolution Views Using 14 Levels

40 Proposed System Wavelet Transform Level 0 Sensor Inverse Wavelet Transform Application Level M-1 Level M Level 0 Level L Network Application receives levels based on its needs StreamInterval

41 Wavelet Compression Gains, 14 Levels Typical appropriate number of levels for host load, error < 20%

42 For More Information Resource Prediction System (RPS) Toolkit Prescience Lab Load Traces and Playload