[Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=58771

           Summary: VM performance degradation after KVM QEMU migration or
                    save/restore with Intel EPT enabled
           Product: Virtualization
           Version: unspecified
    Kernel Version: 3.0+
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: kvm
        AssignedTo: virtualization_kvm@xxxxxxxxxxxxxxxxxxxx
        ReportedBy: ccormier@xxxxxxxxx
        Regression: Yes


Overview:
Once a VM has been migrated to another hypervisor or the VM has been saved and
restored the performance of the VM will be immediately impacted and as a result
disk access is slower and has an increased latency.

This only effects KVM QEMU hypervisors with Intel EPT capable CPUs and since
Kernel 3.0 and higher with EPT enabled in the kvm_intel kernel module. 

Test Setup:
Hypervisor with an Intel CPU that has EPT feature is required.
(reproduced with Fedora and Ubuntu Distros)

Hypervisor
-Ubuntu 12.04 (with any Kernel 3.0-3.9)
Guest
-Ubuntu 12.04

Steps to Reproduce:
Save/restore procedure on a single hypervisor:
-using virsh to manage VMs
-create a running VM
-save VMs running state ("virsh save <domid> savefile")
-restore VMs running state ("virsh restore savefile")

Alternative reproduction to above is using the virsh livemigration or migration
option will also reproduce this bug.

Actual Results:
Guest VM IO intensive applications perform slower.

Expected Results:
Guest VM IO performance consistent before and after save/restore.

Build Date & Platform:
-Hypervisor - Ubuntu 12.04 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16
UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
-Guest - Ubuntu 12.04 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux

Additional Builds and Platforms:
Ubuntu 12.04, 13.04 with kernels 3.0-3.9
Fedora 18 (stock kernel)
Doesn't occur with tested Kernels 2.8.32, 2.8.39 squeezed into Ubuntu 12.04
(Fedora not tested with 2.8 kernels)

Additional Information:
Performance can be measured using various tools and benchmarks.
-lmbench wil show latencies
-some timed compilation benchmarks
-some disk benchmarks

Here are some examples of my before and after benchmarks.
LMBENCH :
Before:
Simple read: 0.1356 microseconds
Simple write: 0.1086 microseconds
Simple open/close: 1.0265 microseconds
After:
Simple read: 0.2125 microseconds
Simple write: 0.1913 microseconds
Simple open/close: 1.4482 microseconds

PostMark:
Before: 2808
After: 1893

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux