Re: Measuring KVM Performance using Hardware Performance Counters

2014-02-04 Thread Xin Tong
014 x86_64 x86_64 x86_64 GNU/Linux Command to run kvm: kvm ~/disks/ubuntu-natty.qcow2 -nographic Commands to oprofile: sudo operf -s --separate-thread --event=CPU_CLK_UNHALTED:500 --vmlinux=/home/xtong/xtong-kernel/vmlinux sudo opreport --image-path /home/xtong/xtong-kernel -l -g -d -

Re: Measuring KVM Performance using Hardware Performance Counters

2014-02-03 Thread Paolo Bonzini
Il 03/02/2014 18:06, Xin Tong ha scritto: /.../qemu-system-x86_64 TID 2537 [TID 2537] (877 ticks/71.24%) This is the CPU thread (calls into the KVM modules). /.../vmlinux (395 ticks/45.04%) /kvm (198 ticks/22.58%) /kvm_intel (153 ticks/17.45%) /

Re: Measuring KVM Performance using Hardware Performance Counters

2014-02-03 Thread Xin Tong
This is a profile taken on kvm on host. the kvm guest linux is running SPECCPU2006 403.gcc with reference data set. The commands to run and report the profile are sudo operf -s --separate-thread --event=CPU_CLK_UNHALTED:500 --vmlinux=/home/xtong/xtong-kernel/vmlinux sudo opreport --image-path /

Re: Measuring KVM Performance using Hardware Performance Counters

2014-02-02 Thread Paolo Bonzini
Il 02/02/2014 03:08, Xin Tong ha scritto: I am getting very weird profile results by running operf on linux on the host and profiling the a kvm virtual machine running dacapo eclipse benchmark. I am expecting a lot of time should be spent in the qemu-system-x86_64 as the instructions from the ec

Re: Measuring KVM Performance using Hardware Performance Counters

2014-02-01 Thread Xin Tong
I am getting very weird profile results by running operf on linux on the host and profiling the a kvm virtual machine running dacapo eclipse benchmark. I am expecting a lot of time should be spent in the qemu-system-x86_64 as the instructions from the eclipse benchmark would be treated as part of

Measuring KVM Performance using Hardware Performance Counters

2014-01-29 Thread Xin Tong
Hi I would like to measure the performance of KVM by using hardware performance counters and I have some questions 1. if i want to get the amount of time spent in instruction and device emulation, should i use oprofile on the kvm process on the host machine ? 2. what about amount of time spent in

KVM performance debugging

2013-09-03 Thread urgrue
Hi, I'm doing extensive performance tests on KVM at the moment. In various scenarios I'm able to generate a noticeable impact while no performance metric is really impacted at all. I mean general sluggishness, like typing laging behind my fingers, commands taking a few seconds to respond. Nothing d

KVM performance with Firefox?

2013-08-07 Thread Roland Koebler
Hi, I'm using KVM on Debian, and run a VM with Debian and Firefox. Unfortunately, Firefox in the VM is *extremely* slow (and maybe it got slower with newer Firefox-versions, but I'm not sure): Nearly every time I open a new Firefox-tab or click on link, CPU load goes to 100% ("system time" accordi

Re: KVM performance Java server/MySQL...

2013-02-13 Thread Erik Brakkee
> >> Other optimizations people are testing out there. >> >> - use "nohz=off" in the kernel loading line y menu.lst >> - Disable Cgroups completely. Using cgclear, and turning off cgred >> cg-config daemons. I also tried this option but it did not have a significant effect and degraded performan

Re: KVM performance Java server/MySQL...

2013-02-13 Thread Erik Brakkee
> Other optimizations people are testing out there. > > - use "nohz=off" in the kernel loading line y menu.lst > - Disable Cgroups completely. Using cgclear, and turning off cgred > cg-config daemons. > > And from a Personal point of view, we've always tried to use MySQL in > a different server fr

Re: KVM performance Java server/MySQL...

2013-02-08 Thread David Cruz
Other optimizations people are testing out there. - use "nohz=off" in the kernel loading line y menu.lst - Disable Cgroups completely. Using cgclear, and turning off cgred cg-config daemons. And from a Personal point of view, we've always tried to use MySQL in a different server from JBoss. 99% o

Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
> >> On Thu, Feb 07, 2013 at 04:41:31PM +0100, Erik Brakkee wrote: >>> Hi, >>> >>> >>> We have been benchmarking a java server application (java 6 update 29) >>> that requires a mysql database. The scenario is quite simple. We open a >>> web page which displays a lot of search results. To get the

Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
> The IO scheduler on the host and on the guest is CFS. We also tried with > deadline scheduler on the host but this did not make any measurable > difference. We did not try no-op on the host. I mean of course that we did not try no-op on the guest (not on the host). -- To unsubscribe from this

Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
> On Thu, Feb 07, 2013 at 04:41:31PM +0100, Erik Brakkee wrote: >> Hi, >> >> >> We have been benchmarking a java server application (java 6 update 29) >> that requires a mysql database. The scenario is quite simple. We open a >> web page which displays a lot of search results. To get the content o

Re: KVM performance Java server/MySQL...

2013-02-07 Thread Gleb Natapov
On Thu, Feb 07, 2013 at 04:41:31PM +0100, Erik Brakkee wrote: > Hi, > > > We have been benchmarking a java server application (java 6 update 29) > that requires a mysql database. The scenario is quite simple. We open a > web page which displays a lot of search results. To get the content of the >

KVM performance Java server/MySQL...

2013-02-07 Thread Erik Brakkee
Hi, We have been benchmarking a java server application (java 6 update 29) that requires a mysql database. The scenario is quite simple. We open a web page which displays a lot of search results. To get the content of the page one big query is done with many smaller queries to retrieve the data.

Re: FW: Descriptions about KVM performance counters

2012-05-17 Thread Marcelo Tosatti
May 15, 2012 6:48 PM > > To: kvm@vger.kernel.org > > Subject: Descriptions about KVM performance counters > > > > Dear all, > > > > Is there a brief description or any document about the meanings of kvm > > performance events traced by 'perf' command? S

FW: Descriptions about KVM performance counters

2012-05-16 Thread Hailong Yang
Anyone please commits or provides any useful insights? Really appreciate~ Hailong > -Original Message- > From: Hailong Yang [mailto:hailong.yang1...@gmail.com] > Sent: Tuesday, May 15, 2012 6:48 PM > To: kvm@vger.kernel.org > Subject: Descriptions about KVM perfo

Descriptions about KVM performance counters

2012-05-15 Thread Hailong Yang
Dear all, Is there a brief description or any document about the meanings of kvm performance events traced by 'perf' command? Some of events are hard to guess what they are standing for. And also is there any correlation or exact mapping between the output of 'kvm_stat' and

Re: bridge + KVM performance

2009-07-06 Thread Martin Petermann
On Mon, 2009-07-06 at 14:53 +0300, Dor Laor wrote: > On 07/06/2009 12:34 PM, Martin Petermann wrote: > > I'm currently looking at the network performance between two KVM guests > > running on the same host. The host system is applied with two quad core > > Xeons each 3GHz and 32G memory. 2G memory

Re: bridge + KVM performance

2009-07-06 Thread Dor Laor
On 07/06/2009 12:34 PM, Martin Petermann wrote: I'm currently looking at the network performance between two KVM guests running on the same host. The host system is applied with two quad core Xeons each 3GHz and 32G memory. 2G memory is assigned to the guests, enough that swap is not used. I'm us

bridge + KVM performance

2009-07-06 Thread Martin Petermann
I'm currently looking at the network performance between two KVM guests running on the same host. The host system is applied with two quad core Xeons each 3GHz and 32G memory. 2G memory is assigned to the guests, enough that swap is not used. I'm using RHEL 5.3 (2.6.18-128.1.10.el5) on all the thre

Re: KVM performance vs. Xen

2009-05-03 Thread Avi Kivity
Andrew Theurer wrote: If the overhead is dominated by copying, then you won't see the difference. Once the copying is eliminated, the comparison may yield different results. We should certainly see a difference in context switches. I would like to test this the proper way. What do I need t

Re: KVM performance vs. Xen

2009-04-30 Thread Andrew Theurer
Here are the SMT off results. This workload is designed to not over-saturate the CPU, so you have to pick a number of server sets to ensure that. With SMT on, 4 sets was enough for KVM, but 5 was too much (start seeing response time errors). For SMT off, I tried to size the load as high as w

Re: KVM performance vs. Xen

2009-04-30 Thread Marcelo Tosatti
On Thu, Apr 30, 2009 at 11:56:14AM +0300, Avi Kivity wrote: > Andrew Theurer wrote: >> Comparing guest time to all other busy time, that's a 23.88/43.02 = 55% >> overhead for virtualization. I certainly don't expect it to be 0, but >> 55% seems a bit high. So, what's the reason for this overhead?

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Previously, the block API only exposed non-vector interfaces and bounced vectored operations to a linear buffer. That's been eliminated now though so we need to update the linux-aio patch to implement a vectored backend interface. However, it is an

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Anthony Liguori wrote: Previously, the block API only exposed non-vector interfaces and bounced vectored operations to a linear buffer. That's been eliminated now though so we need to update the linux-aio patch to implement a vectored backend interface. However, it is an apples to apples c

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Andrew Theurer wrote: Avi Kivity wrote: Anthony Liguori wrote: Avi Kivity wrote: 1) I'm seeing about 2.3% in scheduler functions [that I recognize]. Does that seems a bit excessive? Yes, it is. If there is a lot of I/O, this might be due to the thread pool used for I/O. This is why I wr

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Avi Kivity wrote: 1) I'm seeing about 2.3% in scheduler functions [that I recognize]. Does that seems a bit excessive? Yes, it is. If there is a lot of I/O, this might be due to the thread pool used for I/O. This is why I wrote the linux-aio patch

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: 2) cpu_physical_memory_rw due to not using preadv/pwritev? I think both virtio-net and virtio-blk use memcpy(). With latest linux-2.6, and a development snapshot of glibc, virtio-blk will not use memcpy() anymore but virtio-net still does on the r

Re: KVM performance vs. Xen

2009-04-30 Thread Andrew Theurer
Avi Kivity wrote: Anthony Liguori wrote: Avi Kivity wrote: 1) I'm seeing about 2.3% in scheduler functions [that I recognize]. Does that seems a bit excessive? Yes, it is. If there is a lot of I/O, this might be due to the thread pool used for I/O. This is why I wrote the linux-aio patch

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Anthony Liguori wrote: Avi Kivity wrote: 1) I'm seeing about 2.3% in scheduler functions [that I recognize]. Does that seems a bit excessive? Yes, it is. If there is a lot of I/O, this might be due to the thread pool used for I/O. This is why I wrote the linux-aio patch. It only reduced

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Anthony Liguori wrote: 2) cpu_physical_memory_rw due to not using preadv/pwritev? I think both virtio-net and virtio-blk use memcpy(). With latest linux-2.6, and a development snapshot of glibc, virtio-blk will not use memcpy() anymore but virtio-net still does on the receive path (but no

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Andrew Theurer wrote: disk:read: 17 MB/sec write: 40 MB/sec This could definitely cause the extra load, especially if it's many small requests (compared to a few large ones). I don't have the request sizes at my fingertips, but we have to use a lot of disks to support this I/O, so I

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Andrew Theurer wrote: Really, I think linux-aio support can help here. Yes, I think that would work for real block devices, but would that help for files? I am using real block devices right now, but it would be nice to also see a benefit for files in a file-system. Or maybe I am mis-unders

Re: KVM performance vs. Xen

2009-04-30 Thread Andrew Theurer
Avi Kivity wrote: Andrew Theurer wrote: Avi Kivity wrote: What's the typical I/O load (disk and network bandwidth) while the tests are running? This is average thrgoughput: network:Tx: 79 MB/sec Rx: 5 MB/sec MB as in Byte or Mb as in bit? Byte. There are 4 x 1 Gb adapters, each han

Re: KVM performance vs. Xen

2009-04-30 Thread Anthony Liguori
Avi Kivity wrote: 1) I'm seeing about 2.3% in scheduler functions [that I recognize]. Does that seems a bit excessive? Yes, it is. If there is a lot of I/O, this might be due to the thread pool used for I/O. This is why I wrote the linux-aio patch. It only reduced CPU consumption by abou

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Andrew Theurer wrote: Avi Kivity wrote: What's the typical I/O load (disk and network bandwidth) while the tests are running? This is average thrgoughput: network:Tx: 79 MB/sec Rx: 5 MB/sec MB as in Byte or Mb as in bit? disk:read: 17 MB/sec write: 40 MB/sec This could defin

Re: KVM performance vs. Xen

2009-04-30 Thread Andrew Theurer
Avi Kivity wrote: Andrew Theurer wrote: I wanted to share some performance data for KVM and Xen. I thought it would be interesting to share some performance results especially compared to Xen, using a more complex situation like heterogeneous server consolidation. The Workload: The workload is

Re: KVM performance vs. Xen

2009-04-30 Thread Avi Kivity
Andrew Theurer wrote: I wanted to share some performance data for KVM and Xen. I thought it would be interesting to share some performance results especially compared to Xen, using a more complex situation like heterogeneous server consolidation. The Workload: The workload is one that simulates

Re: KVM performance vs. Xen

2009-04-29 Thread Andrew Theurer
Nakajima, Jun wrote: On 4/29/2009 7:41:50 AM, Andrew Theurer wrote: I wanted to share some performance data for KVM and Xen. I thought it would be interesting to share some performance results especially compared to Xen, using a more complex situation like heterogeneous server consolidation.

RE: KVM performance vs. Xen

2009-04-29 Thread Nakajima, Jun
On 4/29/2009 7:41:50 AM, Andrew Theurer wrote: > I wanted to share some performance data for KVM and Xen. I thought it > would be interesting to share some performance results especially > compared to Xen, using a more complex situation like heterogeneous > server consolidation. > > The Workload:

KVM performance vs. Xen

2009-04-29 Thread Andrew Theurer
I wanted to share some performance data for KVM and Xen. I thought it would be interesting to share some performance results especially compared to Xen, using a more complex situation like heterogeneous server consolidation. The Workload: The workload is one that simulates a consolidation of ser

Re: AW: AW: AW: AW: AW: KVM performance

2009-04-16 Thread Avi Kivity
BRAUN, Stefanie wrote: Hello, I've compiled a new kernel v2.6.27-rc5 with the modified svm.c. But the behaviour of the vlc process in the guest is still the same. I've exported additional cpu features to the guest, e.g. mmxext with kvm-84. But no performance changes. I was not able to export

AW: AW: AW: AW: AW: KVM performance

2009-04-16 Thread BRAUN, Stefanie
ameters. Oh, maybe kvm-84 doesn't have this support? try http://userweb.kernel.org/~avi/kvm-85rc6/. -Ursprüngliche Nachricht- Von: Avi Kivity [mailto:a...@redhat.com] Gesendet: Dienstag, 14. April 2009 10:48 An: BRAUN, Stefanie Cc: kvm@vger.kernel.org Betreff: Re: AW: AW: AW: AW

Re: AW: AW: AW: AW: KVM performance

2009-04-14 Thread Avi Kivity
BRAUN, Stefanie wrote: Hello, the host runs on a Dual-Core AMD Opteron Processor. Does there exist a similar AMD parameter? You can add individual host cpu features by using '-cpu qemu64,+feature', where feature is taken from the host /proc/cpuinfo. Do you know which cpu features the prog

AW: AW: AW: AW: KVM performance

2009-04-14 Thread BRAUN, Stefanie
: AW: KVM performance BRAUN, Stefanie wrote: > Hello, > > now I was able to start the guest vmu with disk virtio, and some of > the tests with disk involvement even improved a bit. > But the test in which a logo is added to the video stream does not > improve. I don't know

Re: AW: AW: AW: KVM performance

2009-04-11 Thread Avi Kivity
BRAUN, Stefanie wrote: Hello, now I was able to start the guest vmu with disk virtio, and some of the tests with disk involvement even improved a bit. But the test in which a logo is added to the video stream does not improve. I don't know why the performance is so bad? Subtest: Reading video

AW: AW: AW: KVM performance

2009-04-09 Thread BRAUN, Stefanie
Hello, now I was able to start the guest vmu with disk virtio, and some of the tests with disk involvement even improved a bit. But the test in which a logo is added to the video stream does not improve. I don't know why the performance is so bad? Subtest: Reading video locally, adding a logo to

AW: AW: AW: KVM performance

2009-04-08 Thread BRAUN, Stefanie
BRAUN, Stefanie wrote: > 1. Subtest: VLC reads video from local disk and streams it via udp to another pc > Host performance: 11% 11% > kvm process in host (top):22% 22% > vlc process in vmu (top): 15%

Re: AW: AW: KVM performance

2009-04-07 Thread Avi Kivity
BRAUN, Stefanie wrote: 1. Subtest: VLC reads video from local disk and streams it via udp to another pc Host performance: 11% 11% kvm process in host (top): 22% 22% vlc process in vmu (top): 15% 7

AW: AW: KVM performance

2009-04-07 Thread BRAUN, Stefanie
ess in vmu (top) : 33,8% -Ursprüngliche Nachricht- Von: Avi Kivity [mailto:a...@redhat.com] Gesendet: Montag, 6. April 2009 18:36 An: BRAUN, Stefanie Betreff: Re: AW: KVM performance BRAUN, Stefanie wrote: > Is this a tcp test? > > Can you t

AW: KVM performance

2009-04-07 Thread BRAUN, Stefanie
April 2009 14:13 An: kvm@vger.kernel.org Cc: BRAUN, Stefanie Betreff: Re: KVM performance On Friday 03 April 2009 13:32:50 you wrote: > Hallo, > > as I want to switch from XEN to KVM I've made some performance tests > to see if KVM is as peformant as XEN. But tests with a VMU that

AW: KVM performance

2009-04-06 Thread BRAUN, Stefanie
-Ursprüngliche Nachricht- Von: Hauke Hoffmann [mailto:kont...@hauke-hoffmann.net] Gesendet: Montag, 6. April 2009 14:13 An: kvm@vger.kernel.org Cc: BRAUN, Stefanie Betreff: Re: KVM performance On Friday 03 April 2009 13:32:50 you wrote: > Hallo, > > as I want to switch from X

WG: KVM performance

2009-04-06 Thread BRAUN, Stefanie
-Ursprüngliche Nachricht- Von: BRAUN, Stefanie Gesendet: Montag, 6. April 2009 18:25 An: 'Avi Kivity' Betreff: AW: KVM performance -Ursprüngliche Nachricht- Von: Avi Kivity [mailto:a...@redhat.com] Gesendet: Montag, 6. April 2009 13:45 An: BRAUN, Stefan

Re: KVM performance

2009-04-06 Thread Hauke Hoffmann
lient > have shown that XEN performs much betten than KVM. > In XEN the vlc (videolan client used to receive, process and send the > video) process > within the vmu has a cpuload of 33,8 % whereas in KVM > the vlc process has a cpuload of 99.9 %. > I'am not sure why, does

Re: KVM performance

2009-04-06 Thread Avi Kivity
than KVM. In XEN the vlc (videolan client used to receive, process and send the video) process within the vmu has a cpuload of 33,8 % whereas in KVM the vlc process has a cpuload of 99.9 %. I'am not sure why, does anybody now some settings to improve the KVM performance? Is this a tcp

KVM performance

2009-04-03 Thread BRAUN, Stefanie
e vlc (videolan client used to receive, process and send the video) process within the vmu has a cpuload of 33,8 % whereas in KVM the vlc process has a cpuload of 99.9 %. I'am not sure why, does anybody now some settings to improve the KVM performance? Thank you. Regards, Stefanie. Used ha

Re: KVM performance

2008-11-20 Thread Avi Kivity
Randy Broman wrote: After I submitted the initial question, I downloaded the latest kernel 2.6.27.6, and compiled with the following options, some of which are new since my previous kernel 2.6.24-21. CONFIG_PARAVIRT_GUEST=y CONFIG_XEN_SAVE_RESTORE=y CONFIG_VMI=y CONFIG_KVM_CLOCK=y CONFIG_KVM_G

Re: KVM performance

2008-11-17 Thread Brian Jackson
Don't use kvm in the tarball. It's not what you want. That's just a wrapper that calls qemu/kvm (possibly even the system one) after it mangles some command line options. Use qemu/x86_64-softmmu/qemu-system-x86_64 from the tarball if you aren't going to install it. Then you just use the same com

Re: KVM performance

2008-11-16 Thread Randy Broman
After I submitted the initial question, I downloaded the latest kernel 2.6.27.6, and compiled with the following options, some of which are new since my previous kernel 2.6.24-21. CONFIG_PARAVIRT_GUEST=y CONFIG_XEN_SAVE_RESTORE=y CONFIG_VMI=y CONFIG_KVM_CLOCK=y CONFIG_KVM_GUEST=y # CONFIG_LGUES

Re: KVM performance

2008-11-16 Thread Avi Kivity
Randy Broman wrote: -I've tried both the default Cirrus adapter and the "-std-vga" option. Which is better? Cirrus is generally better, but supports fewer resolutions. I saw reference to another VMware-based adapter, but I can't figure out how to implement it - would that be better? -vg

Re: KVM performance

2008-11-14 Thread David S. Ahern
See if boosting the priority of the VM (see man chrt), and locking it to a core (see man taskset) helps. You'll want to do that for the vcpu thread(s) (in the qmeu monitor, run 'info cpus' command). david Randy Broman wrote: > I am using Intel Core2 Duo E6600, Kubuntu 8.04 with kernel > 2.6.24-2

KVM performance

2008-11-14 Thread Randy Broman
I am using Intel Core2 Duo E6600, Kubuntu 8.04 with kernel 2.6.24-21-generic, kvm (as in "QEMU PC emulator version 0.9.1 (kvm-62)") and a WinXP SP3 guest, with bridged networking. My start command is: sudo kvm -m 1024 -cdrom /dev/cdrom -boot c -net nic,macaddr=00:d0:13:b0:2d:32, model=rtl8139