SlideShare uma empresa Scribd logo
1 de 11
Baixar para ler offline
Real-time support for Xen
          Xen Summit Asia
             Nov. 2009

            Seehwan Yoo
              Chuck Yoo
       OS lab, Korea University
Motivational Examples
• Accommodate multiple embedded systems over a h/w
  platform
      – Multi-OS support (UI, apps.)
      – Security, trustworthiness
• Real-time support is essential! (for some embedded systems)
      – E.g.) mobile phone, DTV, etc.
      – Requires not only CPU bandwidth,
        but also time-bounded processing

• Is real-time possible?
      – Scheduling is the problem
      – Why?
            • RT-workload aggregation changes required CPU bandwidth
            •   Shin, Lee, Compositional scheduling framework with periodic resource model , TECS 2008




Xen summit Asia, Shanghai
                                                                                                         2
2009-11-20
Problem in
                RT scheduling and VMM
• RT scheduling in physical machine
     • != RT sched. in virtual machine (not aware physical time)
     • != RT sched. in hypervisor (not aware RT tasks)
• Real-time scheduling with aggregated VM’s
  workload
         VM0
           RT     RT        RT   Problem 1.
           ta     ta        ta     VM cannot accurately schedule
           sk     sk        sk
                                  tasks because it runs over virtual
                 RT task                        time
                 scheduling

        Xen-ARM hypervisor       Problem 2.
                VM               Hypervisor is not aware of RT tasks
                RT scheduling                in guest OS
Xen summit Asia, Shanghai
                                                                       3
2009-11-20
Compositional Scheduling
•   Workload aggregation
      –    Create aggregated periodic RT task from
           multiple sub RT tasks
      –    Required CPU bandwidth changes as interface period
           increases
•   Separately calculate supply/demand of aggregated
    workload                                                                     Xen-ARM
       Derive possible schedulable bandwidth
        with a periodic resource model
                                                                                (hypervisor)
•   Example (T1: 50,7 T2: 75,9)
      –    P: 10, required BW: 28%,                     Abstract
           P: 34, required BW: 40%
                                                        interface           1(,)               2(,)
      –    Gray region: Schedulable BW range

                                                                  Subsystem C1          Subsystem C2

                                                                    uC/OS-II               RTOS2

          0.28



                                                                T1(50,7)   T2(75,9)   RT task Ti(pi,ei)


Xen summit Asia, Shanghai
                                                                                                          4
2009-11-20
Contribution 1.
                          Refine scheduling theory
• Quantization effect
      – tick-based scheduling has quantization overhead
      – Effective bandwidth : required CPU bandwidth in tick-based
        scheduling
      * To be submitted



• Optimal scheduling period?
      – Minimizes performance overhead
            • Hard to find
            (Quantization overhead
              vs. Compositional
              scheduling overhead)

      – Find a sub-optimal
        interface period
            • Algorithm is required


Xen summit Asia, Shanghai
                                                                     5
2009-11-20
Contribution 2.
     Incorporate theory into VM scheduling
• Interface to specify aggregated RT workload
      – Input to the hypervisor scheduler
            • utilization of the workload,
            • scheduling algorithm (EDF),
            • minimum period in task set
      – Guest provides local (aggregated) workload information
      – New hypercall is introduced
            • HYPERVISOR_request_RTSchedule (unsigned long long U_w,
                                                      char *algo, unsigned int Pmin)
            • Xen calculates the optimal {period, execution time}
             Users don’t need to find the optimal period, execution time


• Code modification in the source tree
      – Hypercall (arch/arm/xen/hypercalls.S)
      – RT period, execution time decision (common/schedule_realtime.c)
      – Interface with current scheduling (uCos-ii/kernel/main.c -
        AppTaskCreate)

Xen summit Asia, Shanghai
                                                                                       6
2009-11-20
Implementation
•    Use workload aggregation
      – RTOS     (such as ucos-ii-xen)
            • 1. calculates Uw
            • 2. provide RT scheduling info   (Uw, algo, Pmin)

      – Xen-ARM
            • 3. calculates optimal
              interface
            • 4. adjusts guest
              scheduling parameter




•    Instead of finding the
     interface heuristically;
      – real-time has to be
        guaranteed


    Xen summit Asia, Shanghai
                                                                 7
    2009-11-20
Our experiences
• RT-guest over Xen-ARM
      – ucos-ii-xen
            • Paravirtualize cpu, memory, timer
                  – Based on mini-os
            • Compiler change: GCC (from IAR-cc)
                  – Can run simple real-time app from GCC toolset
                  – MMU protected memory (idempotent mapping)
                  – Fixed priority scheduling
            • Has been posted on youtube, xen-arm site
                  – XenARM Wiki:
                     http://wiki.xensource.com/xenwiki/XenARM?action=AttachFile&do=get&target=ucos_ii_xen_
                     on_arm.zip
                  – Youtube:      http://www.youtube.com/user/heymill#p/a/u/2/Vli9zb62Ceo



Xen summit Asia, Shanghai
                                                                                                         8
2009-11-20
RTOS+GPOS
• H/W:
      – Freescale’s iMX-21 platform (266Mhz, ARM926)
• S/W:
      – Xen-arm w/ xenolinux 2.6.18
      – SEDF with quantized compositional scheduling interface
• Software workload
      – RT: *MiBench-based emulation (for RT emulation)
      – Non-RT: Linux lab. apps. (Mi-bench is used)
         *http://eecs.umich.edu/mibench
         (embedded macro benchmark tool –automotive, telecomm, office, network, security.
         we use telecomm –gsm, fft)

      RTOS                   GPOS
     (uC/OS)                (Linux)

              Xen-ARM
Xen summit Asia, Shanghai
                                                                                        9
2009-11-20
Preliminary Result
                                  underway
• GSM Encoding                        • Difficulties
  133 frames                             – Porting effort
   – ucos-ii-xen (DomU)                      (Benchmark program)

            • avg: 3.958(ms),                 • LibC has to be omitted
            • min, max: 1.11, 7.20
      – xenolinux (Dom0)                 – Fine-grained time
            • avg. 220ms                   measurement
                                              • Hypercall overhead at
      * GSM frame space: 4.25ms
                                                domU
                                              • Some regs. are not
                                                accessible at domU


Xen summit Asia, Shanghai
                                                                        10
2009-11-20
Conclusion
• Real-time possibility has been presented
• RT scheduling support
      – How to set up scheduling parameters?
• Xen modification
      – RT scheduling interface
• Experiences
      – RT & GPOS
      – MiBench
Xen summit Asia, Shanghai
                                               11
2009-11-20

Mais conteúdo relacionado

Mais procurados

Lect.10.arm soc.4 neon
Lect.10.arm soc.4 neonLect.10.arm soc.4 neon
Lect.10.arm soc.4 neon
sean chen
 
asap2013-khoa-presentation
asap2013-khoa-presentationasap2013-khoa-presentation
asap2013-khoa-presentation
Abhishek Jain
 
Rendering Battlefield 4 with Mantle by Yuriy ODonnell
Rendering Battlefield 4 with Mantle by Yuriy ODonnellRendering Battlefield 4 with Mantle by Yuriy ODonnell
Rendering Battlefield 4 with Mantle by Yuriy ODonnell
AMD Developer Central
 

Mais procurados (20)

Lect.10.arm soc.4 neon
Lect.10.arm soc.4 neonLect.10.arm soc.4 neon
Lect.10.arm soc.4 neon
 
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
 
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
XPDS13: Performance Evaluation of Live Migration based on Xen ARM PVH - Jaeyo...
 
gcma: guaranteed contiguous memory allocator
gcma:  guaranteed contiguous memory allocatorgcma:  guaranteed contiguous memory allocator
gcma: guaranteed contiguous memory allocator
 
2020 icldla-updated
2020 icldla-updated2020 icldla-updated
2020 icldla-updated
 
RTOS implementation
RTOS implementationRTOS implementation
RTOS implementation
 
asap2013-khoa-presentation
asap2013-khoa-presentationasap2013-khoa-presentation
asap2013-khoa-presentation
 
customization of a deep learning accelerator, based on NVDLA
customization of a deep learning accelerator, based on NVDLAcustomization of a deep learning accelerator, based on NVDLA
customization of a deep learning accelerator, based on NVDLA
 
BPF Hardware Offload Deep Dive
BPF Hardware Offload Deep DiveBPF Hardware Offload Deep Dive
BPF Hardware Offload Deep Dive
 
SFO15-302: Energy Aware Scheduling: Progress Update
SFO15-302: Energy Aware Scheduling: Progress UpdateSFO15-302: Energy Aware Scheduling: Progress Update
SFO15-302: Energy Aware Scheduling: Progress Update
 
eTPU to GTM Migration Presentation
eTPU to GTM Migration PresentationeTPU to GTM Migration Presentation
eTPU to GTM Migration Presentation
 
eTPU to GTM Migration
eTPU to GTM MigrationeTPU to GTM Migration
eTPU to GTM Migration
 
Process Scheduler and Balancer in Linux Kernel
Process Scheduler and Balancer in Linux KernelProcess Scheduler and Balancer in Linux Kernel
Process Scheduler and Balancer in Linux Kernel
 
Building a Better JVM
Building a Better JVMBuilding a Better JVM
Building a Better JVM
 
Rendering Battlefield 4 with Mantle by Yuriy ODonnell
Rendering Battlefield 4 with Mantle by Yuriy ODonnellRendering Battlefield 4 with Mantle by Yuriy ODonnell
Rendering Battlefield 4 with Mantle by Yuriy ODonnell
 
TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)TWS 8.6 new features (from the 2013 European Tour)
TWS 8.6 new features (from the 2013 European Tour)
 
XPDDS18: The Art of Virtualizing Cache Maintenance - Julien Grall, Arm
XPDDS18: The Art of Virtualizing Cache Maintenance - Julien Grall, ArmXPDDS18: The Art of Virtualizing Cache Maintenance - Julien Grall, Arm
XPDDS18: The Art of Virtualizing Cache Maintenance - Julien Grall, Arm
 
XS 2008 Boston Capacity Planning
XS 2008 Boston Capacity PlanningXS 2008 Boston Capacity Planning
XS 2008 Boston Capacity Planning
 
Comp archch06l01pipeline
Comp archch06l01pipelineComp archch06l01pipeline
Comp archch06l01pipeline
 
TWS zcentric Proof of Technology (from 2013 European Tour)
TWS zcentric Proof of Technology (from 2013 European Tour)TWS zcentric Proof of Technology (from 2013 European Tour)
TWS zcentric Proof of Technology (from 2013 European Tour)
 

Semelhante a Real Time Support For Xen

Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
Tech_MX
 
Xen and the Art of Virtualization
Xen and the Art of VirtualizationXen and the Art of Virtualization
Xen and the Art of Virtualization
Susheel Thakur
 
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
Heiko Joerg Schick
 
Lesson 1 introduction to real time
Lesson 1 introduction to real timeLesson 1 introduction to real time
Lesson 1 introduction to real time
Pramod Pbkr
 

Semelhante a Real Time Support For Xen (20)

Mastering Real-time Linux
Mastering Real-time LinuxMastering Real-time Linux
Mastering Real-time Linux
 
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
 
Xen revisited
Xen revisitedXen revisited
Xen revisited
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Minimizing I/O Latency in Xen-ARM
Minimizing I/O Latency in Xen-ARMMinimizing I/O Latency in Xen-ARM
Minimizing I/O Latency in Xen-ARM
 
FlexRay Product Days RTaW
FlexRay Product Days RTaWFlexRay Product Days RTaW
FlexRay Product Days RTaW
 
”Bare-Metal Container" presented at HPCC2016
”Bare-Metal Container" presented at HPCC2016”Bare-Metal Container" presented at HPCC2016
”Bare-Metal Container" presented at HPCC2016
 
Xen arm
Xen armXen arm
Xen arm
 
Xen arm
Xen armXen arm
Xen arm
 
Automating the Configuration of the FlexRay Communication Cycle
Automating the Configuration of the FlexRay Communication CycleAutomating the Configuration of the FlexRay Communication Cycle
Automating the Configuration of the FlexRay Communication Cycle
 
XPDS14 - RT-Xen: Real-Time Virtualization in Xen - Sisu Xi, Washington Univer...
XPDS14 - RT-Xen: Real-Time Virtualization in Xen - Sisu Xi, Washington Univer...XPDS14 - RT-Xen: Real-Time Virtualization in Xen - Sisu Xi, Washington Univer...
XPDS14 - RT-Xen: Real-Time Virtualization in Xen - Sisu Xi, Washington Univer...
 
Considerations when implementing_ha_in_dmf
Considerations when implementing_ha_in_dmfConsiderations when implementing_ha_in_dmf
Considerations when implementing_ha_in_dmf
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 
Xen and the Art of Virtualization
Xen and the Art of VirtualizationXen and the Art of Virtualization
Xen and the Art of Virtualization
 
Værktøjer udviklet på AAU til analyse af SCJ programmer
Værktøjer udviklet på AAU til analyse af SCJ programmerVærktøjer udviklet på AAU til analyse af SCJ programmer
Værktøjer udviklet på AAU til analyse af SCJ programmer
 
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
QPACE - QCD Parallel Computing on the Cell Broadband Engine™ (Cell/B.E.)
 
Lesson 1 introduction to real time
Lesson 1 introduction to real timeLesson 1 introduction to real time
Lesson 1 introduction to real time
 
Achieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVMAchieving the Ultimate Performance with KVM
Achieving the Ultimate Performance with KVM
 
Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...
 
Network Stack in Userspace (NUSE)
Network Stack in Userspace (NUSE)Network Stack in Userspace (NUSE)
Network Stack in Userspace (NUSE)
 

Mais de The Linux Foundation

Mais de The Linux Foundation (20)

ELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made SimpleELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made Simple
 
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
 
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
 
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
 
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote:  Unikraft Weather ReportXPDDS19 Keynote:  Unikraft Weather Report
XPDDS19 Keynote: Unikraft Weather Report
 
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
 
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
 
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, BitdefenderXPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
 
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
 
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making... OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, CitrixXPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
 
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
 
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
 
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&DXPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
 
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM SystemsXPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
 
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
 
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
 
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
 
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSEXPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

Real Time Support For Xen

  • 1. Real-time support for Xen Xen Summit Asia Nov. 2009 Seehwan Yoo Chuck Yoo OS lab, Korea University
  • 2. Motivational Examples • Accommodate multiple embedded systems over a h/w platform – Multi-OS support (UI, apps.) – Security, trustworthiness • Real-time support is essential! (for some embedded systems) – E.g.) mobile phone, DTV, etc. – Requires not only CPU bandwidth, but also time-bounded processing • Is real-time possible? – Scheduling is the problem – Why? • RT-workload aggregation changes required CPU bandwidth • Shin, Lee, Compositional scheduling framework with periodic resource model , TECS 2008 Xen summit Asia, Shanghai 2 2009-11-20
  • 3. Problem in RT scheduling and VMM • RT scheduling in physical machine • != RT sched. in virtual machine (not aware physical time) • != RT sched. in hypervisor (not aware RT tasks) • Real-time scheduling with aggregated VM’s workload VM0 RT RT RT Problem 1. ta ta ta VM cannot accurately schedule sk sk sk tasks because it runs over virtual RT task time scheduling Xen-ARM hypervisor Problem 2. VM Hypervisor is not aware of RT tasks RT scheduling in guest OS Xen summit Asia, Shanghai 3 2009-11-20
  • 4. Compositional Scheduling • Workload aggregation – Create aggregated periodic RT task from multiple sub RT tasks – Required CPU bandwidth changes as interface period increases • Separately calculate supply/demand of aggregated workload Xen-ARM  Derive possible schedulable bandwidth with a periodic resource model (hypervisor) • Example (T1: 50,7 T2: 75,9) – P: 10, required BW: 28%, Abstract P: 34, required BW: 40% interface 1(,) 2(,) – Gray region: Schedulable BW range Subsystem C1 Subsystem C2 uC/OS-II RTOS2 0.28 T1(50,7) T2(75,9) RT task Ti(pi,ei) Xen summit Asia, Shanghai 4 2009-11-20
  • 5. Contribution 1. Refine scheduling theory • Quantization effect – tick-based scheduling has quantization overhead – Effective bandwidth : required CPU bandwidth in tick-based scheduling * To be submitted • Optimal scheduling period? – Minimizes performance overhead • Hard to find (Quantization overhead vs. Compositional scheduling overhead) – Find a sub-optimal interface period • Algorithm is required Xen summit Asia, Shanghai 5 2009-11-20
  • 6. Contribution 2. Incorporate theory into VM scheduling • Interface to specify aggregated RT workload – Input to the hypervisor scheduler • utilization of the workload, • scheduling algorithm (EDF), • minimum period in task set – Guest provides local (aggregated) workload information – New hypercall is introduced • HYPERVISOR_request_RTSchedule (unsigned long long U_w, char *algo, unsigned int Pmin) • Xen calculates the optimal {period, execution time}  Users don’t need to find the optimal period, execution time • Code modification in the source tree – Hypercall (arch/arm/xen/hypercalls.S) – RT period, execution time decision (common/schedule_realtime.c) – Interface with current scheduling (uCos-ii/kernel/main.c - AppTaskCreate) Xen summit Asia, Shanghai 6 2009-11-20
  • 7. Implementation • Use workload aggregation – RTOS (such as ucos-ii-xen) • 1. calculates Uw • 2. provide RT scheduling info (Uw, algo, Pmin) – Xen-ARM • 3. calculates optimal interface • 4. adjusts guest scheduling parameter • Instead of finding the interface heuristically; – real-time has to be guaranteed Xen summit Asia, Shanghai 7 2009-11-20
  • 8. Our experiences • RT-guest over Xen-ARM – ucos-ii-xen • Paravirtualize cpu, memory, timer – Based on mini-os • Compiler change: GCC (from IAR-cc) – Can run simple real-time app from GCC toolset – MMU protected memory (idempotent mapping) – Fixed priority scheduling • Has been posted on youtube, xen-arm site – XenARM Wiki: http://wiki.xensource.com/xenwiki/XenARM?action=AttachFile&do=get&target=ucos_ii_xen_ on_arm.zip – Youtube: http://www.youtube.com/user/heymill#p/a/u/2/Vli9zb62Ceo Xen summit Asia, Shanghai 8 2009-11-20
  • 9. RTOS+GPOS • H/W: – Freescale’s iMX-21 platform (266Mhz, ARM926) • S/W: – Xen-arm w/ xenolinux 2.6.18 – SEDF with quantized compositional scheduling interface • Software workload – RT: *MiBench-based emulation (for RT emulation) – Non-RT: Linux lab. apps. (Mi-bench is used) *http://eecs.umich.edu/mibench (embedded macro benchmark tool –automotive, telecomm, office, network, security. we use telecomm –gsm, fft) RTOS GPOS (uC/OS) (Linux) Xen-ARM Xen summit Asia, Shanghai 9 2009-11-20
  • 10. Preliminary Result underway • GSM Encoding • Difficulties 133 frames – Porting effort – ucos-ii-xen (DomU) (Benchmark program) • avg: 3.958(ms), • LibC has to be omitted • min, max: 1.11, 7.20 – xenolinux (Dom0) – Fine-grained time • avg. 220ms measurement • Hypercall overhead at * GSM frame space: 4.25ms domU • Some regs. are not accessible at domU Xen summit Asia, Shanghai 10 2009-11-20
  • 11. Conclusion • Real-time possibility has been presented • RT scheduling support – How to set up scheduling parameters? • Xen modification – RT scheduling interface • Experiences – RT & GPOS – MiBench Xen summit Asia, Shanghai 11 2009-11-20