LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 08-19-2012, 11:32 AM   #1
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Rep: Reputation: 0
Question KVM performance are pretty low.


Dear all,
I bought a new PC (well I need to upgrade it soon).
I've installed Fedora 17 and using KVM I've installed Win7.

The performance of the guest OS are very low.
My hardware specs are as below:
- CPU: Intel i7 3770
- RAM: G. Skill 10-10-10-24 (Ares) 2x8GB
- Mainboard: Intel DH77EB
- Hard drive: Samsung F3 1TB

I'm using the default configuration of the KVM.
And I'm using Intel HD Graphics directly from the Mainboard (i didn't installed any drivers of Intel on Win\fedora).

Any ideas why the performance are low?
BTW, the guest OS gets 4GB of RAM and access to all 8 cores of the CPU.
And yes, both Guest & Host OS located on the same hard drive.

The performance are low on the I\O - installation of the guest OS took almost 2hrs from the HD!!
And also the graphics are low, the pointer ain't smooth at all.

Hope you have an ideas about how can I improve the performance.

Best regards,
Yoni D.
 
Old 08-19-2012, 12:11 PM   #2
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
While investigating the issue, I'm looking to know how does I'm running my guest OS if behind Qemu or KVM :\
Hope to find-out i'm using Qemu ATM, because I just understood its very slow.
 
Old 08-20-2012, 08:18 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 834

Rep: Reputation: 91
defaults are never optimized. You need to install your VM on a virtio disk and virtio network, then use spice and QXL for video. This will require virtio and qxl drivers to be slipped into the windows distribution of course.

BTW, giving a VM more cores doesn't make it faster
 
Old 08-20-2012, 12:06 PM   #4
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
Hey Dyasny, nice to see some more IL pplz here!
Thanks for the tip with VirtIO, my x-RHCE course instructor gave me this tip too a few hours ago - I will read about it today and tomorrow; tomorrow I will also try it.
The reason that I gave the guest OS more cores to use is in order to share the pressure of the tasks on all cores and not just all of them - I don't know how well KVM knows to manage it.

Thanks again! I will post an update tomorrow.
Best regards,
Yoni D.
 
Old 08-21-2012, 08:13 AM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 834

Rep: Reputation: 91
ok, to enhance those tips:
1. virtio is paravirtualized, meaning the guest device is working directly with the host device, and not via an emulated software based device. there are several virtio based devices available - a disk controller, network controller, COM controller etc. This will always give you better speeds, because there is way less overhead this way
2. KVM is probably the best system out there when it comes to effectively using VM cores, because a VM core is simply a process on the host, and the Linux kernel scheduler takes care of scheduling. Still, if you have too many processes scheduled, they might try to compete to CPU time, and at some point it can become quite cumbersome

PS: it's good to see Linux finally becoming popular in .il
 
Old 08-21-2012, 05:34 PM   #6
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 495

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by CrAzYoNi View Post
Dear all,
I bought a new PC (well I need to upgrade it soon).
I've installed Fedora 17 and using KVM I've installed Win7.

The performance of the guest OS are very low.
My hardware specs are as below:
- CPU: Intel i7 3770
- RAM: G. Skill 10-10-10-24 (Ares) 2x8GB
- Mainboard: Intel DH77EB
- Hard drive: Samsung F3 1TB

I'm using the default configuration of the KVM.
And I'm using Intel HD Graphics directly from the Mainboard (i didn't installed any drivers of Intel on Win\fedora).

Any ideas why the performance are low?
Did you load the kvm modules beforehand? If not, you end up using qemu without kvm acceleration.

Code:
# modprobe kvm
# modprobe kvm-intel
Make sure as well that virtualization processor extensions are enabled in BIOS.
 
Old 08-25-2012, 10:23 AM   #7
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
Dear Dyasny & Gezley,
Thanks for your replies.
Gezley - Both KVM & KVM-intel modules were already loaded, seems that this is the default for Fedora 17 configuration (Because I didn't changed it manually).
Dyasny - I've did configured both the storage device and the Network device to use VirtIO - and the performance increased indeed.

Though, the video performance are low - no 3D support, Windows cannot recognize the video adapter and the resolutions are.. hmmm not so good - I cannot set 1080p for example but can use some other resolutions. I've tried to install the latest QXL drivers from The alt.fedoraproject.org but I'm getting error that this driver is not signed.

Any suggestions how can I increase the video performance? or at least to add full 1080p resolution support (1920x1980)?

Thanks in advance.
 
Old 08-25-2012, 11:20 AM   #8
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
Update:
I've use some tool which I found over the internet to allow unsigned drivers to work on Windows OS - so now i'm getting my VM video adapter to support 1080p resolution, though no 3D performance yet.
Still looking for suggestions about it.
 
Old 08-25-2012, 02:59 PM   #9
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 834

Rep: Reputation: 91
Quote:
Originally Posted by CrAzYoNi View Post
Update:
I've use some tool which I found over the internet to allow unsigned drivers to work on Windows OS - so now i'm getting my VM video adapter to support 1080p resolution, though no 3D performance yet.
Still looking for suggestions about it.
moved to spice, did you? That's what I would suggest.

Spice doesn't support directx yet, watch the updates on spice-space.org
 
Old 08-26-2012, 03:51 PM   #10
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
Dear Dyasny, I'm using Spice by default on all of my guest VM's (ATM I'm installing the 3rd VM ).
The options I got are VNC or Spice - and I know VNC is pretty low with performance so it was easy decision.
 
Old 08-27-2012, 05:07 AM   #11
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 834

Rep: Reputation: 91
Yes, but you also have to have qxl installed in the guests, and the VM must be running with qxl enabled
 
Old 08-27-2012, 06:18 AM   #12
CrAzYoNi
Member
 
Registered: Sep 2008
Posts: 36

Original Poster
Rep: Reputation: 0
I've installed the Qxl video card drivers - though I was needed to find a way to bypass windows protection - the Qxl drivers are not signed by MS.
Please note that all of the above is about guest VM running MS Win7.
When I tried the same for Windows 2008 R2, I couldn't install the Qxl drivers; I will look deeper into it later today or tomorrow.
Below is a link that can show you the status of my server ATM:
https://www.facebook.com/photo.php?f...4032.602857279
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM virtualizaiton results in odd colors, low screen resolution eveningsky339 Linux - Virtualization and Cloud 7 10-25-2010 06:10 PM
kvm switch preventing monitor detection = low resolution pellgarlic Linux - Desktop 5 01-12-2009 09:08 AM
best low price 4-port kvm switch ? bowie101 Linux - Hardware 2 12-19-2006 01:28 AM
KVM performance loss? Dr3n Linux - Hardware 6 10-18-2005 05:46 PM
Very low performance trebek Linux - Newbie 9 08-04-2005 11:18 AM


All times are GMT -5. The time now is 08:55 AM.

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