Skip to contentSkip to conversation

can KVM use all cpu cores in a guest

DISCUSSION Martin Maurer 3 participants 3 messages Mar 7, 2008 – Mar 14, 2008 KVM

lore
Share & tools
lore
#0 lore raw

Hi all,

As far as I see I can configure 4 cpu´s in a guest (using the -smp option) – but this seems to be only virtual, means the process on the host only uses one physical cpu.

Background: I want to run just one guest, using the full cpu power of a host (quadcore). Now I only get 25 % cpu load on the host.

Will this be possible with future versions?

Thanks,

Best Regards,

Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#1 lore raw

KVM fully uses all 4 CPUs.

1. You need to make sure KVM is activated (not Qemu).
2. You need to have the guest workload to be multi-threaded.

Signature · 6 lines
-Alexey Eremenko "Technologov"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#2 lore raw
Quoted 6 lines · Alexey Eremenko

KVM fully uses all 4 CPUs.

1. You need to make sure KVM is activated (not Qemu).
2. You need to have the guest workload to be multi-threaded.

Hi Alexey,

Thanks, I worked it out - I had an issue on the kernel and on my custom resource scheduling, now it is working with kernel 2.6.24 and the guest can use all 4 cpu´s. best regards,
martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/