From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 58771] New: VM performance degradation after KVM QEMU migration or save/restore with Intel EPT enabled Date: Fri, 24 May 2013 15:34:27 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To: kvm@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.19.201]:42229 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755454Ab3EXPeh (ORCPT ); Fri, 24 May 2013 11:34:37 -0400 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8F624208CE for ; Fri, 24 May 2013 15:34:35 +0000 (UTC) Received: from bugzilla.kernel.org (bugzilla.kernel.org [198.145.19.217]) by mail.kernel.org (Postfix) with ESMTP id 7CCA62087D for ; Fri, 24 May 2013 15:34:29 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: 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 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.