2
Most read
8
Most read
9
Most read
Scheduler Activations

With some slides modified from
Raymond Namyst, U. Bordeaux
User-level Threads
User Mode




        Scheduler     Scheduler   Scheduler




         Process A   Process B    Process C




                     Scheduler
Kernel Mode
User-level Threads
Fast thread management (creation, deletion,
switching, synchronisation…)
Blocking blocks all threads in a process
– Syscalls
– Page faults
No thread-level parallelism on multiprocessor
Kernel-Level Threads
User Mode




         Process A   Process B   Process C




                     Scheduler
Kernel Mode
Kernel-level Threads
Slow thread management (creation, deletion,
switching, synchronisation…)
• System calls
Blocking blocks only the appropriate thread in
a process
Thread-level parallelism on multiprocessor
Hybrid Multithreading
User Mode




        Scheduler     Scheduler   Scheduler




         Process A   Process B    Process C




                     Scheduler
Kernel Mode
Hybrid Multithreading
Can get real thread parallelism on
multiprocessor
Blocking still a problem!!!
Scheduler Activations
• First proposed by [Anderson et al. 91]
• Idea: Both schedulers co-operate
      • User scheduler uses system calls
      • Kernel scheduler uses upcalls!
• Two important concepts
   – Upcalls
      • Notify the user-level of kernel scheduling events
   – Activations
      • A new structure to support upcalls and execution
          – approximately a kernel thread
      • As many running activations as (allocated) processors
      • Kernel controls activation creation and destruction
Scheduler Activations
• Instead of         CPU time wasted
                syscall
User Space
                    I/O request     interrupt
Kernel Space

Hardware



• …rather use the following scheme:
                          CPU used
User Space
                           upcall               upcall
Kernel Space

Hardware
Upcalls to User-level
            scheduler
• New
  – Allocated a new virtual CPU
  – Can schedule a user-level thread
• Preempted
  – Deallocated a virtual CPU
  – Can schedule one less thread
• Blocked
  – Notifies thread has blocked
  – Can schedule another user-level thread
• Unblocked
  – Notifies a thread has become runnable
  – Must decided to continue current or unblocked thread
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                User scheduler
Working principle
• Blocking syscall scenario on 2 processors
                    Process




                      new
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                     new
Working principle
• Blocking syscall scenario on 2 processors
                   Process
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                     preempt




                               Preempt
Working principle
• Blocking syscall scenario on 2 processors
                   Process
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                       Blocking syscall
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                    New + blocked
Working principle
• Blocking syscall scenario on 2 processors
                   Process




                             I/O completion
Working principle
• Blocking syscall scenario on 2 processors
                    Process




                       Unblocked
Working principle
• Blocking syscall scenario on 2 processors
                   Process
Scheduler Activations
• Thread management at user-level
  – Fast
• Real thread parallelism via activations
  – Number of activations (virtual CPU) can equal
    CPUs
• Blocking (syscall or page fault) creates new
  activation
  – User-level scheduler can pick new runnable
    thread.
• Fewer stacks in kernel
  – Blocked activations + number of virtual CPUs
Adoption
• Adopters
  – BSD “Kernel Scheduled Entities”
  – K42
  – Digital UNIX
  – Solaris
  – Mach
• Linux -> kernel threads

More Related Content

PPTX
03. non-functional-attributes-introduction-4-slides
PDF
Inter Process Communication
PPTX
cloud computing, Principle and Paradigms: 1 introdution
PPTX
Fundamentals of Servers, server storage and server security.
PPT
Vitualization - Công nghệ ảo hóa.
PPT
NUMA overview
PDF
Topologies
PPT
Red hat linux 9 ppt2003
03. non-functional-attributes-introduction-4-slides
Inter Process Communication
cloud computing, Principle and Paradigms: 1 introdution
Fundamentals of Servers, server storage and server security.
Vitualization - Công nghệ ảo hóa.
NUMA overview
Topologies
Red hat linux 9 ppt2003

What's hot (20)

PPT
RedHat Linux
 
PDF
Inside the Volta GPU Architecture and CUDA 9
PPTX
File System Interface
PPT
Real-Time Operating Systems
PPTX
PDF
Heterogeneous Systems Architecture: The Next Area of Computing Innovation
 
DOC
Cloud computing lab experiments
PPT
Fault Tolerance System
PDF
Configuring the Apache Web Server
PDF
Emc san-overview-presentation
PDF
Cloud & Data Center Networking
PPTX
SUN Network File system - Design, Implementation and Experience
PPTX
Operating System and Building Blocks
PDF
LCA13: Xen on ARM
PPTX
Flynn's classification
PPTX
Computer system architecture
PPTX
types of operating system
PPTX
Embedded Systems Overview
PPTX
Virtual machine
PPTX
virtualization and hypervisors
RedHat Linux
 
Inside the Volta GPU Architecture and CUDA 9
File System Interface
Real-Time Operating Systems
Heterogeneous Systems Architecture: The Next Area of Computing Innovation
 
Cloud computing lab experiments
Fault Tolerance System
Configuring the Apache Web Server
Emc san-overview-presentation
Cloud & Data Center Networking
SUN Network File system - Design, Implementation and Experience
Operating System and Building Blocks
LCA13: Xen on ARM
Flynn's classification
Computer system architecture
types of operating system
Embedded Systems Overview
Virtual machine
virtualization and hypervisors
Ad

Viewers also liked (20)

PPT
Scheduler Activations - Effective Kernel Support for the User-Level Managemen...
PPTX
Kernel (computing)
PPT
Arrangeren van-leermiddelen: keuzes in het leerplan
PPSX
আত্ম সচেনতা অর্জনের সূত্র
PDF
Оборот 2013 // Как освежить отношения с клиентами ? // OZON.ru (Кира Жесткова)
PPT
Social Media for NFP
PDF
CARTA FESTES MARROCS 2015
PPT
Ponencia smagua zaragoza marzo 2016
PDF
Tele4653 l5
PPT
dMT SPC Presentation Rotating Equip.-E
PPTX
Prof. Tara Dean on allergies - Cafe Scientifique Isle of Wight
PDF
Lect15
PPS
Era town
PPTX
Slide bio3397
PDF
Memoràndum 2013 maquetat
PPT
2n taller iloquid qualitat - diba - 06-06-12
PPTX
My Resume Presentation
PPT
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
PDF
РИФ+КИБ 2013 // Как создать персонализированный маркетинг? // OZON.ru (Кира Ж...
PDF
Kamaroninfo núm 23 març 1998
Scheduler Activations - Effective Kernel Support for the User-Level Managemen...
Kernel (computing)
Arrangeren van-leermiddelen: keuzes in het leerplan
আত্ম সচেনতা অর্জনের সূত্র
Оборот 2013 // Как освежить отношения с клиентами ? // OZON.ru (Кира Жесткова)
Social Media for NFP
CARTA FESTES MARROCS 2015
Ponencia smagua zaragoza marzo 2016
Tele4653 l5
dMT SPC Presentation Rotating Equip.-E
Prof. Tara Dean on allergies - Cafe Scientifique Isle of Wight
Lect15
Era town
Slide bio3397
Memoràndum 2013 maquetat
2n taller iloquid qualitat - diba - 06-06-12
My Resume Presentation
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
РИФ+КИБ 2013 // Как создать персонализированный маркетинг? // OZON.ru (Кира Ж...
Kamaroninfo núm 23 març 1998
Ad

Similar to Scheduler activations (20)

PDF
Introducing KMux - The Kernel Multiplexer
PDF
Lect06
PDF
AOS Lab 6: Scheduling
PDF
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
PDF
Kubernetes Walk Through from Technical View
PDF
Preventing and Resolving MySQL Downtime
PPTX
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
PPTX
Neutron scaling
PDF
New hope is comming? Project Loom.pdf
PDF
Seek and Destroy Kafka Under Replication
PDF
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
PDF
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
PPT
2010 12 mysql_clusteroverview
PPTX
HyperLoop: Group-Based NIC-Offloading to Accelerate Replicated Transactions i...
PPT
Cloud computing virtualization differences
PPT
Cloud computing virtualization differences
PDF
AOS Lab 1: Hello, Linux!
PDF
Chef cookbooks for OpenStack HA
PPTX
Project Slides for Website 2020-22.pptx
PDF
Docker, Monitoring and SLURM Specific Visualisations
Introducing KMux - The Kernel Multiplexer
Lect06
AOS Lab 6: Scheduling
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
Kubernetes Walk Through from Technical View
Preventing and Resolving MySQL Downtime
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Neutron scaling
New hope is comming? Project Loom.pdf
Seek and Destroy Kafka Under Replication
Training Slides: Intermediate 202: Performing Cluster Maintenance with Zero-D...
Performance Scenario: Diagnosing and resolving sudden slow down on two node RAC
2010 12 mysql_clusteroverview
HyperLoop: Group-Based NIC-Offloading to Accelerate Replicated Transactions i...
Cloud computing virtualization differences
Cloud computing virtualization differences
AOS Lab 1: Hello, Linux!
Chef cookbooks for OpenStack HA
Project Slides for Website 2020-22.pptx
Docker, Monitoring and SLURM Specific Visualisations

More from Vin Voro (20)

PDF
Tele3113 tut6
PDF
Tele3113 tut5
PDF
Tele3113 tut4
PDF
Tele3113 tut1
PDF
Tele3113 tut3
PDF
Tele3113 tut2
PDF
Tele3113 wk11tue
PDF
Tele3113 wk10wed
PDF
Tele3113 wk10tue
PDF
Tele3113 wk11wed
PDF
Tele3113 wk7wed
PDF
Tele3113 wk9tue
PDF
Tele3113 wk8wed
PDF
Tele3113 wk9wed
PDF
Tele3113 wk7wed
PDF
Tele3113 wk7wed
PDF
Tele3113 wk7tue
PDF
Tele3113 wk6wed
PDF
Tele3113 wk6tue
PDF
Tele3113 wk5tue
Tele3113 tut6
Tele3113 tut5
Tele3113 tut4
Tele3113 tut1
Tele3113 tut3
Tele3113 tut2
Tele3113 wk11tue
Tele3113 wk10wed
Tele3113 wk10tue
Tele3113 wk11wed
Tele3113 wk7wed
Tele3113 wk9tue
Tele3113 wk8wed
Tele3113 wk9wed
Tele3113 wk7wed
Tele3113 wk7wed
Tele3113 wk7tue
Tele3113 wk6wed
Tele3113 wk6tue
Tele3113 wk5tue

Recently uploaded (20)

PPTX
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
PDF
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
PDF
African Communication Research: A review
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Laparoscopic Colorectal Surgery at WLH Hospital
PDF
Disorder of Endocrine system (1).pdfyyhyyyy
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PDF
M.Tech in Aerospace Engineering | BIT Mesra
PDF
Compact First Student's Book Cambridge Official
PPTX
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
PDF
Civil Department's presentation Your score increases as you pick a category
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI Syllabus.pdf
PDF
Hospital Case Study .architecture design
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Nurlina - Urban Planner Portfolio (english ver)
PDF
Controlled Drug Delivery System-NDDS UNIT-1 B.Pharm 7th sem
PDF
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
Integrated Management of Neonatal and Childhood Illnesses (IMNCI) – Unit IV |...
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
African Communication Research: A review
Environmental Education MCQ BD2EE - Share Source.pdf
Laparoscopic Colorectal Surgery at WLH Hospital
Disorder of Endocrine system (1).pdfyyhyyyy
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
M.Tech in Aerospace Engineering | BIT Mesra
Compact First Student's Book Cambridge Official
BSCE 2 NIGHT (CHAPTER 2) just cases.pptx
Civil Department's presentation Your score increases as you pick a category
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI Syllabus.pdf
Hospital Case Study .architecture design
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Nurlina - Urban Planner Portfolio (english ver)
Controlled Drug Delivery System-NDDS UNIT-1 B.Pharm 7th sem
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
The TKT Course. Modules 1, 2, 3.for self study
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
Everyday Spelling and Grammar by Kathi Wyldeck

Scheduler activations