SlideShare une entreprise Scribd logo
1  sur  25
Factored Operating Systems (fos)
The Case for a Scalable Operating System for
Multicores
David Wentzlaff and Anant Agarwal
Big Picture
Designing a new operating system targeting manycore
systems with scalability as the primary design constraint,
where space sharing replaces time sharing to increase
scalability.
Problem Statement
In the near future, a single microprocessor will contain
100’s - 1,000’s cores. The way that an operating system
manages 1,000 processors is so fundamentally different
than the manner in which it manages one or two
processors. The contemporary OS architecture should be
rethought.
Evolution of Manycore Processors
• Single stream performance may not be increasing in the future.
• Microprocessor manufacturers have turned to integrating
multiple processors onto a single die.
• Current examples:
• Intel® Xeon Phi™ Coprocessor 7120A (61 cores)
• Kalray MPPA (256 cores)
• Tilera Tile-Gx72 (72 cores)
• The number of cores will be expanding at an exponential rate
Scalability Problems of Contemporary OS
• Use of a big kernel lock
• Limits the concurrency available within kernel
• Limits the scalability
• Finer-grained locks are used
• Adding locks into an on is time consuming and error prone
• It is common to forget that a piece of data needs to be protected
• Locks can introduce circular dependencies and hence deadlocks
Locks
Scalability Problems of Contemporary OS
• Simply adjusting lock granularity is not enough
• Entire sub-systems of the OS has to be redesigned
• It is very difficult to redesign the OS with the growth rate in the
number of cores
• What is the correct lock granularity?
• too-coarse :the scalability of highly parallel system may be poor
• too-fine : the overhead of locking and unlocking
Locks
Scalability Problems of Contemporary OS
• Scaling aspects of the physical page allocation routines of Linux
was analyzed to investigate how locks scale in a contemporary OS.
• The Linux 2.6.24.7 kernel was utilized on a 16 core Intel quad-
socket quad-core system.
• The test program attempts to allocate memory as quickly as is
possible on each core.
• The OS is forced to demand allocate the memory
• Precision timers and oprofile were utilized
Case Study : Physical Page Allocator
Scalability Problems of Contemporary OS
Scalability Problems of Contemporary OS
• OS + Application code/data in cache.
• Reducing cache hit rates.
• Cache per core is smaller for multicore chips.
• In summary reduces performance.
OS and Applications : OS Locality Aliasing
Scalability Problems of Contemporary OS
• A cache tool which allows us to differentiate operating
system from application memory references is created.
• Using the tool we can evaluate cache system degradation.
• A cache model simulator is constructed to determine cache
miss rate due to the OS, the application and interference
misses caused by the OS and application contending for
cache space.
• We have used Apache2 executing on full stack Linux 2.6
Case Study : Cache Interference
Scalability Problems of Contemporary OS
Scalability Problems of Contemporary OS
Scalability Problems of Contemporary OS
• Contemporary operating systems rely on shared memory for
communication.
• Extending a single threaded operating system into a multi-
threaded kernel.
• Many current embedded multicore processors do not support a
shared memory abstraction.
• Global shared memory easily allows the introduction of data
races.
Reliance on Shared Memory
Scalability Problems of Contemporary OS
• Avoid the use of hardware locks.
• Separate the operating system execution resources from the
application execution resources.
• Reduces implicit resource sharing (Caches/TLBs).
• Utilizes the ample thread parallelism provided by multicore processors.
• Avoid global cache coherent shared memory
• Broadens applicability to architectures which don’t support shared
memory.
• Shared memory hardware may not scale to large core count.
Facts learned from case studies
Design of Factored Operating System
• Space multiplexing replaces time multiplexing.
 Scheduling becomes a layout problem not a time multiplexing problem.
 OS runs on distinct cores from applications.
 Working sets are spatially partitioned; OS does not interfere with applications
cache.
• OS is factored into function specific services.
 Each OS service is distributed into spatially distributed servers.
 Servers collaborate and communicate only via message passing.
 Servers are bound to a core.
 Applications communicate with servers via message passing.
 Servers leverage ideas (caching, replication, spatial distribution, lazy update)
from Internet servers.
Design Principles
Design of Factored Operating System
• In the near future, It is believed that the number of cores on a
single chip will be on the order of the number of active threads in
a system.
• The reliance on temporal multiplexing of resources will be
removed, thus fos replaces traditional time multiplexing with
space multiplexing.
• By scheduling resources spatially, traditional scheduling problems
are transformed into layout and partitioning problems.
Space multiplexing replaces time multiplexing
Design of Factored Operating System
• FOS contains a thin microkernel, a set of servers which together
provide system services which we call the OS layer, and applications
which utilize these services.
• The lowest level of software management comes from the
microkernel.
• A portion of the microkernel executes on each processor core.
• The microkernel responsible for;
• Provides a communication API and code spawning API to applications
and system service servers
• Maintains a name cache used internally to determine the location
(physical core) of the destination of messages.
Structures of FOS
Design of Factored Operating System
OS and application clients executing on the fos-microkernel
Design of Factored Operating System
Microkernel Messaging
• The key service provided by the fos-microkernel to microkernel
clients is that of a reliable messaging layer.
• Each fos-microkernel client can allocate a large number of
receive mailboxes via which it can receive messages.
• The fos-microkernel manages the reliable transport and
enqueuing of messages into the receiving mailbox.
• If a receive mailbox is full, the sending client send call returns an
error.
Design of Factored Operating System
Message walkthrough of an example application file system access.
Design of Factored Operating System
• FOS’s servers are inspired by Internet servers. The lowest level of
software management comes from the microkernel.
• The typical server is designed to process an inbound queue of
requests and is transaction oriented.
• A transaction consists of a request sent to a server, the server
performing some action, and a reply being sent.
• Most FOS servers are designed to use stateless protocols like many
Internet services.
Structures of a Server
Design of Factored Operating System
How scaling issues of contemporary OS mitigated?
• FOS is an inherently message passing operating system, therefore
there are no shared memory locks between cores.
• To avoid implicitly sharing hardware structures such as caches
and translation lookaside buffers (TLBs), fos executes the
operating system on separate processing cores from the
application.
• Many current multicore processors, future multicore processors,
and embedded multicores do not support shared memory
abstractions.
Conclusion
In the next decade, we will have single chips with 100 - 1,000 cores
integrated into a single piece of silicon. In this work we chronicled
some of the problems with current monolithic operating systems and
described these scaling problems. These scaling problems motivate a
rethinking of the manner in which operating systems are structured.
In order to address these problems we propose a factored operating
system (fos) which targets 1000+ core mult core systems and
replaces traditional time sharing.
Thank you
Presented By:
Indika Munaweera

Contenu connexe

Tendances

Solaris vs Linux
Solaris vs LinuxSolaris vs Linux
Solaris vs LinuxGrigale LTD
 
Oracle Solaris 11 Built for Clouds
Oracle Solaris 11 Built for Clouds Oracle Solaris 11 Built for Clouds
Oracle Solaris 11 Built for Clouds Orgad Kimchi
 
Microkernel architecture
Microkernel architecture Microkernel architecture
Microkernel architecture RQK Khan
 
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use Case
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use CaseOracle Solaris 11 as a BIG Data Platform Apache Hadoop Use Case
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use CaseOrgad Kimchi
 
Modern apps with dcos
Modern apps with dcosModern apps with dcos
Modern apps with dcosSam Chen
 
Operating system 15 micro kernel based os
Operating system 15 micro kernel based osOperating system 15 micro kernel based os
Operating system 15 micro kernel based osVaibhav Khanna
 
Operating System-Threads-Galvin
Operating System-Threads-GalvinOperating System-Threads-Galvin
Operating System-Threads-GalvinSonali Chauhan
 
Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesKris Buytaert
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinuxJainul Musani
 
WAN & LAN Cluster with Diagrams and OSI explanation
WAN & LAN Cluster with Diagrams and OSI explanationWAN & LAN Cluster with Diagrams and OSI explanation
WAN & LAN Cluster with Diagrams and OSI explanationJonathan Reid
 
Virtualization (Distributed computing)
Virtualization (Distributed computing)Virtualization (Distributed computing)
Virtualization (Distributed computing)Sri Prasanna
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating systemPrankit Mishra
 

Tendances (20)

Clustering
ClusteringClustering
Clustering
 
Solaris vs Linux
Solaris vs LinuxSolaris vs Linux
Solaris vs Linux
 
Block Level and File Level
Block Level and File LevelBlock Level and File Level
Block Level and File Level
 
Oracle Solaris 11 Built for Clouds
Oracle Solaris 11 Built for Clouds Oracle Solaris 11 Built for Clouds
Oracle Solaris 11 Built for Clouds
 
kernels
 kernels kernels
kernels
 
Microkernel architecture
Microkernel architecture Microkernel architecture
Microkernel architecture
 
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use Case
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use CaseOracle Solaris 11 as a BIG Data Platform Apache Hadoop Use Case
Oracle Solaris 11 as a BIG Data Platform Apache Hadoop Use Case
 
Modern apps with dcos
Modern apps with dcosModern apps with dcos
Modern apps with dcos
 
Operating system 15 micro kernel based os
Operating system 15 micro kernel based osOperating system 15 micro kernel based os
Operating system 15 micro kernel based os
 
Operating System-Threads-Galvin
Operating System-Threads-GalvinOperating System-Threads-Galvin
Operating System-Threads-Galvin
 
Threads
ThreadsThreads
Threads
 
Using openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual MachinesUsing openQRM to Manage Virtual Machines
Using openQRM to Manage Virtual Machines
 
OpenQrm
OpenQrmOpenQrm
OpenQrm
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinux
 
WAN & LAN Cluster with Diagrams and OSI explanation
WAN & LAN Cluster with Diagrams and OSI explanationWAN & LAN Cluster with Diagrams and OSI explanation
WAN & LAN Cluster with Diagrams and OSI explanation
 
Virtualization (Distributed computing)
Virtualization (Distributed computing)Virtualization (Distributed computing)
Virtualization (Distributed computing)
 
Cluster
ClusterCluster
Cluster
 
Kernels and its types
Kernels and its typesKernels and its types
Kernels and its types
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Ch3
Ch3Ch3
Ch3
 

En vedette

รายชื่อคณะทำงาน
รายชื่อคณะทำงานรายชื่อคณะทำงาน
รายชื่อคณะทำงานsongdet khunta
 
Reference: Mobile payment industry in china 2012-2015
Reference: Mobile payment industry in china 2012-2015 Reference: Mobile payment industry in china 2012-2015
Reference: Mobile payment industry in china 2012-2015 C. Keiko Funahashi
 
Resumes: Remove the Irrelevant
Resumes: Remove the IrrelevantResumes: Remove the Irrelevant
Resumes: Remove the IrrelevantSteve Rogers
 
The Fear of Running out of Money
The Fear of Running out of MoneyThe Fear of Running out of Money
The Fear of Running out of Moneywmgna
 
Resultados Reunión N16
Resultados Reunión N16Resultados Reunión N16
Resultados Reunión N16lucasmustaine
 
Wisdom From A Laugh 57, 58
Wisdom From A Laugh 57, 58Wisdom From A Laugh 57, 58
Wisdom From A Laugh 57, 58OH TEIK BIN
 
Wamye Be Taniisaken!
Wamye Be Taniisaken!Wamye Be Taniisaken!
Wamye Be Taniisaken!Keti Tseradze
 
Mmac power point4-17-15 - copy
Mmac power point4-17-15 - copyMmac power point4-17-15 - copy
Mmac power point4-17-15 - copymmacusa2015
 
Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Magaly Costa
 
FOOD ANYWHERE IS FOOD EVERYWHERE
FOOD ANYWHERE IS FOOD EVERYWHEREFOOD ANYWHERE IS FOOD EVERYWHERE
FOOD ANYWHERE IS FOOD EVERYWHEREWINRED AKPLAGAH
 
Khoa van-tay-kaba e10-fingerprint doorlock
Khoa van-tay-kaba e10-fingerprint doorlockKhoa van-tay-kaba e10-fingerprint doorlock
Khoa van-tay-kaba e10-fingerprint doorlockProtocol Corporation
 
BSidesNYC 2016 - An Adversarial View of SaaS Malware Sandboxes
BSidesNYC 2016 - An Adversarial View of SaaS Malware SandboxesBSidesNYC 2016 - An Adversarial View of SaaS Malware Sandboxes
BSidesNYC 2016 - An Adversarial View of SaaS Malware SandboxesJason Trost
 
Some for all rather than more for some: A myth or an opportunity lost?
Some for all rather than more for some: A myth or an opportunity lost?Some for all rather than more for some: A myth or an opportunity lost?
Some for all rather than more for some: A myth or an opportunity lost?STEPS Centre
 
2Q10 Earnings Release
2Q10 Earnings Release2Q10 Earnings Release
2Q10 Earnings ReleaseGafisa RI !
 
Xinguang Inflatable Toy Factory
Xinguang Inflatable Toy FactoryXinguang Inflatable Toy Factory
Xinguang Inflatable Toy Factoryguest47d98176
 
Data proyek pt cabaro tahun 2013 2014
Data proyek pt cabaro tahun 2013 2014Data proyek pt cabaro tahun 2013 2014
Data proyek pt cabaro tahun 2013 2014Rizki Akbar
 

En vedette (20)

รายชื่อคณะทำงาน
รายชื่อคณะทำงานรายชื่อคณะทำงาน
รายชื่อคณะทำงาน
 
Boe February 10 2009 Agenda
Boe February 10 2009 AgendaBoe February 10 2009 Agenda
Boe February 10 2009 Agenda
 
Simple instruction
Simple instructionSimple instruction
Simple instruction
 
Reference: Mobile payment industry in china 2012-2015
Reference: Mobile payment industry in china 2012-2015 Reference: Mobile payment industry in china 2012-2015
Reference: Mobile payment industry in china 2012-2015
 
Resumes: Remove the Irrelevant
Resumes: Remove the IrrelevantResumes: Remove the Irrelevant
Resumes: Remove the Irrelevant
 
Qewe
QeweQewe
Qewe
 
The Fear of Running out of Money
The Fear of Running out of MoneyThe Fear of Running out of Money
The Fear of Running out of Money
 
Resultados Reunión N16
Resultados Reunión N16Resultados Reunión N16
Resultados Reunión N16
 
Wisdom From A Laugh 57, 58
Wisdom From A Laugh 57, 58Wisdom From A Laugh 57, 58
Wisdom From A Laugh 57, 58
 
Wamye Be Taniisaken!
Wamye Be Taniisaken!Wamye Be Taniisaken!
Wamye Be Taniisaken!
 
Mmac power point4-17-15 - copy
Mmac power point4-17-15 - copyMmac power point4-17-15 - copy
Mmac power point4-17-15 - copy
 
Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01Comentriobblicomoody 130113083659-phpapp01
Comentriobblicomoody 130113083659-phpapp01
 
FOOD ANYWHERE IS FOOD EVERYWHERE
FOOD ANYWHERE IS FOOD EVERYWHEREFOOD ANYWHERE IS FOOD EVERYWHERE
FOOD ANYWHERE IS FOOD EVERYWHERE
 
Khoa van-tay-kaba e10-fingerprint doorlock
Khoa van-tay-kaba e10-fingerprint doorlockKhoa van-tay-kaba e10-fingerprint doorlock
Khoa van-tay-kaba e10-fingerprint doorlock
 
Pdf Pai
Pdf PaiPdf Pai
Pdf Pai
 
BSidesNYC 2016 - An Adversarial View of SaaS Malware Sandboxes
BSidesNYC 2016 - An Adversarial View of SaaS Malware SandboxesBSidesNYC 2016 - An Adversarial View of SaaS Malware Sandboxes
BSidesNYC 2016 - An Adversarial View of SaaS Malware Sandboxes
 
Some for all rather than more for some: A myth or an opportunity lost?
Some for all rather than more for some: A myth or an opportunity lost?Some for all rather than more for some: A myth or an opportunity lost?
Some for all rather than more for some: A myth or an opportunity lost?
 
2Q10 Earnings Release
2Q10 Earnings Release2Q10 Earnings Release
2Q10 Earnings Release
 
Xinguang Inflatable Toy Factory
Xinguang Inflatable Toy FactoryXinguang Inflatable Toy Factory
Xinguang Inflatable Toy Factory
 
Data proyek pt cabaro tahun 2013 2014
Data proyek pt cabaro tahun 2013 2014Data proyek pt cabaro tahun 2013 2014
Data proyek pt cabaro tahun 2013 2014
 

Similaire à Factored operating systems

An operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationAn operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationMohanadarshan Vivekanandalingam
 
Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Sarwan ali
 
Latest (storage IO) patterns for cloud-native applications
Latest (storage IO) patterns for cloud-native applications Latest (storage IO) patterns for cloud-native applications
Latest (storage IO) patterns for cloud-native applications OpenEBS
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3Shah Zaib
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelManoraj Pannerselum
 
Application Performance & Flexibility on Exokernel Systems paper review
Application Performance & Flexibility on Exokernel Systems paper reviewApplication Performance & Flexibility on Exokernel Systems paper review
Application Performance & Flexibility on Exokernel Systems paper reviewVimukthi Wickramasinghe
 
Data Lake and the rise of the microservices
Data Lake and the rise of the microservicesData Lake and the rise of the microservices
Data Lake and the rise of the microservicesBigstep
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4alixafar
 
HPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyHPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyPeter Clapham
 
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsF9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsNational Cheng Kung University
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.pptshreesha16
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxAmanuelmergia
 
Cosmos DB at VLDB 2019
Cosmos DB at VLDB 2019Cosmos DB at VLDB 2019
Cosmos DB at VLDB 2019Dharma Shukla
 
Introduction to multi core
Introduction to multi coreIntroduction to multi core
Introduction to multi coremukul bhardwaj
 
Multicore Computers
Multicore ComputersMulticore Computers
Multicore ComputersA B Shinde
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OSAJAL A J
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating SystemSharad Pandey
 
Multiprocessor_YChen.ppt
Multiprocessor_YChen.pptMultiprocessor_YChen.ppt
Multiprocessor_YChen.pptAberaZeleke1
 

Similaire à Factored operating systems (20)

Factored Operating Systems paper review
Factored Operating Systems paper reviewFactored Operating Systems paper review
Factored Operating Systems paper review
 
An operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementationAn operating system for multicore and clouds: mechanism and implementation
An operating system for multicore and clouds: mechanism and implementation
 
Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler
 
Latest (storage IO) patterns for cloud-native applications
Latest (storage IO) patterns for cloud-native applications Latest (storage IO) patterns for cloud-native applications
Latest (storage IO) patterns for cloud-native applications
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3
 
Symmetric multiprocessing and Microkernel
Symmetric multiprocessing and MicrokernelSymmetric multiprocessing and Microkernel
Symmetric multiprocessing and Microkernel
 
Application Performance & Flexibility on Exokernel Systems paper review
Application Performance & Flexibility on Exokernel Systems paper reviewApplication Performance & Flexibility on Exokernel Systems paper review
Application Performance & Flexibility on Exokernel Systems paper review
 
Data Lake and the rise of the microservices
Data Lake and the rise of the microservicesData Lake and the rise of the microservices
Data Lake and the rise of the microservices
 
Apos week 1 4
Apos week 1   4Apos week 1   4
Apos week 1 4
 
HPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journeyHPC and cloud distributed computing, as a journey
HPC and cloud distributed computing, as a journey
 
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded SystemsF9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
F9: A Secure and Efficient Microkernel Built for Deeply Embedded Systems
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
 
ch1.ppt
ch1.pptch1.ppt
ch1.ppt
 
Cosmos DB at VLDB 2019
Cosmos DB at VLDB 2019Cosmos DB at VLDB 2019
Cosmos DB at VLDB 2019
 
Introduction to multi core
Introduction to multi coreIntroduction to multi core
Introduction to multi core
 
Multicore Computers
Multicore ComputersMulticore Computers
Multicore Computers
 
EMBEDDED OS
EMBEDDED OSEMBEDDED OS
EMBEDDED OS
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Multiprocessor_YChen.ppt
Multiprocessor_YChen.pptMultiprocessor_YChen.ppt
Multiprocessor_YChen.ppt
 

Dernier

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 

Dernier (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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
 

Factored operating systems

  • 1. Factored Operating Systems (fos) The Case for a Scalable Operating System for Multicores David Wentzlaff and Anant Agarwal
  • 2. Big Picture Designing a new operating system targeting manycore systems with scalability as the primary design constraint, where space sharing replaces time sharing to increase scalability.
  • 3. Problem Statement In the near future, a single microprocessor will contain 100’s - 1,000’s cores. The way that an operating system manages 1,000 processors is so fundamentally different than the manner in which it manages one or two processors. The contemporary OS architecture should be rethought.
  • 4. Evolution of Manycore Processors • Single stream performance may not be increasing in the future. • Microprocessor manufacturers have turned to integrating multiple processors onto a single die. • Current examples: • Intel® Xeon Phi™ Coprocessor 7120A (61 cores) • Kalray MPPA (256 cores) • Tilera Tile-Gx72 (72 cores) • The number of cores will be expanding at an exponential rate
  • 5. Scalability Problems of Contemporary OS • Use of a big kernel lock • Limits the concurrency available within kernel • Limits the scalability • Finer-grained locks are used • Adding locks into an on is time consuming and error prone • It is common to forget that a piece of data needs to be protected • Locks can introduce circular dependencies and hence deadlocks Locks
  • 6. Scalability Problems of Contemporary OS • Simply adjusting lock granularity is not enough • Entire sub-systems of the OS has to be redesigned • It is very difficult to redesign the OS with the growth rate in the number of cores • What is the correct lock granularity? • too-coarse :the scalability of highly parallel system may be poor • too-fine : the overhead of locking and unlocking Locks
  • 7. Scalability Problems of Contemporary OS • Scaling aspects of the physical page allocation routines of Linux was analyzed to investigate how locks scale in a contemporary OS. • The Linux 2.6.24.7 kernel was utilized on a 16 core Intel quad- socket quad-core system. • The test program attempts to allocate memory as quickly as is possible on each core. • The OS is forced to demand allocate the memory • Precision timers and oprofile were utilized Case Study : Physical Page Allocator
  • 8. Scalability Problems of Contemporary OS
  • 9. Scalability Problems of Contemporary OS • OS + Application code/data in cache. • Reducing cache hit rates. • Cache per core is smaller for multicore chips. • In summary reduces performance. OS and Applications : OS Locality Aliasing
  • 10. Scalability Problems of Contemporary OS • A cache tool which allows us to differentiate operating system from application memory references is created. • Using the tool we can evaluate cache system degradation. • A cache model simulator is constructed to determine cache miss rate due to the OS, the application and interference misses caused by the OS and application contending for cache space. • We have used Apache2 executing on full stack Linux 2.6 Case Study : Cache Interference
  • 11. Scalability Problems of Contemporary OS
  • 12. Scalability Problems of Contemporary OS
  • 13. Scalability Problems of Contemporary OS • Contemporary operating systems rely on shared memory for communication. • Extending a single threaded operating system into a multi- threaded kernel. • Many current embedded multicore processors do not support a shared memory abstraction. • Global shared memory easily allows the introduction of data races. Reliance on Shared Memory
  • 14. Scalability Problems of Contemporary OS • Avoid the use of hardware locks. • Separate the operating system execution resources from the application execution resources. • Reduces implicit resource sharing (Caches/TLBs). • Utilizes the ample thread parallelism provided by multicore processors. • Avoid global cache coherent shared memory • Broadens applicability to architectures which don’t support shared memory. • Shared memory hardware may not scale to large core count. Facts learned from case studies
  • 15. Design of Factored Operating System • Space multiplexing replaces time multiplexing.  Scheduling becomes a layout problem not a time multiplexing problem.  OS runs on distinct cores from applications.  Working sets are spatially partitioned; OS does not interfere with applications cache. • OS is factored into function specific services.  Each OS service is distributed into spatially distributed servers.  Servers collaborate and communicate only via message passing.  Servers are bound to a core.  Applications communicate with servers via message passing.  Servers leverage ideas (caching, replication, spatial distribution, lazy update) from Internet servers. Design Principles
  • 16. Design of Factored Operating System • In the near future, It is believed that the number of cores on a single chip will be on the order of the number of active threads in a system. • The reliance on temporal multiplexing of resources will be removed, thus fos replaces traditional time multiplexing with space multiplexing. • By scheduling resources spatially, traditional scheduling problems are transformed into layout and partitioning problems. Space multiplexing replaces time multiplexing
  • 17. Design of Factored Operating System • FOS contains a thin microkernel, a set of servers which together provide system services which we call the OS layer, and applications which utilize these services. • The lowest level of software management comes from the microkernel. • A portion of the microkernel executes on each processor core. • The microkernel responsible for; • Provides a communication API and code spawning API to applications and system service servers • Maintains a name cache used internally to determine the location (physical core) of the destination of messages. Structures of FOS
  • 18. Design of Factored Operating System OS and application clients executing on the fos-microkernel
  • 19. Design of Factored Operating System Microkernel Messaging • The key service provided by the fos-microkernel to microkernel clients is that of a reliable messaging layer. • Each fos-microkernel client can allocate a large number of receive mailboxes via which it can receive messages. • The fos-microkernel manages the reliable transport and enqueuing of messages into the receiving mailbox. • If a receive mailbox is full, the sending client send call returns an error.
  • 20. Design of Factored Operating System Message walkthrough of an example application file system access.
  • 21. Design of Factored Operating System • FOS’s servers are inspired by Internet servers. The lowest level of software management comes from the microkernel. • The typical server is designed to process an inbound queue of requests and is transaction oriented. • A transaction consists of a request sent to a server, the server performing some action, and a reply being sent. • Most FOS servers are designed to use stateless protocols like many Internet services. Structures of a Server
  • 22. Design of Factored Operating System
  • 23. How scaling issues of contemporary OS mitigated? • FOS is an inherently message passing operating system, therefore there are no shared memory locks between cores. • To avoid implicitly sharing hardware structures such as caches and translation lookaside buffers (TLBs), fos executes the operating system on separate processing cores from the application. • Many current multicore processors, future multicore processors, and embedded multicores do not support shared memory abstractions.
  • 24. Conclusion In the next decade, we will have single chips with 100 - 1,000 cores integrated into a single piece of silicon. In this work we chronicled some of the problems with current monolithic operating systems and described these scaling problems. These scaling problems motivate a rethinking of the manner in which operating systems are structured. In order to address these problems we propose a factored operating system (fos) which targets 1000+ core mult core systems and replaces traditional time sharing.