Fedora Linux Support Community & Resources Center
  #1  
Old 19th July 2012, 03:44 PM
anthonyfee Offline
Registered User
 
Join Date: Jul 2012
Location: Ireland
Posts: 2
windows_7chrome
KVM - Multiple vcpu not pinning to physical cpu

Hi all,

I'm using KVM on a 32-core Xeon machine but I'm having an issue where the virtual cpus don't pin to the physical ones. I'm not sure if I'm making a fundamental mistake but the setup of the kvm seems to be very straight-forward using virt-manager.

I have successfully created a VM with 4 cpu's. These cpus appear in the VM in /proc/cpuinfo. using virsh vcpuinfo I can also see that these cpus exist. However they all appear to be pinned to the same physical cpu. If I try to change this using "virsh vcpupin machine 0 3" for example, all vcpus get pinned to 3. This is also observed if the vm is jumping between physical cpus. All of them change to the same cpu. I have also tried this with taskset.

From my understanding, if I create a vm with multiple cpus, each cpu creates a separate thread which in turn can be bound to a physical cpu. This isn't the case for me. I get one constant thread and another that appears and disappears. I have also ran cpu heavy applications on the vm. This shows processes taking 99% cpu on each of the 4 cpus. However using top in the host I only observe one cpu using 99%. At this point I get a soft lock on cpu within the VM.

From what I can see the issue is that all vcpus are pinned to a single cpu. Has anyone experienced this before? Is there any setting that I'm missing that allows use of multiple cores with kvm?

Thanks for your help! Let me know if you need anymore info!
Anthony

---------- Post added at 02:44 PM ---------- Previous post was at 02:33 PM ----------

I also forgot to mention that I'm running Fedora 16 as host and VM.
Reply With Quote
  #2  
Old 20th July 2012, 11:41 AM
anthonyfee Offline
Registered User
 
Join Date: Jul 2012
Location: Ireland
Posts: 2
windows_7chrome
Re: KVM - Multiple vcpu not pinning to physical cpu

Hi all,

In case anyone is interested, the solution to this problem was in configure. If you are building qemu from scratch, run configure with the --enable-io-thread option. This allows the system to create a thread for each vcpu. It may or may not be enabled by default.

Regards,
Anthony
Reply With Quote
Reply

Tags
cpu, kvm, multiple, physical, pinning, vcpu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selinux problems with homedirs spread across multiple physical disks/partitions parish Security and Privacy 8 11th June 2010 10:54 PM
Cannot detect physical RAM jenny80 Installation, Upgrades and Live Media 10 2nd August 2007 09:45 PM
Creating a logical volume out of multiple physical hard drives gpierce Installation, Upgrades and Live Media 1 1st July 2007 04:14 PM
FC6: Compiz and pinning to all workspaces dedded Using Fedora 4 7th November 2006 12:51 PM
Physical Memory scorbel Using Fedora 3 2nd July 2004 05:14 AM


Current GMT-time: 23:39 (Wednesday, 17-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat