A comparison between xen and kvm Andrea Chierici Riccardo Veraldi INFN-CNAF.

Slides:



Advertisements
Similar presentations
With ovirt & virt manager
Advertisements

Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
© 2010 VMware Inc. All rights reserved Confidential Performance Tuning for Windows Guest OS IT Pro Camp Presented by: Matthew Mitchell.
NWCLUG 01/05/2010 Jared Moore Xen Open Source Virtualization.
Xen Virtualization Andrew Hamilton
Network Implementation for Xen and KVM Class project for E : Network System Design and Implantation 12 Apr 2010 Kangkook Jee (kj2181)
Virtual Machines Measure Up John Staton Karsten Steinhaeuser University of Notre Dame December 15, 2005 Graduate Operating Systems, Fall 2005 Final Project.
European Organization for Nuclear Research Virtualization Review and Discussion Omer Khalid 17 th June 2010.
Virtualization for Cloud Computing
Virtualization A way To Begin with Virtual Reality… - Rahul Khanwani.
Tier-1 experience with provisioning virtualised worker nodes on demand Andrew Lahiff, Ian Collier STFC Rutherford Appleton Laboratory, Harwell Oxford,
Using Virtualization in the Classroom. Using Virtualization in the Classroom Session Objectives Define virtualization Compare major virtualization programs.
Condor Project Computer Sciences Department University of Wisconsin-Madison Virtual Machines in Condor.
Tanenbaum 8.3 See references
Operating System Virtualization
An Introduction to Xen Prof. Chih-Hung Wu
ScotGrid: a Prototype Tier-2 Centre – Steve Thorn, Edinburgh University SCOTGRID: A PROTOTYPE TIER-2 CENTRE Steve Thorn Authors: A. Earl, P. Clark, S.
ICT Day Term 4,  Virtualisation is growing in usage.  Current CPU’s are designed to support Virtualisation.  Businesses are looking at virtualisation.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2010 Seminar #1 VIRTUALIZATION EVERYWHERE.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2009 Seminar #1 VIRTUALIZATION EVERYWHERE.
Module 7: Hyper-V. Module Overview List the new features of Hyper-V Configure Hyper-V virtual machines.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
Using Virtualization in the Classroom. Using Virtualization in the Classroom Session Objectives Define virtualization Compare major virtualization programs.
Secure & flexible monitoring of virtual machine University of Mazandran Science & Tecnology By : Esmaill Khanlarpour January.
การติดตั้งและทดสอบการทำคลัสเต อร์เสมือนบน Xen, ROCKS, และไท ยกริด Roll Implementation of Virtualization Clusters based on Xen, ROCKS, and ThaiGrid Roll.
03/27/2003CHEP20031 Remote Operation of a Monte Carlo Production Farm Using Globus Dirk Hufnagel, Teela Pulliam, Thomas Allmendinger, Klaus Honscheid (Ohio.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks C. Loomis (CNRS/LAL) M.-E. Bégin (SixSq.
Politecnico di Torino Dipartimento di Automatica ed Informatica TORSEC Group Performance of Xen’s Secured Virtual Networks Emanuele Cesena Paolo Carlo.
INTRODUCTION TO VIRTUALIZATION KRISTEN WILLIAMS MOSES IKE.
High Performance Computing on Virtualized Environments Ganesh Thiagarajan Fall 2014 Instructor: Yuzhe(Richard) Tang Syracuse University.
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks C. Loomis (CNRS/LAL) M.-E. Bégin (SixSq.
Virtualization for the LHCb Online system CHEP Taipei Dedicato a Zio Renato Enrico Bonaccorsi, (CERN)
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
Predrag Buncic (CERN/PH-SFT) WP9 - Workshop Summary
Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Usage of virtualization in gLite certification Andreas Unterkircher.
VMware vSphere Configuration and Management v6
Virtual techdays INDIA │ august 2010 virtual techdays INDIA │ august 2010 Consolidate and Virtualize your Linux Environment M.S.Anand │ Technology.
Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Tools and techniques for managing virtual machine images Andreas.
Full and Para Virtualization
Ian Gable HEPiX Spring 2009, Umeå 1 VM CPU Benchmarking the HEPiX Way Manfred Alef, Ian Gable FZK Karlsruhe University of Victoria May 28, 2009.
Virtualization One computer can do the job of multiple computers, by sharing the resources of a single computer across multiple environments. Turning hardware.
Operating-System Structures
Cloud Computing – UNIT - II. VIRTUALIZATION Virtualization Hiding the reality The mantra of smart computing is to intelligently hide the reality Binary->
CERN 19/06/2002 Kickstart file generator Andrea Chierici (INFN-CNAF) Enrico Ferro (INFN-LNL) Marco Serra (INFN-Roma)
CERN IT Department CH-1211 Genève 23 Switzerland t SL(C) 5 Migration at CERN CHEP 2009, Prague Ulrich SCHWICKERATH Ricardo SILVA CERN, IT-FIO-FS.
E Virtual Machines Lecture 1 What is Virtualization? Scott Devine VMware, Inc.
KVM tutorial #3 Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Introduction to KVM Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Performance analysis comparison Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010.
Claudio Grandi INFN Bologna Virtual Pools for Interactive Analysis and Software Development through an Integrated Cloud Environment Claudio Grandi (INFN.
A comparison between xen and kvm Andrea Chierici Riccardo Veraldi INFN-CNAF CCR 2009.
HEPiX Virtualisation working group Andrea Chierici INFN-CNAF Workshop CCR 2010.
Intro To Virtualization Mohammed Morsi
Open Source Virtualization Andrey Meganov RHCA, RHCX Consultant / VDEL
Virtualization Neependra Khare
Welcome to the Virtual Machine Mark Cyzyk The Sheridan Libraries Johns Hopkins University.
Using Virtualization in the Classroom
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
Virtualization for Cloud Computing
Virtualization in Grid Rock
Virtualization Review and Discussion
Dag Toppe Larsen UiB/CERN CERN,
Dag Toppe Larsen UiB/CERN CERN,
Enrico Bonaccorsi, (CERN) Loic Brarda, (CERN) Gary Moine, (CERN)
Virtualization overview
Virtual Servers.
Xen Summit Spring 2007 Platform Virtualization with XenEnterprise
OS Virtualization.
OPS235: Lab 2 Virtual Machines – Part I
Presentation transcript:

A comparison between xen and kvm Andrea Chierici Riccardo Veraldi INFN-CNAF

Outline Introduction xen kvm Test description Benchmarks Conclusions Andrea Chierici, CHEP 2009

Introducing virtualization Several benefits delivered  Reduced server number  Power saving  Maximization of hardware resources  Server isolation  Flexibility (migration, load-balancing, disaster recovery) Andrea Chierici, CHEP 2009

Introducing virtualization Virtualization widely adopted already in HEP community Xen proved to be a reliable tool KVM is an emerging technology worth to be investigated  We will show benchmark results on machines running O.S. compatible with EGEE grid middleware This causes some limitations but gives the idea of what can be today the best choice for our farm Andrea Chierici, CHEP 2009

Virtualization approaches Full virtualization  Unmodified O.S., soft migration approach, slow Para virtualization  Requires modified O.S., fast Hardware virtualization support (hvm)  Requires modern CPUs, trade-off between previous approaches Intel VT and AMD-V technologies Andrea Chierici, CHEP 2009

What we have now: Xen Open source “industry standard” for virtualization Included in all recent linux distributions Supports para and hvm approaches Widely used in HEP community Won’t go into details during presentation Andrea Chierici, CHEP 2009

What could be the future: KVM Kernel-based Virtual Machine Open source included in latest linux kernels: implemented as a module  A user space program uses /dev/kvm interface to set up VMs (qemu-kvm) Supports hvm approach Rather new to HEP community Qumranet now owned by Red Hat  Foreseen boost in development Andrea Chierici, CHEP 2009

KVM seen by system admin rpms: basically the kernel module and a modified version of qemu (qemu-kvm) Network configuration to be done by hand in order to get public IP  Used bridge-utils and tunctl rpms to set-up tap interface  A modified init.d script to configure software bridge has been developed at CNAF No VM configuration file direct support  VMs are launched via a standard UNIX command + command line options Andrea Chierici, CHEP 2009

KVM seen by system admin No direct interface to manage VMs by command line (e.g. “xm”)  Libvirt support Virt-manager working Monitor interface  Very powerful, lots of options available qemu already well documented, support available on-line Andrea Chierici, CHEP 2009

KVM introduced at CNAF We use quattor to configure and install grid nodes and virtual machines  Profiles describe machine configuration See my poster today!  Network boot for installation working Keeps booting from network, need to restart with “-boot c”  No need for any modification, just like xen-hvm Andrea Chierici, CHEP 2009

Qualitative test CNAF is running LHCb tier2 site entirely on xen VMs (2 CEs, 1 SE) Changed one Computing Element with a KVM machine  Has been working for more that 3 weeks flawlessly  Quattor machine profile unmodified, no effort for sysadmin CMS secondary squid server installed on the same host with same result (2 weeks ago) KVM executed (and live migrated!) a win7 VM Hardware used: 1 node, dual E5420, 16GB ram, sata disks via Areca controller Andrea Chierici, CHEP 2009

Quantitative test: description (1) Need some measures to understand what is the best solution Tested 3 classic parameters  CPU → hep-spec06 (v1.1)  Network → iperf (v2.0.4)  Disk access → bonnie++ (v1.94) Compared Xen (para-virtualized and hvm) with KVM, using non virtualized machine as a baseline Andrea Chierici, CHEP 2009

Quantitative test: description (2) Hardware used: 1 blade, dual E5420, 16GB ram, 10k sas disk via LSI logic raid controller (raid0) Xen-para VM specs: 1 vcpu, 2 GB ram, disk on a file Xen-hvm VM specs: 1 vcpu, 2GB ram, disk on a file, “netfront” network driver KVM VM specs: 1 vcpu, 2GB ram, disk on a file, e1000 network driver emulation Host OS: SL 5.2 x86_64, kernel el5 VM OS: SLC 4.5 i386, kernel EL.cern KVM version: 83 Xen version: Andrea Chierici, CHEP 2009

Benchmarks: HEP-Spec06 Andrea Chierici, CHEP 2009

Benchmarks: HEP-Spec06 Andrea Chierici, CHEP 2009

Benchmarks: HEP-Spec06 Andrea Chierici, CHEP 2009

Benchmarks: HEP-Spec06 Virtualization Technology % loss from non emulated CPU (E5420, 8vm) E5420kvm3,42 E5420xen-hvm4,55 E5420xen-para2,02 E5410 vs. E54204,07 Andrea Chierici, CHEP 2009

Benchmarks: Iperf Andrea Chierici, CHEP 2009

Benchmarks: Iperf Andrea Chierici, CHEP 2009

Benchmarks: bonnie++ Andrea Chierici, CHEP 2009

Benchmarks: bonnie++ Andrea Chierici, CHEP 2009

Benchmarks: bonnie++ Andrea Chierici, CHEP 2009

Conclusions KVM proved good stability and reliability  No problems on running production machines for more than 3 weeks  CPU performances are extremely good Modern CPU virtualization technologies help!  Network performances are fair Could not test virtio drivers because sl4 kernel is not supported  Disk I/O seems the most problematic aspect Other solutions have problems too  Requires small effort from sys admins Even if looking promising, right now xen is the most performing solution Andrea Chierici, CHEP 2009

Future work I/O performance with disk partition vs. file KVM virtio drivers (kernel v2.6.25)  Currently not suitable for grid nodes SL5 worker nodes, back port drivers? qemu snapshot features high-level VM managers  Ovirt, enomalism, ganeti Andrea Chierici, CHEP 2009

Bibliography and links Xen  Xen repository Xen repository KVM  Kvm repository Kvm repository Quattor HEP-SPEC Andrea Chierici, CHEP 2009