Action-Oriented Query Processing for Pervasive Computing Qiong Luo Joint work with Wenwei Xue Hong Kong University of Science and Technology (HKUST)

Slides:



Advertisements
Similar presentations
Energy-efficient Task Scheduling in Heterogeneous Environment 2013/10/25.
Advertisements

Performance Measurement n Assignment? n Timing #include double When() { struct timeval tp; gettimeofday(&tp, NULL); return((double)tp.tv_sec + (double)tp.tv_usec.
System Design Issues In Sensor Databases Qiong Luo and Hejun Wu Department of Computer Science and Engineering The Hong Kong University of Science & Technology.
DBMSs on a Modern Processor: Where Does Time Go? Anastassia Ailamaki Joint work with David DeWitt, Mark Hill, and David Wood at the University of Wisconsin-Madison.
M. Muztaba Fuad Masters in Computer Science Department of Computer Science Adelaide University Supervised By Dr. Michael J. Oudshoorn Associate Professor.
LOAD BALANCING IN A CENTRALIZED DISTRIBUTED SYSTEM BY ANILA JAGANNATHAM ELENA HARRIS.
Distributed Multimedia Systems
Self-Adapting Scheduling for Tasks with Dependencies in Stochastic Environments Ioannis Riakiotakis, Florina M. Ciorba, Theodore Andronikos and George.
1 Slicing*-Tree Based Web Page Transformation for Small Displays Xiangye Xiao, Qiong Luo, Dan Hong, Hongbo Fu Contact: Department of Computer.
Effectively Utilizing Global Cluster Memory for Large Data-Intensive Parallel Programs John Oleszkiewicz, Li Xiao, Yunhao Liu IEEE TRASACTION ON PARALLEL.
1 Rethinking Data Management for Storage-centric Sensor Networks Yanlei Diao, Deepak Ganesan, Gaurav Mathur, and Prashant Shenoy CIDR 2007 Proceedings.
Accurate Emulation of Wireless Sensor Networks Hejun Wu Joint work with Qiong Luo, Pei Zheng*, Bingsheng He, and Lionel M. Ni Department of Computer Science.
VLDB Revisiting Pipelined Parallelism in Multi-Join Query Processing Bin Liu and Elke A. Rundensteiner Worcester Polytechnic Institute
Security and Digital Recording System Students: Gadi Marcu, Tomer Alon Number:D1123 Supervisor: Erez Zilber Semester:Spring 2004 Mid Semester Presentation.
Vassilis Papataxiarhis, V.Tsetsos, and S.Hadjiefthymiades Department of Informatics and Telecommunications University of Athens – Greece.
ART: Augmented Reality Table for Interactive Trading Card Game Albert H.T. Lam, Kevin C. H. Chow, Edward H. H. Yau and Michael R. Lyu Department of Computer.
Scheduling with Optimized Communication for Time-Triggered Embedded Systems Slide 1 Scheduling with Optimized Communication for Time-Triggered Embedded.
SNMP auto LVS balancing Jason Liptak. Overview SNMP overview Network Setup Solution Lessons Learned Future 5/4/2011Jason Liptak 2.
GHS: A Performance Prediction and Task Scheduling System for Grid Computing Xian-He Sun Department of Computer Science Illinois Institute of Technology.
MULTIPROCESSOR SYSTEMS OUTLINE  Coordinated job Scheduling  Separate Systems  Homogeneous Processor Scheduling  Master/Slave Scheduling.
System Components Hardware overview for Apollo ACS.
ThinkAir: Dynamic Resource Allocation and Parallel Execution in Cloud for Mobile Code Offloading Sokol Kosta, Pan Hui Deutsche Telekom Labs, Berlin, Germany.
System Analysis & Design Introduction: System Analysis and design course intents to help students understand its importance in developing systems that.
An approach for solving the Helmholtz Equation on heterogeneous platforms An approach for solving the Helmholtz Equation on heterogeneous platforms G.
MobSched: An Optimizable Scheduler for Mobile Cloud Computing S. SindiaS. GaoB. Black A.LimV. D. AgrawalP. Agrawal Auburn University, Auburn, AL 45 th.
COLLABORATIVE EXECUTION ENVIRONMENT FOR HETEROGENEOUS PARALLEL SYSTEMS Aleksandar Ili´c, Leonel Sousa 2010 IEEE International Symposium on Parallel & Distributed.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Y. Kotani · F. Ino · K. Hagihara Springer Science + Business Media B.V Reporter: 李長霖.
Chapter 3 Installing Windows XP Professional. Preparing for installation Pre-installation requirement; ◦ Hardware requirements ◦ Hardware compatibility.
MODERN OPERATING SYSTEMS Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Towards Low Overhead Provenance Tracking in Near Real-Time Stream Filtering Nithya N. Vijayakumar, Beth Plale DDE Lab, Indiana University {nvijayak,
Euro-Par, A Resource Allocation Approach for Supporting Time-Critical Applications in Grid Environments Qian Zhu and Gagan Agrawal Department of.
1 A Bidding Protocol for Deploying Mobile Sensors GuilingWang, Guohong Cao, and Tom LaPorta Department of Computer Science & Engineering The Pennsylvania.
Mobile Middleware for Energy-Awareness Wei Li
Performance Prediction for Random Write Reductions: A Case Study in Modelling Shared Memory Programs Ruoming Jin Gagan Agrawal Department of Computer and.
Multi-Criteria Routing in Pervasive Environment with Sensors Santhanakrishnan, G., Li, Q., Beaver, J., Chrysanthis, P.K., Amer, A. and Labrinidis, A Department.
Performance evaluation of component-based software systems Seminar of Component Engineering course Rofideh hadighi 7 Jan 2010.
Autonomic scheduling of tasks from data parallel patterns to CPU/GPU core mixes Published in: High Performance Computing and Simulation (HPCS), 2013 International.
REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
1 REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
Computer Science and Engineering Parallelizing Defect Detection and Categorization Using FREERIDE Leonid Glimcher P. 1 ipdps’05 Scaling and Parallelizing.
The Cosmic Cube Charles L. Seitz Presented By: Jason D. Robey 2 APR 03.
KAIS T Distributed cross-layer scheduling for In-network sensor query processing PERCOM (THU) Lee Cheol-Ki Network & Security Lab.
An Energy-efficient Task Scheduler for Multi-core Platforms with per-core DVFS Based on Task Characteristics Ching-Chi Lin Institute of Information Science,
A Systematic Approach to the Design of Distributed Wearable Systems Urs Anliker, Jan Beutel, Matthias Dyer, Rolf Enzler, Paul Lukowicz Computer Engineering.
Design Issues of Prefetching Strategies for Heterogeneous Software DSM Author :Ssu-Hsuan Lu, Chien-Lung Chou, Kuang-Jui Wang, Hsiao-Hsi Wang, and Kuan-Ching.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Adaptive Sleep Scheduling for Energy-efficient Movement-predicted Wireless Communication David K. Y. Yau Purdue University Department of Computer Science.
Targeted Bottleneck #1: Rule Matching EECS Electrical Engineering and Computer Sciences B ERKELEY P AR L AB Parallel Cascading Style Sheets Leo Meyerovich,
1/14/ :59 PM1/14/ :59 PM1/14/ :59 PM Research overview Koen Victor, 12/2007.
Shouqing Hao Institute of Computing Technology, Chinese Academy of Sciences Processes Scheduling on Heterogeneous Multi-core Architecture.
Ohio State University Department of Computer Science and Engineering Servicing Range Queries on Multidimensional Datasets with Partial Replicas Li Weng,
Disco: Running Commodity Operating Systems on Scalable Multiprocessors Presented by: Pierre LaBorde, Jordan Deveroux, Imran Ali, Yazen Ghannam, Tzu-Wei.
1 Developing Aerospace Applications with a Reliable Web Services Paradigm Pat. P. W. Chan and Michael R. Lyu Department of Computer Science and Engineering.
Rate-Based Query Optimization for Streaming Information Sources Stratis D. Viglas Jeffrey F. Naughton.
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Pervasive Query HKUST Qiong Luo Hong Kong University of Science & Technology
Euro-Par, HASTE: An Adaptive Middleware for Supporting Time-Critical Event Handling in Distributed Environments ICAC 2008 Conference June 2 nd,
1 Overview of Query Evaluation Chapter Outline  Query Optimization Overview  Algorithm for Relational Operations.
Relational Query Processing on OpenCL-based FPGAs Zeke Wang, Johns Paul, Hui Yan Cheah (NTU, Singapore), Bingsheng He (NUS, Singapore), Wei Zhang (HKUST,
Standards and Patterns for Dynamic Resource Management
Auburn University COMP7500 Advanced Operating Systems I/O-Aware Load Balancing Techniques (2) Dr. Xiao Qin Auburn University.
Accelerating MapReduce on a Coupled CPU-GPU Architecture
Collaborative Offloading for Distributed Mobile-Cloud Apps
Li Weng, Umit Catalyurek, Tahsin Kurc, Gagan Agrawal, Joel Saltz
Introduction to Operating Systems
Introduction to Operating Systems
Overview of AIGA platform
Overview of Query Evaluation
Department of Computer Science University of California, Santa Barbara
Presentation transcript:

Action-Oriented Query Processing for Pervasive Computing Qiong Luo Joint work with Wenwei Xue Hong Kong University of Science and Technology (HKUST)

AortaQiong CIDR Overview Goal To help pervasive computing app. development Hurdles Networked, heterogeneous devices Device operations in addition to data flows Our approach Allowing action-embedded queries on devices Performing action-oriented query optimization Query processors as part of pervasive computing platform

AortaQiong CIDR Pervasive Computing Environments Handheld Devices Pervasive computing devices communicate and take actions. Laptops Berkeley Motes Network camera

AortaQiong CIDR A Problem in Pervasive Computing Hard to develop & optimize applications Heterogeneous devices Heterogeneous networks Actions (operations) as well as data involved Limited Application Programming Interfaces Frequent upgrades …

AortaQiong CIDR Database Query Processing SQL (SELECT-FROM-WHERE…) Relational tables + objects (text, image) Views, triggers, user-defined functions Cost-based optimization Relational operators (selection, projection, join) Second-class citizens (triggers, UDFs) Fixed or adaptive query execution How to apply it to pervasive computing?

AortaQiong CIDR sensorscamerascell phonesPDAs Application1Application2Application3 PCs Uniform Data Communication Layer Action-Oriented Query Execution Engine Declarative Interface for Queries and Actions AORTAAORTA AORTAAORTA Our Solution: AORTA

AortaQiong CIDR Outline Introduction Action-oriented query interface Action-oriented query optimization Experimental evaluation Conclusion and future work

AortaQiong CIDR An Example of AORTA Query CREATE AQ night_surveillance AS SELECTsendphoto (p.no, photo (c.ip, s.loc, “images/”)) FROMsensor s, camera c, phone p WHEREs.accel_x > 500 ANDcoverage (s.loc, c.loc) ANDp.owner = “admin” STARTatTime (0, 0, 0) STOPatTime (5, 0, 0) An AORTA query may involve physical actions.

AortaQiong CIDR SensorsPhonesCameras s.accel_x > 500 p.owner = “admin” sendphoto(p.no, “images/”) coverage (s.loc, c.loc) photo(c.ip, s.loc, “images/”) Query Plan of night_surveillance Actions are treated as query operators in AORTA.

AortaQiong CIDR Query Processing in AORTA Description of actions Estimation of action cost Selection of multiple devices for one action Group optimization of multiple actions

AortaQiong CIDR photo $camera_ip $location $directory_name image camera AXIS 2130(R) PTZ Network Camera pan $pan tilt $tilt zoom $zoom … Action Profile of photo()

AortaQiong CIDR Action Composition of photo() … connect 1 pan deltaPan($pan, $location) … The action composition is specified in the action profile.

AortaQiong CIDR Composition Tree of photo() “&”: sequential execution “||”: parallel execution

AortaQiong CIDR Grammar of Action Composition action := operationSequence operationSequence := operationUnit (& operationUnit)* operationUnit := operationSequence | operationSet | operation operationSet := operationUnit (|| operationUnit)* operation := atomicOperation (& atomicOperation)* Note: The atomicOperations of an operation must be identical.

AortaQiong CIDR Components of Action Cost Model A set of atomic operations A grammar of action composition The profile of the action Estimated costs of atomic operations The cost formulas

AortaQiong CIDR Cost Formulas for Actions We use response time as cost metric; other metrics may differ.

AortaQiong CIDR Action Cost and Device Status Example: photo() on PTZ network cameras Physical status Head position (pan, tilt, zoom values) Workload (affects the cost of connect()) Device Physical Status Action Execution affects the cost changes

AortaQiong CIDR Optimization of a Single Action Poll candidate devices in parallel Check the availability of the devices Examine their current physical status Set a TIMEOUT value for unresponsive devices Estimate the execution cost of each device Select the device of the least estimated cost App. semantics: unnecessary to operate all candidate devices

AortaQiong CIDR Group Optimization of Actions Goal: load balancing among devices Task: assigning multiple actions to devices The original problem is NP-hard. Our own greedy algorithm: (1) assign each request to a device of least cost (2) on each device, order and execute requests

AortaQiong CIDR Experimental Setup A Pentium III PC running XP 750MHZ CPU, 512MB memory Networked devices Ten Crossbow MICA2 motes Scattered in the pervasive lab Four AXIS 2130 PTZ network cameras Two mounted on the ceiling Two placed on the desks

AortaQiong CIDR Validation of the Cost Model Camera ID1234 Estimated Cost* N/A3347 Real Cost* N/A3381 Query: snapshot (take a photo of a location) Target location: Mote 1 (on the front door) All four cameras were candidate devices All starting from the home position (pan = 0, tilt = 0, zoom = 1) Camera 3 was malfunctioning *units: milliseconds

AortaQiong CIDR Optimization of a Single AQ Left: 2.6 seconds, Right: 3.2 seconds Small difference in response time, large difference in result.

AortaQiong CIDR Time Breakdown Optimization has a low overhead and balances workload.

AortaQiong CIDR Effect of Group Optimization

AortaQiong CIDR Related Work Pervasive computing Homogeneous network, non-DB perspective Parallel computing: general job scheduling Database triggers, UDFs, stored procedures Sensor databases, data stream systems Group optimization Adaptive query processing

AortaQiong CIDR Conclusion and Future Work Aorta Extends SQL for action-embedded queries Performs action-oriented query processing Helps application development & optimization Future work Generalization of actions as classes of UDFs New types of actions, multi-device actions Other group optimization techniques Comments are welcome: