Bug 229011 - System performance degradation when running in emulators/virtualbox-ose VirtualBox on multiple CPU cores
Summary: System performance degradation when running in emulators/virtualbox-ose Virtu...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords: needs-qa, performance
Depends on:
Blocks:
 
Reported: 2018-06-14 12:25 UTC by Victor
Modified: 2023-08-18 04:11 UTC (History)
2 users (show)

See Also:


Attachments
Top shows over 900% raw CPU for single-threaded processes (134.48 KB, image/png)
2018-06-14 12:25 UTC, Victor
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2018-06-14 12:25:32 UTC
Created attachment 194247 [details]
Top shows over 900% raw CPU for single-threaded processes

Especially hard degradation appeared after upgrade of host to virtualbox-ose-5.2.8_1.

Problem appears only when many CPU cores are available: On 8 cores system runs fine. On 12 or more systems becomes unstable and often completely unresponsive.
Initial OS installation process (from boot CD) is also affected.

On installed system degradation starts somewhere after the message "Timecounters tick every 1.000 msec" is printed.

Strange top screenshot is attached.


dmesg:
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.1-RELEASE-p10 #0: Tue May  8 05:21:56 UTC 2018
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
VT(vga): text 80x25
CPU: Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz (2666.90-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x206c2  Family=0x6  Model=0x2c  Stepping=2
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2b82203<SSE3,PCLMULQDQ,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AESNI>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 9126805504 (8704 MB)
avail memory = 8268087296 (7885 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <VBOX   VBOXAPIC>
FreeBSD/SMP: Multiprocessor System Detected: 24 CPUs
FreeBSD/SMP: 1 package(s) x 24 core(s)
random: unblocking device.
Security policy loaded: TrustedBSD MAC/portacl (mac_portacl)
ioapic0: Changing APIC ID to 24
ioapic0 <Version 2.0> irqs 0-23 on motherboard
SMP: AP CPU #19 Launched!
SMP: AP CPU #15 Launched!
SMP: AP CPU #20 Launched!
SMP: AP CPU #14 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #16 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #18 Launched!
SMP: AP CPU #9 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #11 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #8 Launched!
SMP: AP CPU #13 Launched!
SMP: AP CPU #12 Launched!
SMP: AP CPU #23 Launched!
SMP: AP CPU #21 Launched!
SMP: AP CPU #22 Launched!
SMP: AP CPU #17 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #10 Launched!
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80f5ec40, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 100000000 Hz quality 950
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
cpu4: <ACPI CPU> on acpi0
cpu5: <ACPI CPU> on acpi0
cpu6: <ACPI CPU> on acpi0
cpu7: <ACPI CPU> on acpi0
cpu8: <ACPI CPU> on acpi0
cpu9: <ACPI CPU> on acpi0
cpu10: <ACPI CPU> on acpi0
cpu11: <ACPI CPU> on acpi0
cpu12: <ACPI CPU> on acpi0
cpu13: <ACPI CPU> on acpi0
cpu14: <ACPI CPU> on acpi0
cpu15: <ACPI CPU> on acpi0
cpu16: <ACPI CPU> on acpi0
cpu17: <ACPI CPU> on acpi0
cpu18: <ACPI CPU> on acpi0
cpu19: <ACPI CPU> on acpi0
cpu20: <ACPI CPU> on acpi0
cpu21: <ACPI CPU> on acpi0
cpu22: <ACPI CPU> on acpi0
cpu23: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe0ffffff irq 18 at device 2.0 on pci0
vgapci0: Boot video device
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.1.0> port 0xd000-0xd007 mem 0xf0000000-0xf001ffff irq 19 at device 3.0 on pci0
em0: Ethernet address: 00:50:56:00:51:55
em0: netmap queues/slots: TX 1/256, RX 1/256
pci0: <bridge> at device 7.0 (no driver attached)
ahci0: <Intel ICH8M AHCI SATA controller> port 0xd040-0xd047,0xd048-0xd04b,0xd050-0xd057,0xd058-0xd05b,0xd060-0xd06f mem 0xf0804000-0xf0805fff irq 21 at device 13.0 on pci0
ahci0: AHCI v1.10 with 2 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
qpi0: <QPI system bus> on motherboard
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
Event timer "RTC" frequency 32768 Hz quality 0
ppc0: cannot reserve I/O port range
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
usb_needs_explore_all: no devclass
nvme cam probe device init
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA8-ACS SATA 2.x device
ada0: Serial Number VB858498bf-9eb94d3d
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 51200MB (104857600 512 byte sectors)
Trying to mount root from zfs:zroot/ROOT/default []...
vboxguest0 port 0xd020-0xd03f mem 0xf0400000-0xf07fffff,0xf0800000-0xf0803fff irq 20 at device 4.0 on pci0
vboxguest: loaded successfully
em0: link state changed to UP
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2023-08-18 04:11:58 UTC
<https://www.freshports.org/emulators/virtualbox-ose/>

Reproducible with 6.1.46 or greater in a currently supported version of the OS?

<https://www.freshports.org/emulators/virtualbox-ose-additions/>

If so: do we need to more about the host?