Docsity

Feedback Control: Optimizing QoS through Error Reduction and Stability, Study notes of Computer Science

Toggle sidebar
bg1
1
Feedback Control
Control of Software Performance
Motivating Example
๎˜Consider a QoS optimization example
Optimize
QoS
Task
Execution
QoS Levels
Load
Example
๎˜Optimizer needs a good execution model
Optimize
QoS
Task
Execution
QoS Levels
Load
Needs an accurate model
of task execution parameters
Example
๎˜An error is typically found
Optimize
QoS
Task
Execution
Monitoring
Desired
Load
Measured Load
Overload?
Underutilization? QoS Levels
Load
-
A measure of error
Example
๎˜A controller attempts to reduce error to zero
Optimize
QoS
Task
Execution
QoS Level
Adjustment
Monitoring
Desired
Load
Measured Load
Overload?
Underutilization? QoS Levels
Load
-
Closed Feedback Control Loop
Example
๎˜A QoS feedforward/feedback loop
Optimize
QoS
Task
Execution
Monitoring
Desired
Load
Measured Load
Overload?
Underutilization? QoS Levels
Load
-
QoS Adjustment
Policy Mechanism
Decide on
how much
change is
needed Actually do the change
pf3
pf4

Partial preview of the text

Download Feedback Control: Optimizing QoS through Error Reduction and Stability and more Study notes Computer Science in PDF only on Docsity!

Feedback Control

Control of Software Performance

Motivating Example

 Consider a QoS optimization example

Optimize QoS

Task Execution

QoS Levels Load

Example

 Optimizer needs a good execution model

Optimize QoS

Task Execution

QoS Levels Load Needs an accurate model of task execution parameters

Example

 An error is typically found

Optimize QoS

Task Execution

Monitoring

Desired Load

Measured Load

Overload? Underutilization? QoS Levels Load

A measure of error

Example

 A controller attempts to reduce error to zero

Optimize QoS

Task Execution

QoS Level Adjustment

Monitoring

Desired Load

Measured Load

Overload? Underutilization? QoS Levels Load

Closed Feedback Control Loop

Example

 A QoS feedforward/feedback loop

Optimize QoS

Task Execution

Monitoring

Desired Load

Measured Load

Overload? Underutilization? QoS Levels Load

QoS Adjustment

Policy Mechanism

Decide on how much change is needed Actually do the change

Feedback Control Loops

Controller (Policy)

Process

Sensor

Desired Set Point Output

Measured Output

Actuator (Mechanism)

Feedforward

Feedback Control

Controller (Policy)

Process

Sensor

Desired Set Point Output

Measured Output

Actuator (Mechanism)

The loop represents a Feedforward

causality chain

Non-CS Feedback Control

Example

Proportional Controller (Policy)

Room

Thermometer

Desired Temperature

Actual Temp.

Measured Temperature

Heater/Cooler (Mechanism)

Default Heater/cooler Setting (e.g., off)

Heating/cooling is proportional to deviation from desired temp.

Electric input to heater/cooler (^) Heat generated (positive or negative)

Deviation from desired

Feedback Design Concern #1:

Stability

Proportional Controller (Policy)

Room

Thermometer

Desired Temperature

Actual Temp.

Measured Temperature

Heater/Cooler (Mechanism)

Default Heater/cooler Setting (e.g., off)

Will the loop converge?

  • Must prevent over-compensation

Feedback Design Concern #2:

Steady State Error

Proportional Controller (Policy)

Room

Thermometer

Desired Temperature

Actual Temp.

Measured Temperature

Heater/Cooler (Mechanism)

Default Heater/cooler Setting (e.g., off)

Will the loop converge exactly to the

desired set point?

  • Depends on the control policy

Stability

Proportional Controller (Policy)

Room

Thermometer

Desired Temperature

Actual Temp.

Measured Temperature

Heater/Cooler (Mechanism)

Default Heater/cooler Setting (e.g., off)

Intuition: Loop must not magnify signals (loop gain < 1)

Loop gain

Unstable Stable

Stability and Phase Shift

 Fact 2: Gain and phase shift depend on frequency

Example:

Spring

Weight

Also, the weight grows more โ€œout of syncโ€ with you (lags behind). That is to say, phase shift increases

Frequency f

Phase Delay p(f)

Stability Example Revisited

Proportional Controller (Policy)

Room

Thermometer Measured Temperature

Heater/Cooler (Mechanism)

Loop gain

T e^ u^ m r T

Tm

u = 0.7 e m = 3 u^ T = 0.5 m

Tm = T

Stability Example Revisited

Proportional Controller (Policy)

Room

Thermometer Measured Temperature

Heater/Cooler (Mechanism)

Tr e^ u m T

Tm

g1(f) p1(f)

Which frequency f to consider?

g2(f) p2(f) g3(f)^ p3(f)

g4(f) p4(f)

Gain and phase

Stability Example Revisited

Proportional Controller (Policy)

Room

Thermometer Measured Temperature

Heater/Cooler (Mechanism)

Tr e^ u m T

Tm

g1(f) p1(f)

Which frequency f to consider?

g2(f) p2(f) g3(f)^ p3(f)

g4(f) p4(f)

Answer: The one that makes the sum of pi(f) = 180o^ (why?)

Stability Example Revisited

Proportional Controller (Policy)

Room

Thermometer Measured Temperature

Heater/Cooler

  • (Mechanism)

Tr e^ u^ m T

Tm

g1(f) p1(f) g2(f) p2(f) g3(f)^ p3(f)

g4(f) p4(f)

Phase equation: ฮฃi pi(f) = ฯ€ f is obtained

Gain equation: ฮ i gi(f) must be less than 1 for stability