kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Guest performance is reduced after live migration
@ 2012-12-19  0:43 Mark Petersen
  2013-01-02 21:50 ` Marcelo Tosatti
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Petersen @ 2012-12-19  0:43 UTC (permalink / raw)
  To: kvm@vger.kernel.org; +Cc: Shouta.Uehara@jp.yokogawa.com

Hello KVM,

I'm seeing something similar to this (http://thread.gmane.org/gmane.comp.emulators.kvm.devel/100592) as well when doing live migrations on Ubuntu 12.04 (Host and Guest) with a backported libvirt 1.0 and qemu-kvm 1.2 (improved performance for live migrations on guests with large memory guests is great!)  The default libvirt  0.9.8 and qemu-kvm 1.0 have the same issue.

Kernel is 3.2.0-34-generic and eglicb 2.15 on both host/guest.  I'm seeing similar issues with both virtio and ide bus.  Hugetblfs is not used, but transparent hugepages are.  Host machines are dual core Xeon E5-2660 processors.  I tried disabling EPT but that doesn't seem to make a difference so I don't think it's a requirement to reproduce.

If I use Ubuntu 10.04 guest with eglibc 2.11 and any of these kernels I don't seem to have the issue:

linux-image-2.6.32-32-server - 2.6.32-32.62
linux-image-2.6.32-38-server - 2.6.32-38.83
linux-image-2.6.32-43-server - 2.6.32-43.97
linux-image-2.6.35-32-server - 2.6.35-32.68~lucid1
linux-image-2.6.38-16-server - 2.6.38-16.67~lucid1
linux-image-3.0.0-26-server  - 3.0.0-26.43~lucid1 
linux-image-3.2-5 - mainline 3.2.5 kernel

I'm guess it's a libc issue (or at least a libc change causing the issue) as it doesn't seem to a be kernel related.

I'll try other distributions as a guest (probably Debian/Ubuntu) with newer libc's and see if I can pinpoint the issue to a libc version.  Any other ideas?

Shared disk backend is clvm/LV via FC to EMC SAN, not sure what else might be relevant.

Thanks,
Mark


______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Guest performance is reduced after live migration
@ 2012-11-01  0:12 Shouta.Uehara
  2012-11-01  4:45 ` Xiao Guangrong
  0 siblings, 1 reply; 13+ messages in thread
From: Shouta.Uehara @ 2012-11-01  0:12 UTC (permalink / raw)
  To: kvm

Hello.

I have a problem with the performance of the guest Linux after live migration.
When I analyze the file I/O latency of the guest using LMbench3, the latency of
the guest on the destination host is about 2 times bigger than the guest on the
source host. As a result that I investigated it, this problem occurs if three
following conditions are right.

  1. Use the kernel version 2.6.38.6-26.fc15.x86_64 or later.
  2. Execute system calls for low level file I/O (read, write, open etc.) on the
     guest.
  3. Enable EPT.

Performance cannot decrease on other tests of LMbench3; numerical operation,
context switching, memory latencies etc.

Is this an existing problem ? What should I do to resolve it ?

---
The situation the problem occurs

CPU models     : Intel Xeon E3-1245 (Both hosts have same cpu.)
Host kernel    : 3.6.4
Host OS        : Fedora 16 64bit ver. (Both hosts have same OS.)
Guest OS       : Fedora 16 64bit ver., kernel 3.1.0-7.fc16.x86_64
QEMU version   : qemu-kvm 1.2.0
QEMU parameter : qemu-kvm -m 1024 -drive file=guest.qcow2,if=virtio \
                 -boot order=c,menu=on -k ja
                 (-incoming tcp:192.168.0.51:4444   set only destination)
QEMU command   : migrate -d tcp:192.168.0.51:4444
Analyses       : LMbench version 3

        [Guest on the source host]
        $ ./lat_syscall open
          Simple open/close: 1.4281 microseconds
        $ ./lat_syscall read
          Simple read: 0.1416 microseconds
        $ ./lat_syscall write
          Simple write: 0.1194 microseconds
        $ ./lat_fs -s 0
          0k      550     98726   247712
          1k      383     69751   193985
          4k      381     69348   193383
          10k     313     54369   155697

        [Guest on the source host]
        $ ./lat_syscall open
          Simple open/close: 1.6126 microseconds
        $ ./lat_syscall read
          Simple read: 0.2206 microseconds
        $ ./lat_syscall write
          Simple write: 0.1980 microseconds
        $ ./lat_fs -s 0
          0k      427     83252   243222
          1k      315     60530   191650
          4k      184     34535   190947
          10k     65      11922   152608
---

Thanks.

        Shota Uehara <Shouta.Uehara()jp.yokogawa.com>


-----
CONFIDENTIAL: This e-mail may contain information that is confidential or otherwise protected from disclosure and intended only for the party to whom it is addressed. If you are not the intended recipient, please notify the sender by return and delete this e-mail. You are hereby formally advised that any unauthorized use, disclosure or copying of this email is strictly prohibited and may be unlawful.

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

end of thread, other threads:[~2013-01-17  0:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19  0:43 Guest performance is reduced after live migration Mark Petersen
2013-01-02 21:50 ` Marcelo Tosatti
2013-01-02 23:56   ` Mark Petersen
2013-01-03  0:48     ` Marcelo Tosatti
2013-01-03  1:32       ` Mark Petersen
2013-01-09 17:34         ` Mark Petersen
2013-01-17  0:05           ` Mark Petersen
  -- strict thread matches above, loose matches on Subject: below --
2012-11-01  0:12 Shouta.Uehara
2012-11-01  4:45 ` Xiao Guangrong
2012-11-01  9:26   ` Shouta.Uehara
2012-11-09  9:51   ` Shouta.Uehara
     [not found]   ` <AF8F7CA61C57594089A6FF49A1B453A503EBDBD87D34@EXMAIL02.jp.ykgw.net>
2012-11-21  1:25     ` Shouta.Uehara
2012-11-21  3:31       ` Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).