Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2024 20:50:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 278535] bhyve: occasional long delays during boot
Message-ID:  <bug-278535-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278535

            Bug ID: 278535
           Summary: bhyve: occasional long delays during boot
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: lexi.freebsd@le-fay.org

when testing on bhyve, i've noticed that the kernel will sometimes hang dur=
ing
boot.

console output:

?cLoading kernel...
/boot/kernel/kernel text=3D0x1852c8 text=3D0xec48a8 text=3D0x4852bc data=3D=
0x180+0xe80
data=3D0x199700+0x466900 0x8+0x19db08+0x8+0x1c80cb|
Loading configured modules...
/etc/hostid size=3D0x25
/boot/entropy size=3D0x1000

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
staging 0xb4000000 (not copying) tramp 0xbe278000 PT4 0xbe26f000
Start @ 0xffffffff80386000 ...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
---<<BOOT>>---
Copyright (c) 1992-2024 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 15.0-CURRENT #3 lf/bridge-inet-n269607-75357a4ae2c4: Mon Apr 22
20:24:11 BST 2024
=20=20=20
lexi@ilythia.eden.le-fay.org:/src/obj/src/freebsd/src/bridge-inet/amd64.amd=
64/sys/GENERIC
amd64
FreeBSD clang version 18.1.4 (https://github.com/llvm/llvm-project.git
llvmorg-18.1.4-0-ge6c3289804a6)
WARNING: WITNESS option enabled, expect reduced performance.
VT: init without driver.
CPU: AMD Ryzen 7 5800X3D 8-Core Processor            (3541.95-MHz K8-class =
CPU)
  Origin=3D"AuthenticAMD"  Id=3D0xa20f12  Family=3D0x19  Model=3D0x21  Step=
ping=3D2
=20
Features=3D0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,=
MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
=20
Features2=3D0xfed83203<SSE3,PCLMULQDQ,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,PO=
PCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV>
  AMD Features=3D0x26500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,LM>
  AMD
Features2=3D0x444231fb<LAHF,CMP,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,SKINIT,W=
DT,TCE,Topology,DBE,ADMSKX>
  Structured Extended
Features=3D0x201403a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,RDSEED,SMAP,SHA>
  Structured Extended Features2=3D0x600<VAES,VPCLMULQDQ>
  XSAVE Features=3D0x1<XSAVEOPT>
  AMD Extended Feature Extensions ID EBX=3D0x7<CLZERO,IRPerf,XSaveErPtr>
  TSC: P-state invariant
Hypervisor: Origin =3D "bhyve bhyve "
real memory  =3D 8589934592 (8192 MB)
avail memory =3D 8256217088 (7873 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <BHYVE  BVAPIC >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 4 package(s) x 1 core(s)
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
random: unblocking device.
ioapic0 <Version 1.1> irqs 0-31
Launching APs: 3 2 1
[hang here...]

the VM does eventually recover, after several minutes, and finishes booting=
.=20
however when this happens, the boot is very slow -- in the case i just noti=
ced,
it took about 15 minutes to boot to a multiuser login prompt.

this may be related to high CPU load on the host, since i normally use bhyve
when working on src, so i'm testing and building at the same time.  i have =
not
noticed this issue on production bhyve instances where the host is mostly i=
dle.

host:  FreeBSD 15.0-CURRENT #29 lf/main-n269030-a8c2ee4fe736: Thu Apr 18
19:57:54 BST 2024=20=20=20=20
srcmastr@daphne.eden.le-fay.org:/src/obj/src/freebsd/lf/main/amd64.amd64/sy=
s/LF

guest: FreeBSD 15.0-CURRENT #3 lf/bridge-inet-n269607-75357a4ae2c4: Mon Apr=
 22
20:24:11 BST 2024=20=20=20=20
lexi@ilythia.eden.le-fay.org:/src/obj/src/freebsd/src/bridge-inet/amd64.amd=
64/sys/GENERIC

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278535-27103>