1 / 21

CS 5204 Operating Systems

CS 5204 Operating Systems. Kernel Structures. Godmar Back. Plan for Today. Brief overview of kernel systems research from 1980-today. A (somewhat selective) History of OS/Kernels. 70s: Unix (AT&T and BSD) Plus many vendor-specific OSes 80s: Mach (followed Accent)

agathag
Download Presentation

CS 5204 Operating Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 5204Operating Systems Kernel Structures Godmar Back

  2. Plan for Today • Brief overview of kernel systems research from 1980-today CS 5204 Fall 2013

  3. A (somewhat selective) History of OS/Kernels • 70s: Unix (AT&T and BSD) • Plus many vendor-specific OSes • 80s: Mach (followed Accent) • Pioneered microkernel idea • 90s: • Tanenbaumvs Torvalds debate • Engineering of Windows NT & contemporary Unixes • In parallel: decade of “Extensible OS” Research • 00s: • Virtual machine monitors • Virtual machines • Security Kernels • Multicore Kernel structures CS 5204 Fall 2013

  4. CS 5204 Fall 2013 Source: http://upload.wikimedia.org/wikipedia/commons/5/50/Unix_history-simple.png

  5. Cheriton 1994 The Red Line • Separates user mode & kernel mode • Q: what should go above the red line, and what should stay below CS 5204 Fall 2013

  6. Microkernels Source: Tanenbaum Distributed Systems… CS 5204 Fall 2013

  7. Microkernels (II) • Idea of “OS personality” • Provided on top of -Kernel using servers • Noteworthy projects: • L4 microkernel [L4] • Focus on making message-passing fast • Fluke • Industry: • NT, OSX – started with pure -Kernel approach, moved away – mostly for performance reasons CS 5204 Fall 2013

  8. The Torvalds/Tanenbaum Debate • Should you develop a new OS as a monolithic kernel in 1992? • Questions [Torvalds/Tanenbaum] • Microkernel vs. monolithic • How important is OS structure? • Portability • What defines portability? • Free Software • How important is the development process? CS 5204 Fall 2013

  9. Extensible OS Research in 90s • Idea: Extensibility, extensibility, extensibility • Number of projects explored different approaches • Exokernel (MIT) • SPIN (UW) • VINO (Harvard) • Fluke/OSKit (Utah) • Scout (Arizona) • L4 (Liedtke/IBM) • Nemesis (U Cambridge) CS 5204 Fall 2013

  10. Exokernel: exterminate all OS abstractions • The defining tragedy of the operating systems community has been the definition of an operating system as software that both multiplexes and abstracts physical resources. The view that the OS should abstract the hardware is based on the assumption that it is possible both to define abstractions that are appropriate for all areas and to implement them to perform efficiently in all situations. We believe that the fallacy of this quixotic goal is self-evident, and that the OS problems of the last two decades can be traced back to it. The solution we propose is simple: complete elimination of OS abstractions by lowering the operating system interface to the hardware level. • More info here. CS 5204 Fall 2013

  11. SPIN • Protection is a software issue • First use of a type-safe language to build a kernel (Modula-3) • Idea: applications can download code into the kernel safely Source: Bershad et al : “Language Support for Extensible Operating Systems” CS 5204 Fall 2013

  12. SPIN Structure CS 5204 Fall 2013

  13. SPIN (cont’d) • How to manage extensions • What if they run for too long? • How to unload extensions? • How to manage their resources (memory, etc.)? • How to foresee what extensions might want to extend? • Size of exposed interface • How to arbitrate among extensions? • Type-safe language issues • garbage collection • language domain crossings (M3 to C and vice versa) CS 5204 Fall 2013

  14. Language-based OS • If protection is a software issue, why not do away with hardware protection altogether? • Inferno OS system by Bell Labs • Limbo: typesafe language • DIS: virtual machine • Early aspirations of Java • A Java Operating System written in Java • Microsoft Singularity Project CS 5204 Fall 2013

  15. Java Operating Systems • Two views: • A fully-fledged operating system written in Java that runs Java applications. • Sun’s first JavaOS, Squawk JVM • A JVM that provides an OS-like environment for Java applications. The so enriched JVM can run on top of any OS. • J-Kernel, MVM, KaffeOS CS 5204 Fall 2013

  16. VINO • Idea: extensions (“grafts”) are “safe overrides” for functionality at (C-) function level • Use a transaction mechanism to recover from misbehaved extensions • Full transaction mechanism inside the kernel • Based on monitoring load/stores from C++ programs CS 5204 Fall 2013

  17. Fluke • Microkernels meet recursive virtual machines • Idea: processes could create whatever abstractions they wished for their descendants CS 5204 Fall 2013

  18. OSKit • Idea: build OS you want from components CS 5204 Fall 2013

  19. IO-Lite/Flash-Lite • Opposing View: Druschel et al HotOS’97 • Extensible Kernels are Leading OS Research Astray • Extensibility mostly busy solving problems it created • Instead, develop, test, decide, and integrate into commodity OS • Case in point: IO-Lite & Flash server • Zero copy I/O system & event-based webserver • Applications control I/O buffer inside kernel CS 5204 Fall 2013

  20. Discussion • What did we learn from extensible OS research? • Is extensibility as important as claimed? • If not, what is? • Is developing entire new OS still feasible today in an academic environment? • Is doing so necessary for exciting systems research? CS 5204 Fall 2013

  21. Kernel Research in ‘00 • Asbestos/Histar • Information Flow & MAC, Bell-LaPadula Model • Device Driver Reliability • Nooks, SUD, MicroDrivers • Kernel verification • FlexSC • Multicore OS • Barrelfish, Corey CS 5204 Fall 2013

More Related