IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
CPU U%liza%on Control in Distributed Real‐Time Systems
Chenyang Lu
Department of Computer Science and Engineering
CPUU%liza%onControlin DistributedRealTimeSystems ChenyangLu - - PowerPoint PPT Presentation
CPUU%liza%onControlin DistributedRealTimeSystems ChenyangLu DepartmentofComputerScienceandEngineering
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
Department of Computer Science and Engineering
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
2
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
3
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
4
Unknown sensor data or user input
Aperiodic events Bursty service requests
Denial of Service aYacks
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
5
All the subtasks of a task run at a same rate
Within a range Higher rate higher u6lity
Remote Invocation Subtask
T1 T2 T3 T11 T12 T13
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
6
{rj (k)|1≤ j≤n}
i=1 n
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
7
Monitor Processor OS Application Sensor Inputs Set point Us = 69% Task Rates R1: [1, 5] Hz R2: [10, 20] Hz Middleware Actuator Controller u(k) {r(k+1)}
ORB Middleware, IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS'03), May 2003.
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
8
Replica6ng a SISO controller on all processors does not work!
T1 T2 T3 T11 T12 T13
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
9
Model Predictive Controller
Distributed System (m tasks, n processors)
Utilization Monitor Rate Modulator RM UM UM RM Feedback Loop Remote Invocation Subtask
Control Input Measured Output
Distributed Real-Time Systems with End-to-End Tasks, IEEE Transactions
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
10
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
11
T jl ∈Si
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
12
fij = cjl if task Tj has a subtask Tjl on processor Pi fij = 0 if Tj has no subtask on Pi
T1 T2 T11
T21 T22 T3 T31
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
13
Cost func6on: tracking error and control cost. Predict cost based on a system model and feedback. Compute input subject to constraints.
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
14
2 i=1 P
2 i= 0 M −1
− Ts Tref i
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
15
Compute inputs in future sampling periods Δr(k), Δr(k+1), ... Δr(k+M‐1) to minimize the cost func6on Cost is predicted using (1) feedback u(k‐1) (2) approximate dynamic model Apply Δr(k) to the system
Shid 6me window and re‐compute Δr(k+1), Δr(k+2), ... Δr(k+M) based
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
16
Difference from reference trajectory Desired trajectory for u(k) to converge to B Constrained
solver
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
17
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
18
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
19
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
20
Overes%ma%on
%mes prevents
actual execution time / estimation Predicted bound for stability
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
21
Feedback lane
Remote request lanes
Priority Manager Rate Modulator Model Predic%ve Controller
Remote request lanes
U%liza%on Monitor Measured Output Control Input Priority Manager Rate Modulator U%liza%on Monitor Priority Manager Rate Modulator U%liza%on Monitor
Distributed Real-Time Middleware via End-to-End Utilization Control, IEEE Real-Time Systems Symposium (RTSS'05), December 2005.
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
22
6me‐varying execu6on 6mes disturbance from periodic tasks
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
23
1. Norbert fails. 2. move its tasks to other processors. 3. reconfigure controller 4. control u%liza%on by adjus%ng task rates
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
24
IM 2009: Recent Advances in the Applica6on of Control Theory to Network and Service Management
25
Centralized Control (EUCON): C. Lu, X. Wang and X. Koutsoukos, Feedback U6liza6on Control in Distributed Real‐Time Systems with End‐to‐End Tasks, IEEE Transac6ons on Parallel and Distributed Systems, 16(6): 550‐561, June 2005. Middleware (FC‐ORB): X. Wang, C. Lu and X. Koutsoukos, Enhancing the Robustness of Distributed Real‐Time Middleware via End‐to‐End U6liza6on Control, IEEE Real‐Time Systems Symposium (RTSS'05), December 2005. Decentralized Control: X. Wang, D. Jia, C. Lu and X. Koutsoukos, DEUCON: Decentralized End‐to‐End U6liza6on Control for Distributed Real‐Time Systems, IEEE Transac6ons on Parallel and Distributed Systems, 18(7): 996‐1009, July 2007. Controllability & Feasibility: X. Wang, Y. Chen, C. Lu and X. Koutsoukos, On Controllability and Feasibility of U6liza6on Control in Distributed Real‐Time Systems, Euromicro Conference on Real‐Time Systems (ECRTS'07), July 2007. Project page: hYp://www.cse.wustl.edu/~lu/control.html Model Predic%ve Control: J.M. Maciejowski, Predic6ve Control with Constraints, Pren6ce Hall, 2002.