public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled
@ 2013-05-24 15:34 bugzilla-daemon
  2013-05-27 18:37 ` [Bug 58771] " bugzilla-daemon
  2013-11-27 14:38 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2013-05-24 15:34 UTC (permalink / raw)
  To: kvm

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@kernel-bugs.osdl.org
        ReportedBy: ccormier@gmail.com
        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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 58771] VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled
  2013-05-24 15:34 [Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled bugzilla-daemon
@ 2013-05-27 18:37 ` bugzilla-daemon
  2013-11-27 14:38 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2013-05-27 18:37 UTC (permalink / raw)
  To: kvm

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





--- Comment #1 from Chris <ccormier@gmail.com>  2013-05-27 18:37:46 ---
Apologies, mentions of Kernel 2.8.x above should be 2.6.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 58771] VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled
  2013-05-24 15:34 [Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled bugzilla-daemon
  2013-05-27 18:37 ` [Bug 58771] " bugzilla-daemon
@ 2013-11-27 14:38 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2013-11-27 14:38 UTC (permalink / raw)
  To: kvm

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

Paolo Bonzini <bonzini@gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bonzini@gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Paolo Bonzini <bonzini@gnu.org> ---
This is a QEMU bug.  It is fixed by commit fc1c4a5 (migration: drop
MADVISE_DONT_NEED for incoming zero pages, 2013-10-24) which will be in QEMU
1.7.

Distros can backport that commit to QEMU 1.6.  It cannot be applied alone to
QEMU 1.5 and older.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-27 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 15:34 [Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled bugzilla-daemon
2013-05-27 18:37 ` [Bug 58771] " bugzilla-daemon
2013-11-27 14:38 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox