SlideShare a Scribd company logo
1 of 32
Download to read offline
Schedulability analysis using Uppaal
and Uppaal SMC in CRAFTERS
Abdeldjalil Boudjadar,
Alexandre David,
Jin Hyun Kim,
Kim G. Larsen,
Marius Mikuˇcionis,
Ulrik Nyman,
Arne Skou
InfinIT Talk 12th of March 2014
CRAFTERS project
Title ConstRaint and Application driven Framework
for Tailoring Embedded Real-time Systems.
Period Jun 2012 - May 2015
Website www.crafters-project.org
People Two Post Docs @AAU
Partners 25
CRAFTERS project
Goals As direct effects of the project results
30% reduction of the total cost of ownership,
50% shorter time-to-market, and
30% decrease of the number of development
assets are expected.
AAU contributions
Deliverables
• Model transformations (UML -> Uppaal)
• Real-time testing tool, Uppaal TRON
Research
• New research on schedulability analysis
Publications
FACS 2013 Hierarchical Scheduling Framework Based on
Compositional Analysis Using Uppaal
(Published)
ERTS2
2014 Schedulability and Energy Efficiency for
Multi-core Hierarchical Scheduling Systems
(Published)
Submitted1 Statistical Model Checking for Improved
Resource Utilization in Hierarchical Scheduling
Systems
Submitted2 Degree of Schedulability of Mixed-Criticality
Real-time Systems with Probability-based
Sporadic Tasks
A hierarchical scheduling system
System
Component1 Component2
task1 task2 task3 task4 task5
RM
(100,37)
EDF
EDF
(70,25)
(250,40) (400,50) (140,7) (150,7) (300,30)
Figure: Example of hierarchical scheduling system.
Schedulability analysis
?? Do you use hierarchical scheduling?
?? How do you perform schedulability analysis?
Motivation Separation of concerns. ReComp.
Schedulability analysis
sbfΓ(t) =
t − (Π − Θ)
Π
· Θ + s (1)
where
s = max t − 2(Π − Θ) − Π
t − (Π − Θ)
Π
, 0 . (2)
FACS 2013
System
EDF
Component1 Component2
task1 task2 task3 task4
EDF,.RM:.scheduling.policies..A,.A1,.A2:.analysis.processes.
A
A1 A2
task5
EDF RM
Figure: Compositional analysis.
Submitted1
∀t ∈ ]0; 2 · LCMW ] : dbfW (t) ≤ sbfΓ(t) (3)
FACS 2013
supplying_time[supid]'==0
&& curTime <= sup[supid].prd
- sup[supid].budget
+ supplying_time[supid]
&& curTime <= sup[supid].prd
stop_supplying[supid]!
replenishment[supid]!
supplying_time[supid]'==1
&& supplying_time[supid]<=sup[supid].budget
curTime <=sup[supid].prd
&& supplying_time[supid]'==0
NotSupplying
curTime ==sup[supid].prd
curTime < sup[supid].prd -sup[supid].budget + supplying_time[supid]
stop_supplying[supid]!
supplying_time[supid]>=sup[supid].budget
start_supplying[supid]!
supplying_time[supid]<=sup[supid].budget
supplying[supid]=1
Supplying
supplying[supid]=1
supplying[supid]=0
Done
supplying[supid]=0
curTime=0, supplying_time[supid]=0,
supplying[supid]=0
Figure: Non-deterministic supplier template
FACS 2013
Listing 1: Data structure for timed action
const cmd_set_t Target_tracking = {
{ INPUT , 3, 110, 122, 0},
{ INPUT , 3, 164, 182, 0},
{ INPUT , 3, 100, 122, 0},
{ INPUT , 3, 146, 162, 0},
{ COMPUTE , 0, 3600, 4000, 0},
{ OUTPUT , 3, 200, 222, 0},
{ OUTPUT , 3, 146, 162, 0},
FIN ,FIN ,FIN ,FIN ,FIN
};
const cmd_set_t Target_sweetening = {
{ INPUT , 3, 110, 122, 0},
{ COMPUTE , 0, 1800, 2000, 0},
FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN
};
ERTS2
2014: Vision
Schedulability
requirements
Energy
consumption
Hierarchical
system architecture
L _
_
_
T2
S
C1 C2
T1 T3 T4
UPPAAL Network of
Parameterized
Stopwatch Automata
Schedulability
analysis
(model
checking)
Energy efficiency
(Stochastic model
checking)
SMC
Schedulable:
yes / no
Energy
profile
Concretetaskbehavior
Concretetaskbehavior
CPU1 CPU2
Figure: Overview of the analysis framework
ERTS2
2014: Vision
Schedulability
requirements
Energy
consumption
Hierarchical
system architecture
L _
_
_
T2
S
C1 C2
T1 T3 T4
UPPAAL Network of
Parameterized
Stopwatch Automata
Schedulability
analysis
(model
checking)
Energy efficiency
(Stochastic model
checking)
SMC
Schedulable:
yes / no
Energy
profile
Concretetaskbehavior
Concretetaskbehavior
CPU1 CPU2
Figure: Overview of the analysis framework
ERTS2
2014: Case study
Avionics
Hard-Subsystem
( 25, insuf, EDF)
Controls and Display
(20, 15, FP )
Targeting
(40, 23, FP)
Navigation
(30, 11, EDF)
Weapon Ctrl.
(10, 8, FP)
HUD Display
T9(50,6,50)
MPD Display
T10(50,8,50)
MPD Button Resp.
T11(200,1,200)
Change Display
T12 (200,1,200)
Flight Data
T1(50,8,50)
Steering
T2(80,6,80)
Target Tracking
T3(40,4,40)
Target Sweetening
T4(40,2,40)
AUTO/CCIP Toggle
T5(200,1,200)
Weapon Release
T8(10,1,5)
Weapon Trajectory
T6 (100,7,100)
Reinitiate Trajectory
T7(400,6,400)
insuf : insufficient budget
Figure: Architecture of the hierarchical scheduling system
ERTS2
2014: Cumulated energy
consumption
Energy Consumption
Task 2 Execution
Task 1 Execution
time
value
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0 30 60 90 120 150 180 210 240 270 300 330 360 390 420 450 480 510 540 570 600 630 660 690
Simulations (1)
Figure: Cumulated energy consumption for two individual tasks
ERTS2
2014: Energy profile
Figure: Energy profile for two tasks, 1000 runs, 1000000 time units
Submitted1
Submitted1 Statistical Model Checking for Improved
Resource Utilization in Hierarchical Scheduling
Systems
• Comparison with conventional method.
• Discovered error in conventional tool CARTS.
Confirmed by tool makers.
Comparison of schedulability analysis of
CARTS and Uppaal models
Comp Tasks P, WCET
CARTS SMC
EDF RM EDF RM
S1
T1 500, 30
100, 32.5 100, 32.5 100, 33 100, 33
T2 500, 100
S2
T1 170, 30
100, 46.67 100, 47.5 100, 46 100, 48
T2 500, 100
S3
T1 250, 40
150, 42.5 150, 42.5 150, 45 150, 45
T2 750, 50
S4
T1 80000, 6890
50000, 15082 50000, 15082 50000, 15082 50000, 15082
T2 100000, 8192
T3 200000, 2644
10000, 1880 10000, 2155.6 10000, 1875 10000, 2155
T4 1000000, 5874
Task synchronization
Submitted2
Submitted2 Degree of Schedulability of Mixed-Criticality
Real-time Systems with Probability-based
Sporadic Tasks
• Mixed criticality
• Sporadic tasks
• Simulation
Sporadic task and events
Event patterns
Missing deadlines
Figure: Execution of a sporadic task
PoMD
Definition (Percentage of Missed Deadlines)
The PoMD of an entity X for a run π is given by:
PoMDX
(π) = (lim sup
t→∞
Misst (X, π)
Trigt (X, π)
) × 100
DoQoS
Definition (Degradation of Quality of Service)
The DoQoS of a task Ti over a finite set of runs Π is defined
as:
DoQoSTi
(Π) =
0 if limt→∞ π∈Π Misst (Ti, π) = 0
limt→∞
π∈Π Overrunt (Ti ,π)
π∈Π Misst (Ti ,π) Otherwise
Sched◦
Definition (The degree of schedulability )
We define the Sched◦
of an entity in terms of two factors
Sched◦
P and Sched◦
D to be given by:
Sched◦
P =
∞ if PoMD = 0
1
PoMD Otherwise
Sched◦
D =
∞ if DoQoS = 0
1
DoQoS Otherwise
Sufficient budget
Table: The degree of schedulability of tasks under periodic
events
Component ((40, 23), FPS) PoMD DoQoS
Tp
3 (40, 4), 0 0
Ts
4(40, 2), 0 0
Case study
Avionics
Hard-Subsystem
( 25, insuf, EDF)
Controls and Display
(20, 15, FP )
Targeting
(40, 23, FP)
Navigation
(30, 11, EDF)
Weapon Ctrl.
(10, 8, FP)
HUD Display
T9(50,6,50)
MPD Display
T10(50,8,50)
MPD Button Resp.
T11(200,1,200)
Change Display
T12 (200,1,200)
Flight Data
T1(50,8,50)
Steering
T2(80,6,80)
Target Tracking
T3(40,4,40)
Target Sweetening
T4(40,2,40)
AUTO/CCIP Toggle
T5(200,1,200)
Weapon Release
T8(10,1,5)
Weapon Trajectory
T6 (100,7,100)
Reinitiate Trajectory
T7(400,6,400)
insuf : insufficient budget
Figure: Architecture of the hierarchical scheduling system
Generic Avionics Components and Tasks
Component Criticality Ti ei pi di Importance
Navigation
Hard Aircraft flight data(Tp
1
) 8 50(55) critical
critical Steering(Tp
2
) 6 80 critical
Targeting
Hard Target tracking(Tp
3
) 4 40 critical
critical Target sweetening(Ts
4) 2 40 critical
AUTO/CCIP toggle(Ts
5) 1 200 critical
Weapon Hard Weapon trajectory(Tp
6
) 7 100 critical
Control non-critical Reinitiate trajectory(Ts
7) 6 400 essential
Weapon release(Tp
8
) 1 10 5 critical
Soft
HUD display(Tp
9
) 6 55(52) essential
Controls & MPD tactical display(Tp
10
) 8 50(52) essential
Displays MPD button response (Ts
11) 1 200 background
Change display mode (Ts
12) 1 200 background
Schedulability degree of component
Controls & Displays
Task Sched◦
Budget=14 Budget=17 Budget=19 Budget=20
HUD Display(T9)
DoQoS 0.004±0.003 0 0 0
PoMD 0.004±0.004 0 0 0
MPD Display(T10)
DoQoS 3.068±0.151 0.343±0.052 0.003±0.003 0
PoMD 0.231±0.018 0.002±0.002 0.0005±0 0
MPD Button(T11)
DoQoS 0 0 0 0
PoMD 0 0 0 0
Change Mode(T12)
DoQoS 0 0 0 0
PoMD 0 0 0 0
ERTS2
2014: Vision
Schedulability
requirements
Energy
consumption
Hierarchical
system architecture
L _
_
_
T2
S
C1 C2
T1 T3 T4
UPPAAL Network of
Parameterized
Stopwatch Automata
Schedulability
analysis
(model
checking)
Energy efficiency
(Stochastic model
checking)
SMC
Schedulable:
yes / no
Energy
profile
Concretetaskbehavior
Concretetaskbehavior
CPU1 CPU2
Figure: Overview of the analysis framework

More Related Content

What's hot

Application of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of ReservoirsApplication of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
IOSR Journals
 

What's hot (8)

Learn curve
Learn curveLearn curve
Learn curve
 
06.09.2017 Computer Science, Machine Learning & Statistiks Meetup - MULTI-GPU...
06.09.2017 Computer Science, Machine Learning & Statistiks Meetup - MULTI-GPU...06.09.2017 Computer Science, Machine Learning & Statistiks Meetup - MULTI-GPU...
06.09.2017 Computer Science, Machine Learning & Statistiks Meetup - MULTI-GPU...
 
Learning curve
Learning curveLearning curve
Learning curve
 
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of ReservoirsApplication of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
 
Automated Machine Learning via Sequential Uniform Designs
Automated Machine Learning via Sequential Uniform DesignsAutomated Machine Learning via Sequential Uniform Designs
Automated Machine Learning via Sequential Uniform Designs
 
Zurich machine learning_vicensgaitan
Zurich machine learning_vicensgaitanZurich machine learning_vicensgaitan
Zurich machine learning_vicensgaitan
 
05210202 Fluid Mechanics And Hydraulic Machinery
05210202 Fluid Mechanics  And  Hydraulic Machinery05210202 Fluid Mechanics  And  Hydraulic Machinery
05210202 Fluid Mechanics And Hydraulic Machinery
 
Forecast of long term wind speed based on optimized support vector regression...
Forecast of long term wind speed based on optimized support vector regression...Forecast of long term wind speed based on optimized support vector regression...
Forecast of long term wind speed based on optimized support vector regression...
 

Viewers also liked

Real Time Kernels
Real Time KernelsReal Time Kernels
Real Time Kernels
Arnav Soni
 

Viewers also liked (8)

Compositional Analysis for the Multi-Resource Server
Compositional Analysis for the Multi-Resource ServerCompositional Analysis for the Multi-Resource Server
Compositional Analysis for the Multi-Resource Server
 
Achieving Predictability and Service Differentiation in Web Services
Achieving Predictability and Service Differentiation in Web ServicesAchieving Predictability and Service Differentiation in Web Services
Achieving Predictability and Service Differentiation in Web Services
 
Temporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware schedulingTemporal workload analysis and its application to power aware scheduling
Temporal workload analysis and its application to power aware scheduling
 
Real-Time Deadline Scheduling and More...
Real-Time Deadline Scheduling and More...Real-Time Deadline Scheduling and More...
Real-Time Deadline Scheduling and More...
 
Real Time Kernels
Real Time KernelsReal Time Kernels
Real Time Kernels
 
Mixed Criticality Systems and Many-Core Platforms
Mixed Criticality Systems and Many-Core PlatformsMixed Criticality Systems and Many-Core Platforms
Mixed Criticality Systems and Many-Core Platforms
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
 
Timing verification of automotive communication architecture using quantile ...
Timing verification of automotive communication  architecture using quantile ...Timing verification of automotive communication  architecture using quantile ...
Timing verification of automotive communication architecture using quantile ...
 

Similar to Orientering om en ny metode til skeduleringsanalyse og EU-projektet CRAFTERS

Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Guatemala User Group
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pid
Iaetsd Iaetsd
 
Optimization of Continuous Queries in Federated Database and Stream Processin...
Optimization of Continuous Queries in Federated Database and Stream Processin...Optimization of Continuous Queries in Federated Database and Stream Processin...
Optimization of Continuous Queries in Federated Database and Stream Processin...
Zbigniew Jerzak
 

Similar to Orientering om en ny metode til skeduleringsanalyse og EU-projektet CRAFTERS (20)

Comprehensive acquisition management methodology rev6
Comprehensive acquisition  management methodology   rev6Comprehensive acquisition  management methodology   rev6
Comprehensive acquisition management methodology rev6
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
 
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
OPTIMAL PID CONTROLLER DESIGN FOR SPEED CONTROL OF A SEPARATELY EXCITED DC MO...
 
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
Optimal PID Controller Design for Speed Control of a Separately Excited DC Mo...
 
Industrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spacesIndustrial plant optimization in reduced dimensional spaces
Industrial plant optimization in reduced dimensional spaces
 
Genetic Algorithm for solving Dynamic Supply Chain Problem
Genetic Algorithm for solving Dynamic Supply Chain Problem  Genetic Algorithm for solving Dynamic Supply Chain Problem
Genetic Algorithm for solving Dynamic Supply Chain Problem
 
TIME STUDY – A KEY TECHNIQUE FOR PRODUCTIVITY IMPROVEMENT
TIME STUDY – A KEY TECHNIQUE FOR PRODUCTIVITY IMPROVEMENTTIME STUDY – A KEY TECHNIQUE FOR PRODUCTIVITY IMPROVEMENT
TIME STUDY – A KEY TECHNIQUE FOR PRODUCTIVITY IMPROVEMENT
 
Computation of Simple Robust PI/PID Controller Design for Time-Delay Systems ...
Computation of Simple Robust PI/PID Controller Design for Time-Delay Systems ...Computation of Simple Robust PI/PID Controller Design for Time-Delay Systems ...
Computation of Simple Robust PI/PID Controller Design for Time-Delay Systems ...
 
Introducing Electricity Dispatchability Features in TIMES modelling Framework
Introducing Electricity Dispatchability Features in TIMES modelling FrameworkIntroducing Electricity Dispatchability Features in TIMES modelling Framework
Introducing Electricity Dispatchability Features in TIMES modelling Framework
 
Randolf Geist – IT-Tage 2015 – Oracle Parallel Execution – Analyse und Troubl...
Randolf Geist – IT-Tage 2015 – Oracle Parallel Execution – Analyse und Troubl...Randolf Geist – IT-Tage 2015 – Oracle Parallel Execution – Analyse und Troubl...
Randolf Geist – IT-Tage 2015 – Oracle Parallel Execution – Analyse und Troubl...
 
Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...Design of a new PID controller using predictive functional control optimizati...
Design of a new PID controller using predictive functional control optimizati...
 
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ OracleUnderstanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
Understanding Query Optimization with ‘regular’ and ‘Exadata’ Oracle
 
Iaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pidIaetsd position control of servo systems using pid
Iaetsd position control of servo systems using pid
 
Optimization of Continuous Queries in Federated Database and Stream Processin...
Optimization of Continuous Queries in Federated Database and Stream Processin...Optimization of Continuous Queries in Federated Database and Stream Processin...
Optimization of Continuous Queries in Federated Database and Stream Processin...
 
Fopid
FopidFopid
Fopid
 
Fractional order-pid-controller design
Fractional order-pid-controller designFractional order-pid-controller design
Fractional order-pid-controller design
 
WEI_ZHENGTAI_SPC
WEI_ZHENGTAI_SPCWEI_ZHENGTAI_SPC
WEI_ZHENGTAI_SPC
 
Demystifying cost based optimization
Demystifying cost based optimizationDemystifying cost based optimization
Demystifying cost based optimization
 
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
Robust PID Controller Design for Non-Minimum Phase Systems using Magnitude Op...
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design method
 

More from InfinIT - Innovationsnetværket for it

More from InfinIT - Innovationsnetværket for it (20)

Erfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermarkErfaringer med-c kurt-noermark
Erfaringer med-c kurt-noermark
 
Object orientering, test driven development og c
Object orientering, test driven development og cObject orientering, test driven development og c
Object orientering, test driven development og c
 
Embedded softwaredevelopment hcs
Embedded softwaredevelopment hcsEmbedded softwaredevelopment hcs
Embedded softwaredevelopment hcs
 
C og c++-jens lund jensen
C og c++-jens lund jensenC og c++-jens lund jensen
C og c++-jens lund jensen
 
201811xx foredrag c_cpp
201811xx foredrag c_cpp201811xx foredrag c_cpp
201811xx foredrag c_cpp
 
C som-programmeringssprog-bt
C som-programmeringssprog-btC som-programmeringssprog-bt
C som-programmeringssprog-bt
 
Infinit seminar 060918
Infinit seminar 060918Infinit seminar 060918
Infinit seminar 060918
 
DCR solutions
DCR solutionsDCR solutions
DCR solutions
 
Not your grandfathers BPM
Not your grandfathers BPMNot your grandfathers BPM
Not your grandfathers BPM
 
Kmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolutionKmd workzone - an evolutionary approach to revolution
Kmd workzone - an evolutionary approach to revolution
 
EcoKnow - oplæg
EcoKnow - oplægEcoKnow - oplæg
EcoKnow - oplæg
 
Martin Wickins Chatbots i fronten
Martin Wickins Chatbots i frontenMartin Wickins Chatbots i fronten
Martin Wickins Chatbots i fronten
 
Marie Fenger ai kundeservice
Marie Fenger ai kundeserviceMarie Fenger ai kundeservice
Marie Fenger ai kundeservice
 
Mads Kaysen SupWiz
Mads Kaysen SupWizMads Kaysen SupWiz
Mads Kaysen SupWiz
 
Leif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support CenterLeif Howalt NNIT Service Support Center
Leif Howalt NNIT Service Support Center
 
Jan Neerbek NLP og Chatbots
Jan Neerbek NLP og ChatbotsJan Neerbek NLP og Chatbots
Jan Neerbek NLP og Chatbots
 
Anders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer SupportAnders Soegaard NLP for Customer Support
Anders Soegaard NLP for Customer Support
 
Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018Stephen Alstrup infinit august 2018
Stephen Alstrup infinit august 2018
 
Innovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekterInnovation og værdiskabelse i it-projekter
Innovation og værdiskabelse i it-projekter
 
Rokoko infin it presentation
Rokoko infin it presentation Rokoko infin it presentation
Rokoko infin it presentation
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Orientering om en ny metode til skeduleringsanalyse og EU-projektet CRAFTERS

  • 1. Schedulability analysis using Uppaal and Uppaal SMC in CRAFTERS Abdeldjalil Boudjadar, Alexandre David, Jin Hyun Kim, Kim G. Larsen, Marius Mikuˇcionis, Ulrik Nyman, Arne Skou InfinIT Talk 12th of March 2014
  • 2. CRAFTERS project Title ConstRaint and Application driven Framework for Tailoring Embedded Real-time Systems. Period Jun 2012 - May 2015 Website www.crafters-project.org People Two Post Docs @AAU Partners 25
  • 3. CRAFTERS project Goals As direct effects of the project results 30% reduction of the total cost of ownership, 50% shorter time-to-market, and 30% decrease of the number of development assets are expected.
  • 4. AAU contributions Deliverables • Model transformations (UML -> Uppaal) • Real-time testing tool, Uppaal TRON Research • New research on schedulability analysis
  • 5. Publications FACS 2013 Hierarchical Scheduling Framework Based on Compositional Analysis Using Uppaal (Published) ERTS2 2014 Schedulability and Energy Efficiency for Multi-core Hierarchical Scheduling Systems (Published) Submitted1 Statistical Model Checking for Improved Resource Utilization in Hierarchical Scheduling Systems Submitted2 Degree of Schedulability of Mixed-Criticality Real-time Systems with Probability-based Sporadic Tasks
  • 6. A hierarchical scheduling system System Component1 Component2 task1 task2 task3 task4 task5 RM (100,37) EDF EDF (70,25) (250,40) (400,50) (140,7) (150,7) (300,30) Figure: Example of hierarchical scheduling system.
  • 7. Schedulability analysis ?? Do you use hierarchical scheduling? ?? How do you perform schedulability analysis? Motivation Separation of concerns. ReComp.
  • 8. Schedulability analysis sbfΓ(t) = t − (Π − Θ) Π · Θ + s (1) where s = max t − 2(Π − Θ) − Π t − (Π − Θ) Π , 0 . (2)
  • 9. FACS 2013 System EDF Component1 Component2 task1 task2 task3 task4 EDF,.RM:.scheduling.policies..A,.A1,.A2:.analysis.processes. A A1 A2 task5 EDF RM Figure: Compositional analysis.
  • 10. Submitted1 ∀t ∈ ]0; 2 · LCMW ] : dbfW (t) ≤ sbfΓ(t) (3)
  • 11. FACS 2013 supplying_time[supid]'==0 && curTime <= sup[supid].prd - sup[supid].budget + supplying_time[supid] && curTime <= sup[supid].prd stop_supplying[supid]! replenishment[supid]! supplying_time[supid]'==1 && supplying_time[supid]<=sup[supid].budget curTime <=sup[supid].prd && supplying_time[supid]'==0 NotSupplying curTime ==sup[supid].prd curTime < sup[supid].prd -sup[supid].budget + supplying_time[supid] stop_supplying[supid]! supplying_time[supid]>=sup[supid].budget start_supplying[supid]! supplying_time[supid]<=sup[supid].budget supplying[supid]=1 Supplying supplying[supid]=1 supplying[supid]=0 Done supplying[supid]=0 curTime=0, supplying_time[supid]=0, supplying[supid]=0 Figure: Non-deterministic supplier template
  • 12. FACS 2013 Listing 1: Data structure for timed action const cmd_set_t Target_tracking = { { INPUT , 3, 110, 122, 0}, { INPUT , 3, 164, 182, 0}, { INPUT , 3, 100, 122, 0}, { INPUT , 3, 146, 162, 0}, { COMPUTE , 0, 3600, 4000, 0}, { OUTPUT , 3, 200, 222, 0}, { OUTPUT , 3, 146, 162, 0}, FIN ,FIN ,FIN ,FIN ,FIN }; const cmd_set_t Target_sweetening = { { INPUT , 3, 110, 122, 0}, { COMPUTE , 0, 1800, 2000, 0}, FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN ,FIN };
  • 13. ERTS2 2014: Vision Schedulability requirements Energy consumption Hierarchical system architecture L _ _ _ T2 S C1 C2 T1 T3 T4 UPPAAL Network of Parameterized Stopwatch Automata Schedulability analysis (model checking) Energy efficiency (Stochastic model checking) SMC Schedulable: yes / no Energy profile Concretetaskbehavior Concretetaskbehavior CPU1 CPU2 Figure: Overview of the analysis framework
  • 14. ERTS2 2014: Vision Schedulability requirements Energy consumption Hierarchical system architecture L _ _ _ T2 S C1 C2 T1 T3 T4 UPPAAL Network of Parameterized Stopwatch Automata Schedulability analysis (model checking) Energy efficiency (Stochastic model checking) SMC Schedulable: yes / no Energy profile Concretetaskbehavior Concretetaskbehavior CPU1 CPU2 Figure: Overview of the analysis framework
  • 15. ERTS2 2014: Case study Avionics Hard-Subsystem ( 25, insuf, EDF) Controls and Display (20, 15, FP ) Targeting (40, 23, FP) Navigation (30, 11, EDF) Weapon Ctrl. (10, 8, FP) HUD Display T9(50,6,50) MPD Display T10(50,8,50) MPD Button Resp. T11(200,1,200) Change Display T12 (200,1,200) Flight Data T1(50,8,50) Steering T2(80,6,80) Target Tracking T3(40,4,40) Target Sweetening T4(40,2,40) AUTO/CCIP Toggle T5(200,1,200) Weapon Release T8(10,1,5) Weapon Trajectory T6 (100,7,100) Reinitiate Trajectory T7(400,6,400) insuf : insufficient budget Figure: Architecture of the hierarchical scheduling system
  • 16. ERTS2 2014: Cumulated energy consumption Energy Consumption Task 2 Execution Task 1 Execution time value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 30 60 90 120 150 180 210 240 270 300 330 360 390 420 450 480 510 540 570 600 630 660 690 Simulations (1) Figure: Cumulated energy consumption for two individual tasks
  • 17. ERTS2 2014: Energy profile Figure: Energy profile for two tasks, 1000 runs, 1000000 time units
  • 18. Submitted1 Submitted1 Statistical Model Checking for Improved Resource Utilization in Hierarchical Scheduling Systems • Comparison with conventional method. • Discovered error in conventional tool CARTS. Confirmed by tool makers.
  • 19. Comparison of schedulability analysis of CARTS and Uppaal models Comp Tasks P, WCET CARTS SMC EDF RM EDF RM S1 T1 500, 30 100, 32.5 100, 32.5 100, 33 100, 33 T2 500, 100 S2 T1 170, 30 100, 46.67 100, 47.5 100, 46 100, 48 T2 500, 100 S3 T1 250, 40 150, 42.5 150, 42.5 150, 45 150, 45 T2 750, 50 S4 T1 80000, 6890 50000, 15082 50000, 15082 50000, 15082 50000, 15082 T2 100000, 8192 T3 200000, 2644 10000, 1880 10000, 2155.6 10000, 1875 10000, 2155 T4 1000000, 5874
  • 21. Submitted2 Submitted2 Degree of Schedulability of Mixed-Criticality Real-time Systems with Probability-based Sporadic Tasks • Mixed criticality • Sporadic tasks • Simulation
  • 25. PoMD Definition (Percentage of Missed Deadlines) The PoMD of an entity X for a run π is given by: PoMDX (π) = (lim sup t→∞ Misst (X, π) Trigt (X, π) ) × 100
  • 26. DoQoS Definition (Degradation of Quality of Service) The DoQoS of a task Ti over a finite set of runs Π is defined as: DoQoSTi (Π) = 0 if limt→∞ π∈Π Misst (Ti, π) = 0 limt→∞ π∈Π Overrunt (Ti ,π) π∈Π Misst (Ti ,π) Otherwise
  • 27. Sched◦ Definition (The degree of schedulability ) We define the Sched◦ of an entity in terms of two factors Sched◦ P and Sched◦ D to be given by: Sched◦ P = ∞ if PoMD = 0 1 PoMD Otherwise Sched◦ D = ∞ if DoQoS = 0 1 DoQoS Otherwise
  • 28. Sufficient budget Table: The degree of schedulability of tasks under periodic events Component ((40, 23), FPS) PoMD DoQoS Tp 3 (40, 4), 0 0 Ts 4(40, 2), 0 0
  • 29. Case study Avionics Hard-Subsystem ( 25, insuf, EDF) Controls and Display (20, 15, FP ) Targeting (40, 23, FP) Navigation (30, 11, EDF) Weapon Ctrl. (10, 8, FP) HUD Display T9(50,6,50) MPD Display T10(50,8,50) MPD Button Resp. T11(200,1,200) Change Display T12 (200,1,200) Flight Data T1(50,8,50) Steering T2(80,6,80) Target Tracking T3(40,4,40) Target Sweetening T4(40,2,40) AUTO/CCIP Toggle T5(200,1,200) Weapon Release T8(10,1,5) Weapon Trajectory T6 (100,7,100) Reinitiate Trajectory T7(400,6,400) insuf : insufficient budget Figure: Architecture of the hierarchical scheduling system
  • 30. Generic Avionics Components and Tasks Component Criticality Ti ei pi di Importance Navigation Hard Aircraft flight data(Tp 1 ) 8 50(55) critical critical Steering(Tp 2 ) 6 80 critical Targeting Hard Target tracking(Tp 3 ) 4 40 critical critical Target sweetening(Ts 4) 2 40 critical AUTO/CCIP toggle(Ts 5) 1 200 critical Weapon Hard Weapon trajectory(Tp 6 ) 7 100 critical Control non-critical Reinitiate trajectory(Ts 7) 6 400 essential Weapon release(Tp 8 ) 1 10 5 critical Soft HUD display(Tp 9 ) 6 55(52) essential Controls & MPD tactical display(Tp 10 ) 8 50(52) essential Displays MPD button response (Ts 11) 1 200 background Change display mode (Ts 12) 1 200 background
  • 31. Schedulability degree of component Controls & Displays Task Sched◦ Budget=14 Budget=17 Budget=19 Budget=20 HUD Display(T9) DoQoS 0.004±0.003 0 0 0 PoMD 0.004±0.004 0 0 0 MPD Display(T10) DoQoS 3.068±0.151 0.343±0.052 0.003±0.003 0 PoMD 0.231±0.018 0.002±0.002 0.0005±0 0 MPD Button(T11) DoQoS 0 0 0 0 PoMD 0 0 0 0 Change Mode(T12) DoQoS 0 0 0 0 PoMD 0 0 0 0
  • 32. ERTS2 2014: Vision Schedulability requirements Energy consumption Hierarchical system architecture L _ _ _ T2 S C1 C2 T1 T3 T4 UPPAAL Network of Parameterized Stopwatch Automata Schedulability analysis (model checking) Energy efficiency (Stochastic model checking) SMC Schedulable: yes / no Energy profile Concretetaskbehavior Concretetaskbehavior CPU1 CPU2 Figure: Overview of the analysis framework