MultiLanes: Providing Virtualized Storage for OS-level Virtualization on Many Cores

Similar documents
MultiLanes: Providing Virtualized Storage for OS-level Virtualization on Many Cores

SpanFS: A Scalable File System on Fast Storage Devices

Nested Virtualization and Server Consolidation

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

Course Review. Hui Lu

Mission-Critical Enterprise Linux. April 17, 2006

Designing a True Direct-Access File System with DevFS

Duy Le (Dan) - The College of William and Mary Hai Huang - IBM T. J. Watson Research Center Haining Wang - The College of William and Mary

File System Internals. Jo, Heeseung

Performance Evaluation of Virtualization Technologies

Aerie: Flexible File-System Interfaces to Storage-Class Memory [Eurosys 2014] Operating System Design Yongju Song

Soft Updates Made Simple and Fast on Non-volatile Memory

Virtualization, Xen and Denali

Spring 2017 :: CSE 506. Introduction to. Virtual Machines. Nima Honarmand

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

Multiprocessor Scheduling. Multiprocessor Scheduling

Todd Deshane, Ph.D. Student, Clarkson University Xen Summit, June 23-24, 2008, Boston, MA, USA.

Arrakis: The Operating System is the Control Plane

Real-Time Cache Management for Multi-Core Virtualization

Computer Systems Laboratory Sungkyunkwan University

CS 550 Operating Systems Spring File System

Yiying Zhang, Leo Prasath Arulraj, Andrea C. Arpaci-Dusseau, and Remzi H. Arpaci-Dusseau. University of Wisconsin - Madison

CFS-v: I/O Demand-driven VM Scheduler in KVM

Operating Systems Design Exam 2 Review: Spring 2011

Difference Engine: Harnessing Memory Redundancy in Virtual Machines (D. Gupta et all) Presented by: Konrad Go uchowski

CS 416: Opera-ng Systems Design March 23, 2012

Exporting Kernel Page Caching

Performance & Scalability Testing in Virtual Environment Hemant Gaidhani, Senior Technical Marketing Manager, VMware

Virtual Machines Disco and Xen (Lecture 10, cs262a) Ion Stoica & Ali Ghodsi UC Berkeley February 26, 2018

Understanding Manycore Scalability of File Systems. Changwoo Min, Sanidhya Kashyap, Steffen Maass Woonhak Kang, and Taesoo Kim

Emulating Goliath Storage Systems with David

Cost-Effective Virtual Petabytes Storage Pools using MARS. FrOSCon 2017 Presentation by Thomas Schöbel-Theuer

Falcon: Scaling IO Performance in Multi-SSD Volumes. The George Washington University

Scotch: Combining Software Guard Extensions and System Management Mode to Monitor Cloud Resource Usage

INTEGRATING HPFS IN A CLOUD COMPUTING ENVIRONMENT

TxFS: Leveraging File-System Crash Consistency to Provide ACID Transactions

File Systems. Kartik Gopalan. Chapter 4 From Tanenbaum s Modern Operating System

Module 1: Virtualization. Types of Interfaces

CS 350 Winter 2011 Current Topics: Virtual Machines + Solid State Drives

Virtualization. Pradipta De

A Comparative Experimental Study of Parallel File Systems for Large-Scale Data Processing

Virtualization and Performance

VirtuOS: an operating system with kernel virtualization. Ruslan Nikolaev, Godmar Back Virginia Tech

Tackling the Management Challenges of Server Consolidation on Multi-core System

SAY-Go: Towards Transparent and Seamless Storage-As-You-Go with Persistent Memory

OS Virtualization. Linux Containers (LXC)

QuartzV: Bringing Quality of Time to Virtual Machines

VM Migration, Containers (Lecture 12, cs262a)

Virtualization Overview NSRC

SUPER CLOUD STORAGE MEASUREMENT STUDY AND OPTIMIZATION

COMPUTER ARCHITECTURE. Virtualization and Memory Hierarchy

File System Internals. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

OPERATING SYSTEM. PREPARED BY : DHAVAL R. PATEL Page 1. Q.1 Explain Memory

Authors : Ruslan Nikolaev Godmar Back Presented in SOSP 13 on Nov 3-6, 2013

SANDPIPER: BLACK-BOX AND GRAY-BOX STRATEGIES FOR VIRTUAL MACHINE MIGRATION

Rethink the Sync 황인중, 강윤지, 곽현호. Embedded Software Lab. Embedded Software Lab.

Da-Wei Chang CSIE.NCKU. Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University

Unioning of the Buffer Cache and Journaling Layers with Non-volatile Memory

Fairness Issues in Software Virtual Routers

Strata: A Cross Media File System. Youngjin Kwon, Henrique Fingler, Tyler Hunt, Simon Peter, Emmett Witchel, Thomas Anderson

Presented by: Nafiseh Mahmoudi Spring 2017

Distributed File Systems Issues. NFS (Network File System) AFS: Namespace. The Andrew File System (AFS) Operating Systems 11/19/2012 CSC 256/456 1

Preserving I/O Prioritization in Virtualized OSes

DenseFS: A Cache-Compact Filesystem

Virtualization. Operating Systems, 2016, Meni Adler, Danny Hendler & Amnon Meisels

Virtualization and memory hierarchy

CSC501 Operating Systems Principles. OS Structure

SRM-Buffer: An OS Buffer Management SRM-Buffer: An OS Buffer Management Technique toprevent Last Level Cache from Thrashing in Multicores

Big and Fast. Anti-Caching in OLTP Systems. Justin DeBrabant

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Distributed caching for cloud computing

Originally prepared by Lehigh graduate Greg Bosch; last modified April 2016 by B. Davison

I/O Stack Optimization for Smartphones

W H I T E P A P E R. Comparison of Storage Protocol Performance in VMware vsphere 4

Chapter 5 C. Virtual machines

CSC 5930/9010 Cloud S & P: Virtualization

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Virtualization. ...or how adding another layer of abstraction is changing the world. CIS 399: Unix Skills University of Pennsylvania.

NeSC: Self-Virtualizing Nested Storage Controller

Remote Software Service for Mobile Clients leveraging Cloud Computing

Task Scheduling of Real- Time Media Processing with Hardware-Assisted Virtualization Heikki Holopainen

Reducing CPU and network overhead for small I/O requests in network storage protocols over raw Ethernet

Moneta: A High-Performance Storage Architecture for Next-generation, Non-volatile Memories

Parallels Virtuozzo Containers

CSE 120 Principles of Operating Systems

Virtual Leverage: Server Consolidation in Open Source Environments. Margaret Lewis Commercial Software Strategist AMD

Lecture 5: February 3

Comprehensive Kernel Instrumentation via Dynamic Binary Translation

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission 1

The Missing Piece of Virtualization. I/O Virtualization on 10 Gb Ethernet For Virtualized Data Centers

VARIABILITY IN OPERATING SYSTEMS

Journaling versus Soft-Updates: Asynchronous Meta-data Protection in File Systems

The failure of Operating Systems,

Xen and the Art of Virtualization. Nikola Gvozdiev Georgian Mihaila

The Challenges of X86 Hardware Virtualization. GCC- Virtualization: Rajeev Wankar 36

Distributed Systems COMP 212. Lecture 18 Othon Michail

Separating Access Control Policy, Enforcement, and Functionality in Extensible Systems. Robert Grimm University of Washington

2 nd Half. Memory management Disk management Network and Security Virtual machine

Virtualizing Oracle 11g/R2 RAC Database on Oracle VM: Methods/Tips

Accelerating NVMe-oF* for VMs with the Storage Performance Development Kit

Transcription:

MultiLanes: Providing Virtualized Storage for OS-level Virtualization on Many Cores Junbin Kang, Benlong Zhang, Tianyu Wo, Chunming Hu, and Jinpeng Huai Beihang University 夏飞 20140904 1

Outline Background MultiLanes Design Evaluation Related Work Conclusion 2

Background Many-core architecture Common in modern processor Requests consolidation for high performance Virtualization Efficient method to improve performance and utilization of hardware. Non-Volatile Memory Higher percentage of software overhead 3

Hypervisor-based Virtualization vs. OS-level Virtualization Hypervisor-based Virtualization E.g., Xen, KVM OS-level Virtualization E.g., VServer, LXC Deep IO stack -> Poor performance Container: A virtualized environment (VE) 4

OS-level Virtualization Performance bottleneck of software Especially for NVM-based fast storage Shared data structure Interferences 5

Motivation Scalability issues FS: Ext3 6

MultiLanes Design MultiLanes A storage system for OS-level virtualization that addresses the I/O performance interference between multiple VEs on many cores. Design Goals: Simple, self-contained, transparent to applications and FS Good scalability Low virtualization overhead on fast storage 7

MultiLanes Design MultiLanes Architecture Container: a set of processes (actually) pvfs: partitioned VFS Different FSs vdriver: virtualized device driver Virtualized Storage: a file in host FS 8

Virtualized Storage Traditional OS-level virtualization Stores VM s data on the host FS directly Results in contention on shared data structure and locks MultiLanes Maps a regular file in host FS as a virtualized block device Incurs overhead 9

vdriver Key work Mapping virtualized resources to physical ones. Two components Block translation: maps a logical block of a file to the physical blocks on the host device Request handling: handles IO requests of virtualized device A single IO request of virtualized device may be translated into multiple IO requests of host device. 10

vdriver Structure Slice: a IOrequest on the host block device. 11

Block Translation Cache Table Maintains the mapping between logical blocks and physical blocks Job Queue Stores translation job Translation Thread Block translation Invokes the mapping interface of host FS to get the target physical block Stores a new mapping entry in the cache table Wakes up the container thread 12

Request Handling Slice A new block I/O request on the host block device BIO list Doubly-linked list Each slice is submitted to host device driver in sequence I/O completion Offer a I/O completion callback to the host driver 13

Example Request Mapping 14

Partitioned VFS Hot VFS Locks Method in MultiLanes Allocate an inode hash table and a dentry hash table for each container Use separate locks for guest FS 15

Evaluation Experimental Setup Intel 16-core machine with 64GB memory 16 LXC containers 40GB Ram disk as fast storage device FS: Ext3, Ext4, XFS, Btrfs Microbenchmarks Ocrd: runs 64K transactions (create, rename, and delete files) IOzone: writes 4KB data to a file that ends up with 256MB size Macrobenchmarks Filebench: mail server, file server MySQL 16

Results Ocrd Ext3 17

Results IOzone Sequential writes 9.78X XFS: delays block allocation and metadata journaling 18

Results IOzone Random writes 10.04X XFS: competitive 19

Results Filebench 20

Results MySQL 21

Overhead Analysis Single container Benchmarks Apache Build: I/O less intensive Webserver: read intensive Streamwrite: write intensive 22

Related Work Performance isolation Space partitioning or time multiplexing hardware resources (e.g., CPU, memory, disk) E.g., VSever (allocating and scheduling physical resources), Cgroup (limit, account, and isolate resource usage of process groups) Kernel scalability Partitioning hardware resources Hive, Barrelfish (multi-kernel model) Virtualization layer Diso (running multiple VMs on shared-memory multiprocessors) Device virtualization Device emulation, e.g., network cards, SCSI devices Para-virtualization, e.g., KVM, Xen Direct device assignment 23

Conclusion OS-level virtualization suffers from storage performance interference, especially for fast storage device. MultiLanes Provides an isolate I/O stack to eliminate contentions between multiple VEs on many cores. 24