LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 07-29-2008, 10:47 AM   #1
cafun4o
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Rep: Reputation: 0
Virtualisation with KVM really bad performance..


Hi everyone,

I have just configured 2 virtual machines using KVM. Those are the commands I used:
kvm -cdrom ../liveCD.iso -boot d -net nic -net socket,listen=:8010 /dev/sda11
and
kvm -cdrom ../liveCD.iso -m 1024 -boot d -net nic -net socket,connect=:8010 /dev/sda12

after that I built a local network between the machines and transferred a file using FTP. The transfer speed was 270kb/s! Can anyone tell me why it is so slow? My hardware configuration is: Intel Core 2 QUAD 2.6ghz with 2gb of ram and an SATA hard drive. As I copy a file between the virtual machines I am actually copying it from one hard drive partition to another(wright?). It shouldn't be so slow. I also tried to copy a file (using FTP again) from the local host on one of the virtual machines(practically downloading the file from my self) the speed was around 6mb/s which is acceptable. But if I transfer something between both machines it is really slow... Can someone tell me if I am doing something wrong? Or if you have any idea why is the speed not good. Or maybe KVM is not the wright Virtualisation Software for me? Do you know which Virtualisation software will give me the best transfer speed in that case?
ok, that's it for now. I appreciate any help..
thanks in advance.
Niko
 
Old 07-30-2008, 05:05 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 661

Rep: Reputation: 71
Hi
Unluckily I didn't have yet a look at the network transfer speed inside a kvm-vm, but:

Perhaps kvm is running in full emulation without any help from the linux kernel?
I run from time to time WindowsXP on my notebook using kvm, and when I forget to first load the kernel modules of kvm (kvm_intel or kvm_amd, depending on your machine), the OS uses a lot of CPU and is very very slow.
 
Old 08-25-2008, 08:36 PM   #3
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 2
RE: Virtualisation with KVM really bad performance..

One of the gotchas here is that although newer machines have Virtualisation hardware, in Intels this is turned off by default. If you can load the kernel module (kvm-intel) then you have the virtualisation hardware turned on.
 
Old 08-26-2008, 06:27 PM   #4
cafun4o
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
well, it appears that I have loaded the modules correctly(kvm_intell is loaded). So that is not the problem.... After checking that, I heard that there is a special network driver in kvm, for the virtual machines. So I recompiled the kernel of the VMs, so that they support that virtual network driver, and tried again... Unfortunately once again the speed was very low... a little bit better than before, but still really slow.. so I gave up testing kvm and I think that my older solution(xen) is still better than kvm. Maybe they still have issues to solve in kvm. And maybe in time they will get much better.. I don't know.. Anyway, if anyone still has an idea of, what I might be doing wrong, I would appreciate your opinion...

cheers,
 
Old 08-27-2008, 02:53 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
kvm relies heavily on the VT extension, if you don't have it enabled in the BIOS it will run really slow.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bad performance floris Suse/Novell 3 07-21-2007 08:27 PM
LXer: Linux: Improved KVM Performance, Vista Support LXer Syndicated Linux News 0 05-06-2007 01:46 PM
LXer: Linux: Improving KVM Performance With A Tickless Kernel LXer Syndicated Linux News 0 01-13-2007 02:03 PM
LXer: Linux KVM Virtualization Performance LXer Syndicated Linux News 0 01-07-2007 10:54 PM
KVM performance loss? Dr3n Linux - Hardware 6 10-18-2005 05:46 PM


All times are GMT -5. The time now is 07:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration