SlideShare a Scribd company logo
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

More Related Content

PDF
PVOps Update
PDF
Xen in Linux (aka PVOPS update)
PDF
Nakajima numa-final
PPTX
Disco: Running Commodity Operating Systems on Scalable Multiprocessors Disco
PDF
Semper Continuity Suite Product Profile V6
PPT
Zu e x5 training 04 06-2010
PDF
Embedded Virtualization for Mobile Devices
PPTX
Realtime scheduling for virtual machines in SKT
PVOps Update
Xen in Linux (aka PVOPS update)
Nakajima numa-final
Disco: Running Commodity Operating Systems on Scalable Multiprocessors Disco
Semper Continuity Suite Product Profile V6
Zu e x5 training 04 06-2010
Embedded Virtualization for Mobile Devices
Realtime scheduling for virtual machines in SKT

What's hot (20)

PDF
Virtualization And Disk Performance
PDF
Transcendent memoryupdate xensummit2010-final
PDF
Embedded Hypervisor for ARM
PPT
ZCM 3rd Party Imaging
PDF
Ian Pratt Usenix 08 Keynote
PDF
Embedded Virtualization applied in Mobile Devices
PDF
OSSNA18: Xen Beginners Training (exercise script)
PDF
16 roger boesch_xen_client
PPTX
Keynote Speech: Xen ARM Virtualization
PDF
XS Boston 2008 Fault Tolerance
PDF
06threadsimp
PDF
XS Japan 2008 Ganeti English
PDF
Android Virtualization: Opportunity and Organization
PPTX
Performance Profiling in a Virtualized Environment
PDF
I/O Scalability in Xen
PDF
Mobile Virtualization using the Xen Technologies
PDF
XS Oracle 2009 Intro Slides
PDF
Ian Pratt Nsdi Keynote Apr2008
PDF
Develop Your Own Operating Systems using Cheap ARM Boards
PDF
01intro
Virtualization And Disk Performance
Transcendent memoryupdate xensummit2010-final
Embedded Hypervisor for ARM
ZCM 3rd Party Imaging
Ian Pratt Usenix 08 Keynote
Embedded Virtualization applied in Mobile Devices
OSSNA18: Xen Beginners Training (exercise script)
16 roger boesch_xen_client
Keynote Speech: Xen ARM Virtualization
XS Boston 2008 Fault Tolerance
06threadsimp
XS Japan 2008 Ganeti English
Android Virtualization: Opportunity and Organization
Performance Profiling in a Virtualized Environment
I/O Scalability in Xen
Mobile Virtualization using the Xen Technologies
XS Oracle 2009 Intro Slides
Ian Pratt Nsdi Keynote Apr2008
Develop Your Own Operating Systems using Cheap ARM Boards
01intro
Ad

Similar to Energy efficient storage in vm (20)

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

More from The Linux Foundation (20)

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

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
KodekX | Application Modernization Development
PPTX
sap open course for s4hana steps from ECC to s4
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PPT
Teaching material agriculture food technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KodekX | Application Modernization Development
sap open course for s4hana steps from ECC to s4
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
Teaching material agriculture food technology
Electronic commerce courselecture one. Pdf
Network Security Unit 5.pdf for BCA BBA.
Advanced methodologies resolving dimensionality complications for autism neur...

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