Virtualbox slow when using multiple CPU
Posted: 1. Mar 2012, 20:41
I am having strange problems with VirtualBox 4.1.8 on a server (x4450) with 4 x Xeon X7350's.
It is extremely slow when using multiple CPU's. I dont really notice this during startup but when for example compiling apache, it takes about an hour to complete. When changing the amount of CPU's to 1, it is 5x as fast.
The Host OS is CentOS 6.2 running VirtualBox, the guest OS is CentOS 6.2 with the GuestAdditions installed.
When compiling top also shows 0% idle (having 4 vcpu's assigned to the guest), when counting the top processes, it should have plenty of idle time left. When checking with top in the host OS, it shows about 280% cpu usage for the VBoxHeadless process during compiling. When idle, it does show a normal usage (2 or 3% average).
The Bios shows that virtualisation is enabled. These are the guest settings:
[ mod edit: please use code blocks around lengthy code/logs/infotexts etc. ].
It is extremely slow when using multiple CPU's. I dont really notice this during startup but when for example compiling apache, it takes about an hour to complete. When changing the amount of CPU's to 1, it is 5x as fast.
The Host OS is CentOS 6.2 running VirtualBox, the guest OS is CentOS 6.2 with the GuestAdditions installed.
When compiling top also shows 0% idle (having 4 vcpu's assigned to the guest), when counting the top processes, it should have plenty of idle time left. When checking with top in the host OS, it shows about 280% cpu usage for the VBoxHeadless process during compiling. When idle, it does show a normal usage (2 or 3% average).
The Bios shows that virtualisation is enabled. These are the guest settings:
Code: Select all
Name: uranus
Guest OS: Red Hat (64 bit)
UUID: 0015a5f7-538b-4e82-93c0-e4997b01ed0f
Config file: /home/vbox/VirtualBox VMs/uranus/uranus.vbox
Snapshot folder: /home/vbox/VirtualBox VMs/uranus/Snapshots
Log folder: /home/vbox/VirtualBox VMs/uranus/Logs
Hardware UUID: 0015a5f7-538b-4e82-93c0-e4997b01ed0f
Memory size: 8192MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 4
Synthetic Cpu: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
PAE: on
Time offset: 0 ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
State: running (since 2012-03-01T18:20:49.414000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): SATA Controller
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 30
Storage Controller Bootable (0): on
Storage Controller Name (1): IDE Controller
Storage Controller Type (1): PIIX4
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 2
Storage Controller Port Count (1): 2
Storage Controller Bootable (1): on
SATA Controller (0, 0): /home/vbox/VirtualBox VMs/uranus/uranus.vdi (UUID: c8f18a2e-6353-4c41-99b9-2266fbac6164)
IDE Controller (1, 0): /home/vbox/iso/VBoxGuestAdditions.iso (UUID: 6e10591d-ed2b-43c5-b5b4-3218523d9cbc)
NIC 1: MAC: 080027AB60BB, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 2: MAC: 0800271DE881, Attachment: Bridged Interface 'eth1', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
Audio: disabled
Clipboard Mode: Bidirectional
VRDE: enabled (Address 0.0.0.0, Ports 3389-4000, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property: TCP/Ports = "3389-4000"
VRDE property: TCP/Address = <not set>
VRDE property: VideoChannel/Enabled = <not set>
VRDE property: VideoChannel/Quality = <not set>
VRDE property: VideoChannel/DownscaleProtection = <not set>
VRDE property: Client/DisableDisplay = <not set>
VRDE property: Client/DisableInput = <not set>
VRDE property: Client/DisableAudio = <not set>
VRDE property: Client/DisableUSB = <not set>
VRDE property: Client/DisableClipboard = <not set>
VRDE property: Client/DisableUpstreamAudio = <not set>
VRDE property: H3DRedirect/Enabled = <not set>
VRDE property: Security/Method = <not set>
VRDE property: Security/ServerCertificate = <not set>
VRDE property: Security/ServerPrivateKey = <not set>
VRDE property: Security/CACertificate = <not set>
USB: disabled
USB Device Filters:
<none>
Shared folders: <none>
Guest:
Configured memory balloon size: 0 MB
Running kernel: 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux