SlideShare a Scribd company logo
1 of 14
Download to read offline
Autoscaling Effects in
Speed Scaling Systems
Carey Williamson
Department of Computer Science
(joint work with Maryam Elahi and Philipp Woelfel)
CORS 2016
Introduction
▪ Dynamic CPU speed scaling systems
▪ Service rate adjusted based on offered load
▪ Classic tradeoff:
—Faster speed  lower response time, higher energy usage
▪ Two key design choices:
—Speed scaler: how fast to run? (static, coupled, decoupled)
—Scheduler: which job to run? (FCFS, PS, FSP, SRPT, LRPT)
▪ Research questions:
—What are the “autoscaling” properties of coupled (i.e., job-
count based) speed scaling systems under heavy load?
—In what ways are PS and SRPT similar or different?
2
Related Work
▪ [Albers 2010] “Energy-Efficient Algorthms”, CACM
▪ [Andrew et al. 2010] “Optimality, Fairness, and
Robustness in Speed Scaling Designs”, ACM SIGMETRICS
▪ [Bansal et al. 2007] “Speed Scaling to Manage Energy and
Temperature”, JACM
▪ [Elahi et al. 2012] “Decoupled Speed Scaling”, QEST, PEVA
▪ [Wierman et al. 2009] “Power-Aware Speed Scaling in
Processor Sharing Systems”, IEEE INFOCOM, PEVA 2012
▪ [Weiser et al. 1994] “Scheduling for Reduced CPU
Energy”, USENIX OSDI
▪ [Yao et al. 1995] “A Scheduling Model for Reduced CPU
Engergy”, ACM FOCS
3
System Model (1 of 4)
4
μ
0 2
1 4
3
λ λ λ λ λ
μ μ μ μ
Review: Birth-death Markov chain model of classic M/M/1 queue
Fixed arrival rate λ
Fixed service rate μ
Mean system occupancy: N = ρ / (1 – ρ)
Ergodicity requirement: ρ = λ/μ < 1
pn = p0 (λ/μ)n
U = 1 – p0 = ρ
…
System Model (2 of 4)
5
μ
0 2
1 4
3
λ λ λ λ λ
2μ 3μ 4μ 5μ
Birth-death Markov chain model of classic M/M/∞ queue
Fixed arrival rate λ
Service rate scales linearly with system occupancy (α = 1)
Mean system occupancy: N = ρ = λ/μ
System occupancy has Poisson distribution
Ergodicity requirement: ρ = λ/μ < ∞
pn = p0 ∏ (λ/(i+1)μ)
i=0
n-1
U = 1 – p0 ≠ ρ
…
FCFS = PS ≠ SRPT
System Model (3 of 4)
6
μ
0 2
1 4
3
λ λ λ λ λ
2μ 3μ 4μ 5μ
Birth-death Markov chain model of dynamic speed scaling system
Fixed arrival rate λ
Service rate scales sub-linearly with system occupancy (α = 2)
Mean system occupancy: N = ρ2 = (λ/μ)2
System occupancy has higher variance than Poisson distribution
Ergodicity requirement: ρ = λ/μ < ∞
pn = p0 ∏ (λ/( i+1)μ)
√ √ √ √
√
i=0
n-1
…
System Model (4 of 4)
7
μ
0 2
1 4
3
λ λ λ λ λ
2μ 3μ 4μ 5μ
Birth-death Markov chain model of dynamic speed scaling system
Fixed arrival rate λ
Service rate scales sub-linearly with system occupancy (α > 1)
Mean system occupancy: N = ρα = (λ/μ)α
System occupancy has higher variance than Poisson distribution
Ergodicity requirement: ρ = λ/μ < ∞
pn = p0 ∏ (λ/( i+1)μ)
√ √ √ √
√
i=0
n-1
α α α α
α
…
Analytical Insights and Observations
▪ In speed scaling systems, ρ and U differ
▪ Speed scaling systems stabilize even when ρ > 1
▪ In stable speed scaling systems, s = ρ (an invariant)
▪ PS is amenable to analysis; SRPT is not
▪ PS with linear speed scaling behaves like M/M/∞,
which has Poisson distribution for system occupancy
▪ Increasing α changes the Poisson structure of PS
▪ At high load, N  ρα (another invariant property)
8
PS Modeling Results
9
SRPT Simulation Results
1
0
Comparing PS and SRPT
▪ Similarities:
—Mean system speed (invariant property)
—Mean system occupancy (invariant property)
—Effect of α (i.e., the shift, the squish, and the squeeze)
▪ Differences:
—Variance of system occupancy (SRPT is lower)
—Mean response time (SRPT is lower)
—Variance of response time (SRPT is higher)
—PS is always fair; SRPT is unfair (esp. with speed scaling!)
—Compensation effect in PS
—Procrastination/starvation effect in SRPT 1
1
Busy Period Structure for PS and SRPT (simulation)
1
2
Simulation Insights and Observations
▪ Under heavy load, busy periods coalesce and U  1
▪ Saturation points for PS and SRPT are different
—Different “overload regimes” for PS and SRPT
—Gap always exists between them
—Gap shrinks as α increases
—Limiting case (α = ∞) requires ρ < 1 (i.e., fixed rate)
▪ SRPT suffers from starvation under very high load
▪ “Job count” stability and “work” stability differ
1
3
Conclusions
▪ The autoscaling properties of dynamic speed scaling
systems are many, varied, and interesting!
— Autoscaling effect: stable even at very high offered load (s = ρ)
— Saturation effect: U  1 at heavy load, with N  ρα
— The α effect: the shift, the squish, and the squeeze
▪ Invariant properties are helpful for analysis
▪ Differences exist between PS and SRPT
— Variance of system occupancy; mean/variance of response time
— Saturation points for PS and SRPT are different
— SRPT suffers from starvation under very high load
▪ Our results suggest that PS becomes superior to SRPT for
coupled speed scaling, if the load is high enough
1
4

More Related Content

Similar to Autoscaling Effects in Speed Scaling Systems.pdf

Nafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingNafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingSDTools
 
Model Checking in Formal Methods
Model Checking in Formal MethodsModel Checking in Formal Methods
Model Checking in Formal MethodsSana Rahim
 
Compit 2013 - Torsional Vibrations under Ice Impact
Compit 2013 - Torsional Vibrations under Ice ImpactCompit 2013 - Torsional Vibrations under Ice Impact
Compit 2013 - Torsional Vibrations under Ice ImpactSimulationX
 
Automatic control 1 reduction block .pdf
Automatic control 1 reduction block .pdfAutomatic control 1 reduction block .pdf
Automatic control 1 reduction block .pdfssuser029aa3
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesLuigi Vanfretti
 
Oscar Nieves (11710858) Computational Physics Project - Inverted Pendulum
Oscar Nieves (11710858) Computational Physics Project - Inverted PendulumOscar Nieves (11710858) Computational Physics Project - Inverted Pendulum
Oscar Nieves (11710858) Computational Physics Project - Inverted PendulumOscar Nieves
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsAmr E. Mohamed
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...shivamverma394
 
KNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.pptKNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.pptSherAli984263
 
Ch2 mathematical modeling of control system
Ch2 mathematical modeling of control system Ch2 mathematical modeling of control system
Ch2 mathematical modeling of control system Elaf A.Saeed
 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Filip Krikava
 
Transient and Steady State Response - Control Systems Engineering
Transient and Steady State Response - Control Systems EngineeringTransient and Steady State Response - Control Systems Engineering
Transient and Steady State Response - Control Systems EngineeringSiyum Tsega Balcha
 
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...Alvin Zhang
 
YATES: Rapid Prototyping for Traffic Engineering Systems
YATES: Rapid Prototyping forTraffic Engineering SystemsYATES: Rapid Prototyping forTraffic Engineering Systems
YATES: Rapid Prototyping for Traffic Engineering SystemsAJAY KHARAT
 
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxNo More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxhallettfaustina
 
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxNo More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxvannagoforth
 
Resource Management for Computer Operating Systems
Resource Management for Computer Operating SystemsResource Management for Computer Operating Systems
Resource Management for Computer Operating Systemsinside-BigData.com
 

Similar to Autoscaling Effects in Speed Scaling Systems.pdf (20)

Nafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modelingNafems15 Technical meeting on system modeling
Nafems15 Technical meeting on system modeling
 
Model Checking in Formal Methods
Model Checking in Formal MethodsModel Checking in Formal Methods
Model Checking in Formal Methods
 
Compit 2013 - Torsional Vibrations under Ice Impact
Compit 2013 - Torsional Vibrations under Ice ImpactCompit 2013 - Torsional Vibrations under Ice Impact
Compit 2013 - Torsional Vibrations under Ice Impact
 
Automatic control 1 reduction block .pdf
Automatic control 1 reduction block .pdfAutomatic control 1 reduction block .pdf
Automatic control 1 reduction block .pdf
 
Discrete Time Systems & its classifications
Discrete Time Systems & its classificationsDiscrete Time Systems & its classifications
Discrete Time Systems & its classifications
 
Power System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and ChallengesPower System Simulation: History, State of the Art, and Challenges
Power System Simulation: History, State of the Art, and Challenges
 
LOAD_FLOW_STUDY.pptx
LOAD_FLOW_STUDY.pptxLOAD_FLOW_STUDY.pptx
LOAD_FLOW_STUDY.pptx
 
Oscar Nieves (11710858) Computational Physics Project - Inverted Pendulum
Oscar Nieves (11710858) Computational Physics Project - Inverted PendulumOscar Nieves (11710858) Computational Physics Project - Inverted Pendulum
Oscar Nieves (11710858) Computational Physics Project - Inverted Pendulum
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
 
KNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.pptKNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.ppt
 
Ch2 mathematical modeling of control system
Ch2 mathematical modeling of control system Ch2 mathematical modeling of control system
Ch2 mathematical modeling of control system
 
presentation_btp
presentation_btppresentation_btp
presentation_btp
 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
 
Transient and Steady State Response - Control Systems Engineering
Transient and Steady State Response - Control Systems EngineeringTransient and Steady State Response - Control Systems Engineering
Transient and Steady State Response - Control Systems Engineering
 
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...
Dimensionless Approach to Multi-Parametric Stability Analysis of Nonlinear Ti...
 
YATES: Rapid Prototyping for Traffic Engineering Systems
YATES: Rapid Prototyping forTraffic Engineering SystemsYATES: Rapid Prototyping forTraffic Engineering Systems
YATES: Rapid Prototyping for Traffic Engineering Systems
 
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxNo More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
 
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docxNo More Backstabbing... A Faithful Scheduling Policy for Multi.docx
No More Backstabbing... A Faithful Scheduling Policy for Multi.docx
 
Resource Management for Computer Operating Systems
Resource Management for Computer Operating SystemsResource Management for Computer Operating Systems
Resource Management for Computer Operating Systems
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Recently uploaded (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Autoscaling Effects in Speed Scaling Systems.pdf

  • 1. Autoscaling Effects in Speed Scaling Systems Carey Williamson Department of Computer Science (joint work with Maryam Elahi and Philipp Woelfel) CORS 2016
  • 2. Introduction ▪ Dynamic CPU speed scaling systems ▪ Service rate adjusted based on offered load ▪ Classic tradeoff: —Faster speed  lower response time, higher energy usage ▪ Two key design choices: —Speed scaler: how fast to run? (static, coupled, decoupled) —Scheduler: which job to run? (FCFS, PS, FSP, SRPT, LRPT) ▪ Research questions: —What are the “autoscaling” properties of coupled (i.e., job- count based) speed scaling systems under heavy load? —In what ways are PS and SRPT similar or different? 2
  • 3. Related Work ▪ [Albers 2010] “Energy-Efficient Algorthms”, CACM ▪ [Andrew et al. 2010] “Optimality, Fairness, and Robustness in Speed Scaling Designs”, ACM SIGMETRICS ▪ [Bansal et al. 2007] “Speed Scaling to Manage Energy and Temperature”, JACM ▪ [Elahi et al. 2012] “Decoupled Speed Scaling”, QEST, PEVA ▪ [Wierman et al. 2009] “Power-Aware Speed Scaling in Processor Sharing Systems”, IEEE INFOCOM, PEVA 2012 ▪ [Weiser et al. 1994] “Scheduling for Reduced CPU Energy”, USENIX OSDI ▪ [Yao et al. 1995] “A Scheduling Model for Reduced CPU Engergy”, ACM FOCS 3
  • 4. System Model (1 of 4) 4 μ 0 2 1 4 3 λ λ λ λ λ μ μ μ μ Review: Birth-death Markov chain model of classic M/M/1 queue Fixed arrival rate λ Fixed service rate μ Mean system occupancy: N = ρ / (1 – ρ) Ergodicity requirement: ρ = λ/μ < 1 pn = p0 (λ/μ)n U = 1 – p0 = ρ …
  • 5. System Model (2 of 4) 5 μ 0 2 1 4 3 λ λ λ λ λ 2μ 3μ 4μ 5μ Birth-death Markov chain model of classic M/M/∞ queue Fixed arrival rate λ Service rate scales linearly with system occupancy (α = 1) Mean system occupancy: N = ρ = λ/μ System occupancy has Poisson distribution Ergodicity requirement: ρ = λ/μ < ∞ pn = p0 ∏ (λ/(i+1)μ) i=0 n-1 U = 1 – p0 ≠ ρ … FCFS = PS ≠ SRPT
  • 6. System Model (3 of 4) 6 μ 0 2 1 4 3 λ λ λ λ λ 2μ 3μ 4μ 5μ Birth-death Markov chain model of dynamic speed scaling system Fixed arrival rate λ Service rate scales sub-linearly with system occupancy (α = 2) Mean system occupancy: N = ρ2 = (λ/μ)2 System occupancy has higher variance than Poisson distribution Ergodicity requirement: ρ = λ/μ < ∞ pn = p0 ∏ (λ/( i+1)μ) √ √ √ √ √ i=0 n-1 …
  • 7. System Model (4 of 4) 7 μ 0 2 1 4 3 λ λ λ λ λ 2μ 3μ 4μ 5μ Birth-death Markov chain model of dynamic speed scaling system Fixed arrival rate λ Service rate scales sub-linearly with system occupancy (α > 1) Mean system occupancy: N = ρα = (λ/μ)α System occupancy has higher variance than Poisson distribution Ergodicity requirement: ρ = λ/μ < ∞ pn = p0 ∏ (λ/( i+1)μ) √ √ √ √ √ i=0 n-1 α α α α α …
  • 8. Analytical Insights and Observations ▪ In speed scaling systems, ρ and U differ ▪ Speed scaling systems stabilize even when ρ > 1 ▪ In stable speed scaling systems, s = ρ (an invariant) ▪ PS is amenable to analysis; SRPT is not ▪ PS with linear speed scaling behaves like M/M/∞, which has Poisson distribution for system occupancy ▪ Increasing α changes the Poisson structure of PS ▪ At high load, N  ρα (another invariant property) 8
  • 11. Comparing PS and SRPT ▪ Similarities: —Mean system speed (invariant property) —Mean system occupancy (invariant property) —Effect of α (i.e., the shift, the squish, and the squeeze) ▪ Differences: —Variance of system occupancy (SRPT is lower) —Mean response time (SRPT is lower) —Variance of response time (SRPT is higher) —PS is always fair; SRPT is unfair (esp. with speed scaling!) —Compensation effect in PS —Procrastination/starvation effect in SRPT 1 1
  • 12. Busy Period Structure for PS and SRPT (simulation) 1 2
  • 13. Simulation Insights and Observations ▪ Under heavy load, busy periods coalesce and U  1 ▪ Saturation points for PS and SRPT are different —Different “overload regimes” for PS and SRPT —Gap always exists between them —Gap shrinks as α increases —Limiting case (α = ∞) requires ρ < 1 (i.e., fixed rate) ▪ SRPT suffers from starvation under very high load ▪ “Job count” stability and “work” stability differ 1 3
  • 14. Conclusions ▪ The autoscaling properties of dynamic speed scaling systems are many, varied, and interesting! — Autoscaling effect: stable even at very high offered load (s = ρ) — Saturation effect: U  1 at heavy load, with N  ρα — The α effect: the shift, the squish, and the squeeze ▪ Invariant properties are helpful for analysis ▪ Differences exist between PS and SRPT — Variance of system occupancy; mean/variance of response time — Saturation points for PS and SRPT are different — SRPT suffers from starvation under very high load ▪ Our results suggest that PS becomes superior to SRPT for coupled speed scaling, if the load is high enough 1 4