Hi All, How does KVM handle multiple cores. I have an x5650 with 6 real cores that presents itself to my OS as 12 virtual cores (hyperthreading). Does KVM see 6 or 12 cores. And, can I tell KVM how many cores I want it to use? Am I misunderstanding how KVM works? What I am after is if my guest is 100% busy, I still want some power left over for my host. Many thanks, -T
On 11/10/2010 06:59 PM, MargoAndTodd wrote:> Hi All, > > How does KVM handle multiple cores. I have an x5650 with 6 real cores > that presents itself to my OS as 12 virtual cores (hyperthreading). > > Does KVM see 6 or 12 cores. > > And, can I tell KVM how many cores I want it to use? > > Am I misunderstanding how KVM works? > > What I am after is if my guest is 100% busy, I still > want some power left over for my host. > > Many thanks, > -TFound this is the manual page: -smp n Simulate an SMP system with n CPUs. On the PC target, up to 255. CPUs are supported. Okay, not very informative. On my x5650 would that be a maximum of 6 or 12 processors? -T
I can't say if KVM will see 6 or 12 cores as I don't run the same hardware. It's easy enough to install centos and find out. When you create a virtual machine in KVM, you assign virtual cpus to the guest - from 1, to as many as you think the guest will need. For performance reasons, I personally think it's better to keep the total number of virtual cpus in all of your guests close to the number of real cpus. But since most computers are idle 99% of the time, you have a lot of room for experiment...