SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
COTS Moves to Multicore:
Software Considerations to Ease
the Transition To Multi-core
Chris Ault, Senior Product Manager – Wind River
Evolution to Multi-core




2   | © 2010 Wind River. All Rights Reserved.
Migrating from Single-Core to Multi-core
      Performance:
          – There may be increases
          – There may be decreases
                      • Data dependencies
                      • Race conditions




      Programming Model
          – Revisit your synchronization assumptions
          – There is shared hardware in there!
      Algorithms: need to be multi-core-aware

3   | © 2010 Wind River. All Rights Reserved.
Migrating from Single-Core to Multi-core


                                      Shared hardware on the board



                                      OS privilege levels: multiple
                                      instances of the kernel, one per core



4   | © 2010 Wind River. All Rights Reserved.
Multi-core: Shared Hardware Resources
         All cores share access to
             – I/O devices
             – Memory
             – Timers/clocks
             – Interrupt controller


                               Core                    Core                Core            Core


                                                          Interrupt Controller

                           IDE              Ethernet   Timer      Serial          Memory




5   | © 2010 Wind River. All Rights Reserved.
Privilege Modes: Single-Core

      Operating systems work in privilege modes:
                     The OS kernel itself can do anything with the hardware
                     Device drivers are more restricted
                     User applications/components are least privileged

                                                       Ring 3
                                                       Ring 2        Least Privileged
                                                       Ring 1
                                                       Ring 0
AMP




                                                       Kernel
                                                                                        Example based on Intel
                                                                                        privilege rings, other
                                                                                        processors have similar
                                                    Device Drivers                      concepts
                                                    Device Drivers
                                                                     Most Privileged
                                                    Applications

          Intel privilege rings source: Wikipedia



  6   | © 2010 Wind River. All Rights Reserved.
Privilege Modes and Multi-core
           Cores in privilege mode can control the entire hardware
           and mask interrupts
           More control may be required in a multi-core setting
           Can seriously impacts robustness

                                   Ring 3            Ring 3           Ring 3           Ring 3
                                   Ring 2            Ring 2           Ring 2           Ring 2
                                   Ring 1            Ring 1           Ring 1           Ring 1
                                   Ring 0            Ring 0           Ring 0           Ring 0
SMP




                                   Kernel            Kernel           Kernel           Kernel


                               Device Drivers     Device Drivers   Device Drivers   Device Drivers
                               Device Drivers     Device Drivers   Device Drivers   Device Drivers
                                Applications      Applications     Applications     Applications



                                 Core                Core            Core             Core



  7   | © 2010 Wind River. All Rights Reserved.
SMP Operating System
    Review Your Assumptions
         Multiple instances of tasks running at the same priority
         Lower priority tasks running concurrently with higher
         priority tasks
         Lower priority tasks may mask interrupts and starve
         higher priority tasks




8   | © 2010 Wind River. All Rights Reserved.
Algorithms, Data Parallelism
                      Traditional Single-core systems:
                          – Single instance of processing task operates on complete data
                            set
                          – Does not utilize all cpu cores




                                                     Data Set
                    Core
Idle cores




                    Core
                                                                   Data
                    Core                                        Processing

                    Core


             9   | © 2010 Wind River. All Rights Reserved.
Data Parallelism
          Multiple instances of data processing, operating on
          smaller subsets of data
          Multi-core-aware algorithms are necessary to realize
          increases in processing speed
              – Re-architect & re-write code

                            Data Subsets
        Core                                     Data Processing


        Core                                     Data Processing


        Core                                     Data Processing


        Core                                     Data Processing



10   | © 2010 Wind River. All Rights Reserved.
Complex Challenges When Migrating To
     Multi-core


                          Shared hardware on the board
                              – I/O devices, memory, interrupt controller
                          Non-parallel code needs to be re-written, re-
                          tested
                          OS privilege levels: multiple instances of the
                          kernel, one per core




11   | © 2010 Wind River. All Rights Reserved.
It’s Not All That Gloomy ….
With Embedded Virtualization …..
     Virtualize accesses to shared
     hardware
         – Shared access is controlled outside
           of your app
         – Interrupt controller, memory regions,   Apps                  Apps
                                                   Apps                   Apps
           devices
     Retain execution behavior of                   OS                    OS

     existing apps                                          Hypervisor
         – Minimize retesting/rewriting
                                                   Core 1                Core 2
     Add new functionality on
     remaining cores

12   | © 2010 Wind River. All Rights Reserved.
Cots moves to multicore: Wind River

Weitere ähnliche Inhalte

Was ist angesagt?

SAP Virtualization Week 2012 - The Lego Cloud
SAP Virtualization Week 2012 - The Lego CloudSAP Virtualization Week 2012 - The Lego Cloud
SAP Virtualization Week 2012 - The Lego Cloud
aidanshribman
 
AMD Analyst Day 2009: Rick Bergman
AMD Analyst Day 2009: Rick BergmanAMD Analyst Day 2009: Rick Bergman
AMD Analyst Day 2009: Rick Bergman
AMD
 
Sun fire x4100 m2, x4200 m2 server customer presentation
Sun fire x4100 m2, x4200 m2 server customer presentationSun fire x4100 m2, x4200 m2 server customer presentation
Sun fire x4100 m2, x4200 m2 server customer presentation
xKinAnx
 
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be SlowELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
Benjamin Zores
 

Was ist angesagt? (20)

Ite pc v40_chapter11
Ite pc v40_chapter11Ite pc v40_chapter11
Ite pc v40_chapter11
 
ARM and SoC Traning Part I -- Overview
ARM and SoC Traning Part I -- OverviewARM and SoC Traning Part I -- Overview
ARM and SoC Traning Part I -- Overview
 
Hpc Day Oct 09
Hpc Day Oct 09Hpc Day Oct 09
Hpc Day Oct 09
 
Embedded Solutions 2010: Intel Multicore by Eastronics
Embedded Solutions 2010:  Intel Multicore by Eastronics Embedded Solutions 2010:  Intel Multicore by Eastronics
Embedded Solutions 2010: Intel Multicore by Eastronics
 
Data center computing trends a survey
Data center computing trends   a surveyData center computing trends   a survey
Data center computing trends a survey
 
Linux Foundation Collaboration Summit 13 :10 years of Xen and Beyond
Linux Foundation Collaboration Summit 13 :10 years of Xen and BeyondLinux Foundation Collaboration Summit 13 :10 years of Xen and Beyond
Linux Foundation Collaboration Summit 13 :10 years of Xen and Beyond
 
Nakajima hvm-be final
Nakajima hvm-be finalNakajima hvm-be final
Nakajima hvm-be final
 
No[1][1]
No[1][1]No[1][1]
No[1][1]
 
Intel Core second generation Sandy Bridge new models and specifications
Intel Core second generation Sandy Bridge new models and specificationsIntel Core second generation Sandy Bridge new models and specifications
Intel Core second generation Sandy Bridge new models and specifications
 
Video overdds
Video overddsVideo overdds
Video overdds
 
Serverless Thin Client
Serverless Thin ClientServerless Thin Client
Serverless Thin Client
 
Ok Labs Webinar Android Migration At The Speed Of Light
Ok Labs Webinar Android Migration At The Speed Of LightOk Labs Webinar Android Migration At The Speed Of Light
Ok Labs Webinar Android Migration At The Speed Of Light
 
SAP Virtualization Week 2012 - The Lego Cloud
SAP Virtualization Week 2012 - The Lego CloudSAP Virtualization Week 2012 - The Lego Cloud
SAP Virtualization Week 2012 - The Lego Cloud
 
AMD Analyst Day 2009: Rick Bergman
AMD Analyst Day 2009: Rick BergmanAMD Analyst Day 2009: Rick Bergman
AMD Analyst Day 2009: Rick Bergman
 
E Vm Virtualization
E Vm VirtualizationE Vm Virtualization
E Vm Virtualization
 
Sun fire x4100 m2, x4200 m2 server customer presentation
Sun fire x4100 m2, x4200 m2 server customer presentationSun fire x4100 m2, x4200 m2 server customer presentation
Sun fire x4100 m2, x4200 m2 server customer presentation
 
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...
 
Dom0less - Xen Developer Summit 2019
Dom0less  - Xen Developer Summit 2019Dom0less  - Xen Developer Summit 2019
Dom0less - Xen Developer Summit 2019
 
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be SlowELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
ELCE 2011 - BZ - Embedded Linux Optimization Techniques - How Not To Be Slow
 
AMD Opteron 6200 and 4200 Series Presentation
AMD Opteron 6200 and 4200 Series PresentationAMD Opteron 6200 and 4200 Series Presentation
AMD Opteron 6200 and 4200 Series Presentation
 

Andere mochten auch

Pablo Potel tema 4 sociais
Pablo Potel tema 4 sociaisPablo Potel tema 4 sociais
Pablo Potel tema 4 sociais
pablopotel
 
Historia tema 7
Historia tema 7Historia tema 7
Historia tema 7
pablopotel
 
Pablo Potel tema 3 sociais
Pablo Potel tema 3 sociaisPablo Potel tema 3 sociais
Pablo Potel tema 3 sociais
pablopotel
 
Nathan sumner tutorial storyboard
Nathan sumner tutorial storyboardNathan sumner tutorial storyboard
Nathan sumner tutorial storyboard
Nathan Sumner
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1
katthariya42
 
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑOVARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
YessicaFrias
 
Match point, Pablo Potel
Match point, Pablo PotelMatch point, Pablo Potel
Match point, Pablo Potel
pablopotel
 

Andere mochten auch (16)

Pablo Potel tema 4 sociais
Pablo Potel tema 4 sociaisPablo Potel tema 4 sociais
Pablo Potel tema 4 sociais
 
Historia tema 7
Historia tema 7Historia tema 7
Historia tema 7
 
Cots moves to multicore: Kontron
Cots moves to multicore: KontronCots moves to multicore: Kontron
Cots moves to multicore: Kontron
 
Pablo Potel tema 3 sociais
Pablo Potel tema 3 sociaisPablo Potel tema 3 sociais
Pablo Potel tema 3 sociais
 
6.numeros complejos
6.numeros complejos6.numeros complejos
6.numeros complejos
 
Nathan sumner tutorial storyboard
Nathan sumner tutorial storyboardNathan sumner tutorial storyboard
Nathan sumner tutorial storyboard
 
งานนำเสนอ1
งานนำเสนอ1งานนำเสนอ1
งานนำเสนอ1
 
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑOVARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
VARIANTES DEL VESTUARIO TÍPICO PANAMEÑO
 
Cots moves to multicore: AMD
Cots moves to multicore: AMDCots moves to multicore: AMD
Cots moves to multicore: AMD
 
3.algebra
3.algebra3.algebra
3.algebra
 
Match point, Pablo Potel
Match point, Pablo PotelMatch point, Pablo Potel
Match point, Pablo Potel
 
Herausforderungen im globalen Bergbau und die Rolle Europas
Herausforderungen im globalen Bergbau und die Rolle EuropasHerausforderungen im globalen Bergbau und die Rolle Europas
Herausforderungen im globalen Bergbau und die Rolle Europas
 
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 1)
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 1)Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 1)
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 1)
 
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 2)
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 2)Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 2)
Deutschland 2049: Auf dem Weg zu einer nachhaltigen Rohstoffwirtschaft (Teil 2)
 
Rohstoffzertifizierung im Kontext von unternehmerischen Sorgfaltspflichten
Rohstoffzertifizierung im Kontext von unternehmerischen SorgfaltspflichtenRohstoffzertifizierung im Kontext von unternehmerischen Sorgfaltspflichten
Rohstoffzertifizierung im Kontext von unternehmerischen Sorgfaltspflichten
 
Archives à conserver Associations loi 1901 .compressed 1
Archives à conserver Associations loi 1901 .compressed 1Archives à conserver Associations loi 1901 .compressed 1
Archives à conserver Associations loi 1901 .compressed 1
 

Ähnlich wie Cots moves to multicore: Wind River

Features of modern intel microprocessors
Features of modern intel microprocessorsFeatures of modern intel microprocessors
Features of modern intel microprocessors
Krunal Siddhapathak
 
Os Madsen Block
Os Madsen BlockOs Madsen Block
Os Madsen Block
oscon2007
 
Hp All In 1
Hp All In 1Hp All In 1
Hp All In 1
RBratton
 
Virtualisation overview
Virtualisation overviewVirtualisation overview
Virtualisation overview
sagaroceanic11
 
1 introduction
1 introduction1 introduction
1 introduction
Mohd Arif
 

Ähnlich wie Cots moves to multicore: Wind River (20)

Securing Your Linux System
Securing Your Linux SystemSecuring Your Linux System
Securing Your Linux System
 
Data center Technologies
Data center TechnologiesData center Technologies
Data center Technologies
 
Features of modern intel microprocessors
Features of modern intel microprocessorsFeatures of modern intel microprocessors
Features of modern intel microprocessors
 
Develop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM BoardsDevelop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM Boards
 
Kernel and its Types
Kernel and its TypesKernel and its Types
Kernel and its Types
 
L4 Microkernel :: Design Overview
L4 Microkernel :: Design OverviewL4 Microkernel :: Design Overview
L4 Microkernel :: Design Overview
 
How to Architect a Novell Sentinel Implementation
How to Architect a Novell Sentinel ImplementationHow to Architect a Novell Sentinel Implementation
How to Architect a Novell Sentinel Implementation
 
Big Data Smarter Networks
Big Data Smarter NetworksBig Data Smarter Networks
Big Data Smarter Networks
 
Os Madsen Block
Os Madsen BlockOs Madsen Block
Os Madsen Block
 
Thu 430pm solarflare_tolley_v1[1]
Thu 430pm solarflare_tolley_v1[1]Thu 430pm solarflare_tolley_v1[1]
Thu 430pm solarflare_tolley_v1[1]
 
Engineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the FutureEngineered Systems: Oracle's Vision for the Future
Engineered Systems: Oracle's Vision for the Future
 
Hp All In 1
Hp All In 1Hp All In 1
Hp All In 1
 
Virtualisation overview
Virtualisation overviewVirtualisation overview
Virtualisation overview
 
1 introduction
1 introduction1 introduction
1 introduction
 
Run Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin OrchestrateRun Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin Orchestrate
 
Run Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin OrchestrateRun Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin Orchestrate
 
Run Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin OrchestrateRun Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin Orchestrate
 
Run Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin OrchestrateRun Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin Orchestrate
 
Run Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin OrchestrateRun Book Automation with PlateSpin Orchestrate
Run Book Automation with PlateSpin Orchestrate
 
Best Practices for IT Asset Management Using Novell ZENworks
Best Practices for IT Asset Management Using Novell ZENworksBest Practices for IT Asset Management Using Novell ZENworks
Best Practices for IT Asset Management Using Novell ZENworks
 

Cots moves to multicore: Wind River

  • 1. COTS Moves to Multicore: Software Considerations to Ease the Transition To Multi-core Chris Ault, Senior Product Manager – Wind River
  • 2. Evolution to Multi-core 2 | © 2010 Wind River. All Rights Reserved.
  • 3. Migrating from Single-Core to Multi-core Performance: – There may be increases – There may be decreases • Data dependencies • Race conditions Programming Model – Revisit your synchronization assumptions – There is shared hardware in there! Algorithms: need to be multi-core-aware 3 | © 2010 Wind River. All Rights Reserved.
  • 4. Migrating from Single-Core to Multi-core Shared hardware on the board OS privilege levels: multiple instances of the kernel, one per core 4 | © 2010 Wind River. All Rights Reserved.
  • 5. Multi-core: Shared Hardware Resources All cores share access to – I/O devices – Memory – Timers/clocks – Interrupt controller Core Core Core Core Interrupt Controller IDE Ethernet Timer Serial Memory 5 | © 2010 Wind River. All Rights Reserved.
  • 6. Privilege Modes: Single-Core Operating systems work in privilege modes: The OS kernel itself can do anything with the hardware Device drivers are more restricted User applications/components are least privileged Ring 3 Ring 2 Least Privileged Ring 1 Ring 0 AMP Kernel Example based on Intel privilege rings, other processors have similar Device Drivers concepts Device Drivers Most Privileged Applications Intel privilege rings source: Wikipedia 6 | © 2010 Wind River. All Rights Reserved.
  • 7. Privilege Modes and Multi-core Cores in privilege mode can control the entire hardware and mask interrupts More control may be required in a multi-core setting Can seriously impacts robustness Ring 3 Ring 3 Ring 3 Ring 3 Ring 2 Ring 2 Ring 2 Ring 2 Ring 1 Ring 1 Ring 1 Ring 1 Ring 0 Ring 0 Ring 0 Ring 0 SMP Kernel Kernel Kernel Kernel Device Drivers Device Drivers Device Drivers Device Drivers Device Drivers Device Drivers Device Drivers Device Drivers Applications Applications Applications Applications Core Core Core Core 7 | © 2010 Wind River. All Rights Reserved.
  • 8. SMP Operating System Review Your Assumptions Multiple instances of tasks running at the same priority Lower priority tasks running concurrently with higher priority tasks Lower priority tasks may mask interrupts and starve higher priority tasks 8 | © 2010 Wind River. All Rights Reserved.
  • 9. Algorithms, Data Parallelism Traditional Single-core systems: – Single instance of processing task operates on complete data set – Does not utilize all cpu cores Data Set Core Idle cores Core Data Core Processing Core 9 | © 2010 Wind River. All Rights Reserved.
  • 10. Data Parallelism Multiple instances of data processing, operating on smaller subsets of data Multi-core-aware algorithms are necessary to realize increases in processing speed – Re-architect & re-write code Data Subsets Core Data Processing Core Data Processing Core Data Processing Core Data Processing 10 | © 2010 Wind River. All Rights Reserved.
  • 11. Complex Challenges When Migrating To Multi-core Shared hardware on the board – I/O devices, memory, interrupt controller Non-parallel code needs to be re-written, re- tested OS privilege levels: multiple instances of the kernel, one per core 11 | © 2010 Wind River. All Rights Reserved.
  • 12. It’s Not All That Gloomy …. With Embedded Virtualization ….. Virtualize accesses to shared hardware – Shared access is controlled outside of your app – Interrupt controller, memory regions, Apps Apps Apps Apps devices Retain execution behavior of OS OS existing apps Hypervisor – Minimize retesting/rewriting Core 1 Core 2 Add new functionality on remaining cores 12 | © 2010 Wind River. All Rights Reserved.