kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM performance
@ 2008-11-14 18:35 Randy Broman
  2008-11-14 18:58 ` David S. Ahern
  2008-11-16 14:26 ` Avi Kivity
  0 siblings, 2 replies; 18+ messages in thread
From: Randy Broman @ 2008-11-14 18:35 UTC (permalink / raw)
  To: kvm

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 -net tap -soundhw all -localtime /home/rbroman/windows.img

All this is stable and generally works well, except that internet-based 
video and
audio performance is poor (choppy, skips) in comparison with performance 
under
WinXP running native on the same machine (it's a dual-boot). I would 
appreciate
recommendations to improve video and audio performance, and have the 
following
specific questions:

-I've tried both the default Cirrus adapter and the "-std-vga" option. 
Which is better?
I saw reference to another VMware-based adapter, but I can't figure out 
how to implement
it - would that be better?

-I notice we're up to kvm-79 vs my kvm-62. Should I move to the newer 
version? Do I
have to custom-compile my kernel to do so, and if so what kernel version 
and what
specific kernel options should I use?

-Are there other tuning steps I could take?

Please copy me directly as I'm not on this list. Thankyou





^ permalink raw reply	[flat|nested] 18+ messages in thread
* KVM performance
@ 2009-04-03 11:32 BRAUN, Stefanie
  2009-04-06 11:45 ` Avi Kivity
  2009-04-06 12:13 ` Hauke Hoffmann
  0 siblings, 2 replies; 18+ messages in thread
From: BRAUN, Stefanie @ 2009-04-03 11:32 UTC (permalink / raw)
  To: kvm


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 receives
a streamed video, adds a small logo to the video and streams it to a
client
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 anybody now some settings to improve
the KVM performance?

Thank you.
Regards, Stefanie.


Used hardware and settings:
In the tests I've used the same host hardware for XEN and KVM:
- Dual Core AMD 2.2 GHz, 8 GB RAM
- Tested OSes for KVM Host: Fedora 10, 2.6.27.5-117.fc10.x86_64 with kvm
version 10.fc10 version 74
                            also tested in january: compiled kernel with
kvm-83

- KVM Guest settings: OS: Fedora 9 2.6.25-14.fc9.x86_64 (i386 also
tested)
                      RAM: 256 MB (same for XEN vmu)
                      CPU: 1 Core with 2,2 GHz (same for XEN vmu)
			    tested nic models: rtl8139, e1000, virtio

Tested Scenario: VMU receives a streamed video , adds a logo (watermark)
to the video stream and then streams it to a client

Results:
	
XEN:
Host cpu load (virt-manager): 		23%
VMU  cpu load (virt-manager):			18 %	
VLC process within VMU (top):			33,8%			

KVM:
no virt-manager cpu load as I started the vmu with the kvm command
Host cpu load :					52%
qemu-kvm process (top)				77-100%
VLC process within vmu (top):			80 - 99,9%

KVM command to start vmu
/usr/bin/qemu-kvm -boot c -hda /images/vmu01.raw -m 256 -net
nic,vlan=0,macaddr=aa:bb:cc:dd:ee:10,model=virtio -net
tap,ifname=tap0,vlan=0,script=/etc/kvm/qemu-ifup,downscript=/etc/kvm/qem
u-ifdown -vnc 127.0.0.1:1 -k de --daemonize





________________________________

Alcatel-Lucent Deutschland AG
Bell Labs Germany
Service Infrastructure, ZFZ-SI
Stefanie Braun
Phone:   +49.711.821-34865
Fax:     +49.711.821-32453

Postal address:
Alcatel-Lucent Deutschland AG
Lorenzstrasse 10
D-70435 STUTTGART

Mail: stefanie.braun@alcatel-lucent.de

 

Alcatel-Lucent Deutschland AG
Sitz der Gesellschaft: Stuttgart - Amtsgericht Stuttgart HRB 4026
Vorsitzender des Aufsichtsrats: Michael Oppenhoff Vorstand: Alf Henryk
Wulf (Vors.), Dr. Rainer Fechner

________________________________

^ permalink raw reply	[flat|nested] 18+ messages in thread
* KVM performance
@ 2007-01-27  0:21 Tim Chen
       [not found] ` <1169857267.30807.44.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 18+ messages in thread
From: Tim Chen @ 2007-01-27  0:21 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

I did some testing of KVM on my woodcrest machine.  And I found that
building a 2.6.19 kernel with identical configuration takes 845 sec on a
guest and 210 sec on the host.  So the compile is about 4X slower on the
guest :(

The guest ran with 2.6.19 kernel and host ran with a 2.6.20-rc5 kernel.
The guest file image is created with raw format.  Wonder if people see
similar performance figure?  

Tim

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

end of thread, other threads:[~2009-04-06 12:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-14 18:35 KVM performance Randy Broman
2008-11-14 18:58 ` David S. Ahern
2008-11-16 14:26 ` Avi Kivity
2008-11-16 22:08   ` Randy Broman
2008-11-17 14:50     ` Brian Jackson
2008-11-20 11:08     ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2009-04-03 11:32 BRAUN, Stefanie
2009-04-06 11:45 ` Avi Kivity
2009-04-06 12:13 ` Hauke Hoffmann
2007-01-27  0:21 Tim Chen
     [not found] ` <1169857267.30807.44.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-01-27  3:11   ` Fabian Deutsch
2007-01-27  8:34   ` Avi Kivity
     [not found]     ` <45BB0E85.9060303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-27 12:48       ` Rusty Russell
     [not found]         ` <1169902138.32208.25.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-01-28  9:40           ` Avi Kivity
     [not found]             ` <45BC6F98.908-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-30 12:52               ` Rusty Russell
     [not found]                 ` <1170161536.17669.10.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-01-30 12:56                   ` Avi Kivity
     [not found]                     ` <45BF4082.3010803-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-01-31  1:54                       ` Rusty Russell
2007-01-30 15:11                   ` Anthony Liguori

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).