CPUU%liza%onControlin DistributedRealTimeSystems ChenyangLu - - PowerPoint PPT Presentation

cpu u liza on control in distributed real time systems
SMART_READER_LITE
LIVE PREVIEW

CPUU%liza%onControlin DistributedRealTimeSystems ChenyangLu - - PowerPoint PPT Presentation

CPUU%liza%onControlin DistributedRealTimeSystems ChenyangLu DepartmentofComputerScienceandEngineering


slide-1
SLIDE 1

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 


slide-2
SLIDE 2

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


2

Highlight


 Common
class
of
compu6ng
problems


 MIMO:
mul6‐input
(knobs),
mul6‐output
(objec6ves)
  Coupling
between
objec6ves.
  Constraints
on
knobs.


 Model
Predic6ve
Control


 Op6miza6on
+
Predic6on
+
Feedback


slide-3
SLIDE 3

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


3

Why
CPU
U%liza%on
Control?


 Overload
protec6on


 CPU
over‐u6liza6on

system
crash


 Meet
response
6me
requirement


 CPU
u6liza6on
<
bound

meet
deadlines


slide-4
SLIDE 4

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


4

Challenge:
Uncertain%es


 Execu6on
6mes?


 Unknown
sensor
data
or
user
input


 Request
arrival
rate?


 Aperiodic
events
  Bursty
service
requests


 Disturbance?


 Denial
of
Service
aYacks


Control‐theore6c
approach
  Robust
u6liza6on
control
in
face
of
workload
uncertainty


slide-5
SLIDE 5

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


5

End‐to‐End
Tasks


Distributed
Real‐Time
Systems


 Periodic
task
Ti
=
sequence
of
subtasks
{Tij}
on
different
 processors


 All
the
subtasks
of
a
task
run
at
a
same
rate


 Task
rate
can
be
adjusted


 Within
a
range
  Higher
rate

higher
u6lity


Remote Invocation Subtask

T1 T2 T3 T11 T12 T13

P1 P2 P3

slide-6
SLIDE 6

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


6

 Bi:
U6liza6on
set
point
of
processor
Pi
(1
≤
i
≤
n)

  ui(k):
U6liza6on
of
Pi
in
the
kth
sampling
period

  rj(k):
Rate
of
task
Tj
(1
≤
j
≤
m)
in
the
kth
sampling
period
 subject
to
rate
constraint:
 Rmin,j
≤
rj(k)
≤
Rmax,j
(1
≤
j
≤
m)


Problem
Formula%on


min

{rj (k)|1≤ j≤n}

(Bi − ui(k))2

i=1 n

slide-7
SLIDE 7

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


7

Single‐Input‐Single‐Output
(SISO)
Control


Single
Processor


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)}

  • C. Lu, X. Wang, and C. Gill, Feedback Control Real-Time Scheduling in

ORB Middleware, IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS'03), May 2003.

slide-8
SLIDE 8

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


8

New
in
Distributed
Systems


 Need
to
control
u6liza6on
of
mul6ple
processors
  U6liza6on
of
different
processors
are
coupled
with
each


  • ther
due
to
end‐to‐end
tasks


 Replica6ng
a
SISO
controller
on
all
processors
does
not
work!


 Constraints
on
task
rates


T1 T2 T3 T11 T12 T13

P1 P2 P3

slide-9
SLIDE 9

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


9

EUCON:
Mul%‐Input‐Mul%‐Output
Control


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

  • C. Lu, X. Wang and X. Koutsoukos, Feedback Utilization Control in

Distributed Real-Time Systems with End-to-End Tasks, IEEE Transactions

  • n Parallel and Distributed Systems, 16(6): 550-561, June 2005.
slide-10
SLIDE 10

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


10

Control
Theore%c
Methodology


1. Derive
a
dynamic
model
of
the
system
 2. Design
a
controller
 3. Analyze
stability


slide-11
SLIDE 11

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


11

Dynamic
Model:
One
Processor


 Si:
set
of
subtasks
on
Pi
  cjl:
es6mated
execu6on
6me
of
Til
  gi:
u6liza6on
gain
of
Pi


 ra6o
between
actual
and
es6mated
change
in
u6liza6on
  models
uncertainty
in
execu6on
6mes




ui(k) = ui(k −1) + gi c jlΔrj(k −1)

T jl ∈Si

slide-12
SLIDE 12

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


12

Dynamic
Model:
Mul%ple
Processors


 G:
diagonal
matrix
of
u6liza6on
gains
  F:
subtask
alloca6on
matrix
  models
the
coupling
among
processors


 fij
=
cjl
if
task
Tj
has
a
subtask
Tjl
on
processor
Pi

  fij
=
0
if
Tj
has
no
subtask
on
Pi



u(k) = u(k-1) + GFΔr(k-1)

T1 T2 T11

P1 P2

T21 T22 T3 T31

slide-13
SLIDE 13

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


13

Model
Predic%ve
Control


 Suitable
for
coupled
MIMO
control
problems
with
constraints. 
 
  Compute
input
to
minimize
cost
over
a
future
interval.


 Cost
func6on:
tracking
error
and
control
cost.
  Predict
cost
based
on
a
system
model
and
feedback.
  Compute
input
subject
to
constraints.


 Op6miza6on
+
Predic6on
+
Feedback


slide-14
SLIDE 14

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


 Cost
  Reference
trajectory:
exponen6al
convergence
to
B


Cost
Func%on


14

V(k) = u(k + i) − ref (k + i)

2 i=1 P

+ Δr(k + i) − Δr(k + i −1)

2 i= 0 M −1

Tracking
Error
 Control
Cost


ref (k + i) = B − e

− Ts Tref i

(B − u(k))

slide-15
SLIDE 15

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


15

Model
Predic%ve
Controller


At
the
end
of
each
sampling
period


 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


At
the
end
of
the
next
sampling
period


 Shid
6me
window
and
re‐compute
Δr(k+1),
Δr(k+2),
...
Δr(k+M)
based


  • n
feedback

slide-16
SLIDE 16

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


16

EUCON
Controller


Difference
from
 reference
 trajectory
 Desired
trajectory
for
 u(k)
to
converge
to
B

 Constrained


  • p6miza6on


solver


slide-17
SLIDE 17

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


17

Stability
Analysis


 Stability:
u6liza6on
of
all
processors
converge
to
set
points
  Derive
stability
condi6on

range
of
G
  Tolerable
varia6on
of
execu6on
6mes
  Provides
analy6cal
assurance
despite
uncertainty



slide-18
SLIDE 18

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


18

Stable
System


execu6on
6me
factor
=
0.5 
 (actual
execu6on
6mes
=
½
of
es6mates) 


slide-19
SLIDE 19

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


19

Unstable
System


execu6on
6me
factor
=
7 
 (actual
execu6on
6mes
=
7
6mes
es6mates) 


slide-20
SLIDE 20

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


20

Stability


 Stability
condi6on

tolerable
range
of
execu6on
6mes
 Analy6cal
assurance
on
u6liza6ons
despite
uncertainty



Overes%ma%on


  • f
execu%on


%mes
prevents


  • scilla%on


actual execution time / estimation Predicted
 bound
for
 stability


slide-21
SLIDE 21

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


21

FC‐ORB
Middleware


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


  • X. Wang, C. Lu and X. Koutsoukos, Enhancing the Robustness of

Distributed Real-Time Middleware via End-to-End Utilization Control, IEEE Real-Time Systems Symposium (RTSS'05), December 2005.

slide-22
SLIDE 22

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


22

Workload
Uncertainty


6me‐varying
execu6on
6mes 
 disturbance
from
periodic
tasks 


slide-23
SLIDE 23

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


23

Processor
Failure


1. Norbert
fails.
 2. move
its
tasks
to
other
processors.
 3. reconfigure
controller
 4. control
u%liza%on
by
adjus%ng
task
rates


slide-24
SLIDE 24

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


24

Summary:
Model
Predic%ve
Control


 Robust
u6liza6on
control
for
distributed
systems
  Handle
coupling
among
processors
  Enforce
constraints
on
task
rates
  Analyze
tolerable
range
of
execu6on
6mes


slide-25
SLIDE 25

IM
2009:
Recent
Advances
in
the
Applica6on
of
Control
Theory
to
Network
and
Service
Management 


25

References


 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.