Example: air traffic controller

Xen and the Art of Virtualization - University of Cambridge

XenandtheArt ofVirtualizationPaulBarham , Boris Dragovic, KeirFraser, StevenHand,TimHarris,Alex Ho, RolfNeugebauery, IanPratt,Andrew War eldUniversityof CambridgeComputerLaboratory15 JJThomsonAvenue, Cambridge , UK,CB30 FDf beendesignedwhichusevirtualizationtosubd ividetheampleresourcesofa moderncomputer. Somerequirespecializedhardware, offerresourceisolationorperformanceguara ntees;mostpro-videonlybest-effortprovisi oning, ,anx86virtualmachinemonitorwhichallowsmu ltiplecommodityoperatingsystemsto shareconventionalhardwareina safeandresourcemanagedfashion,butwithout sac-ri cingeitherperformanceorfunctionality.

Xen and the Art of Virtualization Paul Barham, Boris Dragovic, Keir Fraser, Steven Hand, Tim Harris, Alex Ho, Rolf Neugebauery, Ian Pratt, Andrew Wareld University of Cambridge Computer Laboratory 15 JJ Thomson Avenue, Cambridge, UK, CB3 0FD frstname .lastnameg@cl.cam.ac.uk ABSTRACT Numerous systems have been designed which use …

Tags:

  Virtualization, And the art of virtualization

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Xen and the Art of Virtualization - University of Cambridge

1 XenandtheArt ofVirtualizationPaulBarham , Boris Dragovic, KeirFraser, StevenHand,TimHarris,Alex Ho, RolfNeugebauery, IanPratt,Andrew War eldUniversityof CambridgeComputerLaboratory15 JJThomsonAvenue, Cambridge , UK,CB30 FDf beendesignedwhichusevirtualizationtosubd ividetheampleresourcesofa moderncomputer. Somerequirespecializedhardware, offerresourceisolationorperformanceguara ntees;mostpro-videonlybest-effortprovisi oning, ,anx86virtualmachinemonitorwhichallowsmu ltiplecommodityoperatingsystemsto shareconventionalhardwareina safeandresourcemanagedfashion,butwithout sac-ri cingeitherperformanceorfunctionality.

2 Thisisachievedbyprovidinganidealizedvirt ualmachineabstractiontowhichoper-atingsy stemssuchasLinux,BSDandWindowsXP, targetedathostingupto100virtualmachinein -stancessimultaneouslyona modernserver. Thevirtualizationap-proachtakenbyXenis extremelyef cient:weallow operatingsys-temssuchasLinuxandWindowsXP tobehostedsimultaneouslyfora negligibleperformanceoverhead atmosta considerablyoutperformcompetingcommercia landfreelyavailablesolutionsina [OperatingSystems]: ProcessManagement; [Opera-tingSystems]: StorageManagement; [OperatingSystems]:PerformanceGeneralTer msDesign,Measurement,PerformanceKeywords VirtualMachineMonitors,Hypervisors,Parav irtualization MicrosoftResearchCambridge,UKyIntelResea rchCambridge,UKPermissiontomake digitalorhardcopiesofallorpartofthiswork forpersonalorclassroomuseis grantedwithoutfeeprovidedthatcopiesareno tmadeordistributedforpro torcommercialadvantageandthatcopiesbeart hisnoticeandthefullcitationonthe copy otherwise,torepublish,topostonserversort oredistributetolists,requirespriorspeci cpermissionand/ora '03,October19 22,2003,BoltonLanding,New York.

3 58113 757 5/03 $ cientlypowerfultousevirtualizationtopres enttheillusionofmany smallervirtualmachines(VMs),eachrunninga resurgenceofinterestinVMtechnology. InthispaperwepresentXen,a highperformanceresource-managedvirtualma chinemon-itor(VMM)whichenablesapplicatio nssuchasserverconsolida-tion[42,8],co-lo catedhostingfacilities[14],distributedwe bser-vices[43],securecomputingplatforms[ 12,16]andapplicationmobility[26,37].Succ essfulpartitioningofa , virtualmachinesmustbeisolatedfromoneanot her:it is notacceptablefortheexecutionofonetoadver selyaffecttheperfor-manceofanother. Thisis , it is necessarytosupporta , ,albeitwithsomesourcemodi ;eachinstanceexportsanapplicationbinaryi nter-faceidenticaltoa executewhatever they project[15,35]wearedeployingXenonstandar dserverhardwareat virtualmachinesandexpecteachVMtopayin somefashionfortheresourcesit discussourideasandapproachinthisdirectio nelsewhere[21].

4 Numberofwaystobuilda systemtohostmultipleapplicationsandserve rsona oneormorehostsrunninga standardoperatingsys-temsuchasLinuxorWin dows,andthentoallowuserstoinstall lesandstartprocesses time-consumingtaskduetocomplex con , suchsystemsdonotadequatelysupportper-for manceisolation;theschedulingpriority, memorydemand,net-worktraf adequateprovisioninganda closedusergroup(suchasinthecaseofcom-put ationalgrids,ortheexperimentalPlanetLabp latform[33]),butnotwhenresourcesareovers ubscribed, greaterorlesserdegreewithresourcecontain ers[3],Linux/RK[32],QLinux[40]andSILK[4] .Onedif cultywithsuchapproachesis ensuringthatallresourceusageis accountedtothecorrectprocess consider, forexample,thecomplex effectivelytheproblemof QoScrosstalk [41] a low levelcanmitigatethisproblem,asdemonstrat edbytheExokernel[23]andNemesis[27]

5 Usethissamebasicapproachto buildXen,whichmultiplexesphysicalresourc esatthegranularityofanentireoperatingsys temandis multiplexingthisalsoallowsa rangeofguestoperatingsystemstogracefully coexistratherthanmandatingaspeci a pricetopayforthis exibility runninga fullOSis moreheavyweightthanrunninga process,bothintermsofinitialization( ), ,webelieve thispriceis worthpaying;it allowsindividualuserstorununmodi edbinaries,orcollectionsofbinaries,ina resourcecontrolledfashion(forinstanceanA pacheserveralongwitha PostgreSQLbackend).Furthermoreit providesanextremelyhighlevel of gurationinteractionsbe-tweenvariousservi cesandapplicationsareavoided(forexample, eachWindowsinstancemaintainsitsownregist ry).

6 Theremainderofthispaperis structuredasfollows:in describeskey usesindustrystandardbenchmarksto eval-uatetheperformanceofXenoLinuxrunnin gabove Xenincompar-isonwithstand-aloneLinux,VMw areWorkstationandUser-modeLinux(UML).Sec tion5 reviewsrelatedwork,and :APPROACH&OVERVIEWIna traditionalVMMthevirtualhardwareexposedi s function-allyidenticaltotheunderlyingmac hine[38].Althoughfullvirtu-alizationhast heobviousbene tofallowingunmodi edoperatingsystemstobehosted,it alsohasa ,orx86, ,butexecutingthesewithin-suf cientprivilegefailssilentlyratherthancau singa convenienttrap[36].Ef cientlyvirtualizingthex86 MMUisalsodif , 's ESXS erver[10] appliedtotheentireguestOSkernel(withasso ciatedtrans-lation,execution,andcachingc osts) versionsofsystemstructuressuchaspagetabl esandmaintainsconsistency withthevirtualtablesbytrappingeveryup-da teattempt thisapproachhasa highcostforupdate-intensiveoperationssuc hascreatinga new , , therearesituationsinwhichit is desirableforthehostedoperatingsystemstos eerealaswellasvirtualresources.

7 Providingbothrealandvirtualtimeallowsa guestOStobettersupporttime-sensitive tasks,andtocor-rectlyhandleTCPtimeoutsan dRTTestimates,whileexposingrealmachinead dressesallowsa guestOStoimprove performancebyusingsuperpages[30]orpageco loring[24].We avoidthedrawbacksoffullvirtualizationbyp resentinga vir-tualmachineabstractionthatis similarbutnotidenticaltotheun-derlyingha rdware anapproachwhichhasbeendubbedparavir-tual ization[43].Thispromisesimprovedperforma nce,althoughit doesrequiremodi isimportanttonote,however, thatwedonotrequirechangestotheapplicatio nbinaryinterface(ABI),andhencenomodi distillthediscussionsofarintoa edapplicationbinariesisessential, ,asthisallowscomplex servercon gurationstobevirtualizedwithina machinearchitectures, [44].

8 Denaliis de-signedtosupportthousandsofvirtualmach inesrunningnetworkservices,thevastmajori tyofwhicharesmall-scaleandunpopu-lar. Incontrast,Xenis ,it is instructive to contrastDenali' , DenalidoesnottargetexistingABIs, ,Denalidoesnotfullysupportx86segmentatio nalthoughit isexported(andwidelyused1) intheABIsofNetBSD,Linux, , theDenaliimplementationdoesnotaddressthe prob-lemofsupportingapplicationmultiplex ing,normultipleaddressspaces,withina , applicationsarelinkedexplicitlyagainstan instanceoftheIlwacoguestOSina mannerratherreminiscentofa libOSin theExokernel[23].Henceeachvir-tualmachin eessentiallyhostsa single-usersingle-applicationun-protecte d operatingsystem.

9 InXen,bycontrast,a singlevirtualmachinehostsa realoperatingsystemwhichmayitselfsecurel ymultiplex thousandsofunmodi eduser-level prototypevirtualMMUhasbeendevelopedwhich mayhelpDe-naliinthisarea[44],weareunawar eofany , perhapsrelatedtothelackofmemory-manageme ntsupportatthevirtualizationlayer. Pagingwithinthe1 Forexample, ,butupdatesarebatchedandvalidatedbythehy pervisor. A a lowerprivilegelevel , `fast'handlerforsystemcalls, timerinterfaceandis awareofboth`real'and`virtual' ,Disk, contrarytoourgoalofperformanceisolation: maliciousvirtualmachinescanencouragethra shingbehaviour, (anideapreviouslyexploitedbyself-paging[ 20]).

10 Finally, Denalivirtualizesthe`namespaces'ofallmac hinere-sources,takingtheview thatnoVMcanaccesstheresourcealloca-tions ofanotherVMif it cannotnamethem(forexample,VMshavenoknowl edgeofhardwareaddresses,onlythevirtualad dressescreatedforthembyDenali).Incontras t,webelieve thatsecureac-cesscontrolwithinthehypervi soris suf cienttoensureprotection;furthermore,asdi scussedpreviously, a guestOSmustbemodi edto conformto thispaperwereserve thetermguestoperatingsystemtorefertooneo ftheOSesthatXencanhostandweusethetermdom ainto referto a runningvirtualmachinewithinwhicha guestOSexecutes;thedistinctionis analogoustothatbe-tweenaprogramandaproce ssina callXenitselfthehypervisorsinceit operatesat a higherprivilegelevelthanthesupervisorcod eoftheguestoperatingsystemsthatit presentsanoverview oftheparavirtualizedx86interface,factore dintothreebroadaspectsofthesystem.


Related search queries