SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
Energy-Efficient Storage in
Virtual Machine Environments

    Lei Ye, Gen Lu, Sushanth Kumar,
     Chris Gniady, John H. Hartman
       Department of Computer Science
            University of Arizona
Energy is Critical

           App         App                App         App   App         App
                  …                             …                 …
           OS1         OSn                OS1         OSn   OS1         OSn
                 VMM                            VMM               VMM




      Energy consideration is critical for system design
      Virtualization is becoming common in all platforms
      Integration of virtualization and energy management is critical
       for overall system efficiency

Xen Summit at AMD April 28-29, 2010                                           1
Current Environment for Energy Management

     Applications

       Operating
       Systems

         Physical
         Hardware

         OS is the central point for energy management
             Global views of application execution
             OS directly interacts with the hardware
         Detailed hardware knowledge allows sophisticated energy
          management


Xen Summit at AMD April 28-29, 2010                                 2
Abstraction in Virtual Machines




                                      Virtual Machine Monitor



        Where should we manage energy?
             OS only sees the virtualized hardware
             VMM is unaware of the application execution
        Separation of hardware and OS makes energy management a
         challenge
Xen Summit at AMD April 28-29, 2010                                3
Cross-layer Energy Optimization
        Goals
             Preserve VM abstractions
             Adapt current energy optimization

        Approach
             Shape I/O accesses at VMM
             Provide hints from VMM to the VMs

        Outcome
             Integrate existing disk energy management into VM




Xen Summit at AMD April 28-29, 2010                               4
Outline
      Introduction
      Existing Mechanisms
      Design
      Evaluation
      Conclusion




Xen Summit at AMD April 28-29, 2010             5
Existing Disk Energy Management
                    Last I/O                              New I/O
                                      Spin-down

              I/O              Idle               sleep                 I/O

                                                              Spin-up
                 Timeout              Timeout
                  starts              expires
        Goal: Maximize length of sleeping periods
             Must exceed break-even time
      Approach: Shaping write activities
      Consequence:
             Maximize disk off time
             Reduce disk spin-ups

Xen Summit at AMD April 28-29, 2010                                           6
Buffer Cache

                                       File     Buffer
          Applications
                                      System    Cache

                                        Linux Kernel
        Function
             Store data temporarily (default 30 seconds)
             Perform data transfer for block device
        Advantage
             Trade disk accesses for memory accesses
        Disadvantage
             Loss of buffered data in case of system crash



Xen Summit at AMD April 28-29, 2010                           7
Buffer Cache Complicates Timeout

                            App I/O                      Buffer cache Data delivered
                        to buffer cache                     flush        to disk
                                          30 seconds

          I/O           Idle Idle                      sleep                I/O

                                                                Spin-up
                Timeout               Timeout
                 starts               expires

        Timeout might occur when there are pending writes
        Disk spin-up might occur even in absence of application I/O



Xen Summit at AMD April 28-29, 2010                                                    8
Early Flush

  OS
         I/O    Idle Buffer Flush
                       Idle                            Idle   Idle
                         Early Flush


Physical
Disk state
         I/O    Idle         I/O                     sleep


         Do buffer flushes prior to shutdown
         No impact on desired I/O reliability


Xen Summit at AMD April 28-29, 2010                                  9
Extended Buffering

  OS
          Idle            Buffer Flush
                           Idle                 Idle
                                                 Buffer Flush    I/O     Idle

                                 30 seconds


Physical                                        Buffer being flushed
Disk state
           sleep             sleep                        I/O          sleep

                           Extended idle time

        Can extend idle time under writes
        May impact I/O reliability

Xen Summit at AMD April 28-29, 2010                                             10
Buffer Flushes in Virtual Machines
VM1
      I/O      Idle Idle             Buffer Flush Idle     Idle   IdleIdle
VM2
   I/O                Idle                I/O      Idle       Buffer Flush          Idle


                                     Virtual Machine Monitor
Physical
Disk state
      I/O      Idle                        I/O    Idle               I/O     Idle
                             sleep                        sleep                            sleep
      Guest OS is unaware of physical disk state
      Buffer flushes from VMs are unsynchronized

Xen Summit at AMD April 28-29, 2010                                                                11
Early Flush in Virtual Machines
VM1
      I/O      Idle Idle
                     Buffer Flush             Idle   Idle Idle Idle
                                                            Idle
VM2
   I/O       Idle     Buffer Flush
                      Idle                                Idle    Idle
                       Early Flush Notification
                                  Virtual Machine Monitor
Physical
Disk state
      I/O      Idle         I/O                         sleep

      Hints signal disk shutdown and trigger flush
      Disk spin-ups avoided and disk idle time maximized

Xen Summit at AMD April 28-29, 2010                                      12
Buffering in Virtual Machine Monitor
      Extend disk idle time
      Buffer writes from VMs
             Only when the disk is sleeping
             Only one copy of data
        Buffer is flushed when:
             VMM buffer timeout (30 seconds)
             Read request from a VM
        Reads and sync from VMs are processed immediately
        Impact I/O reliability




Xen Summit at AMD April 28-29, 2010                          13
Evaluation Methodology
        Trace collection
             8 concurrent VMs as remote desktops on Xen
             Users interact with VMs remotely via VNC
             Rsyslog: timestamps of I/O activity, I/O type, access size,
              domain identifier, process identifier, process name, and file
              inode
             Traces: 12 hours per VM
      Common interactive applications
      Disk drive:
             WD2500JD: High performance drive, 9 s. long spin-up time




Xen Summit at AMD April 28-29, 2010                                           14
Disk I/O Trace Statistics

       Number of          Number of   Number of   Number of      Total Idle
       VMs                Reads       Writes      Idle Periods   Time [s]
       1                  62951       1339        255            40071
       2                  64886       17031       435            37470
       4                  83050       59407       601            31263
       8                  160049      103840      566            20450

          Configuration
              1 VM – 1 user
              2 VMs – 2 concurrent users
              4 VMs – 4 concurrent users
              8 VMs – 8 concurrent users


Xen Summit at AMD April 28-29, 2010                                           15
Distribution of Idle Periods

                                          1 VM     2 VMs        4 VMs        8 VMs
                                700
                                600
       Number of Idle Periods




                                500
                                400
                                300
                                200
                                100
                                  0
                                      2      4        8        16       32       64   128
                                             Time [Break-Even Period]
Xen Summit at AMD April 28-29, 2010                                                         16
Energy Consumption

                                         S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush
                                      500
                                               Sleep
       Energy Consumption (KJoules)




                                      400      Power-Cycle
                                               Active
                                      300

                                      200

                                      100

                                        0
                                            S B F BF        S B F BF        S B F BF        S B F BF
                                               1 VM            2 VMs           4 VMs           8 VMs

Xen Summit at AMD April 28-29, 2010                                                                         17
Execution Time

                                      S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush
                                 14
                                                   Spin-up           Idle > BE       Active
                                 12
        Execution Time (Hours)




                                 10
                                  8
                                  6
                                  4
                                  2
                                  0
                                        S B F BF        S B F BF         S B F BF       S B F BF

                                           1 VM              2 VMs         4 VMs          8 VMs

Xen Summit at AMD April 28-29, 2010                                                                      18
Reducing Spin-ups
                             S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush
                           600
                                  Buffered Write
                           500    Write
      Number of Spin-ups




                           400     Read

                           300

                           200

                           100

                             0
                                 S B F BF        S B F BF       S B F BF        S B F BF
                                    1 VM           2 VMs           4 VMs          8 VMs

Xen Summit at AMD April 28-29, 2010                                                             19
Energy Delay Product

                                           S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush
                                         1.2
       Normalized Energy Delay Product




                                          1

                                         0.8

                                         0.6

                                         0.4

                                         0.2

                                          0
                                               S B F BF       S B F BF        S B F BF        S B F BF
                                                 1 VM            2 VMs           4 VMs           8 VMs

Xen Summit at AMD April 28-29, 2010                                                                           20
Buffering in VMM with Immediate Sleep
VM1
                  Idle                 Buffer Flush                    Idle
VM2                                   Writes being buffered
          Idle            Buffer Flush                          Idle
VMM                      Writes being buffered
                               Delayed Writes
Physical
                                30 seconds             Buffer being flushed
Disk state
          sleep              sleep                         I/O             sleep

                           Extended idle time
        The disk is put to sleep immediately after a buffer flush
        VMM buffer flush independent from VM I/Os
Xen Summit at AMD April 28-29, 2010                                                21
Immediate Sleep Optimization

                                       B-Buffering, BF-Buffering&Early Flush, T-Timeout, I-Immediate
                                    400
     Energy Consumption (KJoules)




                                            Sleep
                                    300     Power-Cycle
                                            Active
                                    200

                                    100

                                      0
                                          T I T I        T I T I         T I T I        T I T I
                                           B     BF        B    BF        B     BF        B    BF
                                            1 VM           2 VMs           4 VMs          8 VMs

Xen Summit at AMD April 28-29, 2010                                                                    22
Writes in Buffering and Early Flush
         VMs           Mechanisms          Write Delay     Delayed Writes    Early Flush
                                                                             Participants
    1            Buffering                         14.5s               3.5             N/A
                 Early Flush                        N/A               N/A               1.0
                 Buffering & Early Flush           10.6s               1.9              1.0
    2            Buffering                         13.8s               8.3             N/A
                 Early Flush                        N/A               N/A               1.1
                 Buffering & Early Flush           14.0s               9.2              1.0
    4            Buffering                         13.8s              11.3             N/A
                 Early Flush                        N/A               N/A               1.2
                 Buffering & Early Flush           15.5s               9.8              1.2
    8            Buffering                         13.9s              14.1             N/A
                 Early Flush                        N/A               N/A               1.4
                 Buffering & Early Flush           13.2s              16.1              1.5
         Buffering in the VMM can result in additional delays
         The longer the write resides the buffer, the higher the impact
          on reliability
Xen Summit at AMD April 28-29, 2010                                                           23
Conclusion
        Existing energy optimizations require modification to be
         effective in a VM environment
             OS only sees the virtualized hardware
             VMM is unaware of the application execution

        Early Flush reduces spin-ups due to buffer flushes
             Reduce energy by 10.5% compared with standard case in 8 VMs

        VMM buffering extends disk idle time by delaying VM writes
             Reduce energy by 7.7% compared with standard case in 8 VMs


        Combination reduces energy consumption by 14.8% in 8 VMs

Xen Summit at AMD April 28-29, 2010                                         24
Q&A




                            Thank You

Xen Summit at AMD April 28-29, 2010         25

Mais conteúdo relacionado

Mais procurados

Virtualization And Disk Performance
Virtualization And Disk PerformanceVirtualization And Disk Performance
Virtualization And Disk PerformanceDiskeeper
 
Transcendent memoryupdate xensummit2010-final
Transcendent memoryupdate xensummit2010-finalTranscendent memoryupdate xensummit2010-final
Transcendent memoryupdate xensummit2010-finalThe Linux Foundation
 
OSSNA18: Xen Beginners Training (exercise script)
OSSNA18: Xen Beginners Training (exercise script)OSSNA18: Xen Beginners Training (exercise script)
OSSNA18: Xen Beginners Training (exercise script)The Linux Foundation
 
Keynote Speech: Xen ARM Virtualization
Keynote Speech: Xen ARM VirtualizationKeynote Speech: Xen ARM Virtualization
Keynote Speech: Xen ARM VirtualizationThe Linux Foundation
 
Performance Profiling in a Virtualized Environment
Performance Profiling in a Virtualized EnvironmentPerformance Profiling in a Virtualized Environment
Performance Profiling in a Virtualized EnvironmentJiaqing Du
 
Mobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesMobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesThe Linux Foundation
 
Develop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM BoardsDevelop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM BoardsNational Cheng Kung University
 

Mais procurados (20)

Virtualization And Disk Performance
Virtualization And Disk PerformanceVirtualization And Disk Performance
Virtualization And Disk Performance
 
Transcendent memoryupdate xensummit2010-final
Transcendent memoryupdate xensummit2010-finalTranscendent memoryupdate xensummit2010-final
Transcendent memoryupdate xensummit2010-final
 
Embedded Hypervisor for ARM
Embedded Hypervisor for ARMEmbedded Hypervisor for ARM
Embedded Hypervisor for ARM
 
ZCM 3rd Party Imaging
ZCM 3rd Party ImagingZCM 3rd Party Imaging
ZCM 3rd Party Imaging
 
Ian Pratt Usenix 08 Keynote
Ian Pratt Usenix 08 KeynoteIan Pratt Usenix 08 Keynote
Ian Pratt Usenix 08 Keynote
 
Embedded Virtualization applied in Mobile Devices
Embedded Virtualization applied in Mobile DevicesEmbedded Virtualization applied in Mobile Devices
Embedded Virtualization applied in Mobile Devices
 
OSSNA18: Xen Beginners Training (exercise script)
OSSNA18: Xen Beginners Training (exercise script)OSSNA18: Xen Beginners Training (exercise script)
OSSNA18: Xen Beginners Training (exercise script)
 
16 roger boesch_xen_client
16 roger boesch_xen_client16 roger boesch_xen_client
16 roger boesch_xen_client
 
Keynote Speech: Xen ARM Virtualization
Keynote Speech: Xen ARM VirtualizationKeynote Speech: Xen ARM Virtualization
Keynote Speech: Xen ARM Virtualization
 
XS Boston 2008 Fault Tolerance
XS Boston 2008 Fault ToleranceXS Boston 2008 Fault Tolerance
XS Boston 2008 Fault Tolerance
 
06threadsimp
06threadsimp06threadsimp
06threadsimp
 
XS Japan 2008 Ganeti English
XS Japan 2008 Ganeti EnglishXS Japan 2008 Ganeti English
XS Japan 2008 Ganeti English
 
Android Virtualization: Opportunity and Organization
Android Virtualization: Opportunity and OrganizationAndroid Virtualization: Opportunity and Organization
Android Virtualization: Opportunity and Organization
 
Performance Profiling in a Virtualized Environment
Performance Profiling in a Virtualized EnvironmentPerformance Profiling in a Virtualized Environment
Performance Profiling in a Virtualized Environment
 
I/O Scalability in Xen
I/O Scalability in XenI/O Scalability in Xen
I/O Scalability in Xen
 
Mobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen TechnologiesMobile Virtualization using the Xen Technologies
Mobile Virtualization using the Xen Technologies
 
XS Oracle 2009 Intro Slides
XS Oracle 2009 Intro SlidesXS Oracle 2009 Intro Slides
XS Oracle 2009 Intro Slides
 
Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008
 
Develop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM BoardsDevelop Your Own Operating Systems using Cheap ARM Boards
Develop Your Own Operating Systems using Cheap ARM Boards
 
01intro
01intro01intro
01intro
 

Semelhante a Energy efficient storage in vm

Track A-Shmuel Panijel, Windriver
Track A-Shmuel Panijel, WindriverTrack A-Shmuel Panijel, Windriver
Track A-Shmuel Panijel, Windriverchiportal
 
Xen Euro Par07
Xen Euro Par07Xen Euro Par07
Xen Euro Par07congvc
 
Cots moves to multicore: Wind River
Cots moves to multicore: Wind RiverCots moves to multicore: Wind River
Cots moves to multicore: Wind RiverKonrad Witte
 
All about linux gaining root remote exploitation
All about linux  gaining root   remote exploitationAll about linux  gaining root   remote exploitation
All about linux gaining root remote exploitationn0rz
 
GeekOn with Ron #4: Tuning and Optimizing Your Gold Image
GeekOn with Ron #4: Tuning and Optimizing Your Gold ImageGeekOn with Ron #4: Tuning and Optimizing Your Gold Image
GeekOn with Ron #4: Tuning and Optimizing Your Gold ImageUnidesk Corporation
 
IT FUTURE 2011 - Efficient Data Protection
IT FUTURE 2011 - Efficient Data ProtectionIT FUTURE 2011 - Efficient Data Protection
IT FUTURE 2011 - Efficient Data ProtectionFujitsu France
 
Virtualization (Distributed computing)
Virtualization (Distributed computing)Virtualization (Distributed computing)
Virtualization (Distributed computing)Sri Prasanna
 
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...Emulex Corporation
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probertyang
 
m+storeMemory storage
m+storeMemory storagem+storeMemory storage
m+storeMemory storageOwen Funnell
 
Virtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMwareVirtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMwareDatapath Consulting
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSvampugani
 
Xen & the Art of Virtualization
Xen & the Art of VirtualizationXen & the Art of Virtualization
Xen & the Art of VirtualizationTareque Hossain
 

Semelhante a Energy efficient storage in vm (20)

Xen io
Xen ioXen io
Xen io
 
Track A-Shmuel Panijel, Windriver
Track A-Shmuel Panijel, WindriverTrack A-Shmuel Panijel, Windriver
Track A-Shmuel Panijel, Windriver
 
Xen Euro Par07
Xen Euro Par07Xen Euro Par07
Xen Euro Par07
 
Cots moves to multicore: Wind River
Cots moves to multicore: Wind RiverCots moves to multicore: Wind River
Cots moves to multicore: Wind River
 
Xen Community Update 2011
Xen Community Update 2011Xen Community Update 2011
Xen Community Update 2011
 
All about linux gaining root remote exploitation
All about linux  gaining root   remote exploitationAll about linux  gaining root   remote exploitation
All about linux gaining root remote exploitation
 
GeekOn with Ron #4: Tuning and Optimizing Your Gold Image
GeekOn with Ron #4: Tuning and Optimizing Your Gold ImageGeekOn with Ron #4: Tuning and Optimizing Your Gold Image
GeekOn with Ron #4: Tuning and Optimizing Your Gold Image
 
IT FUTURE 2011 - Efficient Data Protection
IT FUTURE 2011 - Efficient Data ProtectionIT FUTURE 2011 - Efficient Data Protection
IT FUTURE 2011 - Efficient Data Protection
 
Virtualization (Distributed computing)
Virtualization (Distributed computing)Virtualization (Distributed computing)
Virtualization (Distributed computing)
 
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...
OneCommand Vision 2.1 webcast: Cutting edge LUN SLAs, AIX on PowerPC and flex...
 
Oct2009
Oct2009Oct2009
Oct2009
 
Evolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave ProbertEvolution of the Windows Kernel Architecture, by Dave Probert
Evolution of the Windows Kernel Architecture, by Dave Probert
 
m+storeMemory storage
m+storeMemory storagem+storeMemory storage
m+storeMemory storage
 
01.osdoc
01.osdoc01.osdoc
01.osdoc
 
Virtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMwareVirtualization 101: Everything You Need To Know To Get Started With VMware
Virtualization 101: Everything You Need To Know To Get Started With VMware
 
Bios glossary
Bios glossaryBios glossary
Bios glossary
 
Bios glossary
Bios glossaryBios glossary
Bios glossary
 
03unixintro2
03unixintro203unixintro2
03unixintro2
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Xen & the Art of Virtualization
Xen & the Art of VirtualizationXen & the Art of Virtualization
Xen & the Art of Virtualization
 

Mais de The Linux Foundation

ELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made SimpleELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made SimpleThe Linux Foundation
 
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...The Linux Foundation
 
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...The Linux Foundation
 
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...The Linux Foundation
 
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote:  Unikraft Weather ReportXPDDS19 Keynote:  Unikraft Weather Report
XPDDS19 Keynote: Unikraft Weather ReportThe Linux Foundation
 
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...The Linux Foundation
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxThe Linux Foundation
 
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...The Linux Foundation
 
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, BitdefenderXPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, BitdefenderThe Linux Foundation
 
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...The Linux Foundation
 
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making... OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...The Linux Foundation
 
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, CitrixXPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, CitrixThe Linux Foundation
 
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdThe Linux Foundation
 
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...The Linux Foundation
 
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&DXPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&DThe Linux Foundation
 
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM SystemsXPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM SystemsThe Linux Foundation
 
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...The Linux Foundation
 
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...The Linux Foundation
 
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...The Linux Foundation
 
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSEXPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSEThe Linux Foundation
 

Mais de The Linux Foundation (20)

ELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made SimpleELC2019: Static Partitioning Made Simple
ELC2019: Static Partitioning Made Simple
 
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
XPDDS19: How TrenchBoot is Enabling Measured Launch for Open-Source Platform ...
 
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
XPDDS19 Keynote: Xen in Automotive - Artem Mygaiev, Director, Technology Solu...
 
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
XPDDS19 Keynote: Xen Project Weather Report 2019 - Lars Kurth, Director of Op...
 
XPDDS19 Keynote: Unikraft Weather Report
XPDDS19 Keynote:  Unikraft Weather ReportXPDDS19 Keynote:  Unikraft Weather Report
XPDDS19 Keynote: Unikraft Weather Report
 
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
XPDDS19 Keynote: Secret-free Hypervisor: Now and Future - Wei Liu, Software E...
 
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, XilinxXPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
XPDDS19 Keynote: Xen Dom0-less - Stefano Stabellini, Principal Engineer, Xilinx
 
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
XPDDS19 Keynote: Patch Review for Non-maintainers - George Dunlap, Citrix Sys...
 
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, BitdefenderXPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
XPDDS19: Memories of a VM Funk - Mihai Donțu, Bitdefender
 
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...OSSJP/ALS19:  The Road to Safety Certification: Overcoming Community Challeng...
OSSJP/ALS19: The Road to Safety Certification: Overcoming Community Challeng...
 
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making... OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
OSSJP/ALS19: The Road to Safety Certification: How the Xen Project is Making...
 
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, CitrixXPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
XPDDS19: Speculative Sidechannels and Mitigations - Andrew Cooper, Citrix
 
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltdXPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
XPDDS19: Keeping Coherency on Arm: Reborn - Julien Grall, Arm ltd
 
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
XPDDS19: QEMU PV Backend 'qdevification'... What Does it Mean? - Paul Durrant...
 
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&DXPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
XPDDS19: Status of PCI Emulation in Xen - Roger Pau Monné, Citrix Systems R&D
 
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM SystemsXPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
XPDDS19: [ARM] OP-TEE Mediator in Xen - Volodymyr Babchuk, EPAM Systems
 
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
XPDDS19: Bringing Xen to the Masses: The Story of Building a Community-driven...
 
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
XPDDS19: Will Robots Automate Your Job Away? Streamlining Xen Project Contrib...
 
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
XPDDS19: Client Virtualization Toolstack in Go - Nick Rosbrook & Brendan Kerr...
 
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSEXPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
XPDDS19: Core Scheduling in Xen - Jürgen Groß, SUSE
 

Último

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 

Último (20)

Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 

Energy efficient storage in vm

  • 1. Energy-Efficient Storage in Virtual Machine Environments Lei Ye, Gen Lu, Sushanth Kumar, Chris Gniady, John H. Hartman Department of Computer Science University of Arizona
  • 2. Energy is Critical App App App App App App … … … OS1 OSn OS1 OSn OS1 OSn VMM VMM VMM  Energy consideration is critical for system design  Virtualization is becoming common in all platforms  Integration of virtualization and energy management is critical for overall system efficiency Xen Summit at AMD April 28-29, 2010 1
  • 3. Current Environment for Energy Management Applications Operating Systems Physical Hardware  OS is the central point for energy management  Global views of application execution  OS directly interacts with the hardware  Detailed hardware knowledge allows sophisticated energy management Xen Summit at AMD April 28-29, 2010 2
  • 4. Abstraction in Virtual Machines Virtual Machine Monitor  Where should we manage energy?  OS only sees the virtualized hardware  VMM is unaware of the application execution  Separation of hardware and OS makes energy management a challenge Xen Summit at AMD April 28-29, 2010 3
  • 5. Cross-layer Energy Optimization  Goals  Preserve VM abstractions  Adapt current energy optimization  Approach  Shape I/O accesses at VMM  Provide hints from VMM to the VMs  Outcome  Integrate existing disk energy management into VM Xen Summit at AMD April 28-29, 2010 4
  • 6. Outline  Introduction  Existing Mechanisms  Design  Evaluation  Conclusion Xen Summit at AMD April 28-29, 2010 5
  • 7. Existing Disk Energy Management Last I/O New I/O Spin-down I/O Idle sleep I/O Spin-up Timeout Timeout starts expires  Goal: Maximize length of sleeping periods  Must exceed break-even time  Approach: Shaping write activities  Consequence:  Maximize disk off time  Reduce disk spin-ups Xen Summit at AMD April 28-29, 2010 6
  • 8. Buffer Cache File Buffer Applications System Cache Linux Kernel  Function  Store data temporarily (default 30 seconds)  Perform data transfer for block device  Advantage  Trade disk accesses for memory accesses  Disadvantage  Loss of buffered data in case of system crash Xen Summit at AMD April 28-29, 2010 7
  • 9. Buffer Cache Complicates Timeout App I/O Buffer cache Data delivered to buffer cache flush to disk 30 seconds I/O Idle Idle sleep I/O Spin-up Timeout Timeout starts expires  Timeout might occur when there are pending writes  Disk spin-up might occur even in absence of application I/O Xen Summit at AMD April 28-29, 2010 8
  • 10. Early Flush OS I/O Idle Buffer Flush Idle Idle Idle Early Flush Physical Disk state I/O Idle I/O sleep  Do buffer flushes prior to shutdown  No impact on desired I/O reliability Xen Summit at AMD April 28-29, 2010 9
  • 11. Extended Buffering OS Idle Buffer Flush Idle Idle Buffer Flush I/O Idle 30 seconds Physical Buffer being flushed Disk state sleep sleep I/O sleep Extended idle time  Can extend idle time under writes  May impact I/O reliability Xen Summit at AMD April 28-29, 2010 10
  • 12. Buffer Flushes in Virtual Machines VM1 I/O Idle Idle Buffer Flush Idle Idle IdleIdle VM2 I/O Idle I/O Idle Buffer Flush Idle Virtual Machine Monitor Physical Disk state I/O Idle I/O Idle I/O Idle sleep sleep sleep  Guest OS is unaware of physical disk state  Buffer flushes from VMs are unsynchronized Xen Summit at AMD April 28-29, 2010 11
  • 13. Early Flush in Virtual Machines VM1 I/O Idle Idle Buffer Flush Idle Idle Idle Idle Idle VM2 I/O Idle Buffer Flush Idle Idle Idle Early Flush Notification Virtual Machine Monitor Physical Disk state I/O Idle I/O sleep  Hints signal disk shutdown and trigger flush  Disk spin-ups avoided and disk idle time maximized Xen Summit at AMD April 28-29, 2010 12
  • 14. Buffering in Virtual Machine Monitor  Extend disk idle time  Buffer writes from VMs  Only when the disk is sleeping  Only one copy of data  Buffer is flushed when:  VMM buffer timeout (30 seconds)  Read request from a VM  Reads and sync from VMs are processed immediately  Impact I/O reliability Xen Summit at AMD April 28-29, 2010 13
  • 15. Evaluation Methodology  Trace collection  8 concurrent VMs as remote desktops on Xen  Users interact with VMs remotely via VNC  Rsyslog: timestamps of I/O activity, I/O type, access size, domain identifier, process identifier, process name, and file inode  Traces: 12 hours per VM  Common interactive applications  Disk drive:  WD2500JD: High performance drive, 9 s. long spin-up time Xen Summit at AMD April 28-29, 2010 14
  • 16. Disk I/O Trace Statistics Number of Number of Number of Number of Total Idle VMs Reads Writes Idle Periods Time [s] 1 62951 1339 255 40071 2 64886 17031 435 37470 4 83050 59407 601 31263 8 160049 103840 566 20450  Configuration  1 VM – 1 user  2 VMs – 2 concurrent users  4 VMs – 4 concurrent users  8 VMs – 8 concurrent users Xen Summit at AMD April 28-29, 2010 15
  • 17. Distribution of Idle Periods 1 VM 2 VMs 4 VMs 8 VMs 700 600 Number of Idle Periods 500 400 300 200 100 0 2 4 8 16 32 64 128 Time [Break-Even Period] Xen Summit at AMD April 28-29, 2010 16
  • 18. Energy Consumption S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush 500 Sleep Energy Consumption (KJoules) 400 Power-Cycle Active 300 200 100 0 S B F BF S B F BF S B F BF S B F BF 1 VM 2 VMs 4 VMs 8 VMs Xen Summit at AMD April 28-29, 2010 17
  • 19. Execution Time S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush 14 Spin-up Idle > BE Active 12 Execution Time (Hours) 10 8 6 4 2 0 S B F BF S B F BF S B F BF S B F BF 1 VM 2 VMs 4 VMs 8 VMs Xen Summit at AMD April 28-29, 2010 18
  • 20. Reducing Spin-ups S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush 600 Buffered Write 500 Write Number of Spin-ups 400 Read 300 200 100 0 S B F BF S B F BF S B F BF S B F BF 1 VM 2 VMs 4 VMs 8 VMs Xen Summit at AMD April 28-29, 2010 19
  • 21. Energy Delay Product S-Standard, B-Buffering, F-Early Flush, BF-Buffering&Early Flush 1.2 Normalized Energy Delay Product 1 0.8 0.6 0.4 0.2 0 S B F BF S B F BF S B F BF S B F BF 1 VM 2 VMs 4 VMs 8 VMs Xen Summit at AMD April 28-29, 2010 20
  • 22. Buffering in VMM with Immediate Sleep VM1 Idle Buffer Flush Idle VM2 Writes being buffered Idle Buffer Flush Idle VMM Writes being buffered Delayed Writes Physical 30 seconds Buffer being flushed Disk state sleep sleep I/O sleep Extended idle time  The disk is put to sleep immediately after a buffer flush  VMM buffer flush independent from VM I/Os Xen Summit at AMD April 28-29, 2010 21
  • 23. Immediate Sleep Optimization B-Buffering, BF-Buffering&Early Flush, T-Timeout, I-Immediate 400 Energy Consumption (KJoules) Sleep 300 Power-Cycle Active 200 100 0 T I T I T I T I T I T I T I T I B BF B BF B BF B BF 1 VM 2 VMs 4 VMs 8 VMs Xen Summit at AMD April 28-29, 2010 22
  • 24. Writes in Buffering and Early Flush VMs Mechanisms Write Delay Delayed Writes Early Flush Participants 1 Buffering 14.5s 3.5 N/A Early Flush N/A N/A 1.0 Buffering & Early Flush 10.6s 1.9 1.0 2 Buffering 13.8s 8.3 N/A Early Flush N/A N/A 1.1 Buffering & Early Flush 14.0s 9.2 1.0 4 Buffering 13.8s 11.3 N/A Early Flush N/A N/A 1.2 Buffering & Early Flush 15.5s 9.8 1.2 8 Buffering 13.9s 14.1 N/A Early Flush N/A N/A 1.4 Buffering & Early Flush 13.2s 16.1 1.5  Buffering in the VMM can result in additional delays  The longer the write resides the buffer, the higher the impact on reliability Xen Summit at AMD April 28-29, 2010 23
  • 25. Conclusion  Existing energy optimizations require modification to be effective in a VM environment  OS only sees the virtualized hardware  VMM is unaware of the application execution  Early Flush reduces spin-ups due to buffer flushes  Reduce energy by 10.5% compared with standard case in 8 VMs  VMM buffering extends disk idle time by delaying VM writes  Reduce energy by 7.7% compared with standard case in 8 VMs  Combination reduces energy consumption by 14.8% in 8 VMs Xen Summit at AMD April 28-29, 2010 24
  • 26. Q&A Thank You Xen Summit at AMD April 28-29, 2010 25