How guest could utilize 2 host cores (now only 1)?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
vuser1
Posts: 26
Joined: 26. Jan 2009, 23:24

How guest could utilize 2 host cores (now only 1)?

Post by vuser1 »

Hello!

My guest - Win2003-32bit - needs maximum muti-threading performance. And my goal is to give full CPU power to guest . The host is ububtu8.04. I read duscussion where some guy explained that there is no big reason to have SMP guest support because of VBox uses all the cores to run guest's threads.

I run 2 instances of CPUSTRES.EXE utility (part of WindowsNT ResourceKit) with 4 threads within each. So, there are 8 runnung threads on guest, but I see on the host that only 1 CPU core is loaded 100% and second one is almost idle.

I uses VBoxHeadless to run VM. TASKSET of VBoxHeadless returns CPU affinity mask 3 (0x11) - it means the process could run on 2 cores. Why it uses only 1? What option should I set to command VBox use both cores?
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Post by Martin »

Currently you cannot use more than one CPU core for a single virtual machine. If you run multiple VMs they will we be distributed over all CPUs.

Martin
vuser1
Posts: 26
Joined: 26. Jan 2009, 23:24

Post by vuser1 »

Martin, thank you for reply. I apologize for stupid question. There is no possibility to use 2 cores withouht guest SMP support - from the host perspective, VM is just one thread, no matter how many threads are inside the guest.
Post Reply