LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-19-2014, 02:28 AM   #1
pix9
Member
 
Registered: Jan 2010
Location: Kalyan, Mumbai, Maharashtra, India
Distribution: Red Hat (RHEL 6.0)
Posts: 135

Rep: Reputation: 19
Question Slow VM performance on KVM fedora 20


hello
Friends, I've purchased new laptop following are details of my laptop configurations.

MANUFACTURER : Acer
MODEL : Aspire E1-522-65204G50Mnkk
CPU : AMD A6-5200
RAM : 4GB
HDD : 500GB

I have installed fedora20 on this laptop, there were some bootup issues on defult install so I updated packages in it, now it is working fine, but there are problem when i try to use KVM Virtualization on it, I am trying to install fedora 20 VM(Virtual Machine) on this laptop with help of KVM but installation process is unexpectely slow and it feels like I am using a stonage machine, at some point of time I doubt if installation is progressing or it has halted, some times installer on guest vm stops responding.
Following are details of kernel and other applications which I belive are used for Virtualization.

#### how I am installing Virtual Machine
* I am installing VM with help of fedora 20 installer dvd ISO file for arch X86_64 which is kept on windows partition,

*selinux is in permissive state

* number of VCPU alloted to vm 2

* memory given to VM 1024MB

* VM hdd is qcow2 formatted image under default location of vm images under kvm

* around 90GB-100GB space available at vm installation destination

* type of installation I am trying to do fedora20 minimal

* time taken for installing fedora on vm more than 2 hrs (haven't counted exact time taken, can do so if needed)

####### kernel version
$uname -r
3.13.6-200.fc20.x86_64

#######versions of apps installed
qemu-kvm-1.6.1-3.fc20.x86_64
libvirt-daemon-1.1.3.4-1.fc20.x86_64
virt-manager-1.0.0-5.fc20.noarch

##### cpu info
$cat /proc/cpuinfo
..
..
truncated output (removed repeated information to avoind posting un necessary data)
..
..
processor : 3
vendor_id : AuthenticAMD
cpu family : 22
model : 0
model name : AMD A6-5200 APU with Radeon(TM) HD Graphics
stepping : 1
microcode : 0x700010b
cpu MHz : 800.000
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt topoext perfctr_nb perfctr_l2 arat xsaveopt hw_pstate proc_feedback npt lbrv svm_lock nrip_save tsc_scale flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips : 3992.70
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [11]

######list of pci devices
$lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 9840
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 01)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 3a)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 5
01:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 13)
01:00.1 SD Host controller: Qualcomm Atheros Device 3010 (rev 13)
05:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)


################# my questions/rerquests as follows.

1 ) I am expirencing very slow Virtual Machine performance slow like 4-5 times slow than it is working on my host system.

2) how can I solve this issue?

3) Any possible cause of the problem?

4) have anyone expirenced this before on laptop systems?

Thank You

Last edited by pix9; 03-19-2014 at 02:34 AM.
 
Old 03-19-2014, 03:36 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,737

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
Laptops are terrible for this sort of thing I'd think.

As I recall, kvm has a module that needs cpu support. If bios support isn't enabled or motherboard fully supported then kvm simply runs in emulated mode which sounds about right.

Second deal is hard drive maybe. Just too slow. Might use a usb 3.0 external to help solve some of the speed issues.

Last edited by jefro; 03-19-2014 at 03:37 PM.
 
Old 03-19-2014, 09:20 PM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
lsmod | grep kvm
domxml output for the VM
what options are used to mount the partition the disk images are in?
 
Old 03-20-2014, 03:05 PM   #4
pix9
Member
 
Registered: Jan 2010
Location: Kalyan, Mumbai, Maharashtra, India
Distribution: Red Hat (RHEL 6.0)
Posts: 135

Original Poster
Rep: Reputation: 19
Arrow

@jefro I also believed that laptops are bad for running vm's until I saw my boss running 5 vms simultaneously (different HW config)on his laptop, still his laptop is 2 years old, mine is more recent once, what I am suspecting is it's firmware issue I am hoping things should work better on fedora 21 in that case. For your other point about HDD being slow I will try different ways of installation from different sources on this weekend and post here if any progress or failure whatever the results are( i am expecting least chances here because native system was working very well during installation.).

@dyasny here are out puts that you've requested
taken while vm was running (tho no OS installed on it.)
#lsmod |grep kvm
kvm 444322 0

for domxml please check the attachment fed20.xml.txt

Thank you
Attached Files
File Type: txt fed20.xml.txt (4.9 KB, 2 views)
 
Old 03-20-2014, 04:40 PM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
you only have the kvm module running. you also need kvm_amd or kvm_intel for the system to actually use KVM
 
Old 03-20-2014, 04:42 PM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
here's some more proof from the domxml:

Quote:
<emulator>/usr/bin/qemu-system-x86_64</emulator>
 
Old 03-20-2014, 06:48 PM   #7
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
As you have an Aspire E1-522, then this may help. http://community.acer.com/t5/Noteboo...22/td-p/151267
Apparently a hack is needed to access the Advanced BIOS menus to turn on hardware virtualisation.
 
Old 03-28-2014, 05:33 AM   #8
pix9
Member
 
Registered: Jan 2010
Location: Kalyan, Mumbai, Maharashtra, India
Distribution: Red Hat (RHEL 6.0)
Posts: 135

Original Poster
Rep: Reputation: 19
I am trying to work out the suggestion provided by allend. Will soon try to update sucess/failure what ever may the results.

thank you
 
Old 03-30-2014, 10:22 PM   #9
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
you don't have all of the kvm modules loaded, this is why you aren't using kvm and the VM is slow. try to load the modules before you start playing with firmware.
 
Old 03-31-2014, 05:07 PM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Pray tell, how will kvm work without the processor hardware virtualisation extensions?
http://www.linux-kvm.org/page/FAQ#Wh..._to_use_KVM.3F

Last edited by allend; 03-31-2014 at 05:12 PM.
 
Old 03-31-2014, 05:55 PM   #11
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
Quote:
Originally Posted by allend View Post
Pray tell, how will kvm work without the processor hardware virtualisation extensions?
http://www.linux-kvm.org/page/FAQ#Wh..._to_use_KVM.3F
How can it work at all, if the kernel modules aren't loaded? And yes, thanks for referencing the site I've helped edit since 2008...
 
Old 03-31-2014, 07:27 PM   #12
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Can we agree that there are two things that are needed to solve the OP's problem?
1. The hardware needs to be set up so that the AMD processor is using the SVM extensions. Post#7 (which does require a firmware change on this hardware)
2. The kvm_amd kernel module will then need to be loaded to make use of the enabled extensions. Post#5
 
Old 03-31-2014, 11:28 PM   #13
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 844

Rep: Reputation: 91
All I am saying is first try to load that module, and only then try the more complicated solutions, according to the error message you receive. There have been bugs reported in some Debian and Ubuntu versions, where kvm_amd and kvm_intel modules were mistakenly removed from the list of modules to be loaded on boot, leaving the kvm module in there nonetheless. Running a single command to make sure this isn't it is so much simpler than hacking your BIOS for hours, risking bricking your mobo completely, just to realize the problem was never there. Always try the simple and obvious solutions first.
 
  


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
XP Guest Performance on KVM Really Slow phdam8 Linux - Software 2 01-08-2013 03:51 AM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM
Slow performance!!! System using a lot of Physical Memory SLOW HELP! badgerbox76 Linux - Newbie 31 07-19-2007 10:23 AM
Slow Fedora FC6 <-> Windows Performance dodgydodgy Linux - Networking 2 03-29-2007 04:08 AM
KVM performance loss? Dr3n Linux - Hardware 6 10-18-2005 05:46 PM


All times are GMT -5. The time now is 07:08 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