IBM T.J. Watson Research Center Sigmetrics 2008 Tutorial: Introduction to Control Theory and Its Application to Computing Systems Self-Tuning Memory Management.

Slides:



Advertisements
Similar presentations
Pricing for Utility-driven Resource Management and Allocation in Clusters Chee Shin Yeo and Rajkumar Buyya Grid Computing and Distributed Systems (GRIDS)
Advertisements

Feedback-Driven Pipelining 11 M. Aater Suleman* Moinuddin K. Qureshi Khubaib* Yale Patt* *HPS Research Group The University of Texas at Austin IBM T.J.
© 2007 Open Grid Forum Grids in the IT Data Center OGF 21 - Seattle Nick Werstiuk October 16, 2007.
Gennady Pekhimenko Advisers: Todd C. Mowry & Onur Mutlu
Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
Utility Optimization for Event-Driven Distributed Infrastructures Cristian Lumezanu University of Maryland, College Park Sumeer BholaMark Astley IBM T.J.
IBM GLOBAL SERVICES IBM DB2 Information Management Technical Conference Sept , 2004 Las Vegas, NV © IBM Corporation 2004 D17 Dwaine R Snow DB2 UDB.
Performance Tuning Compiled from: Oracle Database Administration, Session 13, Performance, Harvard U Oracle Server Tuning Accelerator, David Scott, Intec.
Copyright 2007, Information Builders. Slide 1 Performance and Tuning Mark Nesson, Vashti Ragoonath June 2008.
® and indicate USA registration or USA trademark. Other logos and product/trade names are trademarks or registered trademarks of their respective companies.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Managing Web server performance with AutoTune agents by Y. Diao, J. L. Hellerstein, S. Parekh, J. P. Bigu Jangwon Han Seongwon Park
QA practitioners viewpoint
Web Performance Tuning Lin Wang, Ph.D. US Department of Education Copyright [Lin Wang] [2004]. This work is the intellectual property of the author. Permission.
Effects and Implications of File Size/Service Time Correlation on Web Server Scheduling Policies Dong Lu* + Peter Dinda* Yi Qiao* Huanyuan Sheng* *Northwestern.
Chapter 4 Memory Management Basic memory management Swapping
Chapter 11 – Virtual Memory Management
Module 10: Virtual Memory
Chapter 10: Virtual Memory
Virtual Memory (II) CSCI 444/544 Operating Systems Fall 2008.
1 Sizing the Streaming Media Cluster Solution for a Given Workload Lucy Cherkasova and Wenting Tang HPLabs.
SQL Server Resource Governor. Introduction To The Resource Governor Resource Governor was added in SQL Server 2008 Purpose is to manage resources by specifying.
EE 201A Modeling and Optimization for VLSI LayoutJeff Wong and Dan Vasquez EE 201A Noise Modeling Jeff Wong and Dan Vasquez Electrical Engineering Department.
CS 241 Spring 2007 System Programming 1 Memory Implementation Issues Lecture 33 Klara Nahrstedt.
© 2004, D. J. Foreman 1 Scheduling & Dispatching.
Performance Tuning for Informer PRESENTER: Jason Vorenkamp| | October 11, 2010.
Parallelism Lecture notes from MKP and S. Yalamanchili.
A Non-Blocking Join Achieving Higher Early Result Rate with Statistical Guarantees Shimin Chen* Phillip B. Gibbons* Suman Nath + *Intel Labs Pittsburgh.
Scalable Rule Management for Data Centers Masoud Moshref, Minlan Yu, Abhishek Sharma, Ramesh Govindan 4/3/2013.
T-SPaCS – A Two-Level Single-Pass Cache Simulation Methodology + Also Affiliated with NSF Center for High- Performance Reconfigurable Computing Wei Zang.
Robust query processing Goetz Graefe, Christian König, Harumi Kuno, Volker Markl, Kai-Uwe Sattler Dagstuhl – September 2010.
Building a Distributed Full-Text Index for the Web S. Melnik, S. Raghavan, B.Yang, H. Garcia-Molina.
Virtual Memory Introduction to Operating Systems: Module 9.
Design of LFC using Optimal Control Theory The optimal controller is designed to minimize the quadratic performance index of the following form For linear.
1 The Challenges of Reflexive Control Systems Lui Sha
“On Designing Improved Controllers for AQM Routers Supporting TCP Flows” The PI Controller Presented by Bob Kinicki.
SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. CPU Utilization Control in Distributed Real-Time Systems Chenyang.
LDU Parametrized Discrete-Time Multivariable MRAC and Application to A Web Cache System Ying Lu, Gang Tao and Tarek Abdelzaher University of Virginia.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automated Workload Management in.
1 04/18/2005 Flux Flux: An Adaptive Partitioning Operator for Continuous Query Systems M.A. Shah, J.M. Hellerstein, S. Chandrasekaran, M.J. Franklin UC.
Exploring the Tradeoffs of Configurability and Heterogeneity in Multicore Embedded Systems + Also Affiliated with NSF Center for High- Performance Reconfigurable.
IE 594 : Research Methodology – Discrete Event Simulation David S. Kim Spring 2009.
Dynamic and Decentralized Approaches for Optimal Allocation of Multiple Resources in Virtualized Data Centers Wei Chen, Samuel Hargrove, Heh Miao, Liang.
© 2006 IBM Corporation Adaptive Self-Tuning Memory in DB2 Adam Storm, Christian Garcia-Arellano, Sam Lightstone – IBM Toronto Lab Yixin Diao, M. Surendra.
Page 19/17/2015 CSE 30341: Operating Systems Principles Optimal Algorithm  Replace page that will not be used for longest period of time  Used for measuring.
Computers on Cruise Control Creating Adaptive Systems with Control Theory Ricardo Portillo The University of Texas at El Paso
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
Kevin Ross, UCSC, September Service Network Engineering Resource Allocation and Optimization Kevin Ross Information Systems & Technology Management.
Budget-based Control for Interactive Services with Partial Execution 1 Yuxiong He, Zihao Ye, Qiang Fu, Sameh Elnikety Microsoft Research.
1 Wenguang WangRichard B. Bunt Department of Computer Science University of Saskatchewan November 14, 2000 Simulating DB2 Buffer Pool Management.
Querying Large Databases Rukmini Kaushik. Purpose Research for efficient algorithms and software architectures of query engines.
13 Copyright © 2006, Oracle. All rights reserved. Tuning PGA and Temporary Space.
Euro-Par, A Resource Allocation Approach for Supporting Time-Critical Applications in Grid Environments Qian Zhu and Gagan Agrawal Department of.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
Simulating a $2M Commercial Server on a $2K PC Alaa R. Alameldeen, Milo M.K. Martin, Carl J. Mauer, Kevin E. Moore, Min Xu, Daniel J. Sorin, Mark D. Hill.
Managing the Performance Impact of Administrative Utilities Paper by S. Parekh,K. Rose, J.Hellerstein, S. Lightstone, M.Huras, and V. Chang Presentation.
Low Level Control. Control System Components The main components of a control system are The plant, or the process that is being controlled The controller,
Managing Server Energy and Operational Costs Chen, Das, Qin, Sivasubramaniam, Wang, Gautam (Penn State) Sigmetrics 2005.
Full and Para Virtualization
Managing Web Server Performance with AutoTune Agents by Y. Diao, J. L. Hellerstein, S. Parekh, J. P. Bigus Presented by Changha Lee.
Matlab Tutorial for State Space Analysis and System Identification
Oracle Announced New In- Memory Database G1 Emre Eftelioglu, Fen Liu [09/27/13] 1 [1]
Abhinav Kamra, Vishal Misra CS Department Columbia University
Applying Control Theory to Stream Processing Systems
Self-Tuning Memory Management of A Database System
Autonomic Workload Execution Control Using Throttling
Control Theory in Log Processing Systems
Self-Managed Systems: an Architectural Challenge
Presentation transcript:

IBM T.J. Watson Research Center Sigmetrics 2008 Tutorial: Introduction to Control Theory and Its Application to Computing Systems Self-Tuning Memory Management of A Database System Yixin Diao

IBM T.J. Watson Research Center © 2008 IBM Corporation 2 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. DB2 Self-Tuning Memory Management Technical problems –Large systems with varying workloads and many configuration parameters –Autonomic computing: systems self-management DB2 UDB Server Agents Memory pools Disks DB2 Clients Memory pools Challenges from systems aspects –Heterogeneous memory pools –Dissimilar usage characteristics Challenges from control aspects –Adaptation and self-design –Reliability and robustness

IBM T.J. Watson Research Center © 2008 IBM Corporation 3 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Load Balancing for Database Memory Resource Consumer 1 Resource Consumer N Load Balancer Measured Output N Measured Output 1 Resource Resource Allocation 1 Resource Allocation N Load Balancing Fairness optimal ? Common measured output ? Entry size (Page) Benefit (sec/page) OLTP Saved System Time (x i ) simPages savedTime BenefitPerPage (y i ) Memory Pool Size (u i )

IBM T.J. Watson Research Center © 2008 IBM Corporation 4 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Constrained Optimization and Regulatory Control Saved Disk Time ( x i ) MemoryPool1 Mem pool 1 (x 1 ) Overall Saved System Time (x i ) Optimal memory allocation BenefitPerPage (y 1 ) Mem pool 2 (x 2 ) Mem size 1 (u 1 ) Mem size 2 (u 2 ) Constrained Optimization Karush-Kuhn-Tucker conditions Regulatory Control

IBM T.J. Watson Research Center © 2008 IBM Corporation 5 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Dynamic State Feedback Controller State space model Control error Integral control error Feedback control law

IBM T.J. Watson Research Center © 2008 IBM Corporation 6 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Incorporating Const of Control into Controller Design Disk Memory Pool A before after write dirty pages to disk Remove these pages Memory Pool B before allocate extra memory OS Major cost: write dirty, move memory, victimize hot Linear quadratic regulation (LQR) J = [e T (k) e T I (k)] Q [e T (k) e T I (k)] T + u T (k) R u(k) Define Q and R regarding to performance Cost of transient load imbalances Cost of changing resource allocations Pool Size Benefit Ts=12449 Ts=15703 Ts=24827

IBM T.J. Watson Research Center © 2008 IBM Corporation 7 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Adaptive Controller Design Decentralized integral controlLocal linear model DB2 Memory Pool DB2 Clients Memory Statistics Collector Response Time Benefit MIMO Control Algorithm MIMO Control Algorithm Fixed Step 4-Bit (Oscillation) Model Builder Model Builder Accurate Interval Tuner Interval Tuner Y N Entry Size Step Tuner Response Time Benefit Greedy (Constraint)

IBM T.J. Watson Research Center © 2008 IBM Corporation 8 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Experimental Assessment squid.torolab.ibm.com Machine: IBM7028-6C4 CPU:4x 1453MHz Memory: 16GB Disk: 25x 9.1G OLTP workload: multiple (20) buffer pools Response time benefits Memory sizes Throughput Increase TP from ~100 to ~250 DSS workload: various query lengths STMM tuning Ts = 10680s ConfigAdvisor settings Ts = 26342s > 2x improvement DSS workload: index drop Execution time for Query 21 (10 stream avg) Order of execution Time in seconds avg= 959 avg= 2285 avg= 6206 Some indexes dropped Reduce 63%

IBM T.J. Watson Research Center © 2008 IBM Corporation 9 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Comparing Control and Optimization Techniques Control-based approachOptimization-based approach Similarity in a simplified scenario Differences in design considerations Step length (modified Armijo rule) Projected gradient (quasi-Newton) Gradient method Constraint enforcement (projection method) Decentralized integral control Local linear model Pure average vs. convex sum Pole location vs. Armijo rule Steady-state gain vs. Hessian matrix Less dependence on the model Strictly applies constrained optimization

IBM T.J. Watson Research Center © 2008 IBM Corporation 10 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Simulation Study: Comparison with Optimization Approach Control-based approachOptimization-based approach More robust and better uncertainty management Faster convergence, but more sensitive to noise Without noise (single run) Effect of noise (multiple runs) Memory size Total saved time Control intervals WL change

IBM T.J. Watson Research Center © 2008 IBM Corporation 11 SIGMETRICS 2008: Introduction to Control Theory. Abdelzaher, Diao, Hellerstein, Lu, and Zhu. Summary DB2 self-tuning memory management –Interconnection, heterogeneity, adaptation and robustness, cost of control Constrained optimization with a linear feedback controller Experimental assessment for OLTP and DSS workloads