1 / 24

Container-based OS Virtualization

Container-based OS Virtualization. A Scalable, High-performance Alternative to Hypervisors Stephen Soltesz, Herbert Pötzl, Marc Fiuczynski, Andy Bavier & Larry Peterson. PlanetLab Usage. Number of Active VMs. Number of Resident VMs. 100. 30. 25. 80. 20. 60. 15. 40. 10. 20. 5. 0.

cai
Download Presentation

Container-based OS Virtualization

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. Container-based OS Virtualization A Scalable, High-performance Alternative to Hypervisors Stephen Soltesz, Herbert Pötzl, Marc Fiuczynski, Andy Bavier & Larry Peterson

  2. PlanetLab Usage Number of Active VMs Number of Resident VMs 100 30 25 80 20 60 15 40 10 20 5 0 0 • Typical Node (2.4GHz, 1GB, 100-200GB disk) • ~250-300 configured VM file systems on disk • 40-90 resident VMs with ≥ 1 process • 5-20 active VMs using CPU

  3. What is the Trade-Off?

  4. Usage Scenarios • Efficiency -> Performance • IT Data Centers • Grid, HPC Clusters • Efficiency -> Low-overhead • Linux-based Phone • OLPC Laptops • Enhanced WIFI Routers • Efficiency -> Scalability • Web Hosting • Amazon EC2 • PlanetLab, VINI Network Research

  5. Presentation Outline • Why Container-based OS Virtualization? • High-level Design • Hypervisor • Container-based OS • Guest VM Environment • Xen • VServer • Evaluation

  6. Hypervisor Design Driver Domain

  7. Container Design VM1 VM2 VMn

  8. Feature Comparison

  9. Presentation Outline • Why Container-based OS Virtualization? • High-level Design • Hypervisor • Container-based OS • Guest VM Environment • Xen • VServer • Evaluation

  10. Xen 3.0 Guest VM • Security Isolation • Hypervisor • Access Physical Level • PCI Address • Virtual Memory • Resource Control • Hypervisor • Allocate Resources • Schedule VMs • I/O Path • Process to Guest OS • Guest OS to IDD • Schedules All VMs • Guest VM & IDD Scheduled • Two levels scheduling in Guest • Resource Control • Driver Domain • Map Virtual Devices • CFQ for disk • HTB for network

  11. VServer 2.0 Guest VM • Resource Control • Map Container to • HTB for Network • CFQ for Disk • Logical Limits • Processes • Open FD • Memory Locks • I/O Path • Process to COS • Scheduler • Single Level • Token Bucket Filter • preserves O(1) scheduler • Security Isolation • Access to Logical Objects • Context ID Filter • User IDs • SHM & IPC address • File system Barriers • Optimizations • File-level Copy-on-write

  12. 8,700 lines across 350+ files Leverage existing implementations Applied to Logical Resources Not architecture specific MIPS, ARM, SPARC, etc.. Low Overhead VServer Implementation

  13. Guest Comparison

  14. Configuration • Hardware • System Software

  15. Network I/O: TCP Receive

  16. Disk I/O: Write

  17. CPU & Memory Performance

  18. Performance at Scale - UP

  19. Performance at Scale - SMP

  20. Conclusion • Virtualization for Manageability • Variety of current Implementations • No one-size-fits-all solution • Hypervisors offer compelling features • Containers are built on well understood technology • Isolation & Efficiency Trade-off • When trade-off is possible… • VServer as alternative • Native Efficiency I/O • Low-Overhead Implementation • More Scalable

  21. Questions Thank you

  22. Speculation on Future Trends • Future improvements to both platforms • COS-Linux + Linux-as-Hypervisor (KVM)

  23. Performance, Lower-Overhead, Scalability Conclusion

More Related